Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Programming for Problem Solving

Total questions: 10

Worksheet time: 6mins

Name
Class
Date
1.

Which of the following is an exit controlled loop?

a)

While loop

b)

do while loop

c)

for loop

d)

None of the above

2.

Which of these is NOT a relational or logical operator?

a)

=

b)

||

c)

==

d)

!=

3.

who is the father of C language?

a)

Bjarne Stroustrup

b)

James A. Gosling

c)

Dennis M Ritchie

d)

Dr. E.F. Codd

4.

The #include <stdio.h> is a ______________.

a)

Inclusion directive

b)

File inclusion directive

c)

Preprocessor directive

d)

None of the above

5.

Associativity of an operator is either Left to Right or Right to Left.

a)

True

b)

False

6.

How many keywords are there in C language?

a)

32

b)

33

c)

64

d)

18

7.

Which are the fundamental data types in C?

a)

int

b)

float

c)

char

d)

All of the above

8.

Which is the correct format specifier for int type value in C?

(a)  

9.

Which operator is used to find the remainder of two numbers in C?

a)

/

b)

\

c)

%

d)

//

10.

What does the following declaration mean?

int (*ptr)[10];

a)

ptr is array of pointers to 10 integers

b)

ptr is a pointer to an array of 10 integers

c)

ptr is an array of 10 integers

d)

ptr is an pointer to array