
Python Programming Quiz
Authored by AMBILI S
Computers
12th Grade
Used 2+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
32 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a key feature of Python compared to C?
Requires curly braces
Uses indentation to define blocks
Statically typed
Supports manual memory management
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which keyword is used to define a function in Python?
func
def
function
None
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the input() function return?
Integer
String
Float
Boolean
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is immutable?
List
Dictionary
Tuple
Set
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will the following code print? print(3 // 2)
1
1.5
2
Error
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you create a single-line comment in Python?
//
#
/*
--
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which function is used to find the length of a list in Python?
len()
size()
count()
length()
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?