Upgrade to remove ads
COP3014 First Exam
Terms in this set (76)
The _____ creates object code and stores it on a disk.
Computers process data under control of sets of instructions called ________.
C++ is a:
Hybrid object oriented language
Which of the following is not one of the six logical units of a computer?
Size, shape, color, weight, height and number of doors are all good examples of _______.
Computers translate high level language into machine language. True or False?
Which language was developed expressly for the .NET platform?
With ______ the software runs on servers elsewhere on the internet.
Software as a Service
The other classes or functions that use a certain class are commonly referred to as :
The linker links:
The object code with the external libraries
_______ is not one of the three general types of computer language.
Java was originally developed for:
Intelligent consumer devices
Which of the following is/are considered part of the Web 2.0?
The development of the internet was initially funded by which US agency?
Department of Defense
The C++ Standard Library functions and classes are not included in every C++ implementation. True or False?
The internet is a _______.
Global Network of computers
In distributed computing, an organization s computing is distributed over networks to the sites where the organization s work is being performed. True or false?
Which language was designed for precise, efficient manipulation of large amounts of data?
In what order would the following operators be evaluated:
-, *, /, +, %
*, /, %, -, +
std::cout << "Hello world! "; is not a syntax error. True or False?
What are the escape characters?
Which of the following statements does not overwrite a preexisting value stored in a memory location?
Each of the following is a relational or equality operator except:
What are the relational and equality operators?
The escape sequence for a newline is:
Which of the following statements would display the phrase C++ is fun?
std::cout << "Thisis fun\rC++ ";
Which of the following is not an arithmetic operator?
The ________ object enables a program to read data from the user.
Which is the output of the following statements?
std::cout << "Hello ";
std::cout << "World";
Which of the following statements does not cause a syntax error to be reported by the C++ compiler?
Extra blank lines.
Which of the following is not a valid C++ identifier?
Which of the following is a variable declaration statement?
End-of-line comments that should be ignored by the compiler are denoted using:
Two forward slashes ( // ).
Which of the following statements could potentially change the value of number2?
std::cin >> number2;
Which of the following is true of pseudocode?
It helps the programmer 'think out' a program.
Using a while loop's counter-control variable in a calculation after the loop ends often causes a common logic error called:
An off-by-one error.
The data type bool:
Can take on values true and false.
How many times will the following loop print hello?
i = 1;
while ( i <= 10 )
cout << "hello";
An infinite number of times
Assuming that x is equal to 4, which of the following statements will not result in y containing the value 5 after execution?
y = x++;
Which of the following will not increment c by 1?
Correct c + 1;
In indefinite repetition, an input value:
Should always be evaluated before being processed.
Which of the following encompasses the other three?
In an activity diagram for an algorithm, what does a solid circle surrounded by a hollow circle represent?
What is the final value of x after performing the following operations?
int x = 21;
double y = 6;
double z = 14;
y = x / z;
x = 5.5 * y;
Which of the following does not perform the following task:
display correct if answer is equal to 7 and incorrect if answer is not equal to 7?
cout << answer == 7 ? "correct" : "incorrect";
Assuming that x and y are equal to 3 and 2, respectively, after the statement x -= y executes, the values of x and y will be:
x: 1; y: 2
If grade has the value of 60, what will the following code display?
if ( grade >= 60 )
cout << "Passed";
The conditional operator (?:):
Is the only ternary operator in C++.
Pseudocode does not include:
Specifying the order in which statements are to be executed in a computer program is called:
What is wrong with the following while loop?
while ( sum <= 1000 )
sum = sum - 30;
sum = sum - 30 should be sum = sum + 30 or else the loop may never end.
An uninitialized local variable contains:
The value last stored in the memory location reserved for that variable.
Which operation does not take place in the following example?
int x = 21;
double y = 6;
double z = 14;
y = x / z;
x = 5.5 * y;
Which of the following is a repetition statement?
Which of the following operations has the highest precedence?
Is a compound statement.
Which of the following is not one of the C++ control structures?
Which of the following for headers is not valid?
for ( int i = 0; int j = 5; ; i++ )
In a switch structure:
Multiple actions in a case do not need to be enclosed in braces.
An operator that associates from right to left is:
Continue and break statements may be embedded only within repetition statements. True or false?
If a variable is declared in the initialization expression of a for statement, then:
The scope of the variable is restricted to that for loop.
Which of the following is correct when labeling cases in a switch structure?
An example of a unary operator is:
The ! logical operator
if ( num != 65 )
cannot be replaced by:
if ( !( num - 65 ) )
Which of the following statements about the for statement is false?
You must declare the control variable before the for statement.
In C++, the condition ( 4 > y > 1 ):
Does not evaluate correctly and should be replaced by ( 4 > y && y > 1 ).
Switch can be used to test:
Which of the following is not one the rules for forming structured programs?
Any transition arrow can be reversed.
What will the following program segment do?
int counter = 1;
cout << counter << " ";
} while ( ++counter <= 10 );
Print the numbers 1 through 10.
Consider the execution of the following for loop
for (int x = 1; x < 5; increment )
cout << x + 1 << endl;
If the last value printed is 5, which of the following might have been used for increment?
Any of the above.
Variables are also known as:
lvalues, but can be used as rvalues.
If a do...while structure is used:
The body of the loop will execute at least once.
Of the following, which is not a logic error?
Using commas instead of the two required semicolons in a for header.
Consider the following code, assuming that x is an int with an initial value of 12
if( x = 6 )
cout << x;
What can be used to represent integers?
THIS SET IS OFTEN IN FOLDERS WITH...
C++ Final Exam
COP3330 Exam 1 Review - Myers
COP3330 Exam 2 Review - Myers
COP3330 Since Test 2 Review - Myers
YOU MIGHT ALSO LIKE...
C++ chap 4
C++ chap 5
CSC 101 Exam
OTHER SETS BY THIS CREATOR
GRE words to know
GRE Math Subject test
ECO3203- FSU Hammock
OTHER QUIZLET SETS
CS 1337 - Exam 1
MGSC 290 Final M.C.