Exam 10: Characters, C++-Strings, and More About the String Class
Exam 1: Introduction to Computers and Programming44 Questions
Exam 2: Introduction to C++56 Questions
Exam 3: Expressions and Interactivity44 Questions
Exam 4: Making Decisions53 Questions
Exam 5: Loops and Files62 Questions
Exam 6: Functions49 Questions
Exam 7: Arrays53 Questions
Exam 8: Searching and Sorting Arrays20 Questions
Exam 10: Characters, C++-Strings, and More About the String Class42 Questions
Exam 11: Structured Data43 Questions
Exam 11: Structured Data50 Questions
Exam 12: Advanced File Operations38 Questions
Exam 13: Introduction to Classes46 Questions
Exam 14: More About Classes40 Questions
Exam 15: Inheritance, Polymorphism, and Virtual Functions38 Questions
Exam 16: Exceptions, Templates, and the Standard Template Library STL39 Questions
Exam 17: Linked Lists40 Questions
Exam 18: Stacks and Queues46 Questions
Exam 19: Recursion21 Questions
Exam 20: Binary Trees38 Questions
Select questions type
With pointer variables, you can __________ manipulate data stored in other variables.
Free
(Multiple Choice)
4.8/5
(31)
Correct Answer:
C
What will the following code output? int number = 22;
Int *var = &number;
Cout << var << endl;
Free
(Multiple Choice)
4.8/5
(32)
Correct Answer:
A
What will the following code output? int *numbers = new int[5];
For (int i = 0; i <= 4; i++)
*(numbers + i) = i;
Cout << numbers[2] << endl;
Free
(Multiple Choice)
4.7/5
(32)
Correct Answer:
D
Which of the following statements deletes memory that has been dynamically allocated for an array?
(Multiple Choice)
4.8/5
(35)
An array name is a pointer constant because the address stored in it cannot be changed during runtime.
(True/False)
4.8/5
(35)
When you work with a dereferenced pointer, you are actually working with:
(Multiple Choice)
4.8/5
(39)
Look at the following statement. int *ptr;
In this statement, what does the word int mean?
(Multiple Choice)
4.8/5
(40)
When this is placed in front of a variable name, it returns the address of that variable.
(Multiple Choice)
4.8/5
(32)
The contents of pointer variables may be changed with mathematical statements that perform:
(Multiple Choice)
4.8/5
(35)
The ______ and _______ operators can be used to increment or decrement a pointer variable.
(Multiple Choice)
4.8/5
(36)
With pointer variables you can access, but you cannot modify, data in other variables.
(True/False)
4.8/5
(46)
It is legal to subtract a pointer variable from another pointer variable.
(True/False)
4.7/5
(36)
Showing 1 - 20 of 42
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)