". VdoTips: C FUNDAMENTAL MCQ 15

APPLY LATEST GOVT JOBS

hi

C FUNDAMENTAL MCQ 15

Q.61 C language was invented by
(A) Abacus
(B) Charles babage
(C) Thomson
(D) Dennis Ritchie


Q.62 The given FOR loop is for ( ; ; ) { printf(“ ”); }
(A) valid
(B) indefinite
(C) invalid
(D) displays runtime errors


The given for loop displays runtime errors because no test condition is given. Test condition is must inside for loop. Q.63 The following code displays main( ) 12 { int *p; p = (int*) malloc(sizeof(int)); *p = 10; printf(“p = %d\n”, *p); } (A) 10
(B) 1542 (address of p)
(C) 20
(D) None of the above


Q.64 The _______ operator is a technique to forcefully convert one data type to the others
(A) Cast
(B) Conversion
(C) Type
(D) Uniary


Q.65 The output of the following will be for (x=1, y=5; x+y<=10; x++) { printf(“%d%d”, x,y); y++; } (A) 1 5
(B) 1 5 2 6 2 6 3 7 3 7 4 8 (C) 1 5
(D) 1 5 1 6 2 5 1 7 3 5 1 8 4 5 1 9 5 5