Search Header Logo

Quiz on Variables, Constants & Operators

Authored by Taton David

Information Technology (IT)

12th Grade

Used 3+ times

Quiz on Variables, Constants & Operators
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

14 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a variable in programming?

A method for storing data permanently

A symbolic name assigned to a memory location

A fixed value that cannot change

A type of operator used in calculations

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the process of assigning a value to a variable called?

Definition

Assignment

Initialization

Declaration

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is an example of a constant?

ItemPrice = 20

City = 'New York'

age = 15

Count = 0

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What must a variable name not begin with?

A letter

An underscore

A special character

A number

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a valid variable name?

1stName

First-Name

FirstName

First Name

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What type of operator performs decision making?

Mathematical

Logical

Arithmetic

Relational

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the 'AND' logical operator return?

True if both expressions are True

False if both expressions are False

True if neither expression is True

True if either expression is True

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?