德爾福筆試(軟件類)
德爾福軟件方向的筆試題
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
-
我的第一次筆試-麥德龍儲備幹部 中大 2006-12-10
我的第一次筆試-麥德龍儲備幹部中大2006-12-106日晚上12點,打算查查郵件,然後上牀睡覺,竟然驚喜的發現麥德龍發了一份郵件給我,邀請我去參加9日在中大的筆試,雖然在500強企業精英學子見面會投簡歷的時候,我就覺得去麥德龍實習的機會是有的,那個可愛的HRJJ還問了我寒假...
-
大唐電信筆試題
大唐電信筆試題考試時間一小時,第一部分是填空和選擇:1.數列6,10,18,32,?,問?是幾?2.某人出70買進一個x,80賣出,90買回,100賣出,這樁買賣怎麼樣?3.月球繞地球一圈,至少要多少時間?4.7個人用7小時挖了7米的溝,以同樣的速度在50小時挖50米的溝要多少人?5.魚頭長9,魚尾等於魚頭加半個魚身,魚...
-
馬士基筆試經歷--廈門
昨晚還在琢磨到底穿不穿正裝。不過還是比較羞澀不敢穿今天就穿了有領短袖+西褲+皮鞋。。恩一般正式10點多就夥同一羣廈大的一起坐車過去。在國際銀行20樓maersklogetics的office在等候了40多分鐘後終於把我們請進了會議室(期間一直觀察那些staff在office是不是...
-
重慶聯通筆試--通信類
前兩週忘了什麼時間去筆試重慶聯通,地點重慶黨校,又是大清早渾渾僵僵下了山,按點到了河運校附近。通信的看考場筆試的一共60位,其它的考場則是考人力之類,似乎搞的還滿正式。開考前,周圍看看,重郵通信的研究生至少也有個十五個吧。考場的HR先是恭喜大家順利參加筆試,説...