Ch 1: Intro to Programming Flashcards
(18 cards)
Where is a program stored when it is not currently running?
In secondary storage / Hard Disk
Which part of the computer carries out arithmetic operations?
The CPU / Central Processing Unit
Is the compiler part of the computer hardware or software?
Software
What are the most important uses for C++?
System software and embedded systems
A collection of code that has been programmed and translated that can be used by anyone in their programs is called __?
A library
__ are a mechanism for avoiding naming conflicts in large programs.
Namespaces
int main () { ...return 0; } defines a function called main that \_\_ an \_\_ with value 0.
Returns an integer
A collection of programming instructions that carry out a particular task is called __?
A function
Data sent to cout is displayed in a __?
Console Window
You can send __ and __ to cout.
Strings and numbers
Sending __ to cout starts a new line.
endl
When the compiler finds something wrong in your code according to the rules of the programming language, what kind of error is it?
Compile-time error or syntax error
The program will still compile and run but with incorrect output for what type of error?
Run-time error
Because run-time errors are caused by logical flaws in the code, they are often called __?
Logical errors
When a signal is sent from the processor to abort the program with an error message, what is that signal called?
An exception
If you forget the ( ) after main in a C++ program, will you get a compile-time error or a run-time error?
Compile-time error
A sequence of steps that is unambiguous, executable, and terminating is called _?
An algorithm
An informal description of a sequence of steps for solving a problem is called __?
Pseudocode