SWE++ Review

Quiz
•
Other
•
6th - 8th Grade
•
Hard
Pitt SWE
Used 1+ times
FREE Resource
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!
float
y = 5.87
string
name = "Sarah"
integer
result = True
Boolean
x = 5
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
for i in range():
For loops are written like:
We don't know how many times to run code
While loops are used when:
while some_condition == True:
While loops are written like:
a variable
For loops are used when:
We know how many times to run code
While loops are controlled by:
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
Similar Resources on Wayground
30 questions
APLIKASI KOMPUTER

Quiz
•
7th - 9th Grade
31 questions
Spelling 19 Review

Quiz
•
6th Grade
35 questions
python

Quiz
•
8th Grade
25 questions
Ice Cream!

Quiz
•
KG - 12th Grade
32 questions
Python Fundamentals- 02

Quiz
•
5th Grade - University
35 questions
Python Basics

Quiz
•
6th - 8th Grade
25 questions
Kitchen Tools & Kitchen Safety Quiz

Quiz
•
6th - 8th Grade
25 questions
Computer Literacy

Quiz
•
6th - 8th Grade
Popular Resources on Wayground
12 questions
Unit Zero lesson 2 cafeteria

Lesson
•
9th - 12th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
20 questions
Lab Safety and Equipment

Quiz
•
8th Grade
13 questions
25-26 Behavior Expectations Matrix

Quiz
•
9th - 12th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Other
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
20 questions
Lab Safety and Equipment

Quiz
•
8th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
24 questions
Flinn Lab Safety Quiz

Quiz
•
5th - 8th Grade
20 questions
Lab Safety

Quiz
•
7th Grade
12 questions
Continents and the Oceans

Quiz
•
6th Grade
20 questions
Getting to know YOU icebreaker activity!

Quiz
•
6th - 12th Grade
6 questions
Unit Zero Cell Phone Policy

Lesson
•
6th - 8th Grade