CIS 17A Exam 4 Questions with Complete Solutions (Latest 2025) Which symbol is used to get the address of a variable?
- @
- %
- &
- * - Correct Answers ✅&
- @
- #
- &
- * - Correct Answers ✅*
- $ 1 / 2
You can dynamically create classes using new.True or False - Correct Answers ✅True Which symbol is used to dereference a pointer variable (aka Indirection Operator)?
If "Insect" was the name of a class, and "house_fly" was an instance of that class, then house_fly (not Insect) would be considered an object.True or False - Correct Answers ✅True Which of the following symbols is used to indicate that a variable is a pointer when it is declared?
CIS 17A Exam 4 Questions with Complete Solutions (Latest 2025)
- %
- &
- * - Correct Answers ✅*
- int *a_ptr = #
- int *a_ptr = num;
- int a_ptr = #
The member functions of a class are called "Attributes".True or False - Correct Answers ✅False Which declaration correctly creates a pointer to an int?Assume "num" is an int variable.
d) None of the above - Correct Answers ✅
Pointers are used to store:
a) Memory addresses
b) Numeric data
c) Character Data
d) Objects - Correct Answers ✅Memory addresses
You can pass a non-constant pointer to a function as a pointer to a constant.True or False - Correct Answers ✅True
- / 2