Question
Fill in the blank given below using the correct idiom.
The actor's sudden outburst during the interview was _______________ and left the audience shocked.Solution
The idiom "a shot in the dark" refers to a guess or attempt that is not based on knowledge or a high chance of success. (A) out of the blue: Unexpectedly; without any warning or anticipation. (B) over the top: Excessive or beyond reasonable limits; extravagant. (C) a shot in the dark: A guess or attempt that is not based on knowledge or a high chance of success. (D) taking a plunge: To make a bold decision or take a risky step. (E) seeing eye to eye: To agree with someone; to have the same viewpoint.
Which OOP principle binds data and the methods that operate on that data within a single unit?
An "object" is an instance of a:
Which OOP concept allows a class to inherit properties and behaviors from another class?
What is the main purpose of an interface in OOP?
The ability of an object to take on many forms, or the ability of a single interface to represent different underlying forms, is known as:
An abstract class:
How is data hiding primarily achieved in OOP?
Which of the following is a common way to achieve abstraction in OOP?
Which special method is automatically called when an object of a class is created, typically used for initializing the object's state?
What is a key benefit of encapsulation?