Explore topic-wise MCQs in Technical MCQs.

This section includes 8 Mcqs, each offering curated multiple-choice questions to sharpen your Technical MCQs knowledge and support exam preparation. Choose a topic below to get started.

1.

string* x, y;
30.Which is true for b, if b is defined as "int *b[10];"?

A. The definition only allocates 10 pointers and does not initialize them
B. Initialization must be done explicitly
C. The definition only allocates 10 pointers and does not initialize them & Initialization must be done explicitly
D. Error
E.
Answer» D. Error
2.

int a = 100, b = 200;int *p = &a, *q = &bp = q;
29.Choose the right option

A. x is a pointer to a string, y is a string
B. y is a pointer to a string, x is a string
C. Both x and y are pointer to string types
D. None of the above
Answer» B. y is a pointer to a string, x is a string
3.

int(*p[5])();
28.What will happen in this code?

A. b is assigned to a
B. p now points to b
C. a is assigned to b
D. q now points to a
Answer» C. a is assigned to b
4.

What is meaning of following declaration?

A. p is pointer to function.
B. p is array of pointer to function
C. p is pointer to such function which return type is array.
D. p is pointer to array of function.
Answer» C. p is pointer to such function which return type is array.
5.

Which of the following are not a member dereferencing operators in CPP? 1. *2. ::3. ->* 4. ::*5. ->

A. Only 1, 2, 4
B. Only 1 and 5
C. Only 2 and 5
D. Only 3,4,5
Answer» D. Only 3,4,5
6.

A pointer contains __________.

A. Address of a variable
B. Name of the variable
C. Value of the variable
D. None of the above
Answer» B. Name of the variable
7.

Which one of the following is not a possible state for a pointer?

A. Hold the address of the specific object
B. Point one past the end of an object
C. Zero
D. Point to a type
Answer» E.
8.

Which operator returns the address of unallocated blocks in memory?

A. The delete operator
B. The empty operator
C. The new operator
D. All of them
Answer» D. All of them