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
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
AIB_2Q

Quiz
•
12th Grade
10 questions
Arrays

Quiz
•
11th Grade
20 questions
Unit 5 TEST

Quiz
•
11th - 12th Grade
12 questions
Project-Stem Unit 1 python coding

Quiz
•
9th - 12th Grade
10 questions
Lớp 10: Câu hỏi TN củng cố kiến thức

Quiz
•
10th Grade
16 questions
Python - Variables and Input

Quiz
•
1st - 10th Grade
15 questions
Java Variables, Input and Output

Quiz
•
10th - 12th Grade
10 questions
Arrays

Quiz
•
10th - 12th Grade
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
Discover more resources for Computers
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
40 questions
LSHS Student Handbook Review: Pages 7-9

Quiz
•
11th Grade
24 questions
Scientific method and variables review

Quiz
•
9th Grade
10 questions
Characteristics of Life

Quiz
•
9th - 10th Grade
19 questions
Mental Health Vocabulary Pre-test

Quiz
•
9th Grade