Program Function and Purpose (College Board AP® Computer Science Principles): Flashcards

1/23

0Still learning

Know0

Cards in this collection (23)

  • Name two purposes a computing innovation can serve.

    A computing innovation can serve the purpose of solving a problem or pursuing an interest through creative expression.

  • Which purpose does a navigation app that calculates the fastest route to a destination serve?

    A navigation app that calculates the fastest route serves the purpose of solving a problem, because it addresses a practical need.

  • Which purpose does a music production program that lets users compose and edit tracks serve?

    A music production program serves the purpose of creative expression, because it lets users create something new.

  • True or False?

    A single computing innovation can only serve one purpose.

    False.

    A single computing innovation can serve more than one purpose at the same time.

  • Why is understanding the purpose of a computing innovation important?

    Understanding the purpose is essential for evaluating its design and impact.

  • Where does the development of a program begin?

    The development of a program begins with identifying the problem it is intended to solve or the experience it is intended to provide.

  • Name two decisions that understanding a program's purpose helps developers make.

    Understanding a program's purpose helps developers decide:

    • What features the program needs

    • How the user will interact with it

    • What data the program will process

  • What can happen if a program is developed without a clear purpose?

    Without a clear purpose, a program may include unnecessary features or fail to meet the needs of its intended audience.

  • Programs are developed to address the needs of users or to _______ new ideas.

    Programs are developed to address the needs of users or to explore new ideas.

  • Besides what a program does, what else does understanding its behavior involve?

    Understanding a program's behavior also involves recognizing what the program cannot do.

  • What does the behavior of a program describe?

    The behavior of a program describes what it does when it runs, including the outputs it produces in response to different inputs.

  • Define program.

    A program is a collection of statements that work together to accomplish a specific task.

  • Define statement.

    A statement is a single instruction that directs the computer to perform a specific action.

  • In what order do program statements execute by default?

    By default, program statements execute sequentially, from top to bottom, with each statement completing before the next one begins.

  • Define code segment.

    A code segment is a collection of program statements that is part of a program.

  • Define the behavior of a program.

    The behavior of a program is how it functions during execution, often described by how a user interacts with it.

  • Name two things that interrupt the default sequential flow of a program.

    The default sequential flow is interrupted by events and by procedure calls.

  • True or False?

    Changing the order in which statements execute has no effect on a program's output.

    False.

    The order in which statements execute directly affects what the program does and the output it produces.

  • At what two levels of detail can a program's behavior be described?

    A program's behavior can be described broadly, by what it does, or in more detail, by both what it does and how its statements accomplish that function.

  • An _____ is associated with an action and supplies input data to the program.

    An event is associated with an action and supplies input data to the program.

  • Define edge case.

    An edge case is an input at or just beyond the extremes (minimum and maximum) of the input range.

  • Name three kinds of input a program must be designed to handle.

    A program must be designed to handle expected values, edge cases, and invalid or unexpected data.

  • True or False?

    Different inputs to the same program can produce different outputs.

    True.

    The functionality of a program is directly affected by the input it receives.

Sign up to unlock flashcards

or