Question: 1
What is the final result of the expression 4 + 5 * 3?
CSE_CodeHS_intro_python_unit_3_5
Quiz
•
Computers
•
9th - 12th Grade
•
Hard
Omer Yazici
Used 6+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Question: 1
What is the final result of the expression 4 + 5 * 3?
27
12
21
19
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Choose the print statement below that will cause an error.
Assume that num has the value 6, and name has the value Isabella.
print(name + ":" )
print(num)
print(name + " wants " + "num " + "candies")
print(name + ": " + str(num))
print(name + ": " + num)
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which one of the statements below will cause an error?
ans = “hi” * 8
ans = “hi” + 9
ans = “hi” + “hi” + “hi”
ans = (“a” * 4) + “b”
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the following program print?
a = "hi"
b = 4
c = a * b
print(type(c))
<class 'str'>
<class 'int'>
<class 'float'>
The program crashes and doesn’t print anything.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Suppose you have a variable defined a = "4". What is the variable type of a?
str
int
float
number
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the following code print?
x = 3.4
y = 1
print(int(x))
print(x + y)
3.4
4.4
3
4.4
3
4
The code causes an error
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following statements is true about print statements?
I. In order to print a string literal, the string must be enclosed in quotes.
II. Each print statement will be printed on its own line.
III. Print statements will not let you print string and number characters in the same statement.
IV. Print statements are how you display text on the screen.
I, IV
II, III
I, II, IV
I, III, IV
20 questions
Python - Iteration (For Loops)
Quiz
•
10th Grade
17 questions
"switch" Java Statement - 1
Quiz
•
9th - 10th Grade
20 questions
Python Basics (CodeHS)
Quiz
•
7th - 12th Grade
15 questions
Java Script Quiz
Quiz
•
9th - 12th Grade
10 questions
Arrays
Quiz
•
10th - 12th Grade
16 questions
Variables
Quiz
•
7th - 10th Grade
15 questions
Python - тест
Quiz
•
1st - 12th Grade
16 questions
Arithmetic Types Declare Initialize Relation Logical Ops
Quiz
•
9th Grade - University
15 questions
Character Analysis
Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing
Quiz
•
9th - 12th Grade
10 questions
American Flag
Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension
Quiz
•
5th Grade
30 questions
Linear Inequalities
Quiz
•
9th - 12th Grade
20 questions
Types of Credit
Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25
Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers
Quiz
•
6th - 8th Grade
17 questions
Chapter 12 - Doing the Right Thing
Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities
Quiz
•
9th - 12th Grade
20 questions
Types of Credit
Quiz
•
9th - 12th Grade
20 questions
Taxes
Quiz
•
9th - 12th Grade
17 questions
Parts of Speech
Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression
Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing
Quiz
•
9th - 12th Grade
10 questions
Identifying equations
Quiz
•
KG - University