WorksheetsPython revision quiz
Total questions: 22
Worksheet time: 16mins
Conditions are used to create ___________ algorithms.
conditional
looping
general
operator
A condition is a step in an algorithm where a ________ is made.
choice
condition
decision
option
What will be the output for given code?
5
7
2
6
What will be the datatype of the result?
float and int
int and float
int and int
float and float
What will be the output of given code?
Your score is : 50
50
Error
Your score is: 0
Which Arithmetic operator is not present in Edublock ?
Floor division (//)
Multiplication ( * )
Exponentiation( ** )
Addition(+)
What does <= mean?
less than
greater than
less than or equal to
greater than or equal to
Which of the following is NOT a comparison operator in C++ language?
>
<=
=
==
Evaluate the following expressions to true or false
3!=4-1
true
False
Evaluate the following expressions to true or false
5 >= (1+6)-4
True
False
Evaluate the following expressions to true or false
5+1 == 6 OR 8-1 > 4
True
False
What is the maximum number of if-else statements you can use in a program?
As Many as You Need
2*44
Ten
99
Which one is not a correct data type?
int
float
real
char
Find if the condition is True or False where int x=10; y=12;
x == y
1 (True)
0 (False)
Find if the condition is True or False where int x=10; y=12;
x < y
1 (True)
0 (False)
