- 1
- 0
- 约5.02千字
- 约 6页
- 2015-09-26 发布于重庆
- 举报
北京爱恩科技试题
北京爱恩科技发展有限公司笔试考题
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] = ??
b
您可能关注的文档
- 分析重庆市影响居民消费的因素.doc
- 分段函数在分界点处导数的一种求法.pdf
- 分段函数的光滑方法及其在曲线拟合中的应用.pdf
- 分离式热管换热器传热特性研究.pdf
- 分类树中QUEST算法与多水平logistic模型的联合应用与比较.pdf
- 分组公平排队算法的仿真研究.pdf
- 分组数据的Bayes分析_Gibbs抽样方法.pdf
- 切换HOST无需重启浏览器的方法(IE火狐等等).doc
- 划痕试验法对特殊薄膜系结合力的检测与评价.pdf
- 刘建秋运用扶正祛邪法治疗肺癌的经验_毛文丽.pdf
- 2025年版汽车趋势报告 The 2025 EPA Automotive Trends Report.docx
- 2026年边缘计算开源平台EdgeX Foundry入门与二次开发.docx
- 2026年超声内镜放大内镜早癌诊断AI辅助识别系统临床评价.docx
- 2026年报废汽车回收与再制造逆向物流体系.docx
- 2026年产品碳足迹核算方法学:从摇篮到大门与从摇篮到坟墓.docx
- 2026年城乡要素平等交换双向流动政策创新试点申报材料.docx
- 2026年超导半导体接口电路架构与电平转换驱动器设计.docx
- 2026年财政贴息不再以再贷款支持为前提后的风险防范与合规要点.docx
- 2026年不动产信托登记试点政策对遗嘱信托支持.docx
- 2026年城乡有机废弃物协同处理技术方案.docx
原创力文档

文档评论(0)