wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

C Basics

Total questions: 12

Worksheet time: 5mins

Name
Class
Date
1.

Who is know as founder of C language

a)

Dennis Ritchie

b)

Bjarne Stroustroup

c)

Tim Berner Lee

d)

Rasmus Ledorf

2.

Which of these is not a correct variable data type?

a)

int

b)

float

c)

real

d)

char

3.

C is a

a)

Low level language

b)

Assembly language

c)

Medium level language

d)

High level language

4.

Which punctuation ends most of the lines of C code?

a)

.

b)

;

c)

,

d)

" "

5.

The starting point of C execution at

a)

==

b)

main()

c)

function()

d)

!=

6.

Type four arithmetic operators sorting by their operation name *without space(like addition a first, so '+')

(a)  

7.

What do you think is the best way to enhance your skill in programming

a)

Study Hard

b)

Practice

c)

Practice and learn new

d)

Study one day and leave it

8.

Prewritten packages are imported to program by using which symbol

Hint: Header Files

a)

%

b)

-

c)

#

d)

//

9.

Find if the condition is True or False where int x=10; y=12;

x == y

a)

1 (True)

b)

0 (False)

10.

Find if the condition is True or False where int x=10; y=12;

x < y

a)

1 (True)

b)

0 (False)

11.

What do you think is the output for the below code snippet?

int main(){

int a=10,b=20;

printf("%d", b/a);

}

a)

Error

b)

0.2

c)

2

d)

30

12.

What do you need to import stdio.h a header file?

a)

Just a waste of time

b)

To run the code

c)

It helps in compilation to binary coded file

d)

To perform input and output operations