wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

PT-1 VIII (2024-25)

Total questions: 8

Worksheet time: 11mins

Name
Class
Date
1.

Which of the following is a valid variable name?

a)

123dist_

b)

_dist123

c)

1dist_

2.

What is the output of the following code:-

x=3

x**3

a)

9

b)

3

c)

27

3.

Which data type show true or false value?

a)

int

b)

boolean

c)

string

4.

What is the output of code:-

a=b=c=200

print(c)

(a)  

5.

Which operator is used to for "not equal to"?

(a)  

6.

What is index number of "o" in "Hello"

(a)  

7.

Write any two rules of naming a variable.

4 lines
8.

What is the difference between for and while loop?

4 lines