โ† All Amazon Flashcard Decks

Introduction To Coding Flashcards

7 cards from real Amazon practice questions. Tap to flip, then mark Knew It or Still Learning โ€” missed cards come back until you master them.

Read the first 7 Introduction To Coding flashcards as text
  1. What is the primary purpose of a variable in programming?

    Answer: To store a value that can be referenced and changed later

    A variable is a named container that holds a value which can be read or modified during execution.

  2. Which of the following is a Boolean value?

    Answer: true

    Boolean values are either true or false.

  3. What does a 'loop' allow a program to do?

    Answer: Repeat a block of code multiple times

    Loops repeat instructions until a condition is met, avoiding duplicated code.

  4. In most languages, what symbol commonly ends a statement?

    Answer: Semicolon (;)

    Many languages like C, Java, and JavaScript use a semicolon to terminate statements.

  5. What is a function in programming?

    Answer: A reusable block of code that performs a task

    Functions group instructions so they can be called repeatedly with different inputs.

  6. Which data structure stores an ordered collection of items accessed by index?

    Answer: Array

    An array (or list) holds multiple values that are accessed by their numeric index.

  7. What is the term for finding and fixing errors in code?

    Answer: Debugging

    Debugging is the process of locating and resolving bugs or defects in a program.