CS504 - FINALTERM SUBJECTIVE SOLVED WITH REFERENCES BY MOAAZ.pdf

Verified academic study resource for CS504 (Software Engineering - I) under the Software Engineering at Virtual University of Pakistan. This PDF document (Final-Term Solved Past Paper & Examination Pack compiled by Moaaz Siddhu) covers Final-Term Exam Scope (Lectures 23 to 45) spanning approximately 320 pages across 4 curriculum modules, and is indexed for student examination review with instant in-browser preview and 100% free direct download.

Course
CS504 – Software Engineering - I
Faculty
Software Engineering
Format
PDF
Type
Final-Term
Coverage
Final-Term Exam Scope (Lectures 23 to 45)
Compiled by
Moaaz Siddhu
Tags
SUBJECTIVE, SOLVED, FINALTERM

Virtual University regulations strictly require achieving at least 20% marks in the Final-Term exam paper alone (typically 12+ marks out of 60) to pass CS504, regardless of midterm scores.

What this file covers — CS504 syllabus roadmap

  1. Object-Oriented Paradigms: Classes & Data Abstraction — Lectures 23 to 29 (Pages 281 to 360). 16% Final-Term Marks (Core OO Concepts)
  2. Inheritance Hierarchies & Dynamic Polymorphism — Lectures 30 to 36 (Pages 361 to 435). 20% Final-Term Marks (Virtual Functions & V-Tables)
  3. Templates, Standard Library & Persistent File I/O — Lectures 37 to 41 (Pages 436 to 510). 14% Final-Term Marks (Generic Code & Streams)
  4. Final-Term Examination Dossier & Capstone Synthesis — Lectures 42 to 45 (Pages 511 to 585). Final-Term Exam Synthesis (Lectures 23–45 Scope)

Frequently asked questions

Where can I download CS504 - FINALTERM SUBJECTIVE SOLVED WITH REFERENCES BY MOAAZ.pdf for free?

You can preview and download "CS504 - FINALTERM SUBJECTIVE SOLVED WITH REFERENCES BY MOAAZ.pdf" (CS504 PDF, ~320 pages) directly from the MIHORA VU Study Library (https://study.mihora.tech/doc/cs504-finalterm-subjective-solved-with-references-by-moaaz-pdf-2) with 100% free high-speed downloads and zero registration requirements.

What syllabus chapters and lectures are covered in this CS504 file?

This document covers Final-Term Exam Scope (Lectures 23 to 45) across 4 distinct lecture units (Lectures 23 to 29, Lectures 30 to 36, Lectures 37 to 41, Lectures 42 to 45), featuring comprehensive definitions, solved objective questions, and examiner marking rubrics.

What is the passing criteria for CS504 under the VU 20% Two-Half Rule?

Under official Virtual University regulations, students must score at least 20% in the First Half (Quizzes, Assignments, GDBs, and Midterm combined) AND independently at least 20% in the Final-Term examination paper. Scoring under 20% in the final exam results in an automatic F grade regardless of earlier marks.

Are CS504 solved past papers and handouts verified for 2026 exams?

Yes. All CS504 materials on MIHORA VU—including Moaaz, Waqar Siddhu, and team archives—are reviewed against the current VU syllabus to help students prepare for 2026 Midterm, Final-Term, and online quiz examinations.

Inside this file

                           CS504-Softwere Engineering -1 JAN 28,2011
                               LATEST SOLVED SUBJECTIVES
                                        FROM FINALTERM PAPERS

    MC100401285            Moaaz.pk@gmail.com           MC100401285@gmail.com             Latest Subjective

                                FINALTERM EXAMINATION
                                       Spring 2010
Question No: 27 ( Marks: 2 )
What is Software Testing?
Answer:- (Page 192)
To understand the concept of software testing correctly, we need to understand a few related concepts.

Question No: 28 ( Marks: 2 )
Write unit testing qualitative benefits.
Answer:- (Page 207)
Assessment-oriented: Writing the unit test forces us to deal with design issues - cohesion, coupling.
Confidence-building: We know what works at an early stage. Also easier to change when it’s easy to retest.

Question No: 29 ( Marks: 2 )
Where Term Compute can be used in Methods?
Answer:- (Page 152)
The term compute can be used in methods where something is computed.
valueSet.computeAverage(); matrix.computeInverse()

Question No: 30 ( Marks: 2 )
Which of the following is a/are non-functional requirement of an e-learning system?

(a) User friendliness
(b) Time taken to download study materials through the system should not be too long.
(c) On-line assignment submission facility
(d) On-line chatting facility
(e) Robustness

Answer:-
(a) User friendliness

Question No: 31 ( Marks: 3 )
Write unit testing principles.
Answer:-(Page 207)
    In unit testing, developers test their own code units (modules, classes, etc.) during implementation.
    Normal and boundary inputs against expected results are tested.
    Thus unit testing is a great way to test an API.

Question No: 32 ( Marks: 3 )
The use of do.... while loops should be avoided. Explain why ?
Answer:-(Page 159)
The use of do.... While loops should be avoided. There are two reasons for this. First is that the construct is
superfluous; Any statement that can be written as a do.... while loop can equally well be written as a while loop
or a for loop. Complexity is reduced by minimizing the number of constructs being used. The other reason is of
readability. A loop with the conditional part at the end is more difficult to read than one with the conditional at
the top.

Question No: 33 ( Marks: 3 )
Give 3 Equivalence partitioning guidelines
Answer:-(Page 199)
    Organize your equivalence classes. Write them in some order, use some template, sequence, or group
      them based on their similarities or distinctions. These partitions can be hierarchical or organized in any
      other manner.
    Boundary conditions: determine boundary conditions. For example, adding in an empty linked list,
      adding after the last element, adding before the first element, etc.
    You should not forget invalid inputs that a user can give to a system. For example, widgets on a GUI,
      numeric instead of alphabets, etc.

Question No: 34 ( Marks: 5 )
Discus the symptoms and an example of memory overrun bug class.
Answer:-(Page 220)
Symptoms
    Program crashes quite regularly after a given routine is called, that routine should be examined for a
     possible overrun condition.
    If the routine in question does not appear to have any such problem the most likely cause is that another
     routine, called in the prior sequence, has already trashed variables or memory blocks.
    Checking the trace log of the called routines leading up to one with the problem will often show up the
     error.

Example
The array only has 50 slots available in its allocation. What happens at that point is that the function goes past
the end of the array and starts to walk on things beyond its control.
const kMaxEntries = 50;
int gArray[kMaxEntries];
char szDummyBuffer[256];

int nState = 10;
int ZeroArray (int *pArray)
{
for (inti=0;i<100;++i)
pArray[i] = 0;
}

Question No: 35 ( Marks: 5 )
Write at leas 5 General Naming conventions for C++ or Java
 Answer:-(Page 150)
1. Names representing types must be nouns and written in mixed case starting with upper case.
Line, FilePrefix

2. Variable names must be in mixed case starting with lower case.
line, filePrefix

3. Names representing constants must be all uppercase using underscore to separate words.
MAX_ITERATIONS, COLOR_RED

4. Names representing methods and functions should be verbs and written in mixed case starting with lower
case.
getName(), computeTotalWidth()

5. Names representing template types in C++ should be a single uppercase letter.
template<class T>
template<class C, class D>

Question No: 36 ( Marks: 5 )
Explain at least 2 code structures.
Answer:-(Page 201)
Case:-
 In Case statement, control can take either of several branches (as opposed to only two in If statement.) First
node represents the switch statement (C/C++) and nodes in middle correspond to all different cases. Program
can take one branch and result into the same instruction.

While
A while loop structure consists of a loop guard instruction through which the iteration in the loop is controlled.
The control keeps iterating in the loop as long as the loop guard condition is true. It branches to the last
instruction when it becomes false.

                             FINALTERM EXAMINATION
                                       Spring 2010
                        CS504- Software Engineering - I (Session - 3)

Question No: 27     ( Marks: 2 )
What does this mean” Object Creation and Life Time”?
Answer:-(Page 87)
From the object creation and life time point of view, when an object is instantiated, all of its parts must also be
instantiated at the same time before any useful work can be done and all of its part die with it. While in the case
of association, the life time of two associated object is independent of one another. The only limitation is that
an object must be alive or has to be instantiated before a message can be sent to it.

Question No: 28 ( Marks: 2 )
How one can avoid hazards caused by side effects while writing code. List the two guidelines.
Answer:-(Page 176)

More CS504 files

All CS504 files · Midterm Prep 2026 · MCQs Bank