
Python Basics MCQ Quiz
Authored by Darshak Thakkar
English
University
Used 2+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
30 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following? print(5 + 3)
53
8
Error
35
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of these is a valid Python identifier?
2variable
variable-name
_myVar
class
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a correct syntax to create a function in Python?
function myFunc():
def myFunc:
def myFunc():
function:myFunc()
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a tuple?
[1, 2, 3]
(1, 2, 3)
{1, 2, 3}
<1, 2, 3>
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of these is mutable in Python?
Tuple
String
List
Integer
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the following return? type('Hello')
int
str
float
list
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which operator is used for exponentiation in Python?
^
**
//
%%
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?