2.1 - Declaration and Assignment

Quiz
•
Computers
•
9th Grade
•
Medium

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
Similar Resources on Wayground
15 questions
AP Computer Science Principles Unit 1

Quiz
•
9th - 12th Grade
12 questions
Computer Science

Quiz
•
3rd - 12th Grade
20 questions
Scratch Pre-Assessment

Quiz
•
5th - 9th Grade
18 questions
Programming lesson 1 - Syntax

Quiz
•
9th Grade - University
18 questions
Programming Basics LST

Quiz
•
9th Grade
13 questions
Python

Quiz
•
9th Grade
14 questions
8.1 Programming Overview

Quiz
•
9th - 11th Grade
15 questions
Programming python review

Quiz
•
9th - 12th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
30 questions
Introduction to Computers

Quiz
•
8th - 9th Grade
35 questions
Computer Baseline Examination 2025-26

Quiz
•
9th - 12th Grade
13 questions
Problem Solving Process

Quiz
•
9th - 12th Grade
20 questions
Hardware vs. Software Quiz

Quiz
•
7th - 10th Grade
10 questions
Understanding Algorithms with Pseudocode and Flowcharts

Interactive video
•
9th - 12th Grade