1. Which is the address operator? A. * B. @ C. & D. -> 2. Which is true about po
ID: 3558813 • Letter: 1
Question
1. Which is the address operator?
A. *
B. @
C. &
D. ->
2. Which is true about pointers?
A. A pointer is a datatype.
B. A pointer is a keyword.
C. A pointer holds a hexidecimal address
D. Both A and C
3. What is the purpose of the sizeof operator?
A. Returns the number of digits in a variable.
B. Returns the size of the variable in bytes but not the size of the data type.
C. Returns the range of the datatype.
D. Returns the number of bytes of either the variable or the datatype.
4. What kind of notation is used to store memory addresses?
A. hexadecimal
B. octal
C. binary
D. decimal
5. How much memory is reserved for the following variables in MS Visual C++?
int s,
int *s_ptr;
float q, *q_ptr;
A. 10
B. 13
C. 16
D. 18
6. How much memory is reserved for the following variables in MS Visual C++?
int s,
int *s_ptr;
double q, *q_ptr;
A. 16
B. 20
C. 24
D. 30
7. If double *p_volume = &volume;
What will be printed by the statement cout << &p_volume; ?
A. The address of volume.
B. The value of volume.
C. The value of p_volume.
D. The address of the pointer p_volume.
8. How many bytes of memory are reserved for a pointer variable in Visual C++?
A. It depends on the datatype.
B. 8 bytes.
C. 4 bytes.
D. 2 bytes.
9. What is the purpose of the address operator in C++?
A. There is no address operator in C++.
B. To return the hexadecimal address of a variable.
C. To report the system address for the program.
D. To return the hexadecimal range for a datatype.
10. What is a pointer?
A. A data type which holds the address of a variable.
B. A C++ keyword.
C. A specific declaration statement.
D. A hexadecimal variable.
11. What is the function of the symbol & when used with a variable?
A. It makes a pointer to that variable.
B. It allows main() to access the variable in memory.
C. Gives the address of a variable in memory.
D. You can
Explanation / Answer
1)
The
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.