Introduction to Computing MCQs with Answers
Practice important Introduction to Computing MCQs with answers and explanations.
Multiple Choice Questions
Q1671: How does the function Find_diff contribute to the checkbook balancing example?
- A: It finds the product of values
- B: It computes the difference between two values
- C: It multiplies values
- D: It stores intermediate results
View Answer
B
Q1672: Fill in the blank: The structure displayed in the functional paradigm example can be represented in _______.
- A: Python
- B: LISP
- C: C++
- D: Java
View Answer
B
Q1673: What is a key difference between functional and imperative paradigms?
- A: Functional uses loops, imperative uses functions
- B: Imperative stores results for later use
- C: Functional uses control structures, imperative does not
- D: Imperative stores data in variables, functional channels results
View Answer
B
Q1674: In the imperative approach, how are the computations typically managed?
- A: By nesting functions
- B: Through immediate output
- C: By storing results for later use
- D: By using recursive functions
View Answer
C
Q1675: What analogy is used to describe the functional paradigm's efficiency?
- A: It’s like a database storing all queries
- B: It’s like a coordinated factory system
- C: It’s like a loop that repeats until a condition is met
- D: It’s like a recursive function calling itself repeatedly
View Answer
B
Q1676: Fill in the blank: The functional program is analogous to a collection of factories that _______.
- A: store intermediate products
- B: store all data in memory
- C: immediately ship products without storage
- D: delay output until the process is completed
View Answer
C
Q1677: What is one of the benefits proclaimed by proponents of the functional paradigm?
- A: High memory usage
- B: Code readability
- C: Efficiency in computation
- D: Ease of debugging
View Answer
C
Q1678: Fill in the blank: In the functional paradigm, the output of one function is _______ into the next function.
- A: discarded
- B: ignored
- C: stored
- D: channeled
View Answer
D
Q1679: What does the functional paradigm avoid compared to the imperative paradigm?
- A: Loops
- B: Recursive functions
- C: Intermediate storage of results
- D: Conditional statements
View Answer
C
Q1680: Which of the following is a key characteristic of a program written in the functional paradigm?
- A: Multiple statements for different computations
- B: A single statement where results feed into the next
- C: Use of numerous temporary variables
- D: Direct manipulation of memory
View Answer
B