
WEEK 1-2 Quiz on Python Basics and Data Structures

Quiz
•
Computers
•
12th Grade
•
Easy
Darwin Vargas
Used 5+ times
FREE Resource
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]
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
Mastering Python Loops and Functions

Quiz
•
10th Grade - University
15 questions
Understanding Lists in Python

Quiz
•
12th Grade
15 questions
Exploring Python Fundamentals

Quiz
•
12th Grade - University
15 questions
Section 3D: Collect and process data using dictionaries

Quiz
•
12th Grade
19 questions
Unit 5 - Two-Dimensional Arrays

Quiz
•
9th - 12th Grade
17 questions
Exceptions in Pythons

Quiz
•
12th Grade
19 questions
JavaScript Data Structures

Quiz
•
9th - 12th Grade
15 questions
Python Lists

Quiz
•
8th - 12th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade