wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Tri-Tech-Cup Round 2

Total questions: 15

Worksheet time: 13mins

Name
Class
Date
1.
a)

Error

b)

80

c)

70

d)

90

2.

a)

None, Simba, well

b)

well, Lion, well in the circus

c)

well in the circus, Simba, well in the circus

d)

well in the circus, Simba, None

3.

a)

dining_table.no_of_legs=6

b)

glass_top=True

c)

print(dining_table.rate)

d)

None of the above

4.

Predict the output of the code.

a)

red

b)

None

c)

Error

d)

Apple

5.

a)

20, 1, 20, 2

b)

19, 2, 18, 3

c)

19, 2, 19, 2

d)

19, 2, 19, 3

6.

a)

A

b)

B

c)

C

d)

D

7.

a)

#include <stdio.h>

b)

Error: FILE is not a key word.

c)

No error

d)

Error: fp cannot be a pointer.

8.

a)

A

b)

B

c)

C

d)

D

9.

a)

A

b)

B

c)

C

d)

D

10.

a)

-1, 2, 1, 0

b)

-2, 2, 0, 3

c)

-2, 3, 0, 1

d)

-1, 3, 0, 1

11.

Fill in the blanks to get the output as shown using Python.

(use i, j and n as the variables)

(a)  

12.

Fill in the blanks to find the factorial of a number using python.

(a)  

13.

Fill in the blank to find whether the year is leap year or not

(don't leave any blank spaces)

(a)  

14.

What is the output of the program?

a)

1

b)

10

c)

1101

d)

101

15.

What is the output of the program?

a)

javac

b)

javajavac

c)

Compile error

d)

java