FINALTERM EXAMINATION
Spring 2010
CS504- Software Engineering - I (Session - 4)
Time: 90 min
M a r k s: 58
Question No: 1 ( M a r k s: 1 ) http://vuzs.net
What are the three generic phases of software engineering?
► definition, development, support
► what, how, where
► programming, debugging, maintenance
► analysis, design, testing
Question No: 2 ( M a r k s: 1 ) http://vuzs.net
In the context of requirements analysis, partitioning results in the elaboration
of data, function, or behavior.
► True
► False
Question No: 3 ( M a r k s: 1 ) http://vuzs.net
Quantitative methods for assessing the quality of proposed architectural designs are readily available.
► True
► False
Question No: 4 ( M a r k s: 1 ) http://vuzs.net
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 ( M a r k s: 1 ) http://vuzs.net
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 ( M a r k s: 1 ) http://vuzs.net
Variable names must be in mixed case starting with upper case.
► True
► False
Question No: 7 ( M a r k s: 1 ) http://vuzs.net
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 ( M a r k s: 1 ) http://vuzs.net
Real-time applications add a new and potentially difficult element to the testing mix
► performance
► reliability
► security
► time
Question No: 9 ( M a r k s: 1 ) http://vuzs.net
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 ( M a r k s: 1 ) http://vuzs.net
Configuration reviews are not needed if regression testing has been rigorously applied during software integration.
► True
► False
Question No: 11 ( M a r k s: 1 ) http://vuzs.net
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 ( M a r k s: 1 ) http://vuzs.net
the development view describes the -----------organization of the software in its development environment,
► Static
► Dynamic
► Still
► Static & Dynamic
Question No: 13 ( M a r k s: 1 ) http://vuzs.net
-------------- 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 ( M a r k s: 1 ) http://vuzs.net
Hungarian Notation was first discussed by Charles Simonyi of------------------
► Microsoft.
► Oracle
► Apple Macintosh
► Non of the all
Question No: 15 ( M a r k s: 1 ) http://vuzs.net
The language does not specify whether ------------- is signed or unsigned.
► char
► integer
► double
► constant
Question No: 16 ( M a r k s: 1 ) http://vuzs.net
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 ( M a r k s: 1 ) http://vuzs.net
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 ( M a r k s: 1 ) http://vuzs.net
Software Bugs have multiple names, Which one of the belw is not the name of Software Bugs -------------- ► Bugs
► Defects
► Errors
► Mistakes
Question No: 19 ( M a r k s: 1 ) http://vuzs.net
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 ( M a r k s: 1 ) http://vuzs.net
First hand accounts of the problem are always useful in Debugging process.
► True
► False
Question No: 21 ( M a r k s: 1 ) http://vuzs.net
In the debugging process a stack trace is a very useful tool.
► True
► False
Question No: 22 ( M a r k s: 1 ) http://vuzs.net
Establishing responsibilities for objects includes ► Generalization Relationships
► Specialization Relationships
► all of the above
► identifying Association relationships
Question No: 23 ( M a r k s: 1 ) http://vuzs.net
Stakeholders are different people who would be interested in the -----------
► Software
► System
► Product
► All of the given
Question No: 24 ( M a r k s: 1 ) http://vuzs.net
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 ( M a r k s: 1 ) http://vuzs.net
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 ( M a r k s: 1 ) http://vuzs.net
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 ( M a r k s: 2 )
what is called self documenting code.
Question No: 28 ( M a r k s: 2 )
what is an Inspection Checklist.
Question No: 29 ( M a r k s: 2 )
Give 2 examples of exceptional code pathes.
Question No: 30 ( M a r k s: 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 ( M a r k s: 3 )
Write unit testing quantitative benefits.
Question No: 32 ( M a r k s: 3 )
Give three general rules for avoiding split lines.
Question No: 33 ( M a r k s: 3 )
Explain about 3 coverage schemes in white box testing.
Question No: 34 ( M a r k s: 5 )
List five guidelines that can help you in writing portable code.
Question No: 35 ( M a r k s: 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 ( M a r k s: 5 )
Parentheses should always be used as they reduce complexity. Explain it with the help of a single example.