
Quiz 1 | F23 Curriculum
Authored by Jake Kandell
Computers
University
Used 10+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
12 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What piece of code is used to print something to the terminal?
print:("What is your name?")
print("What is your name?)
print("What is your name?")
Print("What is your name?")
2.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What is the correct way to declare a variable in Python?
var x = 5
int x = 5
let x = 5
x = 5
3.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What will this piece of code do?
Print Hello * 3
Print your name three times
Print Hello three times
Causes an error
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does this piece of code do?
Prints out numbers 1 - 5
Prints out numbers 1 - 4
Returns an error
Runs but nothing happens
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you indicate a single line comment in Python?
// This is a comment
/* This is a comment */
# This is a comment
<!-- This is a comment -->
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is correct way to write a "for loop" that prints numbers from 1 to 5
for i in range(1, 5):
for i in range(1, 6):
for i in range(5):
for i in 5:
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which keyword is used to define a function in Python?
func
define
def
function
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 Microsoft
or continue with
%20(1).png)
Apple
Others
Already have an account?