C Programming MCQ Questions and Answers Pdf - 1

Question: 1

The function ftell()

(A) sets the position to the beginning of the file

(B) reads a character from a file

(C) reads an integer from a file

(D) gives the current position in the file

Ans: D

gives the current position in the file

Question: 2

The feature that allows you to define new data types that are equivalent to existing data types is

(A) typedef

(B) structure

(C) union

(D) pointer

Ans: A

typedef

Question: 3

goto is

(A) a string in the C language

(B) a label in the C language

(C) a function in the C language

(D) a keyword in the C language

Ans: D

a keyword in the C language

Question: 4

The bit fields are the members of a/an

(A) structure

(B) union

(C) array

(D) intersection

Ans: A

structure

Question: 5

The return statement is present in

(A) the called function

(B) the calling function

(C) the main() function

(D) the void type of function

Ans: A

the called function

Related Questions