logo
  • Home
  • Test & Rank
  • About
  • Training
  • Programming
  • CS
  • IT
  • IS
  • ECE
  • EEE
  • EE
  • Civil
  • Mechanical
  • Chemical
  • Metallurgy
  • Instrumentation
  • Aeronautical
  • Aerospace
  • Biotechnology
  • Mining
  • Marine
  • Agriculture
  • MCA
  • BCA
  • Internship
  • Jobs
  • Contact

Software Architecture Multiple Choice Questions | MCQs | Quiz

Software Architecture & Design Interview Questions and Answers
Practice Software Architecture & Design questions and answers for interviews, campus placements, online tests, aptitude tests, quizzes and competitive exams.

Get Started

•   SE Design Methods
•   Software Design Processes
•   Design Management
•   Product Planning
•   Project Mission Statement
•   Software Requirements
•   Product Design Analysis
•   Elicitation Documentation
•   Alternative Requirements
•   Evaluating Requirements
•   Finalizing Product Design
•   UML Use Case Diagrams
•   Use Case Descriptions
•   Design Analysis
•   UML Class Diagrams
•   Conceptual Modelling
•   Design Resolution Activities
•   Design Principles
•   Modularity Principles
•   Architectural Design
•   Software Architectures
•   UML Package
•   UML Deployment Diagrams
•   ↓ Software Architectures ↓
•   Generating & Improvement
•   Evaluating & Selection
•   Finalizing Software
•   Advanced Class Diagrams
•   Drafting Class Model
•   Static Modelling Heuristics
•   UML Sequence Diagrams
•   Interaction Design Process
•   UML State Diagrams
•   Advanced State Diagrams
•   Designing State Diagrams
•   Visibility & Accessibility
•   Operation Specification
•   Data Structure Specification
•   Design Finalization
•   Software Design Patterns
•   Layered Architectures
•   Collection Iterator Pattern
•   Mid-Level Design Pattern
•   Facade & Mediator Patterns
•   Adapter & Proxy Pattern
•   Singleton Patterns
•   Prototype Patterns
•   ↓ Architectural ↓
•   Business Cycle
•   Patterns & Reference Model
•   Structural Views
•   Quality Attribute
•   System Quality Attributes
•   Runtime Quality Attributes
•   Business Qualities
•   Architecture Qualities
•   Architectural Styles - 1
•   Architectural Styles - 2
•   Styles Refinements
•   Unit Operations
•   User-Interface Software
•   Addressing Quality Attribute
•   Analyzing Architecture
•   Architecture Analysis
•   Financial Management
•   SAAM Observations
•   Reviews Cost & Benefits
•   Review Techniques
•   Review Practice
•   Architecture Language
•   Architectural Information
•   Choosing ADL
•   Team Structure Formation
•   Skeletal System Creation
•   Exploiting Patterns
•   Architecture Conformance
•   Domain Specific Languages
•   Flight Simulation Case
•   Products Creation
•   Product Line Implications
•   Component Based Systems
•   CelsiusTech - Case Study
•   Referenced Architectures
•   Open Systems
•   Standards - 1
•   Standards - 2
•   Meteorological Case Study1
•   Meteorological Case Study2
•   Legacy Systems

Best Reference Books

Software Architecture & Design Books

Software Architecture and Design Tests

Certification Test
Internship Test
Job Test
All Tests
Top Rankers
Practice Test 1
Practice Test 2
Practice Test 3
Practice Test 4
Practice Test 5
Practice Test 6
Practice Test 7
Practice Test 8
Practice Test 9
Practice Test 10
Mock Test 1
Mock Test 2
Mock Test 3
Mock Test 4
Mock Test 5
Mock Test 6
Mock Test 7
Mock Test 8
Mock Test 9
Mock Test 10
« Prev Page
Next Page »

Software Design Questions and Answers – The Generator Category, Factory Patterns and Singleton Patterns

Posted on August 5, 2013 by Manish

This set of Software Design Questions and Answers for Freshers focuses on “The Generator Category,Factory Patterns and Singleton Patterns”.

1. Most object-oriented languages and systems provide which of these ways to create new objects?
a) Instantiating a class using one of its constructors
b) Cloning an existing object
c) All of the mentioned
d) None of the mentioned
View Answer

Answer: c
Explanation: All the mentioned are the two ways to create new objects.
advertisement

2. Which of the following truly describes the structure of Generator pattern?
a) A generator pattern has a Client that needs an instance of a Product class
b) A Generator that creates or obtains access to such an instance on behalf of the Client
c) All of the mentioned
d) None of the mentioned
View Answer

Answer: c
Explanation: All of the mentioned are part of generator pattern structure.

3. Which of the following is true about factory method?
a) A factory method is a non-constructor operation that creates and returns class instances
b) Factory methods are widely used in mid-level design patterns and in object-oriented programming in general
c) Factory methods create new instances using constructors or cloning, so they do not rely on any special technique for class instantiation
d) All of the mentioned
View Answer

Answer: d
Explanation: All the mentioned are true with respect to factory methods.

4. When a generator assumes responsibility for product object creation in a factory method,which of the following capabilities become available?
a) Access to product constructors can be restricted
b) Private data can be provided to new product objects
c) Product objects can be configured after creation
d) All of the mentioned
View Answer

Answer: d
Explanation: All the mentioned are true for product object creation.
advertisement

5. Which are the several reasons for using generator patterns?
a) Product Creation Control
b) Product Configuration Control
c) Client and Product Decoupling
d) All of the mentioned
View Answer

Answer: d
Explanation: The several reasons are all mentioned.

6. The Factory patterns decouple clients from products by taking advantage of interfaces in two ways?
a) The generator class with the factory methods cannot be changed, disallowing variability in factory method implementations
b) Instances of a variety of classes that implement the product interface can be returned by a factory method, allowing great flexibility in results
c) All of the mentioned
d) None of the mentioned
View Answer

Answer: b
Explanation: Generator class with the factory method can be changed.

7. What are the types of factory pattern?
a) Factory Method
b) Abstract Method
c) All of the mentioned
d) None of the mentioned
View Answer

Answer: c
Explanation: There are two types of factory pattern- Factory,Abstract.
advertisement

8. Which class that can have only one instance?
a) Adaptor Class
b) Proxy Class
c) Singleton Class
d) Factory class
View Answer

Answer: c
Explanation: Singleton Class is the class that can have only one instance.

9. What are the drawbacks for singleton class?
a) Many languages do not allow classes to be values assignable to variables.
b) Singleton classes can be subclassed, and the singleton factory method can return a sub-class instance
c) Classes can easily replace only single instances
d) All of the internship
View Answer

Answer: d
Explanation: All are the drawbacks for the singleton class.

10. Which of the following are true for the singleton class?
a) Singleton classes should be used whenever it is important that only a single instance of a class exist and that that single instance be widely accessible
b) The Singleton pattern can also be used, with slight modifications, when a limited number of instances greater than one are desired
c) Access restrictions are usually easy to add by restricting the visibility of either the class or the factory method
d) All of the mentioned
View Answer

Answer: d
Explanation: All the mentioned are true for the singleton class.

Sanfoundry Global Education & Learning Series – Software Architecture and Design.

To practice all areas of Software Design for Freshers, here is complete set of 1000+ Multiple Choice Questions and Answers on Software Design and Architecture.
« Prev Page - Software Design Questions and Answers – The Adapter Patterns and Proxy Pattern
» Next Page - Software Design Questions and Answers – The Prototype Pattern, Reactor Pattern and Command Pattern

« Software Design Questions and Answers – The Adapter Patterns and Proxy Pattern
Software Design Questions and Answers – The Prototype Pattern, Reactor Pattern and Command Pattern »
advertisement

Deep Dive @ Sanfoundry:

  1. Java Questions and Answers
  2. Java Programming Examples on Inheritance
  3. Design of Steel Structures Questions and Answers
  4. C# Programming Examples on Functions
  5. Java Programming Examples on Classes
  6. Distillation Design Questions and Answers
  7. Java Programming Examples on Networking
  8. Java Programming Examples on Java.Lang
  9. Software Engineering Questions & Answers
  10. Software Architecture & Design Questions and Answers
Manish Bhojasia
Manish Bhojasia, a technology veteran with 20+ years @ Cisco & Wipro, is Founder and CTO at Sanfoundry. He is Linux Kernel Developer & SAN Architect and is passionate about competency developments in these areas. He lives in Bangalore and delivers focused training sessions to IT professionals in Linux Kernel, Linux Debugging, Linux Device Drivers, Linux Networking, Linux Storage, Advanced C Programming, SAN Storage Technologies, SCSI Internals & Storage Protocols such as iSCSI & Fiber Channel. Stay connected with him @ LinkedIn | Facebook | Twitter

Best Careers

Developer Tracks
SAN Developer
Linux Kernel Developer
Linux Driver Developer
Linux Network Developer

Live Training Photos
Mentoring
Software Productivity
GDB Assignment
Sanfoundry is No. 1 choice for Deep Hands-ON Trainings in SAN, Linux & C, Kernel Programming. Our Founder has trained employees of almost all Top Companies in India such as VMware, Citrix, Oracle, Motorola, Ericsson, Aricent, HP, Intuit, Microsoft, Cisco, SAP Labs, Siemens, Symantec, Redhat, Chelsio, Cavium, ST-Micro, Samsung, LG-Soft, Wipro, TCS, HCL, IBM, Accenture, HSBC, Mphasis, Tata-Elxsi, Tata VSNL, Mindtree, Cognizant and Startups.

Best Trainings

SAN I - Technology
SAN II - Admin
Linux Fundamentals
Advanced C Training
Linux-C Debugging
System Programming
Network Programming
Linux Threads
Kernel Programming
Kernel Debugging
Linux Device Drivers

Best Reference Books

Computer Science Books
Algorithm & Programming Books
Electronics Engineering Books
Electrical Engineering Books
Chemical Engineering Books
Civil Engineering Books
Mechanical Engineering Books
Industrial Engineering Books
Instrumentation Engg Books
Metallurgical Engineering Books
All Stream Best Books

Questions and Answers

1000 C Questions & Answers
1000 C++ Questions & Answers
1000 C# Questions & Answers
1000 Java Questions & Answers
1000 Linux Questions & Answers
1000 Python Questions
1000 PHP Questions & Answers
1000 Hadoop Questions
Cloud Computing Questions
Computer Science Questions
All Stream Questions & Answers

India Internships

Computer Science Internships
Instrumentation Internships
Electronics Internships
Electrical Internships
Mechanical Internships
Industrial Internships
Systems Internships
Chemical Internships
Civil Internships
IT Internships
All Stream Internships

About Sanfoundry

About Us
Copyright
Terms
Privacy Policy
Jobs
Bangalore Training
Online Training
Developers Track
Mentoring Sessions
Contact Us
Sitemap
© 2011 Sanfoundry. All Rights Reserved.