
WEEK 1-2 Quiz on Python Basics and Data Structures
Authored by Darwin Vargas
Computers
12th Grade
Used 5+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct syntax to print a message in Python?
print "Hello"
console.log("Hello")
print("Hello")
System.out.println("Hello")
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What symbol is used to start a comment in Python?
#
//
/* */
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following data types is immutable in Python?
List
Dictionary
Tuple
Set
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of type([1, 2, 3]) in Python?
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which keyword is used to define a function in Python?
func
define
def
function
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which method is used to add an item to a Python list?
append()
add()
push()
insert()
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you access the first element of a list named my_list?
my_list[1]
my_list[0]
my_list.first()
my_list[-1]
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?