wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

PST Using C Part1

Total questions: 10

Worksheet time: 6mins

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)

Low level language

b)

High level language

c)

Assembly level language

d)

Medium 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)

function()

c)

main()

d)

!=

6.

Prewritten packages are imported to program by using which symbol

Hint: Header Files

a)

%

b)

/

c)

#

d)

$

7.

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)

2

c)

0.2

d)

30

8.

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

9.

A precise sequence of instructions for processes that can be executed by a computer; how a computer processes information.

a)

Input

b)

Output

c)

Algorithm

10.

Approaches used to solve a problem

a)

Algorithm

b)

Pseudo code

c)

Flowchart

d)

All mentioned options