
Basic Python and Console Interaction Quiz

Quiz
•
Information Technology (IT)
•
11th Grade
•
Hard
Tarra Jackson
Used 1+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the final result of the expression 4 + 5 * 3?
27
12
21
19
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the final result of the expression 7 / 2 + 6?
0
9.5
9
0.875
3.
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)
4.
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"
5.
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.
6.
MULTIPLE SELECT QUESTION
30 sec • 1 pt
Choose the option that correctly prints out the variable(s).
x = "codehs"
print(int(x))
num = 8
print("num")
name = "Alyx"
age = 32
print(name + " is " + age)
language = "Python"
print("I'm learning " + language)
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What kind of data does a float variable contain?
Whole numbers
Words
Numbers that can have decimal components
A float is not a Python variable type
Create a free account and access millions of resources
Similar Resources on Wayground
16 questions
2.3 Programming Data Review

Quiz
•
9th - 12th Grade
15 questions
5-sinf. Kompyuter va Internet Asoslari

Quiz
•
5th Grade - University
15 questions
Quiz Pemrograman Python

Quiz
•
10th Grade - University
15 questions
TVL 1

Quiz
•
11th Grade
15 questions
6-sinfl. Ofis dasturlari va Scratch

Quiz
•
6th Grade - University
20 questions
quiz1B1

Quiz
•
7th Grade - University
15 questions
Bài 24

Quiz
•
10th Grade - University
15 questions
S2 Microsoft Access Database Quiz

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 Information Technology (IT)
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
28 questions
Ser vs estar

Quiz
•
9th - 12th Grade
13 questions
BizInnovator Startup - Experience and Overview

Quiz
•
9th - 12th Grade
16 questions
AP Biology: Unit 1 Review (CED)

Quiz
•
9th - 12th Grade
7 questions
SAT Reading & Writing Practice Test - Reading Focus

Quiz
•
11th Grade
20 questions
Parallel lines and transversals

Quiz
•
9th - 12th Grade