Use LEFT and RIGHT arrow keys to navigate between flashcards;
Use UP and DOWN arrow keys to flip the card;
H to show hint;
A reads text to speech;
46 Cards in this Set
- Front
- Back
Define the control structure,
-Sequence |
sequence structure in a computer program directs the computer to process the program instructions, one after another in the order listed in the program.
|
|
Define the control structure,
-Repetition |
Repetition structure, also called a "loop", directs the computer to repeat one or more instructions until some condition is met, st which time the computer should stop repeating the instructions.
|
|
Define the control structure,
-Selection |
Selection structure, also called "decision" structure, makes a decision, and then takes an appropriate action based on that decision.
|
|
Algorithm:
|
the set of step by step instructions that accomplish a task
|
|
Problem solving process:
|
1. Analyze the problem
2. Plan the algorithm 3. Desk-check the algorithm 4. Code the algorithm into a program 5. Desk-check the program 6. Evaluate and modify (if necessary) the program |
|
Program:
|
A coded algorithm
|
|
Processing item:
|
Represents and intermediate value that the algorithm uses when processing the input into the output
|
|
Pseudocode:
|
A tool programmers use to help them plan an algorithm. The statements represent the steps the computer must follow to solve the problem.
|
|
Flowchart:
|
Uses standardized symbols to show the steps the computer must take to accomplish the program's goal.
|
|
Start/Stop symbol:
|
The start oval indicates the beginning of the flowchart, and the stop oval indicates the end of the flowchart
|
|
Input/Output symbol:
|
The parallelogram is used to represent input tasks (such as getting info from the user) and output tasks (such as displaying or printing information)
|
|
Flowline:
|
Line that connects the flowchart symbols
|
|
Process symbol:
|
Rectangles used to represent tasks such as calculations
|
|
Testing:
|
Refers to running the program, along with sample data, on the computer.
|
|
Debugging:
|
Refers to the process of locating and removing any errors, called bugs, in a program
|
|
Syntax error:
|
created when you enter an instruction that violates the programming language's syntax, which is the set of rules that you must follow when using the language.
|
|
Logic error:
|
Created when you enter an instruction that does not give you the expected results
|
|
Comment:
|
A message to the person reading the program and is referred to as internal documentation.
|
|
#include directive:
|
provides a convenient way to merge the source code from one file with the source code in another file without having to retype the code
|
|
Using statement:
|
Tells the complier were it can find the definition of the keyword.
|
|
Function:
|
A block of code that performs a task.
|
|
Void Function:
|
does not return a value after completing the assigned task
|
|
Value Returning Function:
|
returns a value after completing the assigned task
|
|
Function Header:
|
Marks the beginning of a function.
|
|
Function Body:
|
Everything between the opening and closing braces of a function.
|
|
Main Function:
|
Every C++ program must have a main function because this is where the execution of a C++ program always begins.
|
|
Variables and Named Constants:
|
locations (within the computer's memory) where a program can temporarily store data.
|
|
Declaring Variables:
|
-Memory Allocated
-Data Type -Named |
|
Identifier:
|
The name of a variable, named constant, function, ect
|
|
Initialization:
|
Assigning an initial, or beginning, value
|
|
Keyword:
|
also referred to as a "reserved word", is a word that has a special meaning in a programming language.
|
|
Fundamental Data Types:
|
the basic data types built into the C++ language
|
|
Floating Point Numbers:
|
numbers with a decimal place.
|
|
Integers:
|
whole numbers
|
|
Characters:
|
letters, symbols, and numbers that will not be used in calculations
|
|
Boolean Values:
|
true and false
|
|
Garbage:
|
value of a variable that has not been initialized.
|
|
Naming Rules:
|
-Uppercase characters
-Lowercase characters -Numeric (not first character) -Underline |
|
Precedence:
|
1.() override normal precedence rules
2. - negation 3. *, /, % multiplication, division, and modulus arithmetic 4. +, - addition and subtraction |
|
Integer Arithmetic:
|
arithmetic operations between two integer values, result in an integer value.
|
|
Floating-point Arithmetic:
|
arithmetic operations between two floating-point values resulting in a floating-point value.
|
|
Mixed Arithmetic:
|
arithmetic operations between an integer and a floating-point value, results in a floating-point value
|
|
Promoted Values:
|
when a value is converted from one data type to another data type that can store larger numbers, the value is said to be "promoted".
|
|
Demoted Values:
|
when a value is converted from one data type to another data type that can store smaller numbers, the value is said to be "demoted".
|
|
Truncation:
|
when a floating-point number is assigned to an integer variable, the decimal portion of the number is truncated (dropped off).
|
|
Modulus
|
the remainder
|