Skip to main content

Introduction to Computing MCQs with Answers

Practice important Introduction to Computing MCQs with answers and explanations.

Chapter: 113
Q1661:
Fill in the blank: The subject of _______ within mathematics provides a simple problem-solving algorithm for declarative systems.
A. formal logic
B. calculus
C. set theory
D. combinatorics
Correct Answer: A
Chapter: 113
Q1662:
What is the primary role of a programmer in a declarative programming system?
A. Writing code for data structures
B. Debugging and testing
C. Developing a precise problem statement
D. Optimizing code execution
Correct Answer: C
Chapter: 113
Q1663:
Which of the following is NOT typically associated with declarative programming?
A. Simulating systems
B. Solving problems
C. Implementing complex algorithms
D. Describing situations
Correct Answer: C
Chapter: 113
Q1664:
In the declarative paradigm, what replaces the need to describe an algorithm for solving a problem?
A. Code optimization
B. Pre-established problem-solving algorithm
C. Formal grammar rules
D. Algorithmic complexity
Correct Answer: B
Chapter: 113
Q1665:
How did the discovery of formal logic impact the declarative paradigm?
A. It simplified syntax rules
B. It provided a general-purpose algorithm
C. It introduced new programming languages
D. It made debugging easier
Correct Answer: B
Chapter: 114
Q1666:
What is the functional paradigm based on?
A. Storing data
B. Logical reasoning
C. Input-output relations
D. Control structures
Correct Answer: C
Chapter: 114
Q1667:
What do mathematicians refer to the entities that accept inputs and produce outputs?
A. Variables
B. Functions
C. Loops
D. Algorithms
Correct Answer: B
Chapter: 114
Q1668:
In the functional paradigm, how is a program typically constructed?
A. Using loops
B. With conditional statements
C. By connecting smaller predefined functions
D. By iterative processes
Correct Answer: C
Chapter: 114
Q1669:
Which programming language is mentioned as a prominent functional programming language?
A. Python
B. Java
C. LISP
D. C++
Correct Answer: C
Chapter: 114
Q1670:
In the example provided, what does the function Find_sum do?
A. Finds the maximum value
B. Computes the average
C. Adds values together
D. Subtracts values
Correct Answer: C
Chapter: 114
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
Correct Answer: B
Chapter: 114
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
Correct Answer: B
Chapter: 114
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
Correct Answer: B
Chapter: 114
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
Correct Answer: C
Chapter: 114
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
Correct Answer: B
Chapter: 114
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
Correct Answer: C
Chapter: 114
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
Correct Answer: C
Chapter: 114
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
Correct Answer: D
Chapter: 114
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
Correct Answer: C
Chapter: 114
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
Correct Answer: B

Test Your Knowledge

Take a timed quiz on Introduction to Computing

🚀 Start Quiz Now