Variables and Constants

Quiz
•
Computers
•
3rd Grade
•
Hard
Nicholas Anderson
Used 1+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What are variables in computer memory?
Named storage locations
Fixed values
Data types
Program configuration settings
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What type of data can variables hold?
Strings, constants, booleans, or integers
Variables, data types, characters, or integers
Real numbers, program settings, characters, or strings
Integers, real numbers, characters, or booleans
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of declaring a variable in Pascal?
All of the above
To make decisions in the program
To perform calculations
To store data
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What are constants in Pascal?
Fixed values that can be changed
Data types that can hold different values
Values that are known beforehand and remain constant
Named storage locations
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
When to use constants in Pascal?
To improve code readability and maintainability
For values that won't change
For program configuration settings
All of the above
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the syntax for declaring a variable in Delphi?
variable_name: data_type;
const constant_name = value;
var variable_name = data_type;
var variable_name: data_type;
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is an example of a constant in Pascal?
PI = 3.14159;
is_running: boolean;
age: integer;
MAX_TRIES = 3;
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
BWOCD #1

Quiz
•
1st - 5th Grade
10 questions
QUIZZ 4 : DATABASE FUNDAMENTALS

Quiz
•
1st - 3rd Grade
10 questions
Quiz Komponen Komputer

Quiz
•
1st Grade - University
9 questions
Enum C++

Quiz
•
1st - 3rd Grade
15 questions
Instant Artist

Quiz
•
3rd Grade
13 questions
A words - GCSE Computer Science

Quiz
•
1st - 10th Grade
10 questions
Programming - Arrays

Quiz
•
2nd - 12th Grade
14 questions
Computing Revision JCG

Quiz
•
KG - University
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