Which are types of programming languages?
- Compiled languages
- Interpreted languages
Which are valid basic data types commonly used in programming?
String
Boolean
Integer
:
What is polymorphism in object-oriented programming?
The ability of different objects to respond to the same method call in different ways
:
What is the main purpose of using an array in programming?
To store elements in contiguous memory for fast indexed access
:
Which statement best describes the role of an algorithm in programming?
An algorithm provides a clear set of instructions to solve a given problem
:
Which statements accurately describe the characteristics of conditional statements and loops in controlling program flow?
- Loops can be used to repeat code until a condition changes
- Conditional statements allow branching based on boolean evaluation
Which are advantages of using functions in modular programming? Choose all that apply.
- Improves code readability
- Facilitates debugging and testing
- Enables code reuse across different programs
Which are benefits of applying software design principles in programming projects?
Enhanced modularity and reusability
Improved code maintainability
:
Which characteristics apply to algorithms? Choose all that apply.
Algorithms have a finite sequence of steps
Algorithms execute instructions in a logical order
Algorithms can solve a wide range of problems
:
Which statement best describes the basic structure of a program?
A program includes variables, logic, and functions
:
What is the main purpose of using an array in programming?
To store elements in contiguous memory for fast indexed access
:
Select the features that are fundamental to object-oriented programming.
Encapsulation
Inheritance
Polymorphism
:
Which statement best explains the role of parameters and return values in functions?
Parameters are inputs; return values are outputs from a function
:
Which control structure allows executing a block of code repeatedly as long as a specific condition remains true?
While loop






.png)