CS504 Finalterm Current Paper 2013 File 14

No Comments

CS504 Current pprs ( 22 feb to 6 march ) here ... !!!
What is the syntax used for naming objects in a sequence diagrams? (2marks)
What is meant by Software Debugging? (2marks)

No M.C.Q was from Mooaz file not even 1 so don’t waste your time on M.C.Qs file focus on subjective file but more focus on notes
And questions were
1) What is the syntax used for naming objects in a sequence diagrams?(2)
2) How these are simplified to avoid side effects
a) Input=0, output=25;
b) Prime[i++]=x=arr[i];

3) Describe three coverage schemes related to white box testing? (3marks)
4) Scenario was given and you have to tell 2 entities from that, in DFD. (3marks)
5) When we shift one application from on environment to other, the look of the application is different of both, give its reason?
6) Write one advantage and one disadvantage of software inspection (3marks)
7) You have to code for class and interface in JAVA, in what sequence you code the instant variables, static variable, constructors, method...... (5 marks)

A code was given and you have to apply cohesion (5 marks)
9) A code was given and you have to compute cyclomatic complexity (5maks)
The code was
If (a>10)
C++;
else
c++;
if (b>10)
d++;
else
e++;
10) One more code was to identify infeasible paths and modify that tell the value of N (5marks)
And for mcqs learn pattern, testing, and exception related topics
Best of luck every body
40 mcqs 50% from past papers

Item, register, cash drawer may b a perfect example of Peter Coad Methodology 2 marks

What is mean by memory overrun? 2 marks

Explain magic number. 2 marks

For which statement; statement coverage, branch coverage and path coverage are same? 2 marks

List down at least three phases of software development life cycle in which there in a great chance of error entrence? 3 marks

Write down how we can avoid side effect in these piece of codes 3 marks

max[--k] = k;
a = b, arr = “a”;

How the structures are identified in OOD? 3 marks

Here is an infeasible path in this piece of code.

if (a == b) //1

c = c-1; //2

if (a != b) //3

c = c+1; //4

//5

Re write it such that there will no more infeasible path. 3 marks



Exceptions do increase code complexity. Explain with help of an example. 5 marks

What are activities performed in the software design phase. List down these activities. 5 marks

What type of bug this is and explain how. 5 marks



if((input >= 1 && input <= 10) &&

(input >= 15 && input <= 20))

{

// Do something for valid case

}

else

{

// Do something for invalid case

}

Write down the sequence of declaration for the class and interface. 5 marks

My today's CS504 paper.

Total 52 Q

40 MCQ 15/40 from Moaaz File

Short Q: Definitions of:

Profiling

Modularity

Qualitative benefits of unit testing

Quantitative benefits of unit testing

Why complete testing not possible?

Long Q:

Write Example of get() ans i prefix

Next PostNewer Post Previous PostOlder Post Home

0 comments

Post a Comment