Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Computer Programming for UG

Total questions: 8

Worksheet time: 9mins

Name
Class
Date
1.
Repeating section of code to simplify a solution
a)
Code
b)
Loops
c)
Program
d)
Bugs
2.
A sequence of logical instructions or steps needed to finish a task.
a)
Bugs
b)
Loops
c)
Algorithm
3.
The spelling and grammar of a programming language.
a)
Syntax
b)
Program
c)
Loops
d)
Command
4.

The value of the variable s and i after executing the above C-code becomes:

a)

s = 5050 , i = 100

b)

s = 100 , i = 100

c)

s =5050 , i = 101

d)

s = 100 , i = 101

5.

printf and scanf functions is defined under the header file -

a)

ctype.h

b)

string.h

c)

math.h

d)

stdio.h

6.

The main function of a C-program is given above.

a)

Hello

Hello

Hello

Hello

b)

Compilation error

c)

Infinite loop

d)

Hello

7.

Number of “for loop” needed to store data in a two dimensional array is:

(a)  

8.

The difference between ASCII value of letter ‘M’ and ‘m’ is:

a)

-32

b)

-77

c)

32

d)

77