". VdoTips: C FUNDAMENTAL MCQ 11

APPLY LATEST GOVT JOBS

hi

C FUNDAMENTAL MCQ 11

Q.36 Output of the program given below is int i; main() { printf(“%d”, i); } (A) 1
(B) 0 (C) -1
(D) Null
Q.37 What will be the output of the following program? DC05 PROBLEM SOLVING THROUGH ‘C’ DC-03 COMPUTER FUNDAMENTALS 7 main() { char *p = “ayqm”; printf (“%c”, ++*(p++));} (A) b
(B) z (C) q
(D) n
Q.38 What will be the output of the following program? main() { int i = 5; printf(“%d”, i=++i==6); } (A) 0
(B) 1 (C) 7
(D) 6
Q.39 Determine which of the following is a valid character constant
(A) ‘\\’
(B) ‘\0’ (C) ‘xyz’
(D) ‘\052’
Q.40 The maximum value that an integer constant can have is (A) .32767
(B) 32767
(C) 1.7014e+38
(D) –1.7014e+38