JobSandhan.com

Latest Govt Job Notification Sarkari Naukri Employment News 2018

C Programming MCQ Questions Answers Download PDF

C Programming MCQ Questions Answers PDF Download Objective Test

C Programming Computer & IT Engineering MCQ Questions Answers Download PDF Objective Test

1) If an integer needs two bytes of storage then maximum value of a signed interger is

a) 216 – 1

b) 215 – 1

c) 216

d) 215

View Answer

2) The maximum number of temporary variables needed to swap the contents of the variables is

a) 1

b) 2

c) 3

d) 0

View Answer

3) x – =  y + 1 ; does the same as

a)  x = x – y + 1

b) x = x – y – 1

c) x  = – x + y + 1

d)  x  = x – y – 1

View Answer

4) The default parameter passing mechanism is

a) call by value

b) call by reference

c) call by value result

d) none of the above

View Answer

5) The expression 4 + 6 / 3* 2 -2 + 7 % 3 evaluates to

a) 3

b) 4

c)  6

d) 7

View Answer

6) Let  x be an array. Which of the following operation are illegal?

a) ++ x

b) x + 1

c) x++

d) x * 2

View Answer

7) printf (‘’% d’’, p r I n t f (‘’ tim’’) ) ;

a) results in a syntax error

b) outputs t i m3

c)outputs garbage

d) prints t i m and terminates abruptly

View Answer

8) The number of possible value of m, such that m & 0x3f equals 0x23 is

a) 1

b) 2

c) 3

d) 4

View Answer

9) Which of the following operation produce an 1, If the input bits are 1 and 1?

a) or

b) and

c) exclusive or

d) exclusive nor

View Answer

10) If the word size is 16 bit then ~0 x c5 will be

a) 0 x 3a

b) 0xff3a

c) 0x5c

d) none of the above

View Answer

16) The following statement P r I n t f ( ‘’ % f’’, 9/5); Prints

a)1.8

b) 1. 0

c) 2.0

d) none of the above

View Answer

12) The statement p r I n t f ( ‘’% d’’, sizeof (‘’ ‘’)); prints

a) an error message

b) 0

c) garbage

d) 1

View Answer

13) The statement p r I n t f (‘’ % d’’, 10?0?5 : 11: 12); prints

a) 10

b) 0

c) 12

d) 11

View Answer

14) Let x an array. Which of the following cannot be present in the left-hand side of an assignment statement?

a) x

b)  x + i

c)  * ( x + i)

d) & x [i]

View Answer

15) A set names can be represented as a

a) two-dimensional array of characters

b) one- dimensional array of strings

c) one- dimensional array of pointers to character

d) none of these

View Answer

[fbcomments]
JobSandhan.com © 2018        Home     About Us     Sitemap     Disclaimer     Privacy Policy     Contact us