NEW
Font size
WorksheetsNirmala School quiz
Total questions: 12
Worksheet time: 6mins
Which symbol is used to indicate a single-line comment in Python?
//
#
/*
%
What does the "if" block in Scratch help you achieve?
Repeating actions
Making decisions
Storing values
Playing sounds
How would you access the third element in a list named my_list?
my_list[0]
my_list[1]
my_list[2]
my_list[3]
What is the purpose of the "repeat" block in Scratch?
To change the background color
To repeat a sequence of action
To play a sound
To draw a shape
What is the result of 3 ** 2 in Python?
9
8
10
7
In a bag: 6 red, 4 blue, 5 green balls. Probability of picking green?
0.7
0.5
0.9
0.3
If a = 4 and b = 7, what's the value of 3a - 2b?
-5
-2
5
14
If the sum of two angles is 90 degrees and one angle is 40 degrees, what is the measure of the other angle?
40 degrees
50 degrees
60 degrees
70 degrees
In python how do you check if two variables, x and y, are equal in Python?
x=y
x==y
x!=y
x/y
How do you create a variable in Python?
new variable = 5
5 = new variable
variable = 5
int variable = 5
Which data type is used to store a single character in Python?
char
character
chr
string
What is the output of print(len("Python"))?
5
6
7
"Python"
