In the name of ALLAH, the most beneficient, the most merciful

Software Engineering - I (CS504)

Multiple Choice Questions (MCQs)

 

Objective Questions

Question

________ is one of the techniques to document domain knowledge.

  1. State transition diagram
  2. Feasibility matrix
  3. System matrix
  4. None of the given

Answer: Chapter No.  

Question

There are some types of requirements that can not be documented in the use cases.

  1. True
  2. False

Answer: Chapter No.  

Question

A DFD is normally levelled (adding more levels of abstraction) as

  1. it is a good idea in design
  2. it is recommended by many experts
  3. it is easyto do it
  4. it is easier to read and understand a number of smaller DFDs than one large DFD

Answer: Chapter No.  

Question

Use cases construction is a technique used for:

  1. requirements determination
  2. requirements structuring
  3. user interface design
  4. database design

Answer: Chapter No.  

Question

In data flow diagram (DFD), Create, Update, Delete and Read operations are normally called:

  1. CRUD operations
  2. DURC operations
  3. RUDC operations
  4. CDUR operations

Answer: Chapter No.  

Question

In Data Flow Diagram (DFD), data flow can:

  1. Only originate from an external entity
  2. Only terminate in an external entity
  3. Originate and terminate in an external entity
  4. Either originate or terminate in an external entity but not both

Answer: Chapter No.  

Question

The Use case diagram does not show which actors interact with each use case

  1. True
  2. False

Answer: Chapter No.  

Question

System models include:

  1. User business processes
  2. User activities for conducting the business processes
  3. Processes that need to be automated
  4. All of the given

Answer: Chapter No.  

Question

Code should not be:

  1. commented
  2. indented
  3. cryptic
  4. aligned

Answer: 1 Chapter No.  

Question

Complex expressions:

  1. Make the code easy to modify
  2. Make the code difficult to modify
  3. Make the code easy to understand
  4. Does not effect understandablity

Answer: 1 Chapter No.  

Question

A self documenting code is a code that explains itself without the need of comments and extraneous documentation, like ________.

  1. Flowcharts
  2. UML diagrams
  3. Process-flow state diagrams
  4. All of the given

Answer: 4 Chapter No.  

Question

Global variables in C++ should always be referred to by using the

  1. :: operator
  2. : operator
  3. Without an operator
  4. None of the given

Answer: 1 Chapter No.  

Question

The number ________ is the most abused symbol in programs written in C or C++.

  1. 1
  2. 0
  3. 2
  4. 3

Answer: 2 Chapter No.  

Question

The expressions with logical operators can be evaluated only from ________.

  1. Right to left
  2. Left to right
  3. Top to bottom
  4. Bottom to top

Answer: 1 Chapter No.  

Question

Which indent size eliminates the chance of code lines splitting?

  1. 2
  2. 4
  3. 3
  4. 6

Answer: 1 Chapter No.  

Question

Class variables should never be declared public. Public variables violate which of the following:

  1. Information hiding
  2. Encapsulation
  3. Information hiding and Encapsulation
  4. None of the given

Answer: 3 Chapter No.  

Question

The system specification describes the

  1. function and behavior of a computer-based system
  2. implementation of each allocated system element
  3. algorithmic detail and data structures
  4. time required for system simulation

Answer: 2 Chapter No. 4 

Question

The context diagram is used as the top level abstraction in a ________ developed according to principles of structured analysis.

  1. Dataflow diagram
  2. Activity Diagram
  3. State Transition Diagram
  4. USe Case Diagram

Answer: 1 Chapter No. 5 

Question

A use case represents:

  1. a class, its attributes and operations.
  2. an operation’s interface and signature.
  3. the role a user plays when interacting with the system.
  4. the system’s functionality for a particular purpose.

Answer: 3 Chapter No. 5 

Question

In use case diagram, an ellipse signifies a(n):

  1. actor
  2. class
  3. use case
  4. system boundary

Answer: 3 Chapter No. 6 

Question

System ________ are built to allow the System Engineer to evaluate the system components in relationship to one another.

  1. Requirements
  2. Documents
  3. Models
  4. Test Cases

Answer: 3 Chapter No. 7 

Question

An arrow in Data Flow Diagram (DFD) represents

  1. Direction of flow of data
  2. Processing of data
  3. External agent
  4. Internal agent

Answer: 1 Chapter No. 8 

Question

In Data Flow Diagram, the entity or system, outside the boundary of this system is called

  1. Process
  2. Data Flow
  3. External Agent
  4. Data Store

Answer: 3 Chapter No. 8 

Question

Data cannot flow from one external entity to other external entity because:

  1. It will get corrupted
  2. It is not allowed in DFD
  3. An external entity has no mechanism to read or write
  4. Both are outside the context of the system

Answer: 2 Chapter No. 9 

Question

________ requirements cause frequent modifications in user interface.

  1. Functional
  2. Non-functional
  3. Unstable
  4. User

Answer: 3 Chapter No. 10 

Question

________ is a technique that can be used to reduce customer dissatisfaction at requirement stage.

  1. Analysis
  2. Negotiation
  3. Prototyping
  4. GUI

Answer: 3 Chapter No. 10 

Question

Software Design discusses ________ aspect of software development.

  1. What
  2. How
  3. Who
  4. When

Answer: 2 Chapter No. 11 

Question

________ is a technique in which we construct a model of an entity based upon its essential characteristics and ignore the inessential details.

  1. Inheritance
  2. Polymorphism
  3. Aggregation
  4. Abstraction

Answer: 4 Chapter No. 12 

Question

Strong cohesion implies that:

  1. All parts of a component have a close logical relationship with each other.
  2. All parts of a component do not have a close logical relationship with each other.
  3. Component is dynamic in nature
  4. Component is static in nature

Answer: 1 Chapter No. 12 

Question

A change becomes ________ because of close presence of data and functions.

  1. Accessible
  2. Global
  3. Private
  4. Localized

Answer: 4 Chapter No. 12 

Question

In the case of action-oriented approach, data is decomposed according to:

  1. Object requirements
  2. Functionality requirements
  3. Corresponding domain model
  4. Compatibility with object interface

Answer: 2 Chapter No. 12 

Question

Coupling is a measure of ________ of a module or component.

  1. Independence
  2. Dependence
  3. Aggregation
  4. Composition

Answer: 1 Chapter No. 12 

Question

________ and ________ are two important tools that helps in managing the program complexity.

  1. Composition, Inheritance
  2. Abstraction, Encapsulation
  3. Aggregation, Inheritance
  4. Modularity, Composition

Answer: 2 Chapter No. 12 

Question

The three most important characteristics of an object are:

  1. Identity
  2. State
  3. Behavior
  4. All of the given.

Answer: 4 Chapter No. 13 

Question

________ is an extremely powerful technique for dealing with complexity.

  1. Aggregation
  2. Abstraction
  3. Inheritance
  4. Association

Answer: 2 Chapter No. 13 

Question

The intent of Object Oriented Analysis (OOA) is to define:

  1. All classes
  2. Relationships among classes
  3. Behavior of classes
  4. All of the given.

Answer: 4 Chapter No. 14 

Question

While establishing the services for an object, the following fundamental questions should be asked

  1. Why does the system need this object any way?
  2. What useful questions can it answer?
  3. What useful action can it perform?
  4. All of the given.

Answer: 4 Chapter No. 17 

Question

When a small set of functions (which use each other) is so overwhelmingly the bottleneck, there are two alternatives:

  1. use a better algorithm OR re-write the code
  2. debug the code OR place assertions in code
  3. remove the functions OR add more functions
  4. changed programming language OR compiler at least

Answer: 1 Chapter No. 33 

Question

Some bit field members are stored: I) left to right II) right to left III) in circular array

  1. only (I) is true
  2. Only (II) is true
  3. Both (I) and (II) are true
  4. All of the options (I, II and III) are true

Answer: 3 Chapter No. 34 

Question

The C/C++ language does not define the alignment of items within

  1. structures
  2. classes
  3. unions
  4. All of the given options

Answer: 4 Chapter No. 34 

Question

Exception handling provides:

  1. Portability mechanism
  2. Code Usability mechanism
  3. Error Handling mechanism
  4. All of the given options

Answer: 3 Chapter No. 35 

Question

When an error is thrown the overall system (on the lookout for this error flag) responds by ______ the error.

  1. Ignoring
  2. Casting
  3. Catching
  4. All of the given options

Answer: 3 Chapter No. 35 

Question

Exception handling is a powerful technique that separates error-handling code from ________ code.

  1. Normal
  2. Faulty
  3. Buggy
  4. Complex

Answer: 1 Chapter No. 35 

Question

The greatest advantage of exception handling is its ability to handle:

  1. Asynchronous errors
  2. Syntax errors
  3. Memory errors
  4. Control Structure errors

Answer: 1 Chapter No. 35 

Question

Verification and validation are the processes in which we check a product against its ________ and the ________ of the users who will be using it

  1. statements, expectations
  2. specifications, expectations
  3. specifications , arguments
  4. statements, arguments

Answer: 2 Chapter No. 36 

Question

________ Testing of system is not possible

  1. Black Box
  2. White Box
  3. Exhaustive
  4. None of the given options

Answer: 3 Chapter No. 36 

Question

A ________ is a variance from a desired product attribute.

  1. Exception
  2. Error
  3. Mistake
  4. Defect

Answer: 4 Chapter No. 36 

Question

Which type of testing is not concerned with how the inputs are transformed into outputs?

  1. White Box
  2. Gray Box
  3. Black Box
  4. All of the given options

Answer: 3 Chapter No. 37 

Question

Objective of ________ is to show that the program does not work.

  1. Requirements
  2. Design
  3. coding
  4. testing

Answer: 4 Chapter No. 37 

Question

Testing individual components independent of other components is called:

  1. Unit testing
  2. Module testing
  3. Subsystem testing
  4. Non of the given options

Answer: 1 Chapter No. 37 

Question

Which one is used to describe flow of data or control in an application

  1. Class diagram
  2. Use case diagram
  3. Flow Chart
  4. None of the given option

Answer: 3 Chapter No. 38