Podcast
Questions and Answers
What is a subroutine?
What is a subroutine?
- A named block of code that can be called and executed within a program (correct)
- A data type used to store text characters
- A programming language used for web development
- A hardware component in a computer system
What is the primary purpose of a subroutine?
What is the primary purpose of a subroutine?
- To break down complex tasks into smaller, manageable parts (correct)
- To manage network connections
- To display graphical user interfaces
- To store and retrieve data from a database
How does a subroutine contribute to code reusability?
How does a subroutine contribute to code reusability?
- By providing a secure connection to external servers
- By optimizing code for faster execution
- By allowing the same block of code to be used multiple times within a program (correct)
- By compressing data to reduce storage space