wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Concept Test for C & C++ Programming

Total questions: 10

Worksheet time: 6mins

Name
Class
Date
1.

C language is a

a)

structured program

b)

object oriented program

c)

oriented program

d)

basic program

2.

How many bits are allocated for int data type

a)

16

b)

8

c)

2

d)

1

3.

Every C program requires

a)

header file

b)

main function

c)

data declaration

d)

All

4.

Relational operator

a)

+

b)

=

c)

==

d)

/

5.

a=2;b=6; (a<b):10:15

a)

10

b)

15

c)

2

d)

6

6.

& is a

a)

one of the bitwise operator

b)

one of the relational operator

c)

one of the logical operator

7.

After first pass the answer for x=5-6/3+8*2-1

a)

5-2+8*2-1

b)

5-6/3+16-1

c)

5-2+16-1

d)

-1/3+8*2-1

8.

Equivalent of switch statement

a)

If

b)

if-else

c)

elseif ladder

d)

while

9.

%s indicates in scanf statement

a)

to get an integer

b)

to get a character

c)

to get a string

d)

to get a real no.

10.

a='MDU';b='city'; strcpy(b,a); puts(b); The answer is

a)

cityMDU

b)

citymdu

c)

city

d)

MDU