Search Header Logo

Homework Quiz 1

Authored by Donna Moore

Computers

9th Grade

Used 1+ times

Homework Quiz 1
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the best definition of a variable?

Stores information in a program

Temporarily stores a value in a program, value can't change

A named place in a program

Temporarily stores a value in a named section of the program, value can change

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A computer is linked to a sensor that is used to measure the height of a sunflower in the summer, what would be the best name for the variable that stores this information?

H

SH

SunflowerHeight

Heightofsunflowerinsummer

3.

FILL IN THE BLANKS QUESTION

1 min • 1 pt

Score = 0

Number = input("what number?")

Score = Score + Number

print( (a)   )

What does between the brackets if I want to display the updated value of Score added to Number?

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is output from the following code?

football = "Twelve"

rugby = 5 + 2 + 2

12 = hockey

squash = rugby - 1

print("squash")

squash

rugby - 1

Error

8

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What am I called - when there is a mistake in the way you have written the code, it does not run.

Error

Syntax error

Logic error

Debug

6.

FILL IN THE BLANKS QUESTION

1 min • 1 pt

Write code that will multiply 5 and 9, store in a variable called "Number" and then output the answer from the variable

______ = 5 _ 9

print(____)

separate each answer with a comma and no spaces

(a)  

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

I determine how the contents of the variable will behave and the type of value that is held - what am I?

Constant

Debugging

Data type

Assignment

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?