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
____________________ rules determine the meaning of instructions.
Free
(Short Answer)
4.9/5
(35)
Correct Answer:
Semantic
semantic
Suppose that alpha and beta are int variables. The statement alpha = ++beta; is equivalent to the statement(s) ____.
Free
(Multiple Choice)
5.0/5
(44)
Correct Answer:
A
A mixed arithmetic expression contains all operands of the same type.
Free
(True/False)
4.8/5
(40)
Correct Answer:
False
The value of the expression 33/10, assuming both values are integral data types, is ____.
(Multiple Choice)
4.9/5
(38)
Choose the output of the following C++ statement: cout << "Sunny " << '\n' << "Day " << endl;
(Multiple Choice)
5.0/5
(40)
Suppose that alpha and beta are int variables. The statement alpha = beta--; is equivalent to the statement(s) ____.
(Multiple Choice)
4.8/5
(43)
If a C++ arithmetic expression has no parentheses, operators are evaluated from left to right.
(True/False)
4.9/5
(38)
Suppose that alpha and beta are int variables. The statement alpha = beta++; is equivalent to the statement(s) ____.
(Multiple Choice)
4.7/5
(34)
Suppose that alpha and beta are int variables. The statement alpha = --beta; is equivalent to the statement(s) ____.
(Multiple Choice)
4.7/5
(43)
When a value of one data type is automatically changed to another data type, a(n) ____________________ type coercion is said to have occurred.
(Short Answer)
4.9/5
(35)
A(n) ____________________ is a sequence of zero or more characters.
(Short Answer)
4.8/5
(35)
The maximum number of significant digits is called the ____________________.
(Short Answer)
4.9/5
(33)
A data type is called ____________________ if the variable or named constant of that type can store only one value at a time.
(Short Answer)
4.9/5
(30)
____________________ 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.
(Short Answer)
5.0/5
(34)
____________________ is the process of planning and creating a program.
(Short Answer)
4.9/5
(39)
The expression static_cast<int>(6.9) + static_cast<int>(7.9) evaluates to ____.
(Multiple Choice)
4.7/5
(26)
Showing 1 - 20 of 50
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)