← Technology quizzes

Free practice quiz

Programming Fundamentals

15 questions Technology Grades 9-12

The question sheet

Reveal any answer as you study
  1. A ____ is a named container that stores information in memory.

    • function
    • variable
    • string
    • loop
    Reveal answer

    Answer: variable

  2. Which data type holds whole numbers like 7 or -42?

    • Float
    • String
    • Integer
    • Boolean
    Reveal answer

    Answer: Integer

  3. What kind of value can a boolean hold?

    • A decimal
    • True or false
    • A word
    • Any number
    Reveal answer

    Answer: True or false

  4. Joining the strings "2" and "3" produces "23".

    • True
    • False
    Reveal answer

    Answer: True

  5. Which keyword usually begins a conditional statement?

    • while
    • for
    • def
    • if
    Reveal answer

    Answer: if

  6. The three main logical operators are AND, OR, and ____.

    • XOR
    • NOT
    • IF
    • ELSE
    Reveal answer

    Answer: NOT

  7. An AND operation is true only when both conditions are true.

    • True
    • False
    Reveal answer

    Answer: True

  8. What does the NOT operator do?

    • Reverses a value
    • Combines conditions
    • Repeats code
    • Adds values
    Reveal answer

    Answer: Reverses a value

  9. Which loop repeats a specific number of times?

    • while loop
    • for loop
    • if loop
    • do loop
    Reveal answer

    Answer: for loop

  10. A ____ loop keeps repeating as long as a condition stays true.

    • and
    • for
    • if
    • while
    Reveal answer

    Answer: while

  11. ____ are reusable blocks of code that perform a particular task.

    • Functions
    • Variables
    • Loops
    • Strings
    Reveal answer

    Answer: Functions

  12. What are inputs given to a function called?

    • Parameters
    • Booleans
    • Loops
    • Variables
    Reveal answer

    Answer: Parameters

  13. The word "variable" reflects that its value can change as a program runs.

    • True
    • False
    Reveal answer

    Answer: True

  14. What is another name for floating-point numbers?

    • Floats
    • Integers
    • Strings
    • Booleans
    Reveal answer

    Answer: Floats

  15. The exact wording rules of a language are called its ____.

    • loop
    • memory
    • syntax
    • logic
    Reveal answer

    Answer: syntax

Play the whole quiz inside a game Answers stay hidden while you play

Make your own — free

Turn any notes into a game in under a minute. Free to start.

Make a quiz