德尔福笔试(软件类)
德尔福软件方向的笔试题
1.How do you code an infinite loop in C?
2. Volatile:
a) What does the keyword volatile mean? Give an example
b) Can a parameter be both const and volatile? Give an example
c) Can a pointer be volatile? Give an example
3. What are the values of a, b, and c after the following instructions:
int a=5, b=7, c;
c = a+++b;
4, What do the following declarations mean?
a) const int a;
b) int const a;
c) const int *a;
d) int * const a;
e) int const * a const;
5. Which of the following statements describe the use of the keyword static?
a) Within the body of a function: A static variable maintains its value between function revocations
b) Within a module: A static variable is accessible by all functions within that module
c) Within a module: A static function can only be called by other functions within that module
6. Embedded systems always require the user to manipulate bits in registers or variables. Given an integer variable a, write two code fragments.
The first should set bit 5 of a. The second shnuld clear bit 5 of a. In both cases, the remaining bits should be unmodified.
7. What does the following function return?
char foo(void)
{
unsigned int a = 6;
iht b = -20;
char c;
(a+b > 6)? (c=1): (c=0);
return c;
}
8. What values are printed when the following C program is executed?
int i = 8;
void main(void)
(
9. What will be the output of the following C code?
main()
{
int k, num= 30;
k =(num > 5? (num <=10? 100:200): 500);
printf("%d", k);
}
10. What will the following C code do?
int *ptr;
ptr =(int *)Ox67a9;
ptr = Oxaa55;11. What will be the output of the follow C code?
define product(x) (x*x)main()
{
int i = 3, j, k;
j = product(i++);
k = product(++i);
printf("%d %d",j,k);
}
12. Simplify the following Boolean expression!((i ==12) || (j > 15))
13. How many flip-flop circuits are needed to divide by 16?
14. Provides 3 properties that make an OS, a RTOS?
15. What is pre-emption?
16. Assume the BC register value is 8538H, and the DE register value is the value of register BC after the following assembly operations:
MOV A,C
SUB E
MOV C,A
MOV A,B
SBB D
MOV B,A
the Assembly code shown below
LOOP: MVI C,78H
DCR C
JNZ LOOP
HLT
How many times is the DCR C Operation executed?
ribe the most efficient way(in term of execution time and code size) to divide a number by 4 in assembly language
-
新浪08校园招聘部分笔试题(博客编辑)
新浪08校园招聘部分笔试题(博客编辑)新浪的08校园招聘已经过好久了,很有幸参加了笔试,虽然没能拿到offer,但也是一次难得的经历。大致写一下我还有印象的一些新浪笔试题供大家参考:一、综合部分(所有人都要做的)单选25个,包括法国现任总统、十七大闭幕时间、嫦娥飞升时...
-
马士基笔试经验分享
好不容易鼓起勇气摆脱颓废的生活,投了份简历,又好不容易那么好运接到了笔试通知,结果好不容易记错了时间小獭和我一起,结果她也清楚地记得是九点半,但是好像就是我俩记错了,服了,难道接电话的时候两个都没睡醒?前天接到电话的时候我真的是午觉刚醒,打电话过来的小姐问我...
-
应聘网易笔试失败记
自新传体育最终泡汤之后,又接到了网易北京公司的面试通知。简直比大学联考还BT,大学联考迟到15分还可以进入考场。中午12点半出发,到达清华科技园才1点,正好有一些清华的07年毕业生正在搞一个艺术展,就在一边看了一会,1点半了上楼,前台的GG给了一个来宾胸卡,挂在脖子上。这时候...
-
笔试浪潮软件研发
下午2点开始笔试的,先填写了一份浪潮的职位申请表,很多与我简历中的内容都重复,所以填写的有些不耐烦,后面几项还有点意思。是否可以外驻:可以是否服从岗位分配:否期望月薪:3000在进考场之前,跟门外几个一起来考试的谈了一会儿,据说浪潮给应届本科生的待遇是月薪1500,感...