Programming and Data Structures [GATE (Graduate Aptitude Test in Engineering) Computer Science & IT (CS)]: Questions 106 - 110 of 470
Choose Programs:
🎓 Study Material (1190 Notes): 2024-2025 Syllabus
Rs. 1000.00 -OR-
3 Year Validity (Multiple Devices)
Topic-wise Notes & SampleDetails
🎯 302 Numeric, 2894 MCQs (& PYQs) with Full Explanations (2024-2025 Exam)
Rs. 650.00 -OR-
3 Year Validity (Multiple Devices)
CoverageDetailsSample Explanation
Help me Choose & Register (Watch Video) Already Subscribed?
Question 106
Appeared in Year: 2016
Question MCQ▾
Given
What is the output of the following expression in C language?
Choices
Choice (4) | Response | |
---|---|---|
a. | 1 | |
b. | 0 | |
c. | -1 | |
d. | 2 |
Question 107
Appeared in Year: 2016
Question MCQ▾
Which of the following statements is correct?
Choices
Choice (4) | Response | |
---|---|---|
a. | Abstract class cannot be directly initiated with ‘new’ operator. | |
b. | Every class containing abstract method must not be declared abstract. | |
c. | Abstract class cannot be initiated. | |
d. | Abstract class contains definition of implementation. |
Question 108
Appeared in Year: 2016
Question MCQ▾
If a function is friend of a class, which one of the following is wrong?
Choices
Choice (4) | Response | |
---|---|---|
a. | It can have access to all members of the class, even private ones. | |
b. | A function can only be declared a friend by a class itself. | |
c. | Friend functions are members of a class. | |
d. | Friend functions are not members of a class, they are associated with it. |
Question 109
Appeared in Year: 2016
Question MCQ▾
Which one of the following array represents a binary max-heap?
Choices
Choice (4) | Response | |
---|---|---|
a. | [26, 15, 17, 14,11, 9,13] | |
b. | [26, 15, 14, 17,11, 9,13] | |
c. | [26, 13, 17, 14,11, 9,15] | |
d. | [26, 15, 13, 14,11, 9,17] |
Question 110
Appeared in Year: 2016
Question MCQ▾
Consider the following operations performed on a stack of size 5:
Push (a) ; Pop () ; Push (b) ; Push (c) ; Pop () ;
Push (d) ; Pop () ; Pop () ; Push (e) ;
Which of the following statements is correct?
Choices
Choice (4) | Response | |
---|---|---|
a. | Stack operations are performed smoothly | |
b. | Overflow occurs | |
c. | Underflow occurs | |
d. | All of the above |