
Python Basics 2

Quiz
•
Computers
•
9th Grade
•
Medium
Devin Lachapelle
Used 1+ times
FREE Resource
12 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the purpose of a variable in Python?
To increase security
To perform mathematical calculations
To print text
To store data
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which code correctly shows making a variable and setting it equal to a string?
string_1 = "hello"
string 1 = "hello"
string_1 == "hello"
string_1 = hello
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the correct way to make a Python program show text on the screen?
display("Hello")
"Hello"
print("Hello")
show("Hello")
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What function is used to show text on the screen and let the user enter some text?
get_input()
input()
print()
get()
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the purpose of the if statement in Python?
To declare a variable
To repeat a block of code
To make decisions in the code
To perform mathematical operations
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which of the following is the correct way to concatenate (combine) two strings in Python?
"Hello" .concat("World")
"Hello" add "World"
"Hello" && "World"
"Hello" + "World"
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What type of data does the input() function return (create)?
A decimal
A string
An integer
Nothing
Create a free account and access millions of resources
Similar Resources on Wayground
14 questions
Y9 - Module 2 - KT1 Python Basics

Quiz
•
9th Grade
15 questions
Quiz 142 - Python inputs and outputs

Quiz
•
9th Grade - University
10 questions
Quiz1_HPB2021_2010t1

Quiz
•
1st - 12th Grade
15 questions
ASK F2 -KOD ARAHAN (PYTHON)

Quiz
•
1st Grade - University
10 questions
1.2 Basic String Manipulation

Quiz
•
9th Grade
12 questions
Python Basics Quiz

Quiz
•
9th - 12th Grade
10 questions
String Methods

Quiz
•
9th - 12th Grade
8 questions
Procedures Code Tracing

Quiz
•
9th Grade
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade