面试

北京爱恩科技笔试题

时间:2020-12-31 16:15:34 面试 我要投稿

北京爱恩科技笔试题

北京爱恩科技发展有限公司笔试考题

北京爱恩科技笔试题

Name   :_______________________
Date   :________________________
Time Start  :____________________
Time End :_____________________

VISUAL BASIC SECTION

Q1 : Grade yourself on your Visual Basic Skill ?
1 – poor …….. 10- Advance player

Ans: 

Q2 : Declare Function Multiply_Add Lib “test” (ByRef A as integer ,VeRef B as integer , ByVal c as integer ) as integer

Q2.1: Explain what is Declare Function used for ?

Ans :

Q2.2 : Explain the difference between ByRef and ByVal ?

Ans :

Q3 : Is Visual Basic a COMPILER or an INTERPERTER ?

Ans


C++ SECTION

Q4 :
     int iVal1 = 0, iVal2 = 0;
     int * ipVal;

     ipVal = &iVal1;      What is the Value of  ipVal  = *ipVal  =

     ipVal = (int*)iVal1; What is the Value of  ipVal  =   *ipVal  =

     iVal2 = (int)&iVal1; What is the Value of  ipVal  =   *ipVal  =

 
Q5:
void SwapAB(int A, int B)
{
 A=B;
 B=A;
}

 int main()
{
 int A,B;
 A=1;
 B=2;
 SwapAB(A,B);
 return 0;  // A= ?, B= ?
}

What is the value of A and B ?

What is the difference between STRUCTURE and OBJECT ORIENTED PROGRAMMING ?

What is the difference between C and C++ ?


What is an interpreter ?

 
Q6. Step through the following C code and answer the questions

void FillMem(unsigned char *pData, unsigned char len)
{
   while (len--) *pData++ = len; 
}

void main()
{
   unsigned char buffer1[8];
   unsigned char buffer2[8];
   unsigned char * pData;
   unsigned char cnt1, cnt2;

   for (cnt1 = 0; cnt1 < 8; cnt1++)
      buffer1[cnt1] = 0xFF;

   for (cnt1 = 0; cnt1 < 8; cnt1++)
      buffer2[cnt1] = 0xFF;
  
   for (cnt1 = 0, cnt2 = 4; cnt1 < 4; cnt1++, cnt2--)
     buffer1[cnt1] = cnt1;
     buffer2[cnt2] = cnt2;

   /***************************************************************
   Q What is the content of buffer1 & buffer2 ?
   buffer1[0] =      ??      buffer2[0] =             ??
   buffer1[1] =     ??      buffer2[1] =             ??
   buffer1[2] =       ??      buffer2[2] =             ??
   buffer1[3] =       ??      buffer2[3] =              ??

本文章更多内容1 - - -

【北京爱恩科技笔试题】相关文章:

关于汉代的推恩令07-07

北京市科技计划项目(课题)经费管理办法09-13

最新北京市科技计划项目管理办法09-13

北京科技大学网络教育招生简章09-11

小班消息恩开题报告范文推荐10-11

北京市鼓励在京设立科技研究开发机构的规定09-12

我爱北京天安门黑板报资料02-03

汉代推恩令是怎么回事07-07

中关村科技园区接收非北京生源高校毕业生办法09-14

2016北京电子科技学院研究生招生简章10-11