Variables and Constants Quiz

Variables and Constants Quiz

9th - 12th Grade

12 Qs

quiz-placeholder

Similar activities

Auto-Analisis evaluación 11

Auto-Analisis evaluación 11

10th - 11th Grade

10 Qs

Quiz Informatica Jornadas Orientación Asunción

Quiz Informatica Jornadas Orientación Asunción

12th Grade - University

10 Qs

10mo Evaluación

10mo Evaluación

10th Grade

10 Qs

Cha-ching 2

Cha-ching 2

1st Grade - University

8 Qs

Начала программирования на языке Паскаль

Начала программирования на языке Паскаль

8th - 11th Grade

15 Qs

RAM&HDD/SSD

RAM&HDD/SSD

10th - 12th Grade

13 Qs

Espacio Opcional 3er Año Pío XII

Espacio Opcional 3er Año Pío XII

10th Grade

10 Qs

Server Administration- Quiz 1

Server Administration- Quiz 1

12th Grade - University

10 Qs

Variables and Constants Quiz

Variables and Constants Quiz

Assessment

Quiz

Computers

9th - 12th Grade

Practice Problem

Medium

Created by

Ackeema Johnson

Used 2+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

12 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

  1. A variable can only store one value at a time.


True
False

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of the following is an example of a constant?

Hello
True
42
x

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Scenario: Jane is an IT student that needs to calculate the area of a circle. She uses a variable named 'radius' and a constant named 'pi' to represent the mathematical constant pi. 

Can Jane can change the value of 'pi' during processing?

Yes

No

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is a variable ?

A reserved word in a programming language

A fixed value that never changes

A storage location with a name that holds a changing value

A special symbol used in calculations

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of the following is an example of a valid variable name?

total-marks

2ndStudent

if

student_name

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the main difference between a variable and a constant?

Variables store numbers, while constants store text

Variables can change value, while constants remain fixed

Constants take up more memory than variables

Variables must be written in uppercase letters

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of the following is NOT a correct rule for naming variables?

Variable names must begin with a letter or underscore

Variable names cannot contain spaces

Variable names can begin with special symbols like @ and #

Variable names should be meaningful and descriptive

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?