References - General Questions Multiple Questions and Answers.




1.Which of the following statement is correct?
A. A reference is stored in a binary tree.
B. A reference is stored in a queue.
C. A reference is stored on stack.
D. A reference is stored on heap.

2.Which of the following statements is correct?
A. Only 1 is correct.
B. Only 2 is correct.
C. Both 1 and 2 are correct.
D. Both 1 and 2 are incorrect.

3.Functions can be declared to return a reference type. There are reasons to make such a declaration/Which of the following reasons are correct?
A. Only 1 is correct.
B. Only 2 is correct.
C. Both 1 and 2 are correct.
D. Both 1 and 2 are incorrect.

4.Which of the following statements is correct?
A. Only 1 is correct.
B. Only 2 is correct.
C. Both 1 and 2 are correct.
D. Both 1 and 2 are incorrect.

5.Which of the following statement is correct about the references?
A. A reference must always be initialized within functions.
B. A reference must always be initialized outside all functions.
C. A reference must always be initialized.
D. Both A and C.




Date to Date Current Affairs 2022

PakMCQs.net

Quick Links

GAT Subject



   Computer Science    English Mcqs    Agriculture    

Engineering



   Computer Science    Civil Engineering    

Technical



   Networking    Electronics    Database    

Past Papers



   Model Papers    FPSC Papers