CS504 - Software Engineering - I Online Solved Quizzes/MCQ's File No 1






-----provides a unified interface to a set of interfaces in a sub-system. Select correct option:

Observer Pattern
Singleton Pattern
Façade Pattern
All of the above




"is" prefix should be used for------ variables and methods. Select correct option:

General
Boolean
Constant

None of the given



using proper paranthesis normally makes the code.
easy to read

easy to understand
less ambiguous
All of the given options 
The use of comments should be minimized by making the code self-documenting by appropriate name choices and an explicit logical structure.
True
False 
Bit fields allow the packing of data in a structure. using Bit fields we can:
Read 9 bit integers

Avoid memory leakages
Avoid memory overflow
Avoid syntax errors 
1) x = (a + 2 > 3)? a : a-1 ; 2) if((a + 2)> 3) x = a; else x = a - 1;
Statement (2) is more complex than (1)
Statement (2) is more complex than (1)

Both statements are very complex
None of the given option 



Façade Pattern provides a unified interface to a set of interfaces in a sub-system. Select correct option:
True
False

[Make the code easy to modify Does not effect understandablity




Complex expressions:

Select correct option:
Make the code easy to modify
Make the code difficult to modify

Make the code easy to understand Does not effect understandablity


The terms get/set must be used where an attribute is accessed Select correct option:

Indirectly
Directly



In order to make a code more portable, Instead of using vendor specific language extensions, use _______ as much as possible
STL
ANSI
ISO
CMMI

Question # 7 of 10
Exception handling provides:
Portability mechanism
Code Usability mechanism
Error Handling mechanism
All of the given options

Question # 8 of 10
Bit fields are a convenient way to express many difficult operations. However, bit fields suffer from one problem
Lack of usability
Lack of security
Lack of performance
Lack of portability

Question # 9 of 10
if (e.Title() == “CEO” || e.Salary() > 10000) in the above statement if e.Title()=="CEO") is TRUE then
Second part is not evaluated
Second part is always evaluated
Second part must also be TRUE
Second part is not evaluated but e.Salary() is called

Question # 10 of 10
A test case involves
Input/output specification plus a statement of the function under test
Steps to perform the function
Expected results that the software application produces
All of the given options




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

Select correct option:
Flowcharts

UML diagrams Process-flow state diagrams All of the given choices



1

which of the following statements are same in output: 1) a = a >> 2 2) a = a / 4 3) a = a * 2

Select correct option:


(1)  and (3) only
(2)  and (3) only

(1)  and (2) only
All procduce the same result



The hardest single part of building a software system is deciding precisely ----------- to
build.

► what
► How

► When
► Why



Interaction Diagrams depict the ------------- Behavior of the system
► Static

► Dynamic
► Active
► Non of the above



Identifier names also play a significant role in enhancing the -------- of a program. Select correct option:

Writ ability
Readability
Reliability

All of the given choices





1) x = (a + 2 > 3)? a : a-1 ; 2) if((a + 2)> 3) x = a; else x = a - 1; Select correct option:

Statement (1) is more complex than (2) Statement (2) is more complex than (1) Both statements are very complex None of the given options




using proper paranthesis normally makes the code

Select correct option: easy to read

easy to understand less ambigous
All of the given options




Comments are not syntax checked

Select correct option:
TRUE
FALSE






_________ was the first pure Object Oriented language in which observer pattern was used in implementing its Model View Controller pattern

Select correct option:
Smalltalk

PASCAL JAVA C++





Flexibility helps in making the code easier to understand. Select correct option:

True false







Name is the initial thing to be written in the GOF Design Pattern Format. Select correct option:
True
False




Comments should NOT be indented relative to their position in the code Select correct option:
TRUE
FALSE


UML (unified modeling language) analysis modeling focuses on the _________________ .
  behavioral model and environment model.
  behavioral model and implementation model.

  user model and environmental model
  user model and structural model   A P R A C T I T I O N E R ’ S A P P R O A C H 



The data flow diagram must be augmented by descriptive text in order to describe the functional requirements for a software product.
 True  


► False




Which of the following shows a commented statement in C++ Select correct option:

# Ans = first + second
// Ans = first + second

\\ Ans = first + second /# Ans = first + second








Most software continues to be custom built because

  Software is easier to build without using someone else's components.
  Off the shelf software components are not commonly available
  Component reuse is common in the software world
  Reusable components are too expensive to use


Which of the items listed below is not one of the software engineering layers?
  Tools
  Process

  Manufacturing
  Methods


if (!(block < activeBlock)) is equvivalent to:


Select correct option:

if ((block < activeBlock)) if ((block == activeBlock)) if ((block >= activeBlock)) None of the given

 no idea about this question





-----provides a unified interface to a set of interfaces in a sub-system. Select correct option:

Observer Pattern
Singleton Pattern
Façade Pattern
All of the above







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

Select correct option:
Flowcharts

UML diagrams Process-flow state diagrams All of the given choices







Façade Pattern provides a unified interface to a set of interfaces in a sub-system. Select correct option:
True
False








which of the following statements are same in output: 1) a = a >> 2 2) a = a / 4 3) a = a * 2

Select correct option:
(1)  and (3) only
(2)  and (3) only

(1)  and (2) only
All procduce the same result


Unrelated variables should be declared in the same statement. Select correct option:
True
False





Which of the following shows a commented statement in C++ Select correct option:

# Ans = first + second
// Ans = first + second

\\ Ans = first + second /# Ans = first + second









Name is the initial thing to be written in the GOF Design Pattern Format. Select correct option:
True
False







Name is the initial thing to be written in the GOF Design Pattern Format. Select correct option:
True
False







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

Select correct option: Information hiding Encapsulation

Information hiding and Encapsulation
None of the given







The nominal case should be put in the if-part and the exception in the else-part of an if statement.

Select correct option:
TURE


FALSE







The three basic principles that guide maintainability are: (a)clarity (b)enhancement (c)flexibility (d)simplicity (

Select correct option: (a),(b) and (c) (a),(c) and (d) (b),(c) and (d)
All of above




DFD Notation contains
  Data Store
  Extenal Agents
  Processes
  All of the given chap4 page 10

A complex System evolves from a
  smaller system
  medium sysetem
  bigger system

  non of the given chapter 6 p2 (simple system)

Requirement engineering mainly deals with the -------------- of the system
    definition phase chapter 3 p 2
  development phase
  maintenance
  non of the above

Insufficient user involvement leads to ------------- products.
  unacceptable chapter 3 p 5
  ambigious
  dissatisfaction of customer to
  non of the above

Which one is not the purpose of Interaction Diagrams ?

► Model interactions between objects


The Use case diagram does not show which actors interact with each use case Select correct option:

TRUE

FALSE
A Process in Data Flow Diagram (DFD) represents

Select correct option:

Flow of data
Transformation of data
Storage of data

An external agent

A context diagram is used

Select correct option:


as the first step in developing a detailed DFD of a system in systems analysis of very complex systems
as an aid to system design

as an aid to programmers

In Data Flow Diagram (DFD), one data store can directly copy the data from another data store Select correct option:

TRUE
FALSE

3:53 PM

The system model template contains which of the following elements Select correct option:

input output output

all of the given

To construct a system model the engineer should consider one of the following restraining factors? Select correct option:

assumptions and constraints
budget and expenses

data objects and operations schedule and milestones

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

DURC operations

RUDC operations
CDUR operation

The "extends" relationship is kind of a generalization specialization relationship. Select correct option:
TRUE

FALSE

Question # 1 of 10 ( Start time: 04:00:12 PM ) Total Marks: 1

The Use case diagram does not show which actors interact with each use case Select correct option:

TRUE

FALSE
There are some types of requirements that can not be documented in the use cases. Select correct option:

TRUE

FALSE

Question # 3 of 10 ( Start time: 04:01:01 PM ) Total Marks: 1

Arranging information in tabular form makes it easy to read, understand and comprehend as compared to streams of text.
Select correct option:

TRUE
FALSE



Quiz Start Time: 04:00 PM Time Left 88

sec(s)

Question # 4 of 10 ( Start time: 04:01:25 PM ) Total Marks: 1

To construct a system model the engineer should consider one of the following restraining factors? Select correct option:

assumptions and constraints
budget and expenses

data objects and operations schedule and milestones

Question # 7 of 10 ( Start time: 04:03:01 PM ) Total Marks: 1 The best way to conduct a requirements validation review is to Select correct option:

examine the system model for errors

have the customer look over the requirements

send them to the design team and see if they have any concerns
use a checklist of questions to examine each requirement

Question # 8 of 10 ( Start time: 04:04:04 PM ) Total Marks: 1

Data Flow diagram (DFD) does not capture control flow information, it just shows the flow of the data in a system.

Select correct option:

TRUE
FALSE

Question # 9 of 10 ( Start time: 04:04:38 PM ) Total Marks: 1

GUI stands for:

Select correct option:
Genaric User Interface

Graphical User Interface
Genaric User Interaction
Graphical User Interaction

Question # 10 of 10 ( Start time: 04:05:00 PM ) Total Marks: 1

System models are built to allow the system engineer to evaluate the system components in relationship to one another

Select correct option: True
False





DFD Notation contains
  Data Store
  Extenal Agents
  Processes
  All of the given 


A complex System evolves from a
  smaller system
  medium sysetem
  bigger system



  non of the given 

Question No: 8 ( Marks: 1 ) - Please choose one
Requirement engineering mainly deals with the -------------- of the system
    definition phase 
  development phase
  maintenance
  non of the above

Insufficient user involvement leads to ------------- products.
  unacceptable 
  ambigious
  dissatisfaction of customer to
  non of the above

Which one is not the purpose of Interaction Diagrams ?

► Model interactions between objects

  Assist in understanding how a system (a use case) actually works
  Identify responsibilities/operations and assign them to classes
  Identify dependencies among objecs 



Which one is not a type of messages which Sequence Diagrams Depict
  Synchronous
  Asynchronous
  Create
  Update 



The two main documents produced during this phase are Requirement Statement and Requirement Specification. They are also called Requirement Definition and ---------------
-

  Functional Specification 
  Mathematical specification
  System Specification
  None of the given


Project ------------- defines the concept and range of the proposed solution, and limitations

identify certain capabilities that the product will not include

  Scope 
  Agreement
  Plan
  None of the given

A change becomes ------------- because of close presence of data and functions

  Localized
  Private

  Global
  Accessible

A complex System evolves from a
  smaller system
  medium sysetem
  bigger system
  non of the given


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

  Independent
  Dependent

  Closeness
  All of the given

Software Maintenance phase involves

  Debugging
  Adding new features
  making changes
  all of the given




Interaction Diagrams depict the ------------- Behavior of the system p23 chapter7
  Static
  Dynamic
  Active
  Non of the above


In Sequence Diagrams the time required by the receiver object to process the message is denoted by an---------------

  Activation Box
  Simple Box
  Arrow
  Non of the above


A poorly designed interface can cause a user to make catastrophic errors is one of the motivations for GUI

  True
  False


Identifying System Features include ------
  log important information
  conduct business
  analyze business results
  all of the above

Establishing responsibilities for objects includes
  Generalization Relationships
  Specialization Relationships

  all of the above
  identifying Association relationships


Please choose one Which of the following is a fact finding method?

  Site visits
  Prototyping
  Study of similar systems
  All of given 

The Object Oriented approach
  improves the reusability of codes.
  makes objects less independent.
  increases testing time.
complicates mapping of a system model to an implementation model




Client Server model tries to data and processing Distribute



Merge Clone Proceed



Anti- Patterns is another concept that corresponds to common in analysis and design.


Mistake Issues

Problems
All of the given

Three tier architecture contains layers
Presentation

Application
Database
All of the above

MVC stands for
Model View Controller
Modern View Center

Model View Center
Modern View Controller

Fat client model is one of the configurations of model

Data-Centered
Layered
Reference
Client Server


Description of communicating objects and classes that are customized to solved a general problem in a particular context is called
Design Pattern

System Patter System Design None of the Given



In the N-tire Architecture, the idea is to enhance scalability and by distributing both data and the application using multiple server machines.

Usability
Performance
Interpretability

None of the given

Thin Client model is one of the configurations of ….. model

Data Centered
Client Server
Layered

Reference

Dynamic process model shows the process ………….. of the system

Components
Objects
Structure
Linkage

It ensures that a class only has one instance and provides a global point of access to it.

Singleton Pattern

Observer Pattern Real Pattern None of the given

STL Stnads for ------------------
Standard Template Library
Standard Type Link

Standard Tempo Line
None of the given


Three tier architecture contains ------------- layers
Select correct option:
Presentation
Application
Database
All of the above

Which of following is/are among ten things,which the basic template of GOF design pattern includes.
Select correct option:

Problem
Context
Forces
All of the given

Vertical partitioning is also known as…..

Select correct option:

Balancing
Mutating
Parallelizing
Factoring




Patterns are devices that allow programs to share knowledge about their ---------
----.

Select correct option:

Code
Design
Analysis
None of the given


Client server model tries to …….data and processing.

Select correct option:
Distribute
Merge

Clone
Proceed

N-tier architecture stems from the struggle to find a ----------- between the fat-
client architecture and the thin-client architecture.

Select correct option:

Concurrency
Distribution point
Middle ground
Similarity

Vertical partitioning divides the architecture application from a …… making perspective.

Decision

Design Conclusion Move

Distributing the responsibilities to different subsystems so that we get a software system which is easy to maintain, is called ………the architecture.
Select correct option:
Subtracting
Partitioning
Cloning

Balancing

The nominal case should be put in the if-part and the exception in the else-part of an if statement.

Select correct option:
TURE
FALSE

Charles Simonyi first discussed Hungarian Notation. He was of ------ .

Select correct option:
Microsoft
IBM

Dell

Cisco

The terms get/set must be used where an attribute is accessed Select correct option:
Indirectly
Directly

A self documented program/code contains the following attribute(s):

Size of each function Choice of variable
Choice of variable
All of the given choices




"is" prefix should be used for------ variables and methods.

Select correct option:
General
Boolean
Constant

None of the given


A function should not be larger in any case and should not exceed ______ in length . Select correct option:

Half page
One page

Two pages Three Pages





It ensures that a class only has one instance and provides a global point of access to it. Select correct option:
Singleton Pattern

Observer Pattern Real Pattern None of the given




A self documented program/code contains the following attribute(s): Select correct option:

Size of each function Choice of variable Choice of variable

All of the given choices

The use of comments should be minimized by making the code self-documenting by appropriate name choices and an explicit logical structure.

Select correct option:
TRUE
FALSE

Variables should be initialized where they are ------and they should be declared
in the ------scope possible.

Select correct option: defined and smallest declared and medium defined and medium
declared and smallest

Unrelated variables should be declared in the same statement.

Select correct option:
True
False

which of the following statements are same in output: 1) a = a >> 2 2) a = a / 4 3) a = a * 2

Select correct option:
(1)   and (3) only
(2)   and (3) only

(1)   and (2) only
All procduce the same result


In ______The objects are organized in a horizontal line and the events in a vertical time line.

Sequence diagram


An object or class may further be classified on the basis of
  Behavior Driven attributes
  Data Driven attributes
  Responsibility Driven attributes
  All of the above c

A public Interface provides a way for                                           with other Classes.
  Comminication
  Accessibility
  Reaching

  All of the above 




By following modern system engineering practices simulation of reactive systems is no longer necessary

► True

► False   





The state transition diagram

  depicts relationships between data objects

  depicts functions that transform the data flow



  indicates how data are transformed by the system

► indicates system reactions to external events     



Control flow diagrams are
  needed to model event driven systems.  

  required for all systems
  used in place of data flow diagrams
  useful for modeling user interfaces





A change becomes ------------- because of close presence of data and functions
  Localized  
  Private

  Global
  Accessible


A complex System evolves from a
  smaller system  
  medium sysetem
  bigger system
  non of the given
 



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

  Independent 

  Dependent

  Closeness

  All of the given





Software Maintenance phase involves



  Debugging

  Adding new features

  making changes
► all of the given


The hardest single part of building a software system is deciding precisely ----------- to build.
  what 
  How

  When
  Why


Interaction Diagrams depict the ------------- Behavior of the system
  Static
  Dynamic

  Active
  Non of the above


In Sequence Diagrams the time required by the receiver object to process the message is denoted by an---
-----
  Activation Box 
  Simple Box
  Arrow
  Non of the above


Names representing methods and functions should be----and written in mixed case starting with -----case.


Select correct option:
Noun—lower
Verb----lower
Noun ---upper

Noun----upper







Façade Pattern provides a unified interface to a set of interfaces in a sub-system. Select correct option:
True
False



A poorly designed interface can cause a user to make catastrophic errors is one of the motivations for GUI.
  True 
  False
 



Most software continues to be custom built because
► Software is easier to build without using someone else's components.





It is not possible to use ordinary data flow diagrams to model the functional requirements of real-time systems.
► True
► False  

► Off the shelf software components are not commonly available
  Component reuse is common in the software world
  Reusable components are too expensive to use



Which of the items listed below is not one of the software engineering layers?

  Tools
  Process

► Manufacturing

► Methods



An state transition can only occur when triggered by a(n)________________
  actor
  collaboration attempt
  event
  none of the given

The evolution of the system depends on a sequence of state transitions triggered by a set of coming events.


A change becomes ------------- because of close presence of data and functions

  Localized
  Private
  Global
  Accessible


Once these requirements have been finalized, the ---------------- process starts.
  Construction
  Development
  Maintenance phase
  Construction and Development



Identifying Whole-Part structures (Aggregations) means what are my ----------------
  Components
  Structures

  Objecs
  Classes

Floating point constants should always be written with decimal point and at least Select correct option:
one decimal two decimal three decimal none of the given





 MVC stands for ---------------

Select correct option:
Model View Controller
Modern View Center

Model View Center Modern View Controller




In ______The objects are organized in a horizontal line and the events in a vertical time line.

Sequence diagram

Question No: 4       ( Marks: 1 ) - Please choose one
An object or class may further be classified on the basis of
  Behavior Driven attributes
  Data Driven attributes
  Responsibility Driven attributes
  All of the above

A public Interface provides a way for                                           with other Classes.
  Comminication
  Accessibility
  Reaching
  All of the above 


A complex System evolves from a

  smaller system
  medium sysetem
  bigger system
  non of the given



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

► Independent
► Dependent

► Closeness
► All of the given



Software Maintenance phase involves

► Debugging
► Adding new features

► making changes
► all of the given









Which of these people would not be likely to part of the FAST team?
  hardware and software engineers
  manufacturing representative
  marketing representatives

  senior financial officers

An state transition can only occur when triggered by a(n)________________
  actor
  collaboration attempt

  event
  none of the given 

Identifying System Features include ------
  log important information
  conduct business
  analyze business results

  all of the above 


Post a Comment

Previous Post Next Post