C Programming Objective Questions and Answers Pdf - 3

Question: 11

Which of the following input function cannot be used to input multiword string in a single function call?

(A) getche()

(B) gets()

(C) scanf()

(D) None of above

Ans: A

getche()

Question: 12

Which of the following declarations is not correct?

(A) unsigned float d;

(B) unsigned char c;

(C) int b = 4;

(D) float a;

Ans: A

unsigned float d;

Question: 13

Which of the following operators has highest precedence?

(A) *

(B) /

(C) %

(D) All have same precedence

Ans: D

All have same precedence

Question: 14

What is the file extension for font files?

(A) txt

(B) bgi

(C) chr

(D) font

Ans: C

chr

Question: 15

Which of the following function can be used to write an entire array or a structure in a single call?

(A) writeblock()

(B) write()

(C) fwrite()

(D) WRITE()

Ans: C

fwrite()

Related Questions