Cs504 Software Engineering Spring Final 2012
Cs504 Software Engineering Spring Final 2012
Question #1 marks 2
Ans:
The basic unit of object oriented design is an object. An object can be defined as a
tangible entity that exhibits some well defined behavior. An object represents an
individual,
identifiable item,
unit, or entity,
either real or abstract,
with a well defined role in the problem domain. An object has state, behavior, and
identity.
Question2….. 2 Makrs
Name any two standards which are being used by ,c++ for writing programs.
Ans:
1. Hungarian Notation
2. Bicapitalization or camel case
quesiton 3 marks 2
Ans:
Example: MyClass.h
quesiton 4 marks 3
as pre peter coad methodology for deriving the object model , " sale" is a
transaction object keeping in mind any point of sale system list the attributes of sale
object and services profited by it.
Ans:
product
pk Prod.id
Order.id
Dept.id
Prod.name
Prod.price
customer
pk Cust.id
Cust.name
store
pk Str.id
Str.name
Str.stock
sales
pk Saleitem.id
Sale.amount
Sale.date
Sale.time
Question 4 …….marks 3
Ans:
Statement Coverage: In this scheme, statements of the code are tested for a
successful test that checks all the statements lying on the path of a successful
scenario.
Branch Coverage: In this scheme, all the possible branches of decision structures
Path Coverage: In path coverage, all possible paths of a program from input
instruction to the output instruction are tested. An exhaustive list of test cases is
Ans:
We always need to employ inspection techniques and combine them with testing to
In inspections the emphasis is on early detection and fixing of defects from the program.
Inspections can check conformance with a specification but not conformance with the
customer’s real requirements. Inspections cannot check non-functional characteristics
such as performance, usability, etc. Inspection does not require execution of program and
they maybe used before implementation. Many different defects may be discovered in a
single inspection.
In testing, one defect may mask another so several executions are required.
For inspections, checklists are prepared that contain information regarding defects. Reuse
domain and programming knowledge of the viewers likely to help in preparing these
checklists. Inspections involve people examining the source representation with the aim
of discovering anomalies and defects. Inspections may be applied to any representation of
the system (requirements, design, test data, etc.) Thus inspections are a very effective
technique for discovering errors in a software program.
Question 5 …marks 3
array[i++] = array[i++]=x;
keeping in mind the problems caused by side effects. how the above statement can
be dangerous.
Ans:
question 6 marks 5
Ans:
Objective of development is to show that how the program works. tester uses his/her
imagination to come up with use patterns of the application that can help him/her in
describing exact steps that should be executed in order to test a particular functionality.
Moreover, they needs to figure out
loose points in the system from where he/she can discover defects. All these activities are
highly imaginative and a students are supposed to possess above average (if not
excellent) analytical skills. Scenarios missed or misunderstood during development
analysis would never be tested correctly because the corresponding test cases would
either be missing or would be incorrect.
So, student claims that we cannot implement the software construction activities, if we
don't have supporting tools that could provide us the automated or semi-automated
support is not acceptable at all.
quesiton 7 marks 5
0
1
9
11
22
Ans:
All.
These are constant that mean something but they do not give any indication of their
importance or derivation, making the program hard to understand and modify. To a
reader they work like magic and hence are called magic numbers. It should rather have a
name of its own that can be used in the program instead of the number.
question 8 marks 5
while working on a GUI user goes for some clicks in order to delete some component
of that system but that component is in use by some other stockholder and hence
cannot be deleted at that specific time'.
If you are the developer for this GUI , write at least 3 ways for handling above
scenario and also tell which solution is ideal in your point of view.
Ans:
First, if a component is currently in use, it should not have been displayed in the list at the
right.
Secondly, instead of displaying many messages separately in many dialog boxes, it
would have been appropriate to combine them in minimum message pop ups.
Thirdly, close all the other expected application which can use that component.
Read more: Cs 504 Current Final Term Papers Spring 2012 Date: 16-July-2012 to 27-July-2012 -
Virtual University of Pakistan http://vustudents.ning.com/forum/topics/cs-504-current-final-
term-papers-spring-2012-date-16-july-2012-
to?groupUrl=cs504softwareengineeringi&groupId=3783342%3AGroup%3A59359&id=378334
2%3ATopic%3A1410987&page=4#comments#ixzz2GOqcqzAK
Question.No.41
Some statements were given and have to choose the correct about functional requirements (i.e
just concept it is not complete question) (2 Marks)
Question.No.42
Question.No.43
Question.No.44
Question.No.45
Suppose you are working as a software engineer involved in the development of an e-commerce
website. What are 2 most important characteristics your software must have? (3 Marks)
Question.No.46
The use of do.... while loops should be avoided, why is that? (3 Marks)
Question.No.47
Question.No.48
Question.No.49
Define the external entities in the statement “Air traffic control system”. (3 Marks)
Question.No.50
What is the Software testing objective? Also define a successful test? (5 Marks)
Question.No.51
Question.No.52
What are loop errors symptoms and explain with example? (5 Marks)
Read more: Cs 504 Current Final Term Papers Spring 2012 Date: 16-July-2012 to 27-July-2012 -
Virtual University of Pakistan
http://vustudents.ning.com/group/cs504softwareengineeringi/forum/topics/cs-504-current-final-
term-papers-spring-2012-date-16-july-2012-to#ixzz2GOpSaOLD
1. define debugging? 2
4.importance of debugging? 5
Read more: Cs 504 Current Final Term Papers Spring 2012 Date: 16-July-2012 to 27-July-2012 -
Virtual University of Pakistan
http://vustudents.ning.com/group/cs504softwareengineeringi/forum/topics/cs-504-current-final-
term-papers-spring-2012-date-16-july-2012-to#ixzz2GOpYOrrQ
Question.No.42
Who we can make self-documented code? (2 Marks)
Question.No.43
What is software debugging? (2 Marks)
Question.No.44
What is the greatest advantage of exception handling? (2 Marks)
Question.No.45
Suppose you are working as a software engineer involved in the development of an e-
commerce website. What are 2 most important characteristics your software must have?
(3 Marks)
Question.No.46
The use of do.... while loops should be avoided, why is that? (3 Marks)
Question.No.47
What is test case and test data? (3 Marks)
Question.No.48
What are Inspection pre-conditions? (3 Marks)
Question.No.49
Define the external entities in the statement “Air traffic control system”. (3 Marks)
Question.No.50
What is the Software testing objective? Also define a successful test? (5 Marks)
Question.No.51
A question about coding (not correctly remember) (5 Marks)
Question.No.52
What are loop errors symptoms and explain with example? (5 Marks)
---------------------------------------------------------
Total 52 question 40 mcqz 8 or 10 new
A scenario given wats wrong with it? 2
Abbreviations are used? yes /no? 2
Wat is/are example of cryptic code?5
1 X*=a
2 yad nahi
3 a=z>>d
In which scenario short circuiting is used? 3
Importance of debugging?5
Wat is infeasible path give example? 5
Difference between aggregation and association 3
four statements are given chose which are true 2
Read more: Cs 504 Current Final Term Papers Spring 2012 Date: 16-July-2012 to 27-July-2012 -
Virtual University of Pakistan
http://vustudents.ning.com/group/cs504softwareengineeringi/forum/topics/cs-504-current-final-
term-papers-spring-2012-date-16-july-2012-to#ixzz2GOpgCvHE
My Today Paper…………………… 18/06/2012
(Jasmine Khan)
Q.1
A vehicle has several parts such as the set of which and engine buses and cars are example of
some vehicle found on the roads. Consider the following classes? (2)
Q.2
Q3.
What problems can arise if we use vendor specific language extensions instead of using STL for
writing a program? (2)
Q.4
Q.5
‘If a project has not achieved system architecture including its rationale, the project should not
proceed to full-scale system development’? (3)
Q.6
Q.7
What are three reasons due to which a data fault may occur in a program? (3)
Q.8
Do you agree or not that the use of do.... while loops should be avoided. Explain why? (3)
Q.9
From the diagram given below, how will you argue this diagram represent the “ Whole Part “
Structure? (5)
Q.10
Q.11
Expectations do increase the code complexity. Explain this with the help of an example?
(5)
Q.12
1. Get/Set
2. Is prefix
3. compute
4. find
5. Initialize.
Read more: Cs 504 Current Final Term Papers Spring 2012 Date: 16-July-2012 to 27-July-2012 -
Virtual University of Pakistan http://vustudents.ning.com/forum/topics/cs-504-current-final-
term-papers-spring-2012-date-16-july-2012-
to?groupUrl=cs504softwareengineeringi&groupId=3783342%3AGroup%3A59359&id=378334
2%3ATopic%3A1410987&page=2#comments#ixzz2GOptRhxp
why TAB and Break Page special key are avoided(2 marks)
Read more: Cs 504 Current Final Term Papers Spring 2012 Date: 16-July-2012 to 27-July-2012 -
Virtual University of Pakistan http://vustudents.ning.com/forum/topics/cs-504-current-final-
term-papers-spring-2012-date-16-july-2012-
to?groupUrl=cs504softwareengineeringi&groupId=3783342%3AGroup%3A59359&id=378334
2%3ATopic%3A1410987&page=2#comments#ixzz2GOpxRMjo
My today Paper:
>>> You have to code for class and interface in JAVA. in what sequence you code the
instant variables, static variable, constructors, method...... 5 marks
collaboration diagrams
Exception Neutralize
Read more: Cs 504 Current Final Term Papers Spring 2012 Date: 16-July-2012 to 27-July-2012 -
Virtual University of Pakistan http://vustudents.ning.com/forum/topics/cs-504-current-final-
term-papers-spring-2012-date-16-july-2012-
to?groupUrl=cs504softwareengineeringi&groupId=3783342%3AGroup%3A59359&id=378334
2%3ATopic%3A1410987&page=2#comments#ixzz2GOq35sOk
after the once testing phase is completed & defects are discovered in the system what is next
step
Codec++is in aligned?
Do while loop?
Read more: Cs 504 Current Final Term Papers Spring 2012 Date: 16-July-2012 to 27-July-2012 -
Virtual University of Pakistan http://vustudents.ning.com/forum/topics/cs-504-current-final-
term-papers-spring-2012-date-16-july-2012-
to?groupUrl=cs504softwareengineeringi&groupId=3783342%3AGroup%3A59359&id=378334
2%3ATopic%3A1410987&page=2#comments#ixzz2GOq8vv2U
Maria afzal
QNO. 2 Write down the bugs classes in finding software defect? (2 marks)
QNO. 5 Explain the business process diagram? (In tree lines) (3 marks)
QNO. 7 Bit field do suffer from lack of probability between platforms. Why? (3
marks)
QNO. 8 Array [i++] = array [i++] = x; why this have the dangerous side effect? (3
marks)
QNO. 9 Suppose u are eliciting the requirement of the software and you realized a
conflict between estimated cost of the software and required efficiency ,now
from your point of view, explain what will you in this situation. (5 marks)
Read more: Cs 504 Current Final Term Papers Spring 2012 Date: 16-July-2012 to 27-July-2012 -
Virtual University of Pakistan http://vustudents.ning.com/forum/topics/cs-504-current-final-
term-papers-spring-2012-date-16-july-2012-
to?groupUrl=cs504softwareengineeringi&groupId=3783342%3AGroup%3A59359&id=378334
2%3ATopic%3A1410987&page=2#comments#ixzz2GOqDhBP8
MCS
20/06/2012……………….
Total 52 questions:
4 questions of 2 marks
4 questions of 3 marks
4 questions of 5 marks.
2 mark Questions:
4 questions of 3 marks
1. How one can avoid hazards caused by side effects while writing code. List the two
guidelines.
while a
while b
}
If you were to test this code, what would be the test technique to adopt?
4 questions of 5 marks.
2. List five guidelines that can help you in writing portable code.
4. Parentheses should always be used as they reduce complexity. Explain it with the help of
a single
example.
~~~~~~~~~~~~~~~~~~~~~~~(Jasmine Khan)~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
(Jasmine Khan)
MCS
21/06/2012……………….
Total 52 questions:
4 questions of 2 marks
4 questions of 3 marks
4 questions of 5 marks.
2 mark Questions:
1. Define Modularity.
3. What are the six elements that are present in every computer-based system?
3. Why comments are requiring to be indented and how it should be done, explain with one
example?
4 questions of 5 marks.
1. Why and how complex expressions should be written in multiple short statements,
Explain it with
Example
3. What are the static analyzers, give a check list of the requirements?
Read more: Cs 504 Current Final Term Papers Spring 2012 Date: 16-July-2012 to 27-July-2012 -
Virtual University of Pakistan http://vustudents.ning.com/forum/topics/cs-504-current-final-
term-papers-spring-2012-date-16-july-2012-
to?groupUrl=cs504softwareengineeringi&groupId=3783342%3AGroup%3A59359&id=378334
2%3ATopic%3A1410987&page=2#comments#ixzz2GOqIRtHp
Q1. What extension should be used for C++ header files? (2)
Q2. Following are difficult programming term. Write their use, and give example: (5)
Get/Set
Is prefix
Q6. Array [i++] = array [i++] = x; why this have the dangerous side effect? (3 marks)
Q7. Explain the infeasible paths? Give example. (5 marks)
Read more: Cs 504 Current Final Term Papers Spring 2012 Date: 16-July-2012 to 27-July-2012 -
Virtual University of Pakistan http://vustudents.ning.com/forum/topics/cs-504-current-final-
term-papers-spring-2012-date-16-july-2012-
to?groupUrl=cs504softwareengineeringi&groupId=3783342%3AGroup%3A59359&id=378334
2%3ATopic%3A1410987&page=3#comments#ixzz2GOqPHrEv
why TAB and Break Page special key are avoided 2 marks
Read more: Cs 504 Current Final Term Papers Spring 2012 Date: 16-July-2012 to 27-July-2012 -
Virtual University of Pakistan http://vustudents.ning.com/forum/topics/cs-504-current-final-
term-papers-spring-2012-date-16-july-2012-
to?groupUrl=cs504softwareengineeringi&groupId=3783342%3AGroup%3A59359&id=378334
2%3ATopic%3A1410987&page=4#comments#ixzz2GOql4Jpx