Multiple Choice Questions 1. Which statement is correct about adding a node to a
ID: 3722480 • Letter: M
Question
Explanation / Answer
1. In a linked list, we can add a new node anywhere in the list by traversing the list. So option b) is correct.
b) You can add a node anywhere in the linked list.
2. To locate any node we need to traverse the linked from head to next pointers. We could not access any node directly from its index.
So option C) is correct.
c) Start at the first node and follow pointers to the next node in the list until the fifth node is located.
3. We can not access any node directly in the list.
Option b is correct.
b) It is not legal to use the [] operator with a list<string> object.
4. We can assume here that the array is 0-based.
The loop doesn't initialize numarray[0] as cnt start from 1.
Option b is correct.
b) The for loop initializes all elements of array except the first element.
5. parent class cannot access child functions while child class can access parent class functions.
So option b is correct.
b) car.get_speed() and aero.get_speed()
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.