0% found this document useful (0 votes)
67 views19 pages

Cs504 Software Engineering Spring Final 2012

This document appears to be a collection of exam questions from a CS504 Software Engineering course at the Virtual University of Pakistan. There are 52 multiple choice and short answer questions covering topics like object-oriented design, C++ standards, debugging, testing, inspections, requirements, and more. The questions range from 2 to 5 marks each. At the end, one student shares the questions that will be on their exam paper, which focus on debugging, bit fields, guidelines for equivalence partitioning, the importance of debugging, coding conventions, aggregation, and self-documenting code.

Uploaded by

asfadsadas
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
67 views19 pages

Cs504 Software Engineering Spring Final 2012

This document appears to be a collection of exam questions from a CS504 Software Engineering course at the Virtual University of Pakistan. There are 52 multiple choice and short answer questions covering topics like object-oriented design, C++ standards, debugging, testing, inspections, requirements, and more. The questions range from 2 to 5 marks each. At the end, one student shares the questions that will be on their exam paper, which focus on debugging, bit fields, guidelines for equivalence partitioning, the importance of debugging, coding conventions, aggregation, and self-documenting code.

Uploaded by

asfadsadas
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 19

Cs504 Software engineering

Spring final 2012

Question #1 marks 2

what is the basic unit of object oriented design ? discuss briefly.

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

what extension should be used for c++ header file?

Ans:

C++ header files should have the extension .h.

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

describe three coverage schemes related to white box testing?

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

are tested. Therefore, sequences of statements following a decision are tested.

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

generated and tested against the code.


Question 4…. marks 3

what is difference between inspection and testing?

Ans:

We always need to employ inspection techniques and combine them with testing to

increase the effectiveness of defect removal efficiency.

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

Consider the following statement

array[i++] = array[i++]=x;

keeping in mind the problems caused by side effects. how the above statement can
be dangerous.

Ans:

Due to side effects, multiple assignments become very dangerous. In this

statement, a whole depends upon when i is incremented.

question 6 marks 5

A 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? Do you agree with the statement or not ? Provide logical
reason.

Ans:

Only partially we can accept this claim.coz development is a creative activity.

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

Which of the following are the magic numbers?

 0
 1
 9
 11
 22

Ans:

All.

Any number (even 0 or 1) used in the code can be a magic number.

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.

First option will be ideal to handle such issues.

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

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)

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

My today paper is that:

1. define debugging? 2

2.define Bit Field? 2

3.write any two guideline for developing equivalence partitioning? 3

4.importance of debugging? 5

5. code from General convention coding for java and c++? 5

6. write two aggregation? 5

7. define self documenting code? 2

8.diagram about use case in which identify who is actor? 3

four questions are not in mind.

MCQ are half from Moazz papers

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

CS504 Current Paper 16 july 2012

Current Paper 2012 CS504


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
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

CS: 504 Final papers

(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

What is meant by Holistic Approach? (2)

Q3.

What problems can arise if we use vendor specific language extensions instead of using STL for
writing a program? (2)

Q.4

What extension should be used for C++ header files? (2)

Q.5

According to Barry Boehm:

‘If a project has not achieved system architecture including its rationale, the project should not
proceed to full-scale system development’? (3)

Q.6

What is Expecting handling? (3)

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

Define Software inspection. Discuss its benefits in Software Testing? (5)

Q.11

Expectations do increase the code complexity. Explain this with the help of an example?

(5)

Q.12

Following are difficult programming term. Write their use: (5)

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

18th july 2012 CS 504 paper

paper was tough

mcq's were almost new.

a code was given with a short circuiting error(5 marks)

write two code structures(5 marks)

2 type of software development framework task set(5 marks)


in OOL when sequential diagram is used and when collaboratin diagram is used(5 marks)

test cases and test data difference(3 marks)

do u think do-while loop shoud be avoided(3 marks)

do u think multilevel comments are used in C++ and java?(3 marks)

why vendor specific language is not prefered then STL??(3 marks)

in flow graph V=E-N+2 what does E and N stands for??(2 marks)

why TAB and Break Page special key are avoided(2 marks)

baki 2 questions yaad nahi....

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:

MCQs was almost new

Global variable declaration, in style point of view

>>> You have to code for class and interface in JAVA. in what sequence you code the
instant variables, static variable, constructors, method...... 5 marks

>>> Describe 4 layers of OO Design Pyramid...... 5 marks

>>> write a "note on Testing usefulness"...... 5 marks

Unit test tips

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

Objective from past some are news

What is the Software Engineering Framework

The drawback is fixing a requirement or design defect

after the once testing phase is completed & defects are discovered in the system what is next
step

c in C++ ia aligned example

what is most desirable quality of a software artifact?

Codec++is in aligned?

Symptoms & example of loop error?

Do while loop?

make the code useable

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

CS504- Software Engineering – I

Date 19th July 2012

Maria afzal

Mostly mcq’s were mostly from past papers


Subjective paper

QNO. 1 Give IEEE software requirement definition? (2 marks)

QNO. 2 Write down the bugs classes in finding software defect? (2 marks)

QNO. 3 Which of the following is the correct statement? (2 marks)

 Software verification tries to answer the question “are we building the


product right ”
 Automated code amylases can be use as a technique of verification
 Data testing is a verification technique

QNO. 4 Why do you understand the self documenting code? (2 marks)

QNO. 5 Explain the business process diagram? (In tree lines) (3 marks)

QNO. 6 Software differ from artifact produce by other engineering disciplines (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)

QNO. 10 Explain the infeasible paths? Give example. (5 marks)

QNO. 11 Write the importance of debugging? (5 marks)

QNO. 12 What do you understand by Hungarian notation and Bicaptialization?


Give example of each. (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

CS: 504 Final papers


(Jasmine Khan)

MCS

20/06/2012……………….

Current paper of Cs504

Total 52 questions:

4 questions of 2 marks

4 questions of 3 marks

4 questions of 5 marks.

2 mark Questions:

1. Write unit testing principles.

2. Where Term Compute can be used in Methods

3. What is the greatest advantage of exception handling?

4. What does this mean” Object Creation and Life Time”?

4 questions of 3 marks

1. How one can avoid hazards caused by side effects while writing code. List the two
guidelines.

2. Write unit testing quantitative benefits.

3. Consider the following code fragment.

while a

while b

}
If you were to test this code, what would be the test technique to adopt?

4. What is an Inspection Checklist?

4 questions of 5 marks.

1. Give three general rules for avoiding split lines.

2. List five guidelines that can help you in writing portable code.

3. Explain about 3 coverage schemes in white box testing.

4. Parentheses should always be used as they reduce complexity. Explain it with the help of
a single

example.

~~~~~~~~~~~~~~~~~~~~~~~(Jasmine Khan)~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

CS: 504 Final papers

(Jasmine Khan)

MCS

21/06/2012……………….

Current paper of Cs504

Total 52 questions:

4 questions of 2 marks

4 questions of 3 marks

4 questions of 5 marks.

2 mark Questions:

1. Define Modularity.

2. What are the different phases of testing? Draw a diagram.

3. What are the six elements that are present in every computer-based system?

4. Differentiate between Architectural Design and System Architecture in a single line.


4 questions of 3 marks

1. What is called self documenting code?

2. What is meant by Software Debugging?

3. Why comments are requiring to be indented and how it should be done, explain with one
example?

4. Write unit testing principles.

4 questions of 5 marks.

1. Why and how complex expressions should be written in multiple short statements,
Explain it with

Example

2. What is the Usefulness of Testing

3. What are the static analyzers, give a check list of the requirements?

4. What is the Software testing objective? Also define a successful test.

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

My today's Paper (21 July, 2012)

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

Q3. Qualitative benefits of unit Testing? (3)

Q4. What is loop error give symptoms and example (5)

Q5. What is ambiguous requirements? Explain by giving an example (5)

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

What is ambiguous 2 marks

Exception handling 2 marks

What is the Tester phase 3 marks

type of software development framework task set 3marks

Importance of debugging 5 marks

why TAB and Break Page special key are avoided 2 marks

hungari notation by the bicapitalization 5 marks

usefulness of the testing 5 marks

ak or statement given the us ks code or name batani th. 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=4#comments#ixzz2GOql4Jpx

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy