NEW
Font size
WorksheetsPython Fundamentals - Epsiode 02
Total questions: 20
Worksheet time: 11mins
What is the output of the following
x = 36 / 4 * (3 + 2)
print(x)
45
37
117
The Program executed with errors
What is the output?
condition
True
Program has a syntax error.
3 > 2
__________ keyword is used for creating a function in Python.
define
fun
def
function
What will the output be from the following code?
print("Python 3" * 2)
Python 3Python 3
Python 6
Python 3 * 2
Which of the following refers to Math Module function?
sqrt
rhombus
add
calculate
Which of the following is a not equal operator?
!=
<>
><
==
What will be the output of the following Python code?
9
3
27
30
What is the output of the given code?
10 20 10
10
20
10 20
Select the advantages of functions
Modular programming
Code re-usability
Improving clarity of the code
All the above
What is the data type of print(type(15))
error
What are the possible output of random.randint(0, 3)?
0, 1, 2
0, 3
0, 1, 2, 3
none of the above
What is the output of the given code?
10 20 10 20
10 20 10
10 20 20
Error
What will it print?
What is the value printed when this loop completes?
2
8
12
20
What term is used to describe data passed into a function?
Variable
Loop
Constant
Parameter
Find the correct output for the code print(len(value)) :
value = "Welcome!"
6
7
8
9
Fill in the line of code for calculating the factorial of a number?
num*fact(num-1)
(num-1)*(num-2)
num*(num-1)
fact(num)*fact(num-1)
What does the following code output?
11, 9
16, 16
None, None
225, 117
