A
B
C
D
E
100

What is the primary reason the OOP paradigm is used in software development?

To cope with software complexity

100

Which OOP concept is defined as the process of hiding internal implementation details?

Abstraction

100

What is the name of the OOP pillar that bundles data and methods into a single unit?

Encapsulation

100

Modularity is a key strategy for coping with complexity in OOP. (Respond True or False)

True

100

How many primitive data types are available in Java?

8

200

What term describes the region of a program where a variable is accessible?

Scope

200

What is the basic unit of storage in a Java program called?

Variable

200

Which structure is used to store multiple values of the same type in a single variable?

Array

200

What do we call a combination of variables, literals, and operators that evaluates to a single value?

Expression

200

Which control statement is specifically designed to handle multiple branching based on a single value?

switch statement

300

What is the term for explicitly converting a larger data type to a smaller one?

Casting (or narrowing)

300

Which jump statement is used to exit a loop prematurely?

break

300

What are the two primary mechanisms Java provides to implement Abstraction?

Abstract classes and interfaces

300

What is the term for the automatic conversion of a smaller data type to a larger data type (e.g., int to long)?

Widening (or automatic) conversion

300

Which control statement ensures that the block of code is executed at least once before the condition is checked?

The do-while loop

400

In Java arrays, what is the index number used to access the very first element?

0

400

Which concept allows a class to acquire the properties and behaviors of another class?

Inheritance

400

What is the resulting data type of a relational expression such as (a < b)?

Boolean

400

Which jump statement skips the remaining code in the current iteration of a loop and moves to the next iteration?

continue

400

What do you call a variable that is declared inside a method and is only accessible within that method?

A local variable

500

What operator is used in Java to find the remainder of a division operation?

The modulo operator (%)

500

True or False: A class is the physical reality of an object in memory. (Respond True/False & write reason why?)

False (a class is the blueprint/logical template)

500

What is the term for the period of time during which a variable occupies a location in the computer's memory?

Lifetime

500

What do you call a concrete, physical instance of a class that exists in memory?

Object

500

What are the two main components defined within a class that determine an object's state and behavior?

Variables (data) and Methods (behavior)