No student devices needed. Know more
30 questions
What will the output be after executing the following code snippet?
3
9
1
18
What will the output be, if we run the following code?
Monday, Tuesday, Wednesday, Thursday
Friday
None
AttributeError: 'tuple' object has no attribute 'append'
How many times will it print "#"?
3
1
2
4
What is the output of this code when "robert" is entered by the user when prompted?
True
error
Robert
False
What would be printed to the console after the following code is executed?
Hello
"Hello", World
Hello World
Hello, World
What will the output be after executing the following code?
('Python', 'Tuple')
[Python, Tuple]
['Python', 'Tuple']
(Python, Tuple)
What is the output when the following code snippet is ran
Error
None
Let's enjoy a bowl of cereals
Groceries trip pending
What will the output be after executing the following code?
[6]
[0, 1, 2, 3, 4, 5]
-6
(0,1,2,3,4)
What will the output be after executing the following code?
dict{'Python', 'Dictionaries'}
dict({'Python', 'Dictionaries'})
{'Python', 'Dictionaries'}
{1: 'Python', 2: 'Dictionaries'}
What is the output of this code after the user inputs "Python" when prompted?
PythonPythonPython
error
Python*3
Python Python Python
What will the output be after running the following code?
[0,1,2,3,4,5]
(0,1,2,3,4,5,6)
[0, 1, 2, 3, 4, 6]
[1,2,3,4,5,6]
What will the output be, if we execute the following code?
{'Name': 'Python', [1, 2, 3, 4], 'hi'}
{'Name': 'Python', 1: [1, 2, 3, 4], 2: 'hi'}
Syntax Error
{'Python', [1, 2, 3, 4], 'hi'}
What will the output be, if we run the following code?
0 1
1 1
0 0
1 0
0 1
0 0
1 1
1 0
0 1
0 0
1 0
1 1
0 1
1 1
1 0
0 0
What will the output be after executing the following code?
Hello "\nPython!"
Hello Python!
Hello
Python!
Hello \nPython!
What will the output be after running the following code snippet?
Robert method karamagi
Robert method Karamagi
Robert Method Karamagi
ROBERT METHOD KARAMAGI
What will the output be after calling the following function?
6
Syntax Error
6 5
5
What will the output be after running the following code snippet?
19
Syntax Error
True
False
What would be printed to the console after the following code is executed?
2,4,6,8,10
2,4,6,8
1,3,5,7,9
1,3,7,9
What will the output be after executing the following code snippet?
Nothing is printed
3
-1
P
What will the output be, if we run the following code?
No Output
{1: One, 2: Two}
{1:"One", 2:"One"}
{1: "One",1 : "One"}
What will the output be after running the following code?
[1, 2, 3, 4, 5, 6]
[7, 6, 5, 4, 3, 2, 1]
[0, 1, 2, 3, 4, 5, 6]
[7, 1, 2, 3, 4, 5, 6]
What is the output of this code when 'wi' and 'fi' are entered by the user when prompted and stored in a and b, respectively?
wifiwiwifi
wifiwifiwifi
wifififi
wififififi
What will the output be after executing the following code?
Hello#World#Python
error
#Hello#World#Python
HelloWorldPython#
What is the output of the following code?
error
4
2
1
What is the output of the following code?
error
<class 'int'>
<class 'tuple'>
Invalid Data Type
What will the output be after running the following code?
odd
even
What will the output be after running the following code?
error
5 10
10 5
Prints nothing
What will the output be after running the following code?
Prints nothing
1 5
error
5 1
Will the following code run without errors?
This code will run without errors
This code will not run
What is the output after executing the following code?
Oranges Mangoes
Apple Mangoes
Apple Oranges
Apple Oranges Mangoes
Explore all questions with a free account