Search Header Logo

Quiz 1 | F23 Curriculum

Authored by Jake Kandell

Computers

University

Used 10+ times

Quiz 1 | F23 Curriculum
AI

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

Media Image

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

Media Image

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

Google

Continue with Google

Email

Continue with Email

Microsoft

Continue with Microsoft

or continue with

Facebook

Facebook

Apple

Apple

Others

Others

Already have an account?