โ† 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 purpose of 'indentation' in many programming languages?

    Answer: To show code structure and, in some languages, define blocks

    Indentation improves readability and, in languages like Python, defines code blocks.

  2. What does a 'return' statement do in a function?

    Answer: Sends a value back to the caller and exits the function

    A return statement passes a result back and ends the function's execution.

  3. Which of these best describes 'pseudocode'?

    Answer: A plain-language outline of a program's logic

    Pseudocode expresses an algorithm in readable terms without strict syntax.

  4. What is a 'parameter' in a function?

    Answer: An input value the function receives to work with

    Parameters are named inputs that a function uses when it runs.

  5. Which logical operator returns true only if BOTH conditions are true?

    Answer: AND

    The AND operator requires all conditions to be true to return true.

  6. What is 'source code'?

    Answer: The human-written instructions that make up a program

    Source code is the set of human-readable instructions written by programmers.

  7. Why is 'version control' (like Git) useful for coders?

    Answer: It tracks changes and lets teams collaborate on code

    Version control records changes over time and helps multiple developers work together.