Introduction to Computing MCQs with Answers
Practice important Introduction to Computing MCQs with answers and explanations.
Multiple Choice Questions
Q1991: Which of the following is an example of an object that can be created using the Factory Design Pattern?
- A: Honda
- B: BMW
- C: Mercedes
- D: All of the above
View Answer
D
Q1992: What real-world concept is the Factory Design Pattern based on?
- A: Factory
- B: Library
- C: Museum
- D: Store
View Answer
A
Q1993: When should the Shopping Cart Design Pattern be used?
- A: When the user can buy more than one product
- B: When there is only one product to sell
- C: When there is no need for multiple instances
- D: When the user cannot return later
View Answer
A
Q1994: The Shopping Cart Design Pattern should not be used in which scenario?
- A: When there is only one product to sell
- B: When the user may want to return later
- C: When the user may want to buy multiple products
- D: When the user may want to conduct payment later
View Answer
A
Q1995: Why is the Shopping Cart Design Pattern not suitable for Application Service Providers (ASPs)?
- A: It does not make sense for the user to buy more than one product at a time
- B: Users need to buy multiple products
- C: Users need to return later to conduct payment
- D: Users need to upgrade services at different times
View Answer
A
Q1996: Fill in the blank: The ________ Design Pattern is used to create loosely coupled systems by providing abstraction between the client and objects.
- A: Factory
- B: Observer
- C: Decorator
- D: Singleton
View Answer
A
Q1997: Fill in the blank: The ________ Design Pattern is ideal when the user may want to return later to continue shopping or conduct payment.
- A: Shopping Cart
- B: Factory
- C: Observer
- D: Decorator
View Answer
A
Q1998: Fill in the blank: The Factory Design Pattern provides abstraction between the Client and ________ when creating instances.
- A: Car
- B: Hardware
- C: User Interface
- D: Database
View Answer
A
Q1999: Fill in the blank: The Shopping Cart Design Pattern should be avoided when your site is arranged so that it doesn’t make sense for the user to buy more than ________.
- A: One product
- B: One instance
- C: Multiple products
- D: Multiple instances
View Answer
A
Q2000: Fill in the blank: A key feature of the Factory Design Pattern is that it allows the factory to ________ new items as they are added to the manufacturing process.
- A: Manufacture
- B: Discard
- C: Ignore
- D: Reprogram
View Answer
A