CS504Allcurrent2011magasubjectivepartsolved.pdf

Verified academic study resource for CS504 (Software Engineering - I) under the Software Engineering at Virtual University of Pakistan. This PDF document (Mega Solved MCQs Question Bank) covers Full Course Curriculum spanning approximately 180 pages across 8 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
MCQ Bank
Coverage
Full Course Curriculum

Cross-verify solutions against official lecture handouts. Practice active recall before checking answers to ensure true concept retention.

What this file covers — CS504 syllabus roadmap

  1. Core Architecture, Syntax & Primitive Data Structures — Lectures 1 to 6 (Pages 1 to 65). 15% Objective Marks (8–10 MCQs)
  2. Conditional Branching, Loops & Logical Control Flow — Lectures 7 to 12 (Pages 66 to 140). 18% Exam Marks (MCQs + 2-Mark Short Questions)
  3. Memory Management, Pointers, Arrays & Functions — Lectures 13 to 18 (Pages 141 to 215). 22% Exam Marks (High Yield for Midterms)
  4. Midterm Consolidation, Strings & Algorithm Synthesis — Lectures 19 to 22 (Pages 216 to 280). Midterm Exam Culmination (Lectures 1–22 Scope)
  5. Object-Oriented Paradigms: Classes & Data Abstraction — Lectures 23 to 29 (Pages 281 to 360). 16% Final-Term Marks (Core OO Concepts)
  6. Inheritance Hierarchies & Dynamic Polymorphism — Lectures 30 to 36 (Pages 361 to 435). 20% Final-Term Marks (Virtual Functions & V-Tables)
  7. Templates, Standard Library & Persistent File I/O — Lectures 37 to 41 (Pages 436 to 510). 14% Final-Term Marks (Generic Code & Streams)
  8. 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 CS504Allcurrent2011magasubjectivepartsolved.pdf for free?

You can preview and download "CS504Allcurrent2011magasubjectivepartsolved.pdf" (CS504 PDF, ~180 pages) directly from the MIHORA VU Study Library (https://study.mihora.tech/doc/cs504allcurrent2011magasubjectivepartsolved-pdf) with 100% free high-speed downloads and zero registration requirements.

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

This document covers Full Course Curriculum across 8 distinct lecture units (Lectures 1 to 6, Lectures 7 to 12, Lectures 13 to 18, Lectures 19 to 22, 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

                                                                                        1

                                 All current papers 2011
                                Solved papers (eagle_eye)
                            CS504 Current data final term paper
                                         15 FEB

         All the subjective part of 2011 papers solved
         complete reference numbers

         1) Describe the the concept of cyclomatic complexity priefly            (5)
Cyclomatic complexity is a software metric (measurement) Cyclomatic complexity is
computed using a graph that describes the control flow of the program. The nodes of the
graph correspond to the commands of a program.
Cyclomatic complexity is a quantitative measure of the logical complexity of a program.
It defines number of independent paths in the basis set of a program. It provides an upper
bound for the number of tests that must be conducted to ensure that all statements and
branches have been executed at least once.

         2) Give examples (atleast two) of business requirements        (5)
For example, a business requirement to generate maximum revenue from the kiosk would
imply the early implementation of features directly associated with selling more products
or services to the customer, rather than glitzy features that appeal to only a subset of
customers.

         3) Write principles of unit testing (5)
          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.

         4) 5 general naming conventions in Java or C++         (5) ( P # 150)

1. Names representing types must be nouns and written in mixed case starting with upper
case.
2. Variable names must be in mixed case starting with lower case.
3. Names representing constants must be all uppercase using underscore to separate
words.
4. Names representing methods and functions should be verbs and written in mixed case
starting with lower case.
5. Names representing template types in C++ should be a single uppercase letter.
6. Global variables in C++ should always be referred to by using the :: operator.
7. Private class variables should have _ suffix.
8. Abbreviations and acronyms should not be uppercase when used as name.
9. Generic variables should have the same name as their type.
10. All names should be written in English.
12. The name of the object is implicit, and should be avoided in a method name.
            line.getLength(); // NOT: line.getLineLength();

                                                                                        2

       5) Difference between testing and inspection            (3) ( P # 210)
Inspection can be effective when same method can be used on a lot of different
documents and testing is effective when it comes to rerunning the same test.
Inspections and testing are complementary and not opposing verification techniques.
Both should be used during the verification and validation process. Inspections can
check conformance with a specification but not conformance with the customer’s real
requirements in testing, one defect may mask another so several executions are required.
.

               6) Successful testing
        A successful testing is that which detect the defect (errors) and fixed them.

               7) Validation ( P # 192)
       Does the product meet user expectations?
       Have you built the right product?

               8) 3 rules for avoiding common mistakes ( P # 176)
1.
array[i++] = i;
If i is initially 3, array[3] might be set to 3 or 4.
2.
array[i++] = array[i++] = x;
Due to side effects, multiple assignments become very dangerous. In this example, a
whole depends upon when i is incremented.
3.
“,” is very dangerous as it causes side effects. Let’s look at the following statement:
int i, j = 0;
Because of the syntax, many people would assume that i is also being initialized to 0,
while it is not. Combination of , and = -- is fatal. Look at the following statement:
a = b, c = 0;
A majority of the programmers would assume that all a, b, and c are being initialized to 0
while only c is initialized and a and b have garbage values in them. This kind of overlook
causes major programming errors which are not caught easily and are caused only
because there are side effects.

       9) The following statement depicts which requirement engineering process?
       “Constraints on the service function offered by the system such as timing
       constraints, constraints on the development process, standard etc”

       10) How comments should be intended related to their position in code
       (example) ( P # 176)
1. All comments should be written in English. In an international environment English
is the preferred language.
2. Use // for all comments, including multi-line comments.
               // Comment spanning
               // more than one line
3. Comments should be indented relative to their position in the code.

       11) What is meant by software debugging? ( P # 213)

                                     NEXT PAPER

       Naming Convention        5 marks

                                                                                                3

It is a variable naming convention that includes information about the variable in its name
(such as data type, whether it is a reference variable or a constant variable, etc). Every
company and programmer seems to have their own flavor of Hungarian Notation. The
advantage of Hungarian notation is that by just looking at the variable name, one gets all
the information needed about that variable

               Diff b/w test data and test cases         3 mark ( P # 195)

Test Cases and Test Data
In order to test a software application, it is necessary to generate test cases and test data
which is used in the application. Test cases correspond to application functionality such
that the tester writes down steps which should be followed to achieve certain

More CS504 files

All CS504 files · Midterm Prep 2026 · MCQs Bank