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
15 questions
MP1 Test 1 - Objects Classes and Methods

Quiz
•
9th - 12th Grade
19 questions
Java Base

Quiz
•
9th - 12th Grade
20 questions
Arrays in Java

Quiz
•
9th - 12th Grade
10 questions
Listas en Python - Adecuación

Quiz
•
11th Grade
15 questions
Conditionals Unit Quiz

Quiz
•
9th Grade - University
15 questions
Введение в программирование Python

Quiz
•
11th Grade
19 questions
Python Year 9 Quiz

Quiz
•
8th - 10th Grade
12 questions
Python list starter

Quiz
•
10th Grade - University
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