Exam 2: Basic Elements of C
Exam 1: An Overview of Computers and Programming Languages50 Questions
Exam 2: Basic Elements of C50 Questions
Exam 3: Inputoutput50 Questions
Exam 4: Control Structures I Selection50 Questions
Exam 5: Control Structures II Repetition50 Questions
Exam 6: User-Defined Functions50 Questions
Exam 7: User-Defined Simple Data Types, Namespaces, and the String Type50 Questions
Exam 8: Arrays and Strings50 Questions
Exam 9: Records Structs50 Questions
Exam 10: Classes and Data Abstraction49 Questions
Exam 11: Inheritance and Composition50 Questions
Exam 12: Pointers, Classes, Virtual Functions, and Abstract Classes50 Questions
Exam 13: Overloading and Templates50 Questions
Exam 14: Exception Handling50 Questions
Exam 15: Recursion50 Questions
Exam 16: Searching, Sorting and the Vector Type50 Questions
Exam 17: Linked Lists50 Questions
Exam 18: Stacks and Queues50 Questions
Select questions type
In C++, you can use a(n) ____________________ to instruct a program to mark those memory locations in which data is fixed throughout program execution.
(Short Answer)
4.9/5
(34)
Suppose a = 5. After the execution of the statement ++a; the value of a is 6.
(True/False)
4.8/5
(39)
The ____ rules of a programming language tell you which statements are legal, or accepted by the programming language.
(Multiple Choice)
4.9/5
(36)
The maximum number of significant digits in float values is up to 6 or 7.
(True/False)
4.9/5
(49)
A(n) ____________________ is a collection of statements, and when it is activated, or executed, it accomplishes something.
(Short Answer)
4.8/5
(44)
Suppose that sum is an int variable. The statement sum += 7; is equivalent to the statement sum = sum + 7;
(True/False)
4.8/5
(41)
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 << endl;
return 0;
}
// Insertion Point 3
In this code, where does the include statement belong?
(Multiple Choice)
4.8/5
(35)
Suppose that alpha and beta are int variables and alpha = 5 and beta = 10. After the statement alpha *= beta; executes, ____.
(Multiple Choice)
4.9/5
(41)
Suppose that count is an int variable and count = 1. After the statement count++; executes, the value of count is ____.
(Multiple Choice)
4.7/5
(38)
____ are executable statements that inform the user what to do.
(Multiple Choice)
4.8/5
(39)
The maximum number of significant digits in values of the double type is 15.
(True/False)
4.7/5
(36)
The memory space for a(n) ____________________ data value is 64 bytes.
(Short Answer)
4.8/5
(35)
In a C++ program, ____________________ are used to separate special symbols, reserved words, and identifiers.
(Short Answer)
4.9/5
(38)
In a C++ program, one and two are double variables and input values are 10.5 and 30.6. After the statement cin >> one >> two; executes, ____.
(Multiple Choice)
4.9/5
(33)
Showing 21 - 40 of 50
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)