Basic Python and Console Interaction

Basic Python and Console Interaction

Assessment

Quiz

Computers

9th Grade

Medium

CCSS
6.EE.B.6

Standards-aligned

Created by

Bradley Vogel

Used 32+ times

FREE Resource

Student preview

quiz-placeholder

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is the word (command) used to display numbers and text on the screen?
print
input
output
command

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What symbol is used in python to assign values to a variable?
equals =
plus + 
forward slash /
asterisk *

Tags

CCSS.6.EE.B.6

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which of these would work as a piece of code?
IF answer == "Yes":
if answer == "Yes"
if answer == "Yes":
if answer = "yes":

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Media Image
How would you assign an integer to a variable?
new_var = 4
new_var == 4
new_var = "4"
new var "4"

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Media Image
Which symbol do we use if we want to add a comment to our code?
@
#
*
&

6.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Media Image

How would would you print a text string?

output "Hello!"

print "Hello!"

print (Hello!)

output (Hello!)

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image
To create a variable named new_var and assign it a value of 81 divided by 9, which statement would you use?
new_var = 81 \ 9
new_var = "81 / 9"
new_var = "81 \ 9"
new_var = 81 / 9

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?