Showing posts sorted by relevance for query object oriented. Sort by date Show all posts
Showing posts sorted by relevance for query object oriented. Sort by date Show all posts

Wednesday, 1 August 2018

Object Oriented Analysis and Design Importance - Important QnA


Text Book(s)
T1 Larman, C., Applying UML and Patterns, Pearson Education, 3rd Ed., 2005.
T2 Erich Gamma et al., Design Patterns: Elements of Reusable Object-Oriented Software, 1994

https://www.waseian.com/2018/08/object-oriented-analysis-and-design.htmlhttps://www.waseian.com/2018/08/object-oriented-analysis-and-design.html

Question 3)(i)
Online Mobile Recharge
Problem Statement:
   The event study 'Online Mobile Recharge' provides us the data about all the mobile service providers. This application offers us the complete info regarding any mobile service provider in terms of their policies, choices, profits, etc. Supposing, any Airtel buyer needs to have the info of all the schemes and services provided by the company, he/she can have the info and according to his suitability, he can recharge the mobile from the same application. The major benefit of this proposed system is to have the renewing facility of any service provider under the same roof.
End users
Service Provider:
  Service Provider is the one who is nothing but the mobile service provider like all the corporations who are giving the mobile connections come under this module. The functionality of this module is to mark the mobile renewing of their company based on the availability of balance in the admin account. Request derives from the user and it is going to be proved at the admin for the availability of balance and then the appeal is forwarded to the service provided to make the mobile recharge.
Third-party System Administrator:
The administrator is the one who observes all users and user dealings. Admin also observers all the Service Providers, all the user accounts, and amounts salaried by the user and amount salaried to Service providers. When the appeal given by the user admin checks the available balance in the user account then request is advanced to the Service Provider from where user request gets handled. Admin has the complete info related to the user and all the info related to the patterns and other info of dissimilar recharge coupons provided by the Service Providers. All the data is preserved at the Admin level. Admin is having the privileges to limit any user.
User:
  There are 2 categories in the user Module:
Registered User
Visitor
  Any person who wants to use the services of Online Mobile Recharge at any time from anywhere they should get listed in this application. After getting listed user can recharge the mobile at any time and from anywhere. Guest is the one who visits the Online Mobile Recharge application and has the complete data related to the Service Providers and can make the mobile recharge by entering the bank facts or by giving the credit card details.
Draw a Collaboration Diagram for the above case study clearly showing the Classes, Numbering of communications and relationships.
Answer)

IMPORTANT NOTE: In the question, only Collaboration Diagram is asked. Other diagrams are for reference.
Use-Case Diagram
Actors vs Use Cases:
User
•Register.
•Recharge.
•Select Payment Gateway.
•Select Service Provider.
•Make payment.

Third Party Administrator
•Forward User request to Service Provider.
•Track Complaints.

Third Party Server/ Database
•Authenticate the Registered users.
•Maintain the Log.

Service Provider
•Recharge the user requested either directly or through the third party system.
•Provide various plans to the user.

Online Mobile Recharge UML Use case Diagram:


Sequence Diagram
Sequence Diagram for a user to recharge his account through the third-party site:

Collaboration Diagram
Collaboration diagram for a user to recharge his account through the third-party site:

Class Diagram
Classes Identified:
  • User: Registered, Visitor
  • Third Party System Administrator
  • Third Party Server/ Database
  • Service Provider
  • Direct or Non- Third Party User (Direct access through Service Provider Site)

Activity Diagram
Activities:
  • User login and authentication for the Registered user.
  • Forward the request to service provider if logged in as an Administrator.
  • Enter service provider site for a direct user.
  • Enter recharge amount.
  • Select Payment Gateway.
  • Login and authenticate Bank Account.
  • Make payment.
  • Check for the recharge processed successfully or not.
Question3.(ii) 
Draw a UML Activity diagram clearly showing the interaction of Customer, Customer Browser, Google App, Google ACS Service, Identity provider for the Google Apps described below:
 Single Sign-On (SSO) for Google Apps
Purpose:
  An example of a UML activity diagram which describes Single Sign-On (SSO) to Google Apps for customers using some hosted Google application, such as Gmail.
Summary:

When a user tries to use some hosted Google app, such as Gmail, Google generates a (SAML) verification request and sends a redirect request back to the user's browser. Redirect points to the exact identity provider. SAML verification request contains the encrypted URL of the Google application that the user is trying to reach.
  Google acts as a service provider with services such as Gmail or Start Pages. Partner companies work as identifiers and control other passwords, passwords, and passwords used for identifying, authenticating and authorizing users for Google's Web applications. Each partner also provides Google with its SSO URL as well as a public key that Google will use to verify SAML
responses.

Answer: UML Activity diagram:
UML describe the structure, boundary, and behavior of the system as well as objects within it. It's not a programming language but there are tools which can be used to generate code in various languages.

Question4)(i) 
Factory Pattern: Explain through examples.
Answer )
Factory Method is to building objects as Template Method is to applying an algorithm. A super class identifies all standard and common behavior (using pure simulated "placeholders" for creation steps) and then delegates the creation details to sub classes that are delivered by the client.
  Factory Method creates a design more customizable and only a tiny more difficult. Other design patterns need new classes, while the Factory Method only requires a new process. Creating an object often requires difficult processes not appropriate to include within a composing object.
  The factory method design pattern handles these problems by defining a separate method for making the objects, which sub classes can then overrule to specify the derived type of product that will be formed.
Example:
The factory method allows an interface to create objects but the sub-classes can select which groups are immediate. Injection molding presses display this pattern. The manufacturers of plastic toys process plastic molding powder and inject plastic into the mold of desired shapes.
  The class of toy (car, action figure, etc.) is determined by the mold.

Question4)(ia)
How does the Factory Method Pattern fit in with other patterns/methods?
Answer ) 
  Factory classes are useful when you need a complicated process for building the object when the creation need a reliance that you do not want for the real class when you need to construct different objects etc.
  It is a good idea to use factory methods inside the object when:
  • Object's class doesn't know what exact sub-classes it has to create
  • Object's class is designed so that the objects it creates were specified by sub-classes
  • Object's class delegates its duties to auxiliary sub-classes and doesn't know what exact class will take these duties
  • The Factory Method allows these other patterns to defer instantiation to sub classes. One practices the Factory way to defer responsibility to sub class objects. 
Question4)(ib)
Factories increase cohesion. What is their rationale for saying so? 
Answer)
Cohesion means 'sticking together' and a factory is a method, an object, or anything else that is used to instantiate other objects. It helps to keep together both the functionality and the instruction that determines which objects should be built and/or managed under different circumstances.

Question4)(ic) 
Factories also help in testing. In what ways is this true?
Answer )
  • The using objects should act in exactly the similar way with any set of derivatives present. It should not test every possible combination, because it can test each piece individually. No matter how they are combined, the system will work in the same manner.
  • The advantage is that it can yield the same instance multiple times, or can return a subclass rather than an object of that exact type.
Question4.(ii)
Observer Pattern: Explain through examples
Answer)
  • Observer pattern (also called publishing-subscribed pattern) is a behavioral design pattern that defines multiple relationships between objects when an object changes its position, all dependent objects are notified and updates automatically.
  • Observer pattern is the basic standard in decoupling - separating objects which depend on each other.
Example:
  • The observer pattern is used in the model view controller (MVC) architectural pattern. In MVC observer pattern is used to decouple the model from the view. View symbolizes the Observer and the model is the Observable object.
  • Event management - For this scenario, the Observer patterns are widely used. Swing and DotNet are widely fulfilling the events mechanism.
Question4)(iia)
What is the intent of the Observer pattern? Under what circumstances should an Observer pattern not be used?
Answer)
The intent of the Observer Pattern:
  • Defines a one-to-many dependency between objects so that when one object changes state, all its dependents are notified and updated automatically.
  • Is should be used when there is a change of a state in one object must be reflected in another object without keeping the objects tight coupled.
  • It is also used when the framework we are writing needs to be enhanced in the future with new observers with minimal changes.
  • When a change to one object requires the change of a variable number of other objects (not necessarily known at compile-time).
  • When an object should be able to talk to another object, but you don't want them essentially dependent on each other.
Question4)(ii)
One example of the Observer pattern from outside of software is a radio station: It broadcasts its signal; anyone who is interested can tune in and listen when they want to. Give another example from "real-life" with explanation?
Answer)
  • Split-wise group: If anyone adds or updates an entry in the group for any amount- all members of the group get a notification regarding the update done.
  • Facebook: If one follows a post, then it is added to the observer and another comment is received on the same post, send a notification to all other supervisors. It is the same as twitter or any other social media.
  • Cricket Display: The scoreboard display, displays the average score etc information as per the current status of the match. Whenever any total score changes, the display board gets refreshed. So, the display board is the observer here and Subject is the panel sending the current score status to the board.
Question5.(a)
Name three Design Patterns which uses the Singleton design pattern in their Implementation.
Answer)
Singleton design pattern is used in below three implementations.
  • Abstract Factory: In an abstract factory pattern, an interface is responsible for making a factory of related items without clearly specifying its classes.
  • Builder: Builder pattern builds a complex object using simple objects and using a step by step approach.
  • Prototype: This design involves applying a sample interface which speaks to create a replica of the current object. 
Question5.(b)
When singleton pattern usage is unnecessary?
Answer)
  • Most of the time it is not unnecessary.
  • When it's easier to permit an object resource as a reference to the objects that need it, rather than letting objects access the resource globally. 
  • Everything that can be done with a singleton can be done with a class variable or method.
  •  And if something has to be unique, it has to belong to the class and not to the objects.
  • Therefore, good or bad, singletons are conceptually wrong.
Question5.(c)
Compare the operation of Adapter and Bridge Design Patterns.
Answer)
Adapter Design Pattern
  • The adapter makes things work after they're designed.
  • The Adapter pattern is more about getting your existing code to work with a newer system or interface.
  • It is useful to work with two incompatible interfaces.
  • Example: A case of the rd reader which acts as an adapter between the memory card and a laptop. You plugin the memory card into card reader and card reader into the laptop so that memory card can be read via laptop
Bridge Design Pattern
  • Bridge makes them work before they are.
  • The Bridge pattern lets you have another implementations of an algorithm or system.
  • It decouples an abstraction from its implementation and both can differ individually.
  • Example: A circle can be drawn in various different colors using the identical abstract class method but diverse bridge implementer classes.
Question5.(d)
Why Decorator Design Pattern is better than Adapter Design Pattern while handling Interfaces?
Answer)
  • Adapter pattern alters interface, Decorator pattern doesn't alter interface, it just implements the unique object's interface, so that it can be passed to a method, which receives an original object.
  • Adapter delivers a different interface to its subject. Decorator delivers an enhanced interface.
  • An adapter is destined to change the interface of an existing object. Decorator enhances another object without changing its interface. A decorator is thus more transparent to the application than an adapter is. As a significance, Decorator supports recursive composition, which isn't possible with pure Adapters
Question5.(e) 
How does the Façade and Adapter Design Pattern make use of Interfaces?
Answer:
  • Facade describes a new interface, whereas Adapter reprocesses an old interface.
  • Facade design pattern neither translates interfaces nor adds new functionality, instead it just deliver simpler interfaces. So instead of client nonstop accessing single components of a system, it uses facade. Facade design pattern agrees client interact with the difficult system with a much simpler interface and less work
  • The facade will then call individual components.

Sunday, 27 May 2018

Object Oriented Analysis and Design - MCQS



Question
AC001. Which of the following does not belong to OOAD?
Select one:
a. Swim lane diagram
b. Fully dressed use case
c. State transition diagram
d. Domain model

The correct answer is: Fully dressed use case

Question 
CA019 A boundary class is an analysis class that represents _____.
Select one:
a. the user interface or Presentation layer of a system
b. the interface between the client and middleware tiers in a system
c. an intermediary or interface to something outside the system
d. an API that is supplied by a third-party vendor and used to integrate with an external system

The correct answer is: an intermediary or interface to something outside the system

Question
STQ102 Which phase of unified process model focuses over system conversions and user training?
Select one:
a. Inception
b. Construction
c. Elaboration
d. Transition

The correct answer is: Transition

Question 
JNQ109. When acceptance testing is performed in Agile development?
Select one:
a. At the end of each iteration
b. After system is ready
c. Daily
d. On request of customer

The correct answer is: At the end of each iteration

Question 
SKQ106 An object is considered an external entity in object-oriented modelling
Select one:
a. its attributes change during operation of the system
b. it has no attributes relevant to the system
c. its attributes are invariant during operation of the system
d. it has numerous attributes

The correct answer is: its attributes are invariant during operation of the system

Question 
CA009 Which of the following is a technique for hiding the internal implementation details of an object?
Select one:
a. Abstraction
b. Encapsulation
c. Inheritance
d. Polymorphism

The correct answer is: Encapsulation

Question 
CA017 What are the components of a structured class?
Select one:
a. ports, roles, and threads
b. roles, ports, and connectors
c. attributes, roles, and ports
d. messages, connectors, and roles

The correct answer is: roles, ports, and connectors

Question 
MDQ102 The three types of relationships use cases have in a use case diagram include?
Select one:
a. Elaboration, generalization, boundarization
b. Inclusion, representation, realization
c. Extension, representation, elaboration
d. Extension, inclusion, and generalization

The correct answer is: Extension, inclusion, and generalization

Question 
VVKQ105 Attributes are assigned value
Select one:
a. When methods are invoked
b. When instances of objects are defined
c. When operations are performed on an object
d. When classes are identified

The correct answer is: When instances of objects are defined

Question 
JNQ104. Which of the following UML diagrams has a static view?
Select one:
a. Activity
b. State chart
c. Collaboration
d. Use case

The correct answer is: Use case

Question 
CA035 The designing phase includes the following activities, EXCEPT
Select one:
a. Designing the user interface
b. Designing the application architecture
c. Designing the project team
d. Designing and integrating the network

The correct answer is: Designing the project team

Question 
CA030 A class is
Select one:
a. template for objects of a particular type
b. a class of objects
c. a classification of objects
d. a group of objects

The correct answer is: template for objects of a particular type

Question 
SKQ103 What type of core-relationship is represented by the symbol in the figure below?
relationship symbols

Select one:
a. Dependency
b. Aggregation
c. Association
d. Generalization

The correct answer is: Aggregation

Question 
AE002) Attach additional responsibilities to an object dynamically.It provides a flexible alternative to subclassing for extending functionality.
Select one:
a. Adapter
b. Composite
c. Chain of responsibility
d. Decorator

The correct answer is: Decorator

Question 
AE003) Define a family of algorithms, encapsulate each one, and make them interchangeable. It lets the algorithm vary independently from clients that use it.
Select one:
a. Template method
b. Strategy
c. Decorator
d. Visitor

The correct answer is: Strategy

Question 
UMQ103. Which of the following process model is best suited for developing object-oriented systems?
Select one:
a. Unified Process model
b. Prototype model
c. Waterfall model
d. Spiral model

The correct answer is: Unified Process model

Question 
CA039 Which of the following relationships are used in a use-case diagram?
Select one:
a. Communication
b. ALL given choices
c. Extends
d. Uses

The correct answer is: ALL given choices

Question 
SHQ105. Which of these are the heuristics ?
Select one:
a. Stick to binary associations
b. Name classes, attributes, and roles with noun phrases
c. All of the mentioned
d. Name operations and associations with verb phrases

The correct answer is: All of the mentioned

Question 
CA023 The essential characteristics of an object that distinguish it from all other kinds of objects and thus provide crisply defined conceptual boundaries, relative to the perspective of the viewer is called
Select one:
a. Encapsulation
b. Hierarchy
c. Modularity
d. Abstraction

The correct answer is: Abstraction

Question 
JNQ103. Product backlog is prioritized by
Select one:
a. Product owner
b. Scrum master
c. All the given options
d. Scrum team

The correct answer is: Product owner

Question 
CA008 constructor operation does which of the following?
Select one:
a. Updates an existing instance of a class
b. Creates a new instance of a class
c. Deletes and existing instance of a class
d. All of the given choices.

The correct answer is: Creates a new instance of a class

Question 
VIDQ105 The most common way to depict the functional model is by using the______________?
Select one:
a. Diagrams?
b. Tables?
c. Flowcharts?
d. DFD!

The correct answer is: DFD!

Question 
CA015 During analysis an architect is concerned about _____.
Select one:
a. implementation
b. behavioral
c. technology
d. deployment

The correct answer is: behavioral

Question 
CA027 Inheritance in object-oriented modelling can be used to
Select one:
a. generalize classes
b. specialize classes
c. generalize and specialize classes
d. create newclasses

The correct answer is: generalize and specialize classes

Question.
A tagged value extends the --------------- of a UML building block.
Select one:
a. Definition
b. Properties
c. Vocabulary
d. Semantics

Answer: Properties

Question.
The object act and react in state change and message passing, this is knows as ---------
Select one:
a. State of an object
b. None of the given options
c. Behaviour
d. Parameter passing

Answer: Behaviour

Question.
Which of the following is not one of the elements of a design pattern?
Select one:
a. Context
b. Problem
c. Solution
d. Environment

Answer: Solution

Question.
Which of the following is not true
Select one:
a. Controller is a kind of Facade pattern
b. A controller object can handle multiple system events
c. A controller object helps identify out of sequence events
d. Controller pattern is used to control data

Answer: Controller pattern is used to control data

Question.
Given the following scenario: You want to create families of related objects, to be used interchangeably to configure you application. What is the most appropriate GoF pattern to use?
Select one:
a. Observer
b. Builder
c. Chain of Responsibility
d. Abstract Factory

Answer: Abstract Factory

Question.
______ provide an interface for creating families of related or dependent objects without specifying their concrete classes.
Select one:
a. Fabrication
b. Abstracct Factory
c. Singleton
d. Factory Method

Answer: Abstract Factory

Question.
Which of the following is the first step in user interface design process?
Select one:
a. prototype the dialogue and the user interface
b. chart the dialogue
c. none of the given options
d. test the dialogue
e. re-design the dialogue

Answer: chart the dialogue

Question.
Which of the following are the efforts to the Systems Construction Phase?
Select one:
a. documentation
b. redesigned business processes
c. physical design specifications
d. design prototypes
e. all of the given options.

Answer: all of the given options

Question.
A package diagram consists of the following?
Select one:
a) Package symbols
b) Groupings of Use cases, classes, components
c) Interface
d)  both a and b

Answer:  both a and b [According to Bits- Answer is Interface but as per other sources answer is both a and b ]

Question.
Which of the following pattern creates object without revealing the creation logic to the user and refer to newly formed object using a common interface?
Select one:
a. Factory Pattern
b. Transfer Object Pattern
c. Abstract Factory Pattern
d. Singleton Pattern

Answer: Factory Pattern

Question.
Which of the following is not true
Select one:
a. High coupling leads to high change impact
b. High coupling makes it harder to reuse
c. High coupling makes the design easy to understand
d. High coupling means higher reliance on other objects

Answer: High coupling makes the design easy to understand

Question.
Which of the following is(are) the deliverables of the Systems Implementation phase?
Select one:
a. operational system
b. physical design specification
c. functional system
d. training materials

Answer: operational system

Question.
Which of the following are the primary inputs into the job of writing and testing fresh programs?
Select one:
a. both A and C
b. B database structure
c. A programming plan
d. D integration requirements
e. C test data

Answer: both A and C

Question.
Which of the following instruction-driven interfaces allows a customer to enter a question about a given product?
Select one:
a. mnemonic
b. textual
c. language-based
d. natural language
e. none of the given options

Answer: natural language

Question.
Most user interface design patterns fall with in one of ____ categories of patterns.
Select one:
a. 10
b. 5
c. 25
d. 100

Answer: 10

Question.
Which design pattern defines one-to-many dependency among objects?
Select one:
a. Facade Pattern
b. Observer pattern
c. Singleton pattern
d. Factory method pattern

Answer: Observer pattern

Question.
In a System sequence diagram, life lines are depicted as
Select one:
a. Bars
b. Horizontal arrows from actors to system.
c. Object classes
d. Dashed vertical lines extended downwards

Answer: Dashed vertical lines extended downwards

Question.
Which diagram depicts classes that correspond to software components that are used to build the software application?
Select one:
a. design class
b. state transition
c. sequence
d. none of the given options
e. state machine

Answer: design class

Question.
The messages of a Use case can be graphically depicted using
Select one:
a. Activity diagram
b. System sequence diagram
c. Composite diagram
d. Logical use case

Answer: System sequence diagram

Question.
Describe an interface for making an object, but let the subclasses decide which class to instantiate. It lets the instantiation vary to subclasses.
Select one:
a. Prototype
b. Builder
c. Factory Method
d. Abstract Factory

Answer: Abstract Factory

Question.
The recurring aspects of designs are called?
Select one:
a. Patterns
b. Structures
c. Documents
d. Methods

Answer: Patterns

Question.
MVC is a three layer architecture that contains a
Select one:
a. model, view, and controller
b. machine, view, content objects
c. machine, view, controller
d. model, view, and content objects

Answer: model, view, and controller

Question.
Subtypes must be substitutable for their base types, is suggested by
Select one:
a. LSP
b. OCP
c. DIP
d. SRP

Answer: LSP

Question.
Which of the following UML diagrams has a static view?
Select one:
a. State chart
b. Collaboration
c. Activity
d. Use case

Answer: Use case

Question.
Physical relationship between software components and the hardware in the delivered system can be shown by which diagrams?
Select one:
a. Deployment diagram
b. Class diagram
c. Domain model
d. Network diagram
e. Component diagram

Answer: Deployment diagram

Question.
A link is a subset of
Select one:
a. Realization
b. Generalization
c. Dependency
d. Association

Answer: Association

Question.
The process of grouping the elements of an abstraction that constitute its structure and behavior is called as
Select one:
a. Encapsulation
b. Entity Abstraction
c. Modularity
d. Hierarchy

Answer: Entity Abstraction

Question.
A class is divided into which of these compartments?
Select one:
a. Name Compartment
b. All of the mentioned
c. Attribute Compartment
d. Operation Compartment

Answer: All of the mentioned

Question.
Which of the following is(are) the UML level of visibility?
Select one:
a. both B and C
b. all A and B and C
c. A persistent
d. B public
e. C protected

Answer: both B and C

Question.
Which model depicts the image of a system that an end user creates in his or her head?
Select one:
a. design model
b. user model
c. system perception
d. system model

Answer: system perception

Question.
What is main benifit of Indirection?
Select one:
a. Lower cohesion
b. More number of small classes
c. Higher copuling
d. Lower coupling

Answer: Lower coupling

Question.
Which one of the tests is performed on a subset of a program?
Select one:
a. program test
b. unit test
c. stub test
d. subset test
e. system test

Answer: stub test

Question.
Which of these depicts the true definition for the UML extensions?
Select one:
a. A property is a characteristic of the entity designated by a model element
b. A constraint is the statement that must be true of the entities designated by one or more model elements
c. A stereotype is a UML model element given more specific meaning
d. All of the mentioned

Answer: All of the mentioned

Question.
Which of the following is the last phase of the Systems Construction phase?
Select one:
a. none of the given options
b. build and test databases
c. build and test networks
d. write and test new programs
e. prepare conversion plan

Answer: write and test new programs

Question
Which of the following is(are) the task(s) of the Systems Conversion phase?
Select one:
a. prepare conversion plan
b. convert to new system
c. build and test networks
d. train users
e. none of the given options

Answer: build and test networks

Question.
Which design pattern ensures that only one object of particular class gets created?
Select one:
a. Observer Pattern
b. Strategy Pattern
c. Singleton Pattern
d. Facade Pattern

Answer: Singleton Pattern

Question.
Which of the following is not true regarding Facade pattern
Select one:
a. Provides simpler interface
b. Hides complexity
c. Exposes implementation details
d. Improves maintainability

Answer: Exposes implementation details

Question.
Which kind of menu is planned primarily for expert users as there is no visual clue to its presence?
Select one:
a. options Cascading
b. pull-down
c. Iconic
d. Pop-up
e. none of the given

Answer: Pop-up

Question.
Which of the tests is a last system test executed by end users using real data over an extended period of time?
Select one:
a. final test
b. parallel test
c. systems acceptance test
d. complete test
e. none of the given options

Answer: systems acceptance test

Question.
Which GRASP pattern helps to find out answer for "Who should be responsible for creating a new instance of some class?"?
Select one:
a. Creator
b. Fabircation
c. Adapter
d. Protected Vairation

Answer: Creator

Question.
Define one to many dependency among objects so that after one object changes state, all its dependents are alerted and updated automatically.
Select one:
a. Mediator
b. Chain of responsibility
c. Event Notification
d. Observer

Answer: Observer

Question.
A general purpose mechanism for organizing elements into groups
Select one:
a. Package
b. Component
c. Node
d. Class

Answer: Package

Question.
A Patter language
Select one:
a. None of the given options
b. Is implemented using hyper text
c. Encompasses a collection of patterns
d. Resembles the structure of natural language

Answer: Encompasses a collection of patterns

Question.
A class is divided into which of these compartments?
Select one:
a. Name Compartment
b. Operation Compartment
c. All of the mentioned
d. Attribute Compartment

Answer: All of the mentioned

Question.
In object oriented approach, objects are
Select one:
a. Discrete
b. Both Identical and Discrete
c. None
d. Identical

Answer: Discrete

Question.
A Relationship between use cases and collaborations can be viewed as
Select one:
a. Association
b. Generalization
c. Realization
d. Link

Answer: Realization

Question.
The person generally responsible for the program design strategy, standards, and construction is called a(n):
Select one:
a. systems analyst
b. backup chief programmer
c. chief programmer
d. network designer
e. program librarian

Answer: chief programmer

Question.
Which of these framework events are not normally associated with the user interface design processes?
Select one:
a. user and task analysis
b. interface validation
c. interface construction
d. cost estimation

Answer: cost estimation

Question.
When we want to replace a class with another class which is more efficient but has a different interface, which pattern comes handy?
Select one:
a. Strategy
b. Composite
c. Facade
d. Adaptor

Answer: Adaptor

Question.
The humans cope with the complexity in a fundamental way using ________
Select one:
a. Object
b. Class
c. Encapsulation
d. Abstraction

Answer: Abstraction

Question.
Which of the below instruction-driven interfaces is constructed everywhere a broadly known command language that can be used by the customer to invoke actions?
Select one:
a. a command-control syntax
b. none of the given options
c. a language-based syntax
d. a mnemonic syntax
e. a natural language syntax

Answer: a language-based syntax

Question.
An observer pattern does not involve
Select one:
a. Observing changes
b. Notifying changes / events to observers
c. Keeping track of all observers
d. Analyzing observers

Answer: Analyzing observers

Question.
Which of the following is NOT a tool that can be used for discovering class behaviors and responsibilities?
Select one:
a. class diagram
b. none of the given options
c. sequence diagram
d. CRC card
e. interface diagram

Answer: interface diagram

Question.
Which mechanism is applied to use a design pattern in an OO system?
Select one:
a. None of the mentioned
b. Composition
c. All of the mentioned
d. Inheritance

Answer: All of the mentioned

Question.
Ensure a class has only one instance, and provide a global access point to it.
Select one:
a. Proxy
b. Flyweight
c. Singleton
d. Single Class Factory

Answer: Singleton

Question.
Which design pattern would decide mismatched interfaces or provide a steady interface to similar components with different interfaces?
Select one:
a. Mediator
b. Visitor
c. Adapter
d. Controller

Answer: Adapter

Question.
Which among these are the rules to be considered to form Class diagrams?
Select one:
a. Attributes and operations can be listed at any suitable place
b. Compartment can be in random order
c. None of the mentioned
d. Class symbols must have at least a name compartment

Answer: Class symbols must have at least a name compartment

Question.
Which of the following is(are) human engineering guideline(s)?
Select one:
a. The system user should always be aware of what to do next.
b. Anticipate the errors users might make.
c. All of the given options
d. Users should not be allowed to proceed without correcting an error.
e. Use display attributes sparingly.

Answer: All of the given options

Question.
Which of the following is not included on a design class diagram?
Select one:
a. navigability
b. dependencies
c. methods with parameters
d. classes
e. entities

Answer: entities

Question.
The view which addresses the configuration management of the system’s releases.
Select one:
a. Implementation
b. Use case
c. Design
d. Process

Answer: Use case

Question.
Given classes A and B, which of the following is not a common type of coupling in object-oriented software?
Select one:
a. A invokes methods of B
b. A method parameter or local variable in A references B
c. A has an instance variable that refers to B
d. None of the given options
e. A is a direct or an indirect subclass of B

Answer: A is a direct or an indirect subclass of B

Question.
Which of the following is important in user interface design?
Select one:
a. D test the system on a limited number of actual users
b. both A and B
c. A practice iterative design
d. C use automated tools in designing user interface
e. B understand your users and their tasks

Answer: both A and B

Question.
Which one of the following mechanisms is used to implement generalization?
Select one:
a. Encapsulation
b. Abstraction
c. Polymorphism
d. Inheritance

Answer: Inheritance

Question.
With respect to the tone of a dialogue, which of the following should not be used?
Select one:
a. use simple, grammatically correct sentences
b. use abbreviations so that users can read them more quickly
c. be consistent in the use of terminology
d. use simple term
e. use appropriate action verbs

Answer: use abbreviations so that users can read them more quickly

Question.
Which of the following diagram is time oriented?
Select one:
a. Collaboration
b. Activity
c. Sequence
d. None of the given options

Answer: Sequence

Question.
Who will test the system in agile development?
Select one:
a. Business Analyst
b. Developer
c. All the given options
d. software tester

Answer: All the given options

Question.
Arrange the following scrum practices according to the order in which they are carried out. 1. Sprint 2. Daily scrum meet 3. Sprint review meet 4. Sprint retrospective meet 5. Sprint planning
Select one:
a. 5 1 2 3 4
b. 5 4 2 3 1
c. 5 1 2 4 3
d. 5 2 1 3 4

Answer: 5 1 2 3 4

Question.
The fact that  similar operation may be applied to two or more classes is named what
Select one:
a. Polymorphism
b. Encapsulation
c. Multiple classification
d. Inheritance

Answer: Polymorphism

Question.
Multiplicity is the same as what concept for an ERD?
Select one:
a. Attribute
b. Entity
c. Cardinality
d. Relationship

Answer: Cardinality

Question.
During Use Case Analysis, which UML diagrams should you use when allocating use-case behavior to classes?
Select one:
a. sequence and communication diagrams
b. sequence and activity diagrams
c. class and composite structure diagrams
d. use-case and activity diagrams

Answer: sequence and communication diagrams

Question.
The object-oriented development life cycle is which of the following?
Select one:
a. Analysis, design, and implementation steps in the given specific order and using multiple iterations.
b. Analysis, design, and implementation steps in the given order and using the steps not more than one time.
c. Analysis, design, and implementation steps in any random order and using multiple iterations.
d. Analysis, design, and implementation steps in any order and using the steps no more than one time.

Answer: Analysis, design, and implementation steps in the given order and using multiple iterations.

Question.
Noun-Phrase Approach and CRC Approach are used to identify
Select one:
a. collaborators
b. classes
c. objects
d. Use cases

Answer: classes

Question.
Which of the following statements is true about use-case realization?
Select one:
a. It is created by the System Analyst.
b. It lists the different steps performed by a use-case.
c. Its creation is part of the Requirements discipline.
d. It provides traceability from Analysis and Design back to requirements.

Answer: It provides traceability from Analysis and Design back to requirements.

Question.
The vertical dimension of a sequence diagram represents
Select one:
a. messages
b. time
c. objects
d. lines

Answer: time

Saturday, 4 August 2018

OOAD - Case Studies

Case Studies for Exam Preparation:

Question.
Give two examples of information about a problem domain that can be captured in UML Activity Diagrams, and two ways in which these diagrams can be useful for Requirements Analysis.

Answer:
Examples of info represented:
  1. Activity diagrams show how tasks depend on one another in a business process. For example, they can show that some tasks can be carried out in parallel, while other tasks have to be synchronized so that one doesn’t start until the tasks on which it depends are complete.
  2. Activity diagrams show the flow of activity between different business units, using swimlanes. In other words, they show how different business units must work together to carry out some process.
Activity diagrams are useful in requirements analysis:
  1. To understand the existing business processes, showing how an organization currently solves the problem.
  2. For sketching proposed solutions to the stakeholders to show how a proposed solution would change the way in which the organization works.
Question.
Draw a UML Class Diagram representing the following elements from the problem domain for a hockey league. A hockey league is made up of at least four hockey teams.  Each hockey team is composed of six to twelve players, and one player captains the team. A team has a name and a record.  Players have a number and a position.  Hockey teams play games against each other.  Each game has a score and a location.  Teams are sometimes lead by a coach. A coach has a level of accreditation and a number of years of experience, and can coach multiple teams.  Coaches and players are people, and people have names and addresses. Draw a class diagram for this information, and be sure to label all associations with appropriate multiplicities.

Answer:
http://www.waseian.com/2018/08/object-oriented-analysis-and-design_4.html

Notes: Captain could alternatively be represented as a second, named association between player and team. Assumptions: each player only plays on one team, each captain only captains one team, each team only plays in one league.

Question.
Do you know that it costs a lot of money to get a ’Certified Java Programmer’ certificate? It could cost you thousands of euros. Let’s say we will create a browser-based training scheme to support people to get ready for a certification exam. A user can appeal a quiz for the system. The system chooses a collection of questions from its database, and constitutes them together to create a quiz. It charges the user’s answers, and provides hints if the customer desires it.
Additionally, we also have professors who deliver questions and tip-offs. And similarly examinators who must declare problems to make sure they are not also trivial, and are sensical. Draw a use case diagram to create this classic system. Work out more or less of your use cases. As we don’t have real stake holders now, you are allowed to fill in facts you think is sensical for this case.


Answer:
http://www.waseian.com/2018/08/object-oriented-analysis-and-design_4.html

We’ll assume multiple choice quiz.
Use case: Make quiz.
Primary actor: User
Secondary actors: Pre-condition: The system has at least 10 questions.
Post-condition:
Main flow:
1. The use-case is activated when the user requests it.
2. The user specifies the difficulty level.
3. The system chooses 10 questions, and proposes them as a quiz to the user.
4. The system starts a regulated timer.
5. For every question: 5a. The user selects an answer, or skip. [Extension point]
6. If the user has done the quiz, or the timer turns out, the quiz is finished.
Use case: Provide hint
Primary actor: User
Secondary actors: Pre-condition: The user requests for a hint. Post-condition:
Main flow:
1. The system provides a hint. The verbosity of the hint is determined by the difficulty level set previously by the user.
2. Return to to Make quiz’ main flow.

Question.
Suppose we want to develop software for an alarm clock. The clock shows the time of day. By means of buttons, the user can customize the hours and minutes fields independently, and choose among 12 and 24-hour display. It is possible to set one or two alarms. When an alarm fires, it will sound some noise. The user can turn it off, or choose to ’snooze’. If the user does not answer back at all, the alarm will turn off itself later after 2 minutes. ’Snoozing’ means to turn off the sound, but the alarm will ring again after few minutes of delay. This ’snoozing time’ can be pre-adjusted.
Identify the top-level functional requirement for the clock, and model it with a use case diagram.

Answer:
http://www.waseian.com/2018/08/object-oriented-analysis-and-design_4.html
Use case: Snooze.
Primary actor: User
Secondary actors: Pre-condition: An alarm is firing.
Post-condition: Main flow:
1. The use-case is activated when the user hits the snooze button.
2. The alarm is turned off.
3. Wait for snooze time.
4. Include use case ’Make sound’

Use case: Make sound
Primary actor: System
Secondary actors: Pre-condition:
Post-condition:
Main flow: The use case starts when it is called.
What it does is to just make some noisy sound.

Question.
Draw an UML state diagram corresponding to the computer keyboard state machine. Also draw an extended state diagram to model the behavior of the keyboard which depends on the number of characters typed on it so far and that after, say, 1,000 keystrokes, the keyboard breaks down and enters the final state.(Assume normal function of the key board of a personal computer which you use regularly)

Answer:
http://www.waseian.com/2018/08/object-oriented-analysis-and-design_4.html

state diagram representing the computer keyboard state machine

Question.
The Gang of Four says that the intent of the Adapter pattern is to "change the interface of a class into another interface that the clients expect. Adapter lets classes work together with each other that could not otherwise as of mismatched interfaces."
What does this imply? Give an example.

Answer:
This says that I have a class that desires to interact with a different class through a assured set of method calls. When the interface of that different class does not offer these method calls, the Adapter creates up a fresh interface to do the interpretation. For instance a reporting application that wishes to pull data from two diverse database systems. My application needs to use a "GetDate" method to attract info from the database, but the database systems don't deliver that through their API. Therefore I write an Adapter that gives the GetDate method in its interface and is accountable for pulling the data appropriately.

Question.
The Façade pattern and the Adapter pattern may seem similar. What is the essential difference between the two? Explain with an example.

Answer:
In both circumstances, there is a pre-existing class or classes that have functionality needed. So for both cases, I build an intermediate object with interfaces that my system needs to use and that has duty for mapping that to the pre-existing class. Equally Façade and Adapter are wrappers. The Adapter is used when our client previously has predefined interfaces that it believes to use and when I want to practice polymorphism.

Monday, 23 July 2018

Brief about IRCTC Proposed System - OOAD

Topic: IRCTC
Subject: OOAD
Task: Assignment
Subject: Object Oriented Analysis and Design
Prepared by: Srinivas

REQUIREMENT ANALYSIS

Objective and scope of the Project:
   
The objective of the Project
In order to overcome the drawback of the current IRCTC website, we have tried to offer passenger a growing facility for booking tickets which is not provided by IRCTC.

The scope of the Project
  • To understand the current system and implement the software with the current system.
  • To execute the software without any problems or error without creating any complications.
  • Automating the set.
PROPOSED SYSTEM
  • The proposed system is fully computerized, making ticket booking easier and cheaper.
  • It provides the user with more options for traveling.
  • According to the user's trust, you can book tickets between the source and the destination by breaking the journey in two half.
  • The price is calculated on the basis of the end to end distance rather than calculating for two different transaction.
  • The second part of the journey should start within 48 hours of the first part of the journey. The ticket for the second part of the trip is invalid without the first part of the trip.
  • A senior citizen is provided with discount only if they have valid ID proof of their age. 
  • The ticket can be printed and downloaded in pdf format.
 UML DIAGRAM:

https://www.waseian.com/2018/07/brief-about-irctc-proposed-system-ooad.html

USE CASE DIAGRAMS:

https://www.waseian.com/2018/07/brief-about-irctc-proposed-system-ooad.html

CLASS DIAGRAMS:


SEQUENCE DIAGRAM:

For Registration:

https://www.waseian.com/2018/07/brief-about-irctc-proposed-system-ooad.html

For the invalid user:
https://www.waseian.com/2018/07/brief-about-irctc-proposed-system-ooad.html

For the Valid user:
https://www.waseian.com/2018/07/brief-about-irctc-proposed-system-ooad.html

For Reservation:
https://www.waseian.com/2018/07/brief-about-irctc-proposed-system-ooad.html

For Cancellation:
https://www.waseian.com/2018/07/brief-about-irctc-proposed-system-ooad.html

ACTIVITY DIAGRAM

For Registration:
https://www.waseian.com/2018/07/brief-about-irctc-proposed-system-ooad.html

For Login:
https://www.waseian.com/2018/07/brief-about-irctc-proposed-system-ooad.html

For Reservation:
https://www.waseian.com/2018/07/brief-about-irctc-proposed-system-ooad.html

For Cancellation:
https://www.waseian.com/2018/07/brief-about-irctc-proposed-system-ooad.html

GRASP PATTERN 
  • GRASP defines General Responsibility Assignment Software Patterns.
  • A collection of general objected‐oriented design patterns related to assigning defining objects.
  • There are nine GRASP patterns, maybe some are already recognizable and some not:
  1. Creator 
  2. Information Expert (or just Expert) 
  3. Low Coupling 
  4. Controller 
  5. High Cohesion 
  6. Polymorphism 
  7. Pure Fabrication
  8. Indirection 
  9. Protected Variations.
CREATOR
•    This pattern generally avoids adding the coupling to a design.
•    When creation is a complex process or varies depending upon an input, often you’ll want to create using a different class implementing the GoF pattern Concrete Factory or Abstract Factory.

INFORMATION EXPERT
•    This is a general principle and probably the most used of any GRASP pattern.
•    This generally is key to loose coupling and high cohesion, but not always so. – Imagine a case where it is better to do better handheld data to preserve a large functional segmentation and support consolidation.
•    We're fully talking about the information organized by software objects, but if there are no relevant software classes, try the domain model.

LOW COUPLING
•    The higher coupling can lead to:
– More difficulty in understanding
– Changes propagating excessively
– More obstacles to code reuse
•    Less coupling often goes into the hands with a high cohesion
•    Consider this principle with every design decision.
•   The more unbalanced the class joined to, the more concerning the connection – Example. consider a language’s ordinary library vs. a class a colleague just defined a couple days ago.

CONTROLLER
•   A controller tries to organize the work without doing too much of it itself
•   A simple example of this is that UI substances shouldn’t execute business logic; there are further classes for that.
•    The controller in the Model‐View‐Controller (MVC) architecture is effectively the same thing. – This, or its variation Model‐View‐Presenter, is frequently used in web applications
HIGH COHESION
•    Very similar to Low Coupling
– Often related (but not always)
– Should be considered in every design decision.
•    Lower cohesion almost always means:
•    Low cohesion suggests that more delegation should be used.

POLYMORPHISM
•    With respect to implementation, this usually means the use of a super (parent) class or interface – Coding to an interface is generally preferred and avoids committing to a particular class hierarchy.

PURE FABRICATION
•    In other words, getting class concepts from a good domain model or real‐life objects won’t always work out well!
•   An example of a possible pure construction class: Determined Storage – May very well not be in the domain model, May very well not map to an actual‐lifetime object – But it might be the answer to attain our goals of low coupling / high cohesion while still taking a clear accountability

INDIRECTION
•   Frequently an indirection intermediary is also a pure construction. – The Determined Storage example could very well be an indirection between a Sale class and the database
•    Goff Pattern Adapter, Bridge, Facade, Observer, and Arbitrator all accomplish it.
•    The main benefit is lower coupling.

PROTECTED VARIATIONS
•    The solution "interface" is in the general sense; But to implement the solution you often want to build an interface programming (in Java, for example)!
•    Benefits: – Easy to extend functionality at PV points – Lower coupling – Implementations can be updated without affecting clients – Reduces the impact of change
•   Similar to the concealment of open-ended theory or information (not to hide data)
•    “Novice developers tend to brittle designs, intermediate developers point to highly fancy and flexible, generalized (which is never used in any way). Expert designers choose with insights."”

Note: The above-proposed system/Assignment for OOAD has been prepared by Srinivas which I have posted here. Give your blessings to him whoever find helpful for them :)

Wednesday, 24 October 2018

Software Testing Methodologies - MCQS


Question

A regression test

Select one:
a.  Will always be automated
b. Can only be run during user acceptance testing
c. Will help ensure unchanged areas of the software have not been affected
d. Will help ensure changed areas of the software have not been affected

The Correct answer is: Will help ensure unchanged areas of the software have not been affected

Question
The inputs for developing a test plan are taken from

Select one:
a. Support plan
b. Business plan
c. Project Plan
d. None

The Correct answer is: Project Plan

Question
Weak Robust Equivalence Class Testing is defined as:

Select one:
a. Weak refers to the single fault assumption
b. Robust comes from the consideration of invalid values
c. All
d. The name of the form Weak Robust is counterintuitive and oxymoronic

The correct answer is: All

Question
Data set {brown, black, blue, green , red} is example of

Select one:
a. Ordinal attribute
b. Continuous attribute
c. Numeric attribute
d. Nominal attribute

The correct answer is: Nominal attribute

Question
What are the two important requirements of class partitioning?

Select one:
a. Disjointedness and partial-completeness
b. Completeness and Non-Redundancy
c. Partial-completeness and Non-Redundancy
d. Completeness and Redundancy

The correct answer is: Completeness and Non-Redundancy

Question 
The specification: an integer field shall contain values from and including 1 to and including 12 (number of the month) Which equivalence class partitioning is correct?

Select one:
a. Less than 1, 1 through 11, and above
b. Less than 1, 1 through 12, larger than 12
c. Less than 0, 1 through 12, larger than 12
d. Less than 1, 1 through 11, larger than 12

The correct answer is: Less than 1, 1 through 12, larger than 12

Question 
RADAR system operates in normal temp (28 degC), maximum temp at (70 degC) and minimum temp at (-30 degC) as per the specification. At which temperatures do you test the system for normal boundary value testing?

Select one:
a. 28 degC, 70 degC, -30 degC, 72 degC, -28 degC
b. 28 degC, 70 degC, -30 degC, 72 degC, -33 degC
c. 28 degC, 70 degC, -30 degC, 69 degC, -29 degC
d. 28 degC, 70 degC, -30 degC, 68 degC, -33 degC

The correct answer is: 28 degC, 70 degC, -30 degC, 69 degC, -29 degC

Question
A lot consists of 10 good articles, 4 with minor defects and 2 with major defects. Two articles are chosen from the lot at random (without replacement).
Find the probability that:
both have major defects, 
Both are Good,
Neither is Good.

Select one:
a. 3/8
b. 91/120
c. 1/8
d. 1/120

The Correct answer is:
Both have major defects - 1/120
Both are Good -  3/8
Neither is Good - 1/8
Question
How much testing is enough

Select one:
a. The answer should be standardized for the software development industry
b. The answer depends on the maturity of your developers
c. The answer depends on the risks for your industry, contract and special requirements
d. This question is impossible to answer

The Correct answer is: The answer depends on the risks for your industry, contract and special requirements

Question
Which of the following statement is correct for Strong Robust Equivalence Class Testing?

Select one:
a. Robust comes from consideration of invalid values of inputs
b. Strong refers to the single fault assumption
c. All
d. Robust comes from consideration of invalid values of outputs

The Correct answer is: Robust comes from consideration of invalid values of inputs


Question
Number of unique test cases generated in Worst-Case Boundary Value Analysis for a function of n variables is
(For Robust Worst-Case Boundary Value Analysis - 7^n)
Select one:
a. 4n+1
b. 5^n
c. 7^n
d. 6n+1

The Correct answer is: 5^n

Question
Number of unique test cases generated in Robust Boundary Value Analysis for a function of n variables is

Select one:
a. 7n+1
b. 6n+1
c. 4n+1
d. 7*n

The correct answer is: 6n+1

Question
If a candidate is given an exam of 40 questions, should get 25 marks to pass (61%) and should get 80% for distinction,what is equivalence class?

Select one:
a. 30, 36, 39
b. 32, 37, 40
c. 23, 24, 25
d. 0, 12, 25

The Correct answer is: 32, 37, 40

Question
Strong normal equivalence class testing is based on:

Select one:
a. Single fault assumption
b. None
c. Not covering all the equivalence classes
d. Multiple fault assumption

The Correct answer is: Multiple fault assumption

Question
In specification based testing, what are the valid perspectives through which a system can be looked into?
Select one:
a. End User/Consumer
b. All
c. Customer/Client
d. Alpha/Beta User

The Correct answer is: All

Question
Basic Testing terms as per IEEE

Select one:
a. Error,Fault,Failure and Incident
b. Defect,System Halt,System Restart
c. Bug,Bug Report,solution
d. Severe error, Incident Raising,Shutdown

The correct answer is: Error,Fault,Failure and Incident
NOTE: As per the statement give here - anomaly section https://goo.gl/WJx3vr
Question
It is conducted to validate that the application, database, and network that is running can handle projected volumes

Select one:
a. Stress / Load Testing
b. Functional Testing
c. Integration Testing
d. Recovery Testing

The Correct answer is: Stress / Load Testing

Question
Testing process is best described as:

Select one:
a. Executing a program to validate its performance
b. Executing a program with the intent of finding errors
c. Executing a program to validate its efficiency
d. Executing a program to sign-off its accuracy

The Correct answer is: Executing a program with the intent of finding errors

Question
Alpha Testing is:

Select one:
a. Post- release testing by end user representatives at the developer's site
b. Pre- release testing by    end user represe ntatives at   their sites
c. Pre- release testing by end user representatives at the developer's site
d. The first testing that is performed

The Correct answer is: Pre- release testing by end user representatives at the developer's site


Question
A black-box test technique is

Select one:
a. Independent of implementation
b. Based on specifications
c. All
d. A functional testing focuses on input and corresponding output

The Correct answer is: All

Question
Boundary Value Analysis focuses on:
Select one:
a. The boundary of the input space to identify test cases
b. The boundary of the output space to identify test cases
c. None
d. The boundary of the inner space to identify test cases

The Correct answer is: None

Question
What are the criteria for good Test Cases?

Select one:
a. Neither too simple nor too complex
b. All
c. High probability of finding a defect which is yet to be discovered
d. It is not redundant

The Correct answer is: All

Question
Which of the following would form a part of a test plan?

1. Features to be tested
2. Incident Reports
3. Risks
4. Schedule

Select one:
a. 1,3 and 4 only
b. 2 and 4 only
c. 1 only
d. 1  and  3 only

The correct answer is:1,3 and 4 only

Question 
Find the Equivalence class for the following test case. Enter a number to test the validity of being accepting the numbers between 1 and 99

Select one:
a. Number = 0
b. All numbers 99
c. All numbers greater than 99
d. All numbers between 1 and 99

The correct answer is: All numbers between 1 and 99

Question 
Equivalence partitioning examples in RL 3 discusses

Select one:
a. Finding max of two numbers only
b. Finding max of 1 to 1000 numbers and max of two numbers
c. Finding max of 1000 numbers and max of three numbers
d. Finding max of two numbers and max of three numbers

The correct answer is: Finding max of 1000 numbers and max of three numbers

Question 
Consider the statement, “If number is divisible by 33 then number is divisible by 3 and by 11.” Which of the following statements is equivalent to this statement?

Select one:
a. If number is divisible by 3 and divisible by 11 then number is divisible by 33.
b. If number is not divisible by 33 then number is not divisible by 3 or not divisible by 11.
c. If number is not divisible by 3 or not divisible by 11 then number is not divisible by 33.
d.  If number is not divisible by 33 then number is divisible by 3 or divisible by 11.

The correct answer is: If number is not divisible by 3 or not divisible by 11 then number is not divisible by 33.

Question 
An input field takes the number from 10 to 50. The boundary values for testing this field are:

Select one:
a. 9,10,50,51
b. 10,30,50
c. 10,15,50,55
d. 9,30,51

The correct answer is:  9,10,50,51

Question 
Code reviews is a part of

Select one:
a. Dynamic testing
b. Static Testing
c. Static and Dynamic testing
d. None

The correct answer is: Static Testing

Question 
Boundary Value Analysis focuses on:
Select one:
a. The boundary of the input space to identify test cases
b. The boundary of the output space to identify test cases
c. The boundary of the inner space to identify test cases
d. None

The correct answer is: The boundary of the input space to identify test cases

Question 
Bug life cycle

Select one:
a. Assigned, Open, Closed, Fixed
b. Open, Assigned, Fixed, Closed
c. Assigned, Open, Fixed, Closed
d. Open, Fixed, Assigned, Closed

The correct answer is: Open, Assigned, Fixed, Closed

Question 
Boundary value testing

Select one:
a. Test boundary conditions on, below and above the edges of input and output equivalence classes
b. Tests combinations of input circumstances
c. Is used in white box testing strategy
d. Is the same as equivalence partitioning tests?

The correct answer is: Test boundary conditions on, below and above the edges of input and output equivalence classes

Question 
Identify the invalid Set operation

Select one:
a. Union
b. Complement
c. Addition
d. Intersection

The correct answer is: Addition

Question 
Which one of the statements is  - BVA is to use input variable values at
Select one:
a. Only on normal, minimum and just above the minimum
b. Only on normal, maximum and just below maximum
c. Only on normal, minimum, just above minimum, maximum and just below maximum
d. Only on normal and minimum values but not on maximum values

The correct answer is: Only on normal, minimum, just above minimum, maximum and just below maximum

Question 
A lock which opens with a sequence of digits is an example for

Select one:
a. Regular lock
b. Combination lock
c. Permutation lock
d. Both Permutation and Combination lock

The correct answer is: Permutation lock

Question 
Which of the following is an example of an Error-handlingTesting?

Select one:
a. Attempted access without a proper password to the on-line data entry and display transactions (notification to the user of invalid authentication) will be tested.
b. System is stressed beyond its specifications to check how and when it fails. Performed under heavy load like putting large number beyond storage capacity, complex database queries, and continuous input to system or database load.
c. Testing evaluated against the performance requirements by measuring the run times of several jobs using production data volumes
d. Testing to confirm that app can recover from all types of errors when they occur without terminating the application.

The correct answer is: Testing to confirm that app can recover from all types of errors when they occur without terminating the application.

Question 
Which of the following statements about functional testing is true?

1. Structural testing is more important than functional testing as it addresses the code
2. Functional testing is useful throughout the lifecycle and can be applied by business analysts, testers, developers, and users.
3. Functional testing is more powerful than static testing as you actually run the system and see what happens.
4. Inspection is a form of Functional Testing.

Select one:
a. 1 and 3 only
b. 2 only
c. 1 only
d. 2 and 4 only

The correct answer is:  2 only

Question
Which of the following types of testing are carried out for an erroneous input by the end user?

Select one:
a. Performance testing
b. Error handling testing Correct
c. Conversion testing
d. Parallel testing

The correct answer is: Error handling testing

Question 
Which one of the following represents the Specification Based Testing only?

Select one:
a. Decision Tables, Ad-hoc, Exploratory, Control Flow
b. Decision Tables, Boundary Value Analysis, Equivalence Partitioning
c. Boundary Value Analysis, Control Flow, Data Flow
d. Equivalence Partitioning, Decision Tables, Data Flow

The correct answer is: Decision Tables, Boundary Value Analysis, Equivalence Partitioning

Question
V-Process Model can be used for the development of R&D Projects

Select one:
a. I Don't Know
b. False
c. True

The correct answer is: False

Question 
Which of the following models is most appropriate for R&D oriented projects?

Select one:
a. Waterfall Model
b. Rapid protoyping
c. Incremental development
d. Research-and-Risk Model

The correct answer is: Rapid protoyping

Question 
Pick the correct statement from the following:

Select one:
a. IF uncertainty is high, THEN use incremental approach
b. IF schedule is tight THEN use evolutionary or incremental
c. IF complexity is high but uncertainty is not THEN use evolutionary approach
d. IF uncertainty and complexity both low THEN use Prototype model

The correct answer is: IF schedule is tight THEN use evolutionary or incremental

Question 
Identify the common Agile Project Management method:

Select one:
a. Software Development Life Cycle (SDLC) Model
b. FlexPlan Model
c. SCRUM Methodology
d. V-Process Model

The correct answer is: SCRUM Methodology

Question 
What should a project manager do or follow to ensure clear boundaries for project completion?
Select one:
a. scope definition
b. Scope verification
c. Completing a scope statement
d. Risk management plan

The correct answer is: Completing a scope statement

Question 
Project requirements continuously change, but change can be easily accommodated in a software project as per customer’s demand when:

Select one:
a. Meeting Customer Expectation is of High Priority
b. Software is written in High-Level Language which is flexible
c. Scope Change is included in the Master Contract
d. There is no impact on Schedule or Cost or Quality

The correct answer is: There is no impact on Schedule or Cost or Quality

Question
Any Project will have a set of Activities that are practical to implement:

Select one:
a. I Don't Know
b. TRUE
c. FALSE

The correct answer is: TRUE

Question 
If you were to choose one factor that significantly differentiates IT projects from non-IT projects, what would that be?

Select one:
a. Technology advances
b. Communication
c. Volatile Requirements
d. Environmental Risk

The correct answer is: Volatile Requirements

Question 
Which of the following tools of Project Management indicates who is responsible for what?

Select one:
a. Activity network chart
b. Resource levelling chart
c. Programme evaluation chart
d. Resource assignment chart

The correct answer is: Resource assignment chart

Question 
Contract Manager is also Project Manager who: (select the most appropriate answer)

Select one:
a. Manages project on behalf of the client
b. Deals with contractual terms of the out-sourced project
c. Delegates his/her responsibility to vendor organization
d. Reports project status to stakeholders in the client organization

The correct answer is: Manages project on behalf of the client

Question 
Calculation of Payback period of a project provides the organization :

Select one:
a. The overall income that the implemented system should produce, less any initial investment
b. An assessment of how quickly an implemented system will produce a profit
c. How much future income from an implemented project will be worth in present day terms
d. The discount rate that would give a payback with a net present value of zero

The correct answer is: An assessment of how quickly an implemented system will produce a profit

Question 
Which of the following is NOT a Project?

Select one:
a. Building of a large ERP System
b. Development of a Software Product
c. Customer Support Call Handling
d. Design of a next generation SmartPhone

The correct answer is: Customer Support Call Handling

Question 
Identify from the below who is NOT a typical project stakeholder: 

Select one:
a. End-user of the Project
b. Shareholder of the vendor organization
c. Project Manager 
d. CFO of the client organization

The correct answer is: Shareholder of the vendor organization

Question 
Which is the important attribute for Agile Project Management?

Select one:
a. Detailed Requirements Capture
b. Clear Requirements
c. Constant Communication
d. Customer Conflict Resolution

The correct answer is: Constant Communication

Question
Which definition is best suited for a well-defined process?

Select one:
a. Something which cannot be measured, cannot be controlled
b. Something which can be measured, cannot be controlled
c. Something which cannot measured, can be controlled
d. None

The correct answer is: Something which can be measured, cannot be controlled

Question 
Which process is applied to break down the project in to smaller and more manageable elements?

Select one:
a. Scope Estimation
b. Activity Duration Estimation
c. Work Break-Down Structure
d. Schedule Planning

The correct answer is: Work Break-Down Structure

Question
Find the invalid equivalence class for the following test case. Draw a line up to the length of 4 inches

Select one:
a. Line with 1 dot-width
b. line with 1 inch.
c. line with 4 inches
d. Curve

The Correct answer is: Curve

Question 
Types of Equivalence Classes are

Select one:
a. All
b. Weak Normal, Strong Normal, Weak Robust, Strong Robust
c. Weak Normal, Robust Normal, Weak Robust, Strong Robust
d. Weak Normal, Strong Normal, Weak Robust, Normal Robust

The Correct answer is: Weak Normal, Strong Normal, Weak Robust, Strong Robust

Question 
Which one is the valid recommendation for identification of valid equivalence class?

Select one:
a. No need to look for membership in a group
b. No need to look for range in numbers
c. Equivalence class for invalid inputs
d. None

The Correct answer is: Equivalence class for invalid inputs

Question 
One technique of Black Box testing is Equivalence Partitioning. In a program statement that accepts only one choice from among 10 possible choices,numbered 1 through 10, the middle partition would be from _____ to _____

Select one:
a. 0 to 10
b. 4 to 6
c. None
d. 1 to 10

The Correct answer is: 1 to 10

Question 
Test strategy is prepared as part of

Select one:
a. Test cases
b. Test Plan
c. Test scenarios
d. Test Procedure

The Correct answer is: Test Plan

Question 
Assume postal rates for ‘light letters’ are:$0.25 up to 10 grams;$0.35 up to 50 grams;$0.45 up to 75 grams;$0.55 up to 100 grams Which test inputs (in grams) would be selected using boundary value analysis?

Select one:
a. 0, 9, 19, 49, 50, 74, 75, 99, 100
b. 0, 1, 10, 11, 50, 51, 75, 76, 100, 101
c. 10, 50, 75, 100, 250, 1000
d. 25, 26, 35, 36, 45, 46, 55, 56

The Correct answer is: 0, 1, 10, 11, 50, 51, 75, 76, 100, 101

Question 
What would be the first step in project planning
Select one:
a. select a team organizational model.
b. establish the objectives and scope.
c. determine the budget.
d. determine the project constraints.

The correct answer is: establish the objectives and scope.

Question 
TCP is a Data-link Layer Protocol in OSI Network Model

Select one:
a. I Don't Know
b. True
c. False

The correct answer is: False

Question 
Which definition is best suited for a well-defined process?

Select one:
a. Something which cannot be measured, cannot be controlled
b. Something which can be measured, cannot be controlled
c. Something which cannot measured, can be controlled
d. None

The Correct answer is: Something which can be measured, cannot be controlled

Question 
Your organization is considering to run a project which will entail an investment of Rs 1,00,00,000. The product from the project is forecasted to create revenues of Rs 25,00,000 in the first year after the end of the project and of Rs 42,00,000 in each of the two following years. What is true for the net present value of the project over the three years cycle at a discount rate of 10%?
Select one:
a. The net present value is positive, which makes the project unattractive.
b. The net present value is negative, which makes the project unattractive.
c. The net present value is negative, which makes the project attractive.
d. The net present value is positive, which makes the project attractive.

The correct answer is: The net present value is negative, which makes the project unattractive.

Question 
Which of the following is NOT a characteristic of a Project?

Select one:
a. Uniqueness
b. Routine activity
c. Limited resources
d. Interrelated tasks

The correct answer is: Routine activity

Question
The output of product testing is:

Select one:
a. Test Data
b. Test Reports
c. Test Plan
d. Test Cases

The correct answer is: Test Reports

Question 
Software Quality Assurance activities are integral part of:

Select one:
a. ISO-9001 compliance
b. Project planning
c. Total Quality Management
d. Business planning

The correct answer is: Project planning

Question 
The Quality Management Standard adopted by Wipro Technologies for Software Development is:

Select one:
a. Quality Assurance Model
b. ISO 14001
c. Six-Sigma   
d. ISO 9000

The correct answer is: ISO 9000

Question 
JavaScript is an Object-Oriented version of Java Programming language

Select one:
a. I Don't Know
b. True
c. False

The correct answer is: False

Question 
"I hereby declare I am honest in all my statements and affirm that I sincerely answered all the Questions by myself based on my understanding of the topic, and I seek clarification on any Question/Answer by sharing it with my Faculty during the regular Contact-sessions."

Select one:
True
False

Congratulations....Wish You Happy Learning.

The correct answer is 'True'.

Question 
Your organization is considering to run a project which will entail an investment of Rs 1,00,00,000. The product from the project is forecasted to create revenues of Rs 25,00,000 in the first year after the end of the project and of Rs 42,00,000 in each of the two following years. What is true for the net present value of the project over the three years cycle at a discount rate of 10%?

Select one:
a. The Net Present Value is negative, which makes the project attractive
b. The Net Present Value is positive, which makes the project attractive.
c. The Net Present Value is negative, which makes the project unattractive
d. The Net Present Value is positive, which makes the project unattractive

The correct answer is: The Net Present Value is negative, which makes the project unattractive

Question
Shareholder of company can also be one of the Stakeholders in a Project

Select one:
a. I Don't Know
b. True
c. False

The correct answer is: False

Question 
ISO 9001:2000 is a standard that defines which of the following?

Select one:
a. IT Project Deliverables 
b. Software Testing Procedures
c. Project Management Standard 
d. Quality Management Systems 

The correct answer is: Quality Management Systems

Question 
Metrics Baselining for a project primarily involves:

Select one:
a. Defining a reference standard for measurement
b. Collection of data from past projects
c. Estimating target schedules
d. Identifying industry benchmarks

The correct answer is: Collection of data from past projects

Question 
Which of these would be the best way to improve morale, motivate workforce and avoid frustration during the software development process?
Select one:
a. Give team members less control over process and technical decisions.
b. Hide bad news from the project team members until things improve.
c. Reward programmers based on their productivity.
d. Give team members more control over process and technical decisions.

The correct answer is: Give team members more control over process and technical decisions.

Question 
The best strategy for a project manager when he/she receives  a complaint from customer regarding already late (schedule over-runned software project) is: 

Select one:
a. Add more people to the project
b. Renegotiate schedule with customer
c. Part-delivery of requirements
d. Training the project team

The correct answer is: Part-delivery of requirements

Question 
Which of the following is found to contribute significantly to software project problems?

Select one:
a. Poor programming skills
b. Poor requirements capture
c. Insufficient Testing & Validation
d. Unavailability of software architects

The correct answer is: Poor requirements capture

Facebook