OD41

20 November 2025

CompTIA Tech+: Software Development

 

Question:

Which are types of programming languages?

Answer B.

  • Compiled languages
  • Interpreted languages

Question
:

Which are valid basic data types commonly used in programming?

  • String

  • Boolean

  • Integer


Question

:

What is polymorphism in object-oriented programming?

  • The ability of different objects to respond to the same method call in different ways


Question

:

What is the main purpose of using an array in programming?

  • To store elements in contiguous memory for fast indexed access


Question

:

Which statement best describes the role of an algorithm in programming?

  • An algorithm provides a clear set of instructions to solve a given problem


Question

:

Which statements accurately describe the characteristics of conditional statements and loops in controlling program flow?

Answer C.

  • Loops can be used to repeat code until a condition changes
  • Conditional statements allow branching based on boolean evaluation

Question
:

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

Question
:

Which are benefits of applying software design principles in programming projects?

  • Enhanced modularity and reusability

  • Improved code maintainability


Question

:

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


Question

:

Which statement best describes the basic structure of a program?

  • A program includes variables, logic, and functions


Question

:

What is the main purpose of using an array in programming?

  • To store elements in contiguous memory for fast indexed access


Question

:

Select the features that are fundamental to object-oriented programming.

  • Encapsulation

  • Inheritance

  • Polymorphism


Question

:

Which statement best explains the role of parameters and return values in functions?

  • Parameters are inputs; return values are outputs from a function


Question

:

Which control structure allows executing a block of code repeatedly as long as a specific condition remains true?

  • While loop