Search Header Logo

Ms. Molloy Computer Science quick quiz

Authored by Staff-ISK Molloy

Computers

7th Grade

Used 2+ times

Ms. Molloy Computer Science quick quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

1.      1. What does the print() function do in Python?

Stops the program

Displays information on the screen

·        Asks the user for input

Stores information

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

1.      Which line correctly asks for a user's name?

input("Hello")

print("What is your name?")

name = input("What is your name?")

·        ask("name")

3.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

1.      What is the data type of this value: "42"?

int

float

str

bool

4.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Which of these is a variable?

"apple"

age=12

print()

int

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does this code do?

1.      x = 10
if x > 5:

print("Big number!")
 

prints nothing

causes an error

Prints "Big Numbers!"

Asks the user for an input

6.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

How many times will this code run the loop?

for i in range(3):
    print("Hi")

2

3

4

1

7.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What type of loop is best for repeating until a condition is false?

for

repeat

while

forever

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

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?