Font size
WorksheetsPython Demo Quiz Set1
Total questions: 12
Worksheet time: 8mins
In which area/s is Python being used?
Web Development
Data Science
Artificial Intelligence
All of these
Python is a scripting /interpreted language
True
False
Predict the output of the following statement:
a = "20"
b = "30"
print(a+b)
50
2030
Error
No output
Which is the statement that can be used to load a Python library into your program?
(a)
Which of the following statement will give the exact division answer?
print(10/3)
print(10//3)
print(10%3)
print(10**3)
Predict the output:
result = 10%3*5//2
print(result)
2.5
2
7.5
7
Predict the output:
anime = "Spiderman"
print("anime")
Spiderman
anime
Error
No outpur
Syntax : Python :: Grammar : English
True
False
Name one of the famous websites or applications, in which Python is being used.
Which is the correct usage of random module to generate a random number between 1 and 10?
import random
print(random(1,10))
import random
print(random(1,11))
import random
print(random.randint(1,10)
import random
print(random.randint(1,111)
Using which library and function, we can generate emojis in Python?
library = emoji
function = smiley
library = emoji
function = emoji
library = emojize
function = emoji
library = emoji
function = emojize
What does the following Python code will do?
import time
time.sleep(10)
print("Hello Champ")
The program will terminate
The program will wait for 10 minutes then print Hello Champ
Program will print Hello Champ then waits for 10 seconds
Program will wait for 10 seconds then print Hello Champ
