Exam 9: Pointers
Exam 1: Introduction to Computers and Programming50 Questions
Exam 2: Introduction to C Plus Plus60 Questions
Exam 3: Expressions and Interactivity44 Questions
Exam 4: Making Decisions53 Questions
Exam 5: Loops and Files63 Questions
Exam 6: Functions49 Questions
Exam 7: Arrays58 Questions
Exam 8: Searching and Sorting Arrays20 Questions
Exam 9: Pointers45 Questions
Exam 10: Characters, C-Strings, and More About the String Class45 Questions
Exam 11: Structured Data53 Questions
Exam 12: Advanced File Operations38 Questions
Exam 13: Introduction to Classes47 Questions
Exam 14: More About Classes40 Questions
Exam 15: Inheritance, Polymorphism, and Virtual Functions40 Questions
Exam 16: Exceptions, Templates, and the Standard Template Library Stl39 Questions
Exam 17: Linked Lists40 Questions
Exam 18: Stacks and Queues47 Questions
Exam 19: Recursion22 Questions
Exam 20: Binary Trees38 Questions
Select questions type
Not all arithmetic operations may be performed on pointers. For example, you cannot ________ or ________ a pointer.
Free
(Multiple Choice)
4.9/5
(46)
Correct Answer:
A
Assuming ptr is a pointer variable, what will the following statement output?


Free
(Multiple Choice)
4.8/5
(40)
Correct Answer:
A
Look at the following statement:
In this statement, what does the word int mean?

(Multiple Choice)
4.8/5
(42)
Assuming myValues is an array of int values, and index is an int variable, both of the following statements do the same thing.
cout << myValues[index] << endl;
cout << *(myValues + index)<< endl;
(True/False)
4.9/5
(32)
The contents of pointer variables may be changed with mathematical statements that perform ________.
(Multiple Choice)
5.0/5
(37)
C++ does not perform array bounds checking, making it possible for you to assign a pointer the address of an element out of the boundaries of an array.
(True/False)
4.8/5
(39)
When this is placed in front of a variable name, it returns the address of that variable.
(Multiple Choice)
4.8/5
(35)
Every byte in the computer's memory is assigned a unique ________.
(Multiple Choice)
4.9/5
(42)
It is legal to subtract a pointer variable from another pointer variable.
(True/False)
4.8/5
(39)
Look at the following code:
After this code executes, which of the following statements is true?

(Multiple Choice)
4.8/5
(37)
Which of the following statements deletes memory that has been dynamically allocated for an array?
(Multiple Choice)
4.7/5
(48)
In C++ 11, the ________ key word was introduced to represent the address 0.
(Multiple Choice)
4.8/5
(32)
If you are using an older compiler that does not support the C++ 11 standard, you should initialize pointers with ________.
(Multiple Choice)
4.7/5
(34)
To use any of the smart pointers in C++ 11, you must #include the memory header file with the following directive:
#include <memory>
(True/False)
4.7/5
(31)
Showing 1 - 20 of 45
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)