Python - Chpt 1 - Review

Quiz
•
Computers
•
9th - 12th Grade
•
Medium
Beverly Brown
Used 45+ 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
15 questions
Basic Python Coding

Quiz
•
11th - 12th Grade
15 questions
Basic Programming Concepts

Quiz
•
9th Grade
20 questions
Python Basics & Syntax

Quiz
•
10th - 12th Grade
12 questions
Small Basic Quiz

Quiz
•
7th - 9th Grade
20 questions
JavaScript Basics Review

Quiz
•
7th - 12th Grade
10 questions
H466 - Global and Local Variables

Quiz
•
12th Grade - University
10 questions
Variables and Data Types

Quiz
•
3rd - 10th Grade
10 questions
Comparison Operators Quiz

Quiz
•
11th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
10 questions
Proper Keyboarding Techniques

Interactive video
•
6th - 10th Grade
14 questions
Inputs and Outputs: Computer Science Intro

Lesson
•
5th - 9th Grade
10 questions
Understanding Computers: Hardware, Software, and Operating Systems

Interactive video
•
7th - 12th Grade
29 questions
AP CSP Unit 2 Review (Code.org)

Quiz
•
10th - 12th Grade