SWE++ Review
Quiz
•
Other
•
6th - 8th Grade
•
Practice Problem
•
Hard
Pitt SWE
Used 1+ times
FREE Resource
Enhance your content in a minute
30 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is NOT a valid variable name?
cookies_left = 0
cookiesLeft = 0
cookies left = 0
COOKIESLEFT = 0
2.
MATCH QUESTION
1 min • 1 pt
Match the variables to their correct data types!
Boolean
x = 5
integer
name = "Sarah"
float
y = 5.87
string
result = True
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
x = 5.5
y = 1.0
Result of x += (2 * y) is:
7.5
2.0
6.5
None of these
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
age = 11
What will happen if we write:
print("I am " + age + " years old!")
The code will output: I am 11 years old!
There will be an error because we forgot to convert the age variable to a string
There will be an error because you can't print variables
The code will output:
Iam11yearsold!
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will happen if we write:
number = input("Enter a number: ")
result = number - 2
print(result)
We will print out the result of number - 2
Nothing will happen
There will be an error because we forgot to convert number to an integer or a float
There will be an error because we can't print variables
6.
MATCH QUESTION
1 min • 1 pt
Match the following
We know how many times to run code
While loops are used when:
We don't know how many times to run code
While loops are controlled by:
while some_condition == True:
While loops are written like:
a variable
For loops are written like:
for i in range():
For loops are used when:
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of:
for i in range(3):
print(i)
0
1
2
1
2
3
0
1
2
3
0
0
0
Create a free account and access millions of resources
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
25 questions
MyPlate Food Groups
Quiz
•
KG - 6th Grade
25 questions
Health & Safety CSCS
Quiz
•
1st Grade - Professio...
27 questions
Lego Brick, Simple Machines, and Gear Ratio Test
Quiz
•
6th - 7th Grade
33 questions
MS Office Applications
Quiz
•
7th - 8th Grade
30 questions
Baking Equip. #2
Quiz
•
7th - 8th Grade
25 questions
Sandwiches and Pizza Test
Quiz
•
6th - 8th Grade
25 questions
Safety & Sanitation
Quiz
•
7th - 8th Grade
25 questions
Ice Cream!
Quiz
•
KG - 12th Grade
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
15 questions
4:3 Model Multiplication of Decimals by Whole Numbers
Quiz
•
5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
The Best Christmas Pageant Ever Chapters 1 & 2
Quiz
•
4th Grade
12 questions
Unit 4 Review Day
Quiz
•
3rd Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
Discover more resources for Other
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
15 questions
Solving Equations with Variables on Both Sides Review
Quiz
•
8th Grade
15 questions
scatter plots and trend lines
Quiz
•
8th Grade
23 questions
Academic Vocabulary Pre-assessmsent
Quiz
•
6th Grade
21 questions
Convert Fractions, Decimals, and Percents
Quiz
•
6th Grade
20 questions
Solving Systems of Equations by Graphing
Quiz
•
8th Grade
20 questions
Exponents
Quiz
•
6th Grade
