
Fun with Basic Python

Quiz
•
Computers
•
5th Grade
•
Hard
School Admin
Used 5+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct way to create a variable in Python?
10 = x
x = 10
let x = 10
x : 10
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you print 'Hello, World!' in Python?
print('Hello World')
print('Hello, World!')
echo 'Hello, World!'
console.log('Hello, World!')
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What symbol is used for comments in Python?
%%
#
//
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you define a function in Python?
A function in Python is defined using the syntax: def function_name(parameters):
A function in Python is defined using the syntax: function_name(parameters) { }
To define a function in Python, use the syntax: define function_name(parameters) ->
Functions in Python are created with the syntax: create function_name(parameters)
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of print(2 + 3)?
4
5
6
7
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you create a list in Python?
You create a list in Python by using the list() function, e.g., my_list = list(1, 2, 3).
You create a list in Python using parentheses, e.g., my_list = (1, 2, 3).
You create a list in Python using square brackets, e.g., my_list = [1, 2, 3].
You create a list in Python using curly braces, e.g., my_list = {1, 2, 3}.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What keyword is used to define a class in Python?
define
function
module
class
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
Python Series

Quiz
•
1st - 5th Grade
15 questions
YEAR 5 POST ASSESSMENT CHECK IN

Quiz
•
5th Grade
22 questions
Coding basics

Quiz
•
4th - 12th Grade
25 questions
Coding for Kids Python Intro

Quiz
•
3rd - 7th Grade
25 questions
Informatika_5

Quiz
•
5th Grade
15 questions
Python : Codeathon Competition

Quiz
•
5th - 8th Grade
15 questions
Python Programiranje 5 razred

Quiz
•
5th Grade
25 questions
Entrance Test - TagEdu

Quiz
•
5th 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