2.1 - Declaration and Assignment

2.1 - Declaration and Assignment

9th Grade

16 Qs

quiz-placeholder

Similar activities

FOC UNIT 3 - INTERACTIVE ANIMATIONS AND GAMES (Vocabulary)

FOC UNIT 3 - INTERACTIVE ANIMATIONS AND GAMES (Vocabulary)

9th - 12th Grade

13 Qs

Year 8 - Small Basic Programming Quiz

Year 8 - Small Basic Programming Quiz

9th Grade

18 Qs

Small Basic

Small Basic

7th - 9th Grade

17 Qs

Python (Selection)

Python (Selection)

8th - 10th Grade

13 Qs

Python Basics - Year 8

Python Basics - Year 8

7th - 9th Grade

14 Qs

Micro:bit Python #1

Micro:bit Python #1

9th - 12th Grade

17 Qs

Ohio's Computer Science Standards Glossary of Terms

Ohio's Computer Science Standards Glossary of Terms

7th - 10th Grade

21 Qs

Programming year 9

Programming year 9

9th - 12th Grade

16 Qs

2.1 - Declaration and Assignment

2.1 - Declaration and Assignment

Assessment

Quiz

Computers

9th Grade

Medium

Created by

Amanda Beacham

Used 1+ times

FREE Resource

16 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the equivalent of variable declaration in Scratch?

"create a variable"

"make a variable"

"define a variable"

"initialize a variable"

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Why is it important for the compiler to know the data type of a variable?

To increase the speed of the program

To interpret statements correctly

To reduce memory usage

To enhance graphics

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of named constants?

To store temporary data

To represent values that mean something and do not need to change

To perform calculations

To create dynamic variables

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is NOT a constant?

firstName

DAYS_IN_YEAR

PI

GRAVITY

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the significance of using constants in programming?

They allow for dynamic data changes

They provide fixed values that enhance code readability and maintainability

They are used for temporary data storage

They are only used in debugging

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Using the following code: score = lives * 3.

What is the value of "score" if "lives" is 3?

6

9

12

15

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the significance of assigning 7 to days_in_week?

It represents a week

It represents a month

It represents a year

It represents a day

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?