C Language Quiz Questions and Answers - 2

Question: 6

When one loop is constructed within another loop it is called a

(A) For loop

(B) Do loop

(C) Do-while loop

(D) Nested loop

Ans: D

Nested loop

Question: 7

By pressing ___ key, the user can exit the turbo C environment.

(A) Ctrl + X

(B) Alt + X

(C) Ctrl + A

(D) Enter

Ans: B

Alt + X

Question: 8

In programming, repeating some code is usually called ___

(A) Looping

(B) Compiling

(C) Structure

(D) Control structure

Ans: A

Looping

Question: 9

The first character of the variable name

(A) May be a number

(B) Must be an alphabet

(C) Must be an underscore

(D) Must be an alphabet or underscore

Ans: D

Must be an alphabet or underscore

Question: 10

In which header file are the library functions used for I/O purpose kept?

(A) stdio.h

(B) math.h

(C) stdio.h or math.h

(D) none of these

Ans: A

stdio.h

Related Questions