Exam 2: Introduction to C Programming
Exam 1: Introduction to Computers, the Internet and the World Wide Web27 Questions
Exam 2: Introduction to C Programming21 Questions
Exam 3: Control Statements, Part 127 Questions
Exam 4: Control Statements, Part 228 Questions
Exam 5: Functions and an Introduction to Recursion47 Questions
Exam 6: Arrays and Vectors19 Questions
Exam 7: Pointers and Pointer-Based Strings28 Questions
Exam 8: Sequential-Access Files12 Questions
Exam 9: Classes35 Questions
Exam 10: Classes: a Deeper Look, Part 215 Questions
Exam 11: Operator Overloading; String and Array Objects32 Questions
Exam 12: Object-Oriented Programming: Inheritance19 Questions
Exam 13: Object-Oriented Programming: Polymorphism23 Questions
Exam 14: Templates13 Questions
Exam 15: Stream Inputoutput33 Questions
Exam 16: Exception Handling24 Questions
Exam 17: File Processing11 Questions
Exam 18: Class String and String Stream Processing26 Questions
Exam 19: Searching and Sorting10 Questions
Exam 20: Data Structures19 Questions
Exam 21: Standard Template Library Stl56 Questions
Exam 22: Bits, Characters, C Strings and Structs26 Questions
Exam 23: Boost Libraries, Technical Report 1 and C0x21 Questions
Exam 24: Other Topics19 Questions
Exam 25: ATM Case Study, Part 1: Object-Oriented Design With the Uml15 Questions
Exam 26: ATM Case Study, Part 2: Implementing an Object-Oriented Design3 Questions
Exam 27: Game Programming With Ogre23 Questions
Select questions type
The assignment operator ________ assigns the value of the expression on its right to the variable on its left.
Free
(Multiple Choice)
4.8/5
(36)
Correct Answer:
C
Which is the output of the following statements?
Std::cout << "Hello ";
Std::cout << "World";
Free
(Multiple Choice)
4.8/5
(36)
Correct Answer:
A
The ________ object enables a program to read data from the user.
Free
(Multiple Choice)
4.8/5
(40)
Correct Answer:
B
Which of the following statements does not overwrite a preexisting value stored in a memory location?
(Multiple Choice)
5.0/5
(36)
In what order would the following operators be evaluated
-, *, /, +, %
Assume that if two operations have the same precedence, the one listed first will be evaluated first.
(Multiple Choice)
4.8/5
(35)
Which of the following statements would display the phrase C++ is fun?
(Multiple Choice)
4.8/5
(38)
What will be the output after the following C++ statements have been executed?
Int a, b, c, d;
A = 4;
B = 12;
C = 37;
D = 51;
If a < b )
Cout << "a < b" << endl;
If a > b )
Cout << "a > b" << endl;
If d <= c )
Cout << "d <= c" << endl;
If c != d )
Cout << "c != d" << endl;
(Multiple Choice)
4.8/5
(33)
What is the value of result after the following C++ statements execute?
Int a, b, c, d, result;
A = 4;
B = 12; c = 37;
D = 51;
Result = d % a * c + a % b + a;
(Multiple Choice)
4.9/5
(34)
Which of the following code segments prints a single line containing hello there with the words separated by a single space?
(Multiple Choice)
4.8/5
(46)
Which of the following statements could potentially change the value of number2?
(Multiple Choice)
4.9/5
(37)
End-of-line comments that should be ignored by the compiler are denoted using:
(Multiple Choice)
4.8/5
(32)
Each of the following is a relational or equality operator except:
(Multiple Choice)
4.9/5
(37)
Showing 1 - 20 of 21
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)