wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

C Programming - Unit 1 MCQ

Total questions: 15

Worksheet time: 8mins

Name
Class
Date
1.

Who invented C Language?

a)

Charles Babbage

b)

Grahambel

c)

Dennis Ritchie

d)

Steve Jobs

2.

C language was invented in which laboratories.?

a)

Uniliver Labs

b)

IBM Labs

c)

AT&T Bell Labs

d)

Verizon Labs

3.

C language was invented in the year.?

a)

1999

b)

1978

c)

1972

d)

1990

4.

C is a which level language.?

a)

Low Level

b)

High Level

c)

Low + High

d)

None

5.

Which one of the following is not a reserved keyword for C

a)

auto

b)

case

c)

main

d)

register

6.

A C variable cannot start with

a)

A number

b)

A special symbol other than underscore

c)

Both of the above

d)

An alphabet

7.

A standard ANSI C recognizes______ number of keywords

a)

30

b)

32

c)

24

d)

40

8.

Which is the only function all C programs must contain?

a)

start()

b)

system()

c)

main()

d)

getch()

9.

Each statement in a C program should end with.?

a)

Semicolon ;

b)

Colon :

c)

Period . (dot symbol)

d)

None of the above.

10.

Operator % in C Language is called.?

a)

Percentage Operator

b)

Quotient Operator

c)

Modulus

d)

Division

11.

What is the priority of operators *, / and % in C language.?

a)

* > / > %

b)

% > * > /

c)

Both % = / , * are same

d)

All three operators *, / and % are same.

12.

What is the output of the following statement?


int i=0;

printf("%d \n %d", i, i++);

a)

0 1

b)

1 1

c)

1 0

d)

All the above

13.

Which of the following is a storage specifier?

a)

enum

b)

union

c)

auto

d)

volatile

14.

What is the control character for “a single character”.

a)

%c

b)

%d

c)

%f

d)

%s

15.

The number of relational operators in the C language is

a)

4

b)

6

c)

3

d)

1