Final Flashcards
What is responsible for executing program instructions?
Central Processing Unit
A program read data from what input device
Keyboard
A program outputs data to what output device?
Monitor or printer.
An operating system is responsible for
managing the allocations of resource like memory and processor time.
A compiler translates human-readable source code into what?
Binary machine language a processor can understand.
The general steps in the software development method are
Specify the Problem requirements Analyze the problem Design the algorithm to solve the problem Implement the algorithm Test and verify the completed program Maintain and update the program
The #include directive is
used to specify that a program uses functions defined in a library
The #define directive is
used to define a constant macro, which is a name that represents a value that doesn’t change.
The main functions is the
point at which program execution begins int main(void) { return (0); }
Reserved words and standard identifies have special meaning to a C compiler
Reserved words Standard identifiers
- int printf
- void scanf
- double
- return
User-defined identifiers can have
only letters, digits, and underscores and cannot begin with a digit
C is a
case sensitive programming language
A variable is
a name that represents a memory location that stores data of a specific data type
An assignment statement stores
a value in memory location
Input and output functions are
defined in the standard input and output library
The printf function outputs data
to the standard output device
printf(“Hello Class\n”);
The scanf function reads data
from the standard input device
scanf(“%c%c”, &FirstInitial, &LastInitial);
Preprocessor directives
precede the main function in a C program. A preprocessor directive is processed before a program is complied. #include
Comments are used to
document a program to make it easier to read and maintain /*This is an example of a comment.*/