
Python Programming Quiz
Authored by Dr BHUVANESWARI S EEE Teaching
Engineering
Professional Development
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
45 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Who developed Python?
Dennis Ritchie
Guido van Rossum
James Gosling
Bjarne Stroustrup
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is true about Python?
Python is an interpreted language
Python is a compiled language
Python is a low-level language
Python is a hardware-dependent language
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code? print("Hello\nWorld")
Hello World
Hello
World
Hello\nWorld
Error
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code if the user enters 5? x = input("Enter a number: ") print(type(x))
<class 'int'>
<class 'str'>
<class 'float'>
Error
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code?
x = 10
y = x
x = 20
print(y)
10
20
Error
None
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which statement is used to display output in Python?
display()
echo()
print()
output()
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which extension is used for Python files?
.py
.java
.c
.exe
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?