PDA

View Full Version : CS504 Software Engineering final term solve paper 2011



Vuhelper
04-14-2011, 07:17 AM
for solve look attachment


FINALTERM EXAMINATION
Spring 2010


CS504- Software Engineering - I (Session - 4)
Time: 90 min
Marks: 58


Question No: 1 ( Marks: 1 ) - Please choose one
What are the three generic phases of software engineering?

► definition, development, support
► what, how, where

► programming, debugging, maintenance

► analysis, design, testing


Question No: 2 ( Marks: 1 ) - Please choose one
In the context of requirements analysis, partitioning results in the elaboration
of data, function, or behavior.

► True
► False


Question No: 3 ( Marks: 1 ) - Please choose one
Quantitative methods for assessing the quality of proposed architectural designs
are readily available.
► True
► False

Question No: 4 ( Marks: 1 ) - Please choose one
In refining the DFD during transaction mapping it is unnecessary to create a
PSPEC since only the CSPEC is relevant to this type of architectural style.
► True
► False

Question No: 5 ( Marks: 1 ) - Please choose one
In transaction mapping the first level factoring results in the______________

► creation of a CFD
► derivation of the control hierarchy
► distribution of worker modules
► refinement of the module view

Question No: 6 ( Marks: 1 ) - Please choose one
Variable names must be in mixed case starting with upper case.
► True
► False

Question No: 7 ( Marks: 1 ) - Please choose one
Class variables should be declared public. This concept violates which of the following.
► Information hiding
► Encapsulation
► Information hiding and Encapsulation
► None of given

Question No: 8 ( Marks: 1 ) - Please choose one
Real-time applications add a new and potentially difficult element to the
testing mix

► performance

► reliability

► security

► time


Question No: 9 ( Marks: 1 ) - Please choose one
Top-down integration testing has as it's major advantage(s) that

► low level modules never need testing

► major decision points are tested early

► no stubs need to be written

► none of the given


Question No: 10 ( Marks: 1 ) - Please choose one
Configuration reviews are not needed if regression testing has been rigorously
applied during software integration.

► True

► False


Question No: 11 ( Marks: 1 ) - Please choose one
isAuthorized, assess Performance,get item for UPC, get cashier for number, are the examples of


► Services
► Attributes
► Links
► Non of the above

Question No: 12 ( Marks: 1 ) - Please choose one
the development view describes the -----------organization of the software in its development environment,

► Static
► Dynamic
► Still
► Static & Dynamic

Question No: 13 ( Marks: 1 ) - Please choose one
-------------- being the first pure Object Oriented language in which observer
pattern was used in implementing its Model View Controller

► Smalltalk
► PASCAL
► JAVA
► C++

Question No: 14 ( Marks: 1 ) - Please choose one
Hungarian Notation was first discussed by Charles Simonyi of------------------

► Microsoft.
► Oracle
► Apple Macintosh
► Non of the all

Question No: 15 ( Marks: 1 ) - Please choose one
The language does not specify whether ------------- is signed or unsigned.

► char
► integer
► double
► constant

Question No: 16 ( Marks: 1 ) - Please choose one
A number of invisible execution paths can exist in simple code in a language that allows
----------------

► exceptions
► defects
► errors
► all of them

Question No: 17 ( Marks: 1 ) - Please choose one
Bugs Fixing is done by which of the teams in Software Development lifecycle?
► Development Team
► Testing Team
► Analysis & Design Team
► Process Team

Question No: 18 ( Marks: 1 ) - Please choose one
Software Bugs have multiple names, Which one of the belw is not the name of Software Bugs --------------
► Bugs
► Defects
► Errors
► Mistakes

Question No: 19 ( Marks: 1 ) - Please choose one
Symptoms of logical errors are ------------------------------
► code is misbehaving

► The program doesn't crash, but akes odd branches through the code.


► Results are the opposite

► Output looks strange,

► all of the given

Question No: 20 ( Marks: 1 ) - Please choose one
First hand accounts of the problem are always useful in Debugging process.

► True

► False


Question No: 21 ( Marks: 1 ) - Please choose one
In the debugging process a stack trace is a very useful tool.

► True

► False


Question No: 22 ( Marks: 1 ) - Please choose one
Establishing responsibilities for objects includes
► Generalization Relationships
► Specialization Relationships
► all of the above
► identifying Association relationships

Question No: 23 ( Marks: 1 ) - Please choose one
Stakeholders are different people who would be interested in the -----------

► Software
► System
► Product
► All of the given

Question No: 24 ( Marks: 1 ) - Please choose one
A -------------------- is a code that explains itself without the need of comments and
extraneous documentation

► Self documenting code
► Self telling Code
► Self Documenting Design
► None of the given

Question No: 25 ( Marks: 1 ) - Please choose one
1. Variables should be initialized where they are declared and they should be declared in
the -------------- scope possible.

► Smallest
► largest
► medium
► None of the given

Question No: 26 ( Marks: 1 ) - Please choose one
Which of the following is an/are advantage(s) of object oriented analysis & design over structured system analysis & design?


► Ease of modeling real world events
► Reusability
► Maintainability
► All of given

Question No: 27 ( Marks: 2 )
what is called self documenting code.





Question No: 28 ( Marks: 2 )
what is an Inspection Checklist.









Question No: 29 ( Marks: 2 )
Give 2 examples of exceptional code pathes.





Question No: 30 ( Marks: 2 )
The following written statement depicts which requirement from the requirement engineering process

“Constraints on the services or functions offered by the system such as timing constraints, constraints on the development process, standards, etc.”





Question No: 31 ( Marks: 3 )
Write unit testing quantitative benefits.




Question No: 32 ( Marks: 3 )
Give three general rules for avoiding split lines.





Question No: 33 ( Marks: 3 )
Expalin about 3 coverage schemes in white box testing.





Question No: 34 ( Marks: 5 )
List five guidelines that can help you in writing portable code.







Question No: 35 ( Marks: 5 )
Below is the chunk of code :

result = squareRoot(argument);
assert (abs (result * result – argument) < epsilon);

Write the Contract for square root routine keeping in view unit testing.




Question No: 36 ( Marks: 5 )
Parentheses should always be used as they reduce complexity. Explain it with the help of a single example.