Exam 22: Bits, Characters, C Strings and Structs
Exam 1: Introduction to Computers and C++32 Questions
Exam 2: Introduction to C Programming; Inputoutput and Operators22 Questions
Exam 3: Introduction to Classes, Objects and Strings33 Questions
Exam 4: Control Statements, Assignment, and Operators29 Questions
Exam 5: Control Statements, Logical Operators31 Questions
Exam 6: Functions and an Introduction to Recursion48 Questions
Exam 7: Class Templates Array and Vector; Catching Exceptions18 Questions
Exam 8: Pointers and Pointer-Based Strings32 Questions
Exam 9: Classes: a Deeper Look; Throwing Exceptions35 Questions
Exam 10: Operator Overloading; String and Array Objects34 Questions
Exam 11: Object-Oriented Programming: Inheritance17 Questions
Exam 12: Object-Oriented Programming: Polymorphism27 Questions
Exam 13: Stream Inputoutput: a Deeper Look34 Questions
Exam 14: File Processing19 Questions
Exam 15: Standard Library Containers and Iterators33 Questions
Exam 16: Standard Library Algorithms27 Questions
Exam 17: Exception Handling: a Deeper Look20 Questions
Exam 18: Introduction to Custom Templates9 Questions
Exam 19: Custom Templatized Data Structures17 Questions
Exam 20: Searching and Sorting10 Questions
Exam 21: Class String and String Stream Processing28 Questions
Exam 22: Bits, Characters, C Strings and Structs30 Questions
Exam 23: Other Topics22 Questions
Exam 24: C++11 Additional Features56 Questions
Select questions type
Let x be an unsigned int on a machine with 4-byte unsigned ints. What effect does x>>=1;
X<<=1;
Have?
Free
(Multiple Choice)
4.8/5
(38)
Correct Answer:
C
The most basic unit of data on a computer is the:
Free
(Multiple Choice)
4.9/5
(31)
Correct Answer:
A
Structure variable declarations can be incorporated into a structure definition by placing a comma-separated list of variable names:
Free
(Multiple Choice)
4.8/5
(31)
Correct Answer:
D
The functions of the character-handling library typically manipulate characters as:
(Multiple Choice)
4.9/5
(42)
To change the string "ABCDEFGHI" to "aaaaaFGHI" you would use the _________ function.
(Multiple Choice)
4.8/5
(36)
The ___________ function allows characters of one part of a string to be copied into another, overlapping part of the same string.
(Multiple Choice)
4.6/5
(29)
The main difference between the functions atof, atoi and atol is:
(Multiple Choice)
4.9/5
(31)
Assuming that string1 = "hello" and string2 = "hello world", which of the following returns 0?
(Multiple Choice)
5.0/5
(33)
Which is the proper way to create a built-in array of structure variables of type Data?
(Multiple Choice)
4.9/5
(33)
Two structure variables of the same type with the same member values, when compared will:
(Multiple Choice)
4.8/5
(39)
Which of the following correctly copies the contents of string2 into string1? Assume that string2 is equal to "goodbye" and string1 is equal to "good morning"?
(Multiple Choice)
4.7/5
(24)
Which function would be the most useful for determining if a certain word is contained in a string representing a sentence?
(Multiple Choice)
5.0/5
(25)
Memcmp would return ___________ for the call memcmp("Hi, how are you?", "Hi, how are things?", 6).
(Multiple Choice)
4.9/5
(37)
Let Bit1 = Bit2 = 1. Which of the following does not have the same result as the others?
(Multiple Choice)
4.8/5
(37)
Showing 1 - 20 of 30
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)