Question 36
Which data structure operates on a First-In, First-Out (FIFO) basis?
A Queue inserts items at the rear and removes them from the front, strictly adhering to First-In, First-Out (FIFO).
Which data structure operates on a First-In, First-Out (FIFO) basis?
A Queue inserts items at the rear and removes them from the front, strictly adhering to First-In, First-Out (FIFO).
Method Overloading in Java is an example of:
Method Overloading resolved at compile time based on method signatures is compile-time (static) polymorphism.
In Python, which special method is invoked automatically when a new instance of a class is created?
The __init__ method acts as the instance constructor in Python classes to set initial attribute values.
Which access specifier in C++ allows class members to be accessed by derived classes but NOT by outside functions?
Protected members in C++ are inaccessible to external objects but accessible within the defining class and its derived subclasses.
Which relational algebra operation selects rows that satisfy a given predicate?
The Selection operator ($\sigma$) in relational algebra filters tuples (rows) based on a specified condition.