C Programming

C LANGUAGE ELEMENTS MULTIPLE CHOICE QUESTIONS

1

The text that provides supplementary information but it is ignored by the preprocessor and compiler is called

A.

Control structure

B.

Comment

C.

Constant

D.

Information

2

Which of the following is used to define a constant in C?

A.

#constant

B.

#const

C.

#define

D.

#fix

3

What function is used to display information on the screen in C?

A.

scanf

B.

scan

C.

printf

D.

print

4

What function is used to take input from a user in C?

A.

inputf

B.

input

C.

scan

D.

scanf