Python - Chpt 1 - Review

Quiz
•
Computers
•
9th - 12th Grade
•
Medium
Beverly Brown
Used 44+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What character begins a comment?
*
/
%
#
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you combine two strings?
string1 + string2
string1.combine(string2)
string1.concatenate(string2)
string1*string2
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following defined variables is a string?
cool_variable_1 = 23.18
cool_variable_2 = 9
cool_variable_3 = “Important Message!”
cool_variable_4 = 14 ** 3
cool_variable_3
cool_variable_1
cool_variable_4
cool_variable_2
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What number is saved to exponented_variable in the following expression?
exponented_variable = 2 ** 4
8
16
12
24
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the value of total_cost that gets printed?
total_cost = 5
total_cost += 10
print(total_cost)
15
10
5
0
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How does one define a multi-line string in Python?
***
Like
This
***
###
Like
This
###
“””
Like
This
“””
///
Like
This
///
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the difference between a float and an int?
A float represents decimal quantities. An int represents whole numbers.
A float can only be used with whole numbers. An int can be any number with a decimal point.
A float contains text information. An int is any number.
There is no difference. They can be used interchangeably.
Create a free account and access millions of resources
Similar Resources on Wayground
14 questions
year 8 lesson 2 quiz - python

Quiz
•
8th - 10th Grade
20 questions
Python 1

Quiz
•
7th - 9th Grade
15 questions
JAVA: Level-1

Quiz
•
5th - 12th Grade
16 questions
Arithmetic Types Declare Initialize Relation Logical Ops

Quiz
•
9th Grade - University
10 questions
Informatika Fase F - Karakter dan String

Quiz
•
11th Grade
12 questions
Team Quizziz Review (Introduction, If Statements, Lists)

Quiz
•
9th - 12th Grade
17 questions
Python - Quiz

Quiz
•
9th - 11th Grade
20 questions
Python Strings Mastery

Quiz
•
12th 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
Discover more resources for Computers
50 questions
Trivia 7/25

Quiz
•
12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade
6 questions
RL.10.1 Cite Evidence

Quiz
•
10th Grade
10 questions
Characteristics of Life

Quiz
•
9th - 10th Grade
14 questions
Algebra 1 SOL Review #1

Quiz
•
9th Grade