Final Exam C++ Part 1 – Flashcards

Unlock all answers in this set

Unlock answers
question
Object
answer
A(n) ____ consists of data and the operations on those data
question
Linker
answer
A program called a(n) ____ combines the object program with the programs from libraries.
question
Compiler
answer
A program called a(n) ____ translates instructions written in high-level languages into machine code.
question
Loader
answer
A program that loads an executable program into main memory is called a(n) ____.
question
byte
answer
A sequence of eight bits is called a ____.
question
Mnemonics
answer
Assembly language uses easy-to-remember instructions called ____________________.
question
Unicode
answer
____ consists of 65,536 characters.
question
False
answer
C++ programs have always been portable from one compiler to another. True or False
question
Structured
answer
Dividing a problem into smaller subproblems is called ____ design.
question
Preprocessor
answer
In a C++ program, statements that begin with the symbol # are called ____________________ directives.
question
Class
answer
In C++, the mechanism that allows you to combine data and operations on the data into a single unit is called a(n) ____________________.
question
Algorithm
answer
A step-by-step problem-solving process in which a solution is arrived at in a finite amount of time is called a(n) ____.
question
Object-oriented
answer
In ____________________ design, the final program is a collection of interacting objects.
question
True
answer
Information stored in main memory must be transferred to some other device for permanent storage. True or False
question
Objects
answer
In object-oriented design, the first step in the problem-solving process is to identify the components called ____________________, which form the basis of the solution, and to determine how they interact with one another.
question
High-Level
answer
____________________ languages include FORTRAN, COBOL, Pascal, C, C++, and Java.
question
Memory cells
answer
Main memory is an ordered sequence of items, called ____.
question
Random Access Memory
answer
Main memory is called ____.
question
True
answer
Main memory is directly connected to the CPU. True or False
question
Application
answer
____ programs perform a specific task.
question
Digital signals
answer
____ represent information with a sequence of 0s and 1s.
question
mainframe, midsize, and micro
answer
Several categories of computers exist, such as ____.
question
Digitals
answer
____________________ signals represent information with a sequence of 0s and 1s
question
128
answer
The ASCII data set consists of ____________________ characters.
question
input, output, storage
answer
The basic commands that a computer performs are ____, and performance of arithmetic and logical operations.
question
True
answer
The basic commands that a computer performs are input (get data), output (display result), storage, and performance of arithmetic and logical operations. True or False
question
False
answer
The command that does the linking on Visual C++ 2012 Express and Visual Studio 2012 is Make or Remake. True or False
question
Input
answer
The devices that feed data and programs into computers are called ____ devices.
question
False
answer
The devices that feed data and programs into computers are called output devices. True or False
question
Output
answer
The devices that the computer uses to display results are called ____ devices.
question
False
answer
The device that stores information permanently (unless the device becomes unusable or you change the information by rewriting it) is called primary storage. True or False
question
Bit
answer
The digit 0 or 1 is called a binary digit, or ____.
question
CPU
answer
The ____ is the brain of the computer and the single most expensive piece of hardware in your personal computer.
question
Operating System
answer
The ____ monitors the overall activity of the computer and provides services.
question
Operating System
answer
The ____ monitors the overall activity of the computer and provides services.
question
C
answer
The programming language C++ evolved from ____.
question
Gigabyte
answer
The term GB refers to ____.
question
True
answer
To develop a program to solve a problem, you start by analyzing the problem. True or False
question
False
answer
When the computer is turned off, everything in secondary memory is lost. True or False
question
False
answer
A comma is also called a statement terminator. True or False
question
False
answer
A mixed arithmetic expression contains all operands of the same type. True or False
question
Double
answer
An example of a floating point data type is____.
question
Subprogram Function Module
answer
A _____________ is a collection of statements, and when it is activated, or executed, it accomplishes something. (more than one correct answer)
question
Variable
answer
A __________ is a memory location whose contents can be changed.
question
String
answer
A _________ is a sequence of zero or more characters.
question
Prompt lines
answer
____ are executable statements that inform the user what to do.
question
Comments
answer
____________________ can be used to identify the authors of the program, give the date when the program is written or modified, give a brief explanation of the program, and explain the meaning of key statements in a program.
question
Sunny Day
answer
Choose the output of the following C++ statement: cout << "Sunny " << 'n' << "Day " << endl;
question
Insertion Point 1
answer
Consider the following code. // Insertion Point 1 using namespace std; const float PI = 3.14; int main() { //Insertion Point 2 float r = 2.0; float area; area = PI * r * r; cout << "Area = " << area <
question
True
answer
If a C++ arithmetic expression has no parentheses, operators are evaluated from left to right. True or False
question
White spaces
answer
In a C++ program, ____________________ are used to separate special symbols, reserved words, and identifiers.
question
'A'
answer
____ is a valid char value.
question
Programming
answer
____________________ is the process of planning and creating a program.
question
Semantic
answer
____________________ rules determine the meaning of instructions.
question
beta = beta - 1; alpha = beta;
answer
Suppose that alpha and beta are int variables. The statement alpha = --beta; is equivalent to the statement(s) ____.
question
beta = beta + 1; alpha = beta;
answer
Suppose that alpha and beta are int variables. The statement alpha = ++beta; is equivalent to the statement(s) ____.
question
alpha = beta; beta = beta - 1;
answer
Suppose that alpha and beta are int variables. The statement alpha = beta--; is equivalent to the statement(s) ____.
question
alpha = beta; beta = beta + 1;
answer
Suppose that alpha and beta are int variables. The statement alpha = beta++; is equivalent to the statement(s) ____.
question
2
answer
Suppose that count is an int variable and count = 1. After the statement count++; executes, the value of count is ____.
question
sum = 15
answer
Suppose that sum and num are int variables and sum = 5 and num = 10. After the statement sum += num executes, ____.
question
True
answer
Suppose that sum is an int variable. The statement sum += 7; is equivalent to the statement sum = sum + 7; True or False
question
int a,b,c;
answer
The declaration int a, b, c; is equivalent to which of the following?
question
False
answer
The escape sequence r moves the insertion point to the beginning of the next line. True or False
question
13
answer
The expression static_cast(6.9) + static_cast(7.9) evaluates to ____.
question
9
answer
The expression static_cast(9.9) evaluates to ____.
question
16
answer
The length of the string "computer science" is ____.
question
True
answer
The maximum number of significant digits in float values is up to 6 or 7. True or False
question
True
answer
The maximum number of significant digits in values of the double type is 15. True or False
question
Precision
answer
The maximum number of significant digits is called the ____________________.
question
Four
answer
The memory allocated for a float value is ____ bytes.
question
Long Long
answer
The memory space for a(n) ____________________ data value is 64 bits
question
Syntax
answer
The ____ rules of a programming language tell you which statements are legal, or accepted by the programming language.
question
Token
answer
The smallest individual unit of a program written in any language is called a(n) ____________________.
question
enumeration
answer
The ____________________ type is C++ 's method for allowing programmers to create their own simple data types.
question
3
answer
The value of the expression 17 % 7 is ____.
question
3
answer
The value of the expression 33/10, assuming both values are integral data types, is ____.
question
Implicit
answer
When a value of one data type is automatically changed to another data type, a(n) ____________________ type coercion is said to have occurred.
question
char
answer
Which of the following is a reserved word in C++?
Get an explanation on any task
Get unstuck with the help of our AI assistant in seconds
New