Chapter 2 Flashcards
Invitation to Computer Science 8th ED
What does algorithmic problem solving focus on
Algorithmic problem solving focuses on algorithms suitable for computers such as searching lists and matching patterns
What is pseudocode
A tool for designing algorithms but does not run on a computing device
Describe natural language
Expressive and easy to use
Verbose, unstructured, and ambiguous
Describe programming language
Structured and designed for computers
Grammatically fussy and cryptic
Describe pseudocode in relation to natural and programming language
lies somewhere between the two and is used to design algorithms prior to coding them
What is the function of sequential operations
To perform a single task
What are the three basic sequential operations
Computation
Input
Output
What is computation (operation)
A single numeric calculation
What is input (operation)
Gets data values from outside the algorithm
What is output(operation)
sends data values to the outside world
What is a sequential algorithm
An algorithm made up only of sequential operations
What is a variable
a named storage location to hold a data value
What is a control operation
changes the normal flow of control
What is a conditional statement
asks a question and selects among alternative options
What is the first step of a conditional statement
- evaluate the true/false condition