Search Header Logo

Programming Fundamentals Quiz

Authored by Laura Coop Rushworth

Other

12th Grade

Used 1+ times

Programming Fundamentals Quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a variable in programming?

A programming construct used for iteration

A named memory address that holds a value

A constant value that cannot be changed

A special character used in programming

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a valid identifier for a variable?

123score

high score

highScore

$core

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of declaring a variable in programming?

To assign a value to the variable

To identify the variable before assigning a value

To change the value of the variable

To delete the variable from memory

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a constant in programming?

A special character used in programming

A programming construct used for decision making

A value assigned to a name that cannot be changed

A variable that can be changed during program execution

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a valid constant name?

PI

pi

Pi

3.142

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a global variable in programming?

A variable that can be accessed and changed throughout the program

A variable confined to a loop or subprogram

A variable used for mathematical calculations

A variable that cannot be accessed or changed

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the advantage of using local variables in programming?

They have a global scope

They are used for mathematical calculations

They allow the programmer to reuse variable names

They can be accessed and changed throughout the program

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?