Python Basics

Quiz
•
Computers
•
6th - 12th Grade
•
Hard
Jason Sienkiewicz
Used 2K+ times
FREE Resource
9 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
To display something on the screen, use this command:
print()
Print()
screen()
write()
display()
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
To display the following on screen
Hello World!
the following command should be used:
print(Hello World!)
print("Hello World!")
print("Hello World" + !)
print"(Hello World!)"
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
x = 5
y = 6
print(x*y)
The code above displays the following:
11
x*y
Syntax Error
30
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
x = 5
y = 6
print("x*y")
The code above displays the following:
11
x*y
Syntax Error
30
5.
MULTIPLE SELECT QUESTION
1 min • 1 pt
x = 5
y = 6
print(x*y)
Select the correct answer(s):
x is a variable
x is a value
print() is a funciton
6.
MULTIPLE SELECT QUESTION
20 sec • 1 pt
age = 16
message = "my age is: "
print (message, age)
Select the correct answer(s) below:
the output would read:
my age is 16
age is a variable
16 is assigned to the age variable
7.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
cakeAmount = input()
print ("We have", cakeAmount, " cakes")
The above code is run. You type:
six
Select the correct output.
We have 6 cakes
We have six cakes
Error
8.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
age = int(input("Enter Age (as integer): "))
newAge = age + 20
print ("your age in 20 years is:", newAge)
you enter
15
value of age is 15
value of newAge is 35
output is: your age in 20 years is: 35
value of age is 15
value of newAge is 20
output is: your age in 20 years is: 20
value of age is 15
value of newAge is "age + 20"
output is: your age in 20 years is: 35
value of age is 15
value of newAge is 35
output is: your age in 20 years is:35
9.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Operators used in python:
divide, multiply, add, subtract
/, *, +, -
div, mul, +, -
\, x, +, -
~, *, +, -
Similar Resources on Wayground
10 questions
Python Basics - Quiz

Quiz
•
8th - 11th Grade
8 questions
User Input in Python

Quiz
•
8th Grade
10 questions
Python Inputs

Quiz
•
7th - 8th Grade
9 questions
Basic Python Coding

Quiz
•
6th - 12th Grade
9 questions
Python Programming Basics

Quiz
•
6th - 12th Grade
10 questions
Python

Quiz
•
1st - 12th Grade
13 questions
11 B

Quiz
•
11th Grade
11 questions
Python for Class 7

Quiz
•
7th - 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 Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
8 questions
Time Management

Quiz
•
6th Grade
18 questions
Company Logos

Quiz
•
6th - 8th Grade
15 questions
Acceptable Use Policy (Quiz)

Quiz
•
6th - 8th Grade
16 questions
Clovis Unified Student Use of Technology

Quiz
•
4th - 8th Grade
13 questions
Digital Citizenship

Quiz
•
6th Grade
11 questions
Technology Acceptable Use

Quiz
•
6th - 8th Grade
20 questions
Introduction to Desktop Computer Systems

Quiz
•
9th - 12th Grade