Ch. 1-1 to 4-1 Flashcards
Computer software, C language elements, arithmetic expressions, formatting, functions, basic file processing
What instructions do tasks IF a condition is true?
Conditional instructions
What instructions do tasks WHILE a condition is true?
Iterative instructions
What does a compiler do?
Translates the source file, checks to make sure that the program is syntactically correct, and if so, translates the program into an object file with machine language instructions
What does a linker program do?
Performs the operation of linking the object file that is translated by the compiler to other object files containing functions (the predefined pieces of code)
What does a loader program do?
Loads the linked program into memory so that it can be executed.
What is the first step in the “Scientific Method” (sciences)/”Systems Approach” (business)?
Specify the problem requirements
What is the second step in the “Scientific Method” (sciences)/”Systems Approach” (business)?
Analyze the problem
What is the third step in the “Scientific Method” (sciences)/”Systems Approach” (business)?
Design an algorithm to solve the problem
What is the fourth step in the “Scientific Method” (sciences)/”Systems Approach” (business)?
Implement the algorithm
What is the fifth step in the “Scientific Method” (sciences)/”Systems Approach” (business)?
Test and verify the completed program
What is the sixth and final step in the “Scientific Method” (sciences)/”Systems Approach” (business)?
Maintain and update the program
What does a reserved word look like?
int
What does a preprocessor directive look like?
define PI 3.14159 /* Constant macro */
What does a variable declaration look like?
int height = 0, radius = 0;
What is a data type?
A set of values + set of operations on those values
How would you write scientific notation for double values in C? 15.0 * 10^-3
15.0e-3
When defining char variables in a program, use…
Single quotes