wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

PT-5 Final Exam

Total questions: 50

Worksheet time: 30mins

Name
Class
Date
1.

What is the output?

(a)  

2.

What is the output?

(a)  

3.

What is the output?

(a)  

4.

What is the output?

(a)  

5.

What is the output?

(a)  

6.

What is the output?

(a)  

7.

What is the output?

(a)  

8.

What is the output?

(a)  

9.

What is the output?

(a)  

10.

What is the output?

(a)  

11.

What is the output?

int a[] = {1,2,3};

a[1] = 5;

printf("%d", a[1]);

a)
2
b)
5
c)
3
d)
1
12.

What is the output?

int a[] = {1,2,3,4,5};

a[1] = 5;

printf("%d", a[0]);

a)
3
b)
1
c)
2
d)
4
13.

What is the output?

a)
58
b)
34
c)
76
d)
42
14.

What is the output?

a)
8
b)
4
c)
6
d)
10
15.

What is the output?

a)
40
b)
60
c)
50
d)
70
16.

What is the output?

a)
6
b)
5
c)
7
d)
8
17.

What is the output?

a)

3 2 1

b)

1 2 3

c)
321
d)

123

18.

What is the output?

a)
3 6 9 12 15
b)
1 3 5 7 9
c)
0 2 4 6 8
d)
2 4 6 8 10
19.

What is the output?

a)
2
b)
3
c)
4
d)
5
20.

What is the output?

a)

1 2 3

b)

0 1 2

c)

2 4 6

d)

1 3 5

21.

What is the output?

a)
1 2
b)
2 4
c)
3 4
d)
1 3
22.

What is the output?

a)
20 30
b)
30 40
c)
15 25
d)
10 20
23.

What is the output?

a)
2 4 6
b)
1 3 5
c)
3 4 5
d)
0 1 2
24.

What is the output?

a)
5
b)
20
c)
15
d)
10
25.

What is the output?

a)
4
b)
5
c)
3
d)
6
26.

What is the ouput?

a)
10 20 30 40 50
b)
0 1 2 3 4
c)
2 3 5 7 11
d)
1 4 9 16 25
27.

What is the output?

a)
0 0 0
b)
-1 -1 -1
c)

000

d)
1 1 1
28.

Wha is the output?

a)
4
b)
8
c)
10
d)
6
29.

What is the output?

a)
2 1 3
b)
1 3 2
c)
3 1 2
d)
3 2 1
30.

What is the output?

a)
1 2 3 4
b)
1 3 5 7
c)
2 4 6 8
d)
0 2 4 6
31.

What is the output?

a)
5
b)
15
c)
0
d)
10
32.

What is the output?

a)
50
b)
75
c)
15
d)
25
33.

What is the output?

a)
2
b)
3
c)
1
d)
0
34.

What is the output?

a)
0 5 10 15 20 25
b)
-5 0 5 10 15 20
c)
5 10 15 20 30 35
d)
1 6 11 16 21 26
35.

What is the output?

a)
2 6 10 14 18
b)
0 4 8 12 16
c)
3 7 11 15 19
d)
1 5 9 13 17
36.

What is the output?

a)
3 2 1 1 2 1
b)
1 2 1 2 3 3
c)
2 1 1 3 2 1
d)
1 1 2 1 2 3
37.

What is the output?

a)
3
b)
5
c)
2
d)
4
38.

What is the output?

a)
4
b)
8
c)
6
d)
2
39.

What is the output?

a)
5
b)
12
c)
7
d)
10
40.

What is the output?

a)

13

b)
3
c)
6
d)
4
41.

What is the output?

a)
7
b)
6
c)
8
d)
9
42.

What is the output?

a)
5
b)
8
c)
7
d)
6
43.

What is the output?

a)
1 5 9
b)
0 4 8
c)
3 7 11
d)
2 6 10
44.

What is the output?

a)
8 4 2
b)
6 3 0
c)
9 5 1
d)
5 2 1
45.

What is the output?

a)
18
b)
21
c)
15
d)
12
46.

What is the output?

a)
2 10
b)
3 12
c)
4 15
d)
1 14
47.

What is the output?

a)
14
b)
12
c)
16
d)
18
48.

What is the output?

a)
15
b)
18
c)
9
d)
12
49.

What is the output?

a)
30
b)
40
c)
35
d)
25
50.

What is the output?

a)
110
b)
90
c)
100
d)
120