3
1 | Page ENG. Keroles Shenouda https://www.facebook.com/groups/embedded.system.KS/ C PROGRAMMING SECOND SESSION QUIZ QUESTIONS 1. 2. 3. 4.

Second quiz

Embed Size (px)

Citation preview

Page 1: Second quiz

1 | P a g e

ENG. Keroles Shenouda https://www.facebook.com/groups/embedded.system.KS/

C PROGRAMMING SECOND SESSION QUIZ

QUESTIONS 1.

2.

3.

4.

Page 2: Second quiz

2 | P a g e

ENG. Keroles Shenouda https://www.facebook.com/groups/embedded.system.KS/

5.

6. i=4 , j=7

X=j || i++ && 1;

What are the values of I,x? i=4 , x= ?

- A. i=5 , x=1

- B. 5 7

- C. 4 1

- D. 4 7

7. X=2*3+4*5 ,, x= ?

o A. 26

o B. 50

o C. 125

o D. 40

8. x=x ^ (1<<2) ,, //// ^ means XOR

This line :

a. Set Bit 5 of x

b. Clear Bit 3 of x

c. Toggle bit 3 of x

d. Toggle bit 2 of x

9.

10.

Page 3: Second quiz

3 | P a g e

ENG. Keroles Shenouda https://www.facebook.com/groups/embedded.system.KS/

ANSWERS 1. D

2.

3. C

4. B

5.

6. A

7. A

8. D

9.

10.