
Y10 CS 2020 Lesson1_3
Authored by SMA Computing
Computers
7th - 10th Grade
CCSS covered
Used 5+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
50 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How would would you print a text string?
output "Hello!"
print ("Hello!")
print (Hello!)
output (Hello!)
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which symbol do we use if we want to add a comment to our code?
@
#
*
&
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
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
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Choose the statement that assigns 4 to the power of 3 to the variable new_var...
new_var = 4 ** 3
new_var = 3 ** 4
new var = 3 ** 4
new_var = 4 ^^ 3
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a float?
new_var = 1234
new_var = True
new_var = 1.234
new_var = "True"
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is not a string?
new_var = "True"
new_var = "3123"
new_var = "3.123"
new_var = False
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How would you output new_var = 123 as a text string?
print str(new_var)
print new_var.str
print str[new_var]
print (new_var).str()
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?