CS506 Midterm MCQS Solved With References By Moaaz-1.pdf

Verified academic study resource for CS506 (Enterprise Application Development) under the Computer Science at Virtual University of Pakistan. This PDF document (Midterm Solved Past Paper & Revision File compiled by Moaaz Siddhu) covers Mid-Term Exam Scope (Lectures 1 to 22) spanning approximately 240 pages across 4 curriculum modules, and is indexed for student examination review with instant in-browser preview and 100% free direct download.

Course
CS506 – Enterprise Application Development
Faculty
Computer Science
Format
PDF
Type
Midterm
Coverage
Mid-Term Exam Scope (Lectures 1 to 22)
Compiled by
Moaaz Siddhu
Tags
MCQ, SOLVED, MIDTERM

Focus on core definitions and repeated MCQs from Lectures 1–22. Remember that scoring in the First Half builds your safety buffer toward the mandatory 20% Two-Half passing rule in CS506.

What this file covers — CS506 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)

Frequently asked questions

Where can I download CS506 Midterm MCQS Solved With References By Moaaz-1.pdf for free?

You can preview and download "CS506 Midterm MCQS Solved With References By Moaaz-1.pdf" (CS506 PDF, ~240 pages) directly from the MIHORA VU Study Library (https://study.mihora.tech/doc/cs506-midterm-mcqs-solved-with-references-by-moaaz-1-pdf-2) with 100% free high-speed downloads and zero registration requirements.

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

This document covers Mid-Term Exam Scope (Lectures 1 to 22) across 4 distinct lecture units (Lectures 1 to 6, Lectures 7 to 12, Lectures 13 to 18, Lectures 19 to 22), featuring comprehensive definitions, solved objective questions, and examiner marking rubrics.

What is the passing criteria for CS506 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 CS506 solved past papers and handouts verified for 2026 exams?

Yes. All CS506 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

                         CS506- Web Design and Development
                                        Solved MCQS                        April 28,2012
                                     From Midterm Papers
   MC100401285         Moaaz.pk@gmail.com         Mc100401285@vu.edu.pk        PSMD01

                                 MIDTERM EXAMINATION
                                          Spring 2010
                         CS506- Web Design and Development (Session - 3)

Question No: 1 ( Marks: 1 ) - Please choose one
If we remove static from main then program __________
►Program cannot compile
►Program will compile and work properly
►Run time errors
►Exception throws in main        Click here for Detail

Question No: 2 ( Marks: 1 ) - Please choose one
If we remove String array from main then program____________
►Program cannot compile
►Program will compile and work properly
►Run time errors        Click here for Detail
►Exception throws in main

Question No: 3 ( Marks: 1 ) - Please choose one
Java developed in __________
►1990
►1995 (Page 12)
►1997
►2000

                                                                                 1

                                     MIDTERM EXAMINATION
                                               Fall 2008
                             CS506- Web Design and Development (Session - 2)

Question No: 1 ( Marks: 1 ) - Please choose one
Which of the following methods are invoked by the AWT to support paint and repaint operations?
   ► paint( )     Click here for Detail
   ► repaint( )
   ► draw( )
   ► redraw( )

Question No: 2 ( Marks: 1 ) - Please choose one
When defining a method you must include a ___________ to declare any exception that might be thrown but is
not caught in the method.
     ► try block
     ► finally block
     ► catch block
     ► throws-clause      Click here for Detail

Question No: 3 ( Marks: 1 ) - Please choose one
 Aside from the Scanner class, which of the following classes can be used for text-file file input?

    ► ObjectInputStream
    ► BufferedReader Click here for detail
    ► StringTokenizer
    ► None of these

Question No: 4 ( Marks: 1 ) - Please choose one
Which of the following statements is true regarding Vectors with no specified base type?
   ► A base type is needed, because Java needs to know how to allocate memory.
   ► No base type is needed, because Java will use the Object class as a base type. Click here for detail
   ► If a base type is not specified the code will not compile.
   ► No base type is needed because Vectors default to storing String objects.

Question No: 5 ( Marks: 1 ) - Please choose one
A serializable class must implement the method(s) _________.
    ► readObject and writeObject
    ► Either readObject or writeObject, or both, depending upon the desired behavior
    ► No need to implement any method         Click here for Detail
    ► None of the given option

                                                                                                      2

Question No: 6 ( Marks: 1 ) - Please choose one
You can ---------to a network using sockets.

    ► Read
    ► Write
    ► Read/Write (Page 222)
    ► None of these

Question No: 7 ( Marks: 1 ) - Please choose one
Socket is a --------------communication channel between hosts.

    ► Uni-directional
    ► Bi-directional       (Page 211)
    ► Multi-directional
    ► None of these

Question No: 8 ( Marks: 1 ) - Please choose one
Which of the following are passed as an argument to the paint ( ) method?

    ► A Canvas object
    ► A Graphics object       Click here for detail
    ► An Image object
    ► A paint object

Question No: 9 ( Marks: 1 ) - Please choose one
The code below draws a line. What color is the line?
g.setColor(Color.red.green.yellow.red);
g.drawLine(0, 0, 100,100);

    ► Red
    ► Green
    ► Yellow
    ► Black

Question No: 10 ( Marks: 1 ) - Please choose one
To create DataBaseMetaData object we write following line of code

    ► DataBaseMetaData db = con.getMeataData();             (Page 177)
    ► ResultSetMetaData rsmd = rs.getMetaData();
    ► ResultSetMetaData rsmd = rs.setMetaData();
    ► DataBaseMetaData db = con.setMeataData();

                                                                            3

Question No: 11 ( Marks: 1 ) - Please choose one
Event source can have --------- listeners registered on it.
   ► Single
   ► Double
   ► Triple
   ► Multiple (Page 125)

Question No: 12 ( Marks: 1 ) - Please choose one
An abstract class --------------- instantiated.

    ► Can’t be (Page 96)
    ► Can be
    ► Must
    ► None of these

Question No: 13 ( Marks: 1 ) - Please choose one
A ___________ defines the way and method of communication between two parties.

    ► Compiler
    ► Protocol        (Page 242)
    ► Tool
    ► Technique

Question No: 14 ( Marks: 1 ) - Please choose one
What if the static modifier is removed from the signature of the main method?

    ► The program does not compile
    ► The program compiles but does not run
    ► The program compiles and runs properly
    ► The program throws an exception on compile time          Click here for Detail

Question No: 15 ( Marks: 1 ) - Please choose one
What if the main method is declared as private?
   ► The program does not compile…
   ► The program compiles but does not run Click here for Detail
   ► The program compiles and runs properly
   ► The program throws an exception on compile time

Question No: 16 ( Marks: 1 ) - Please choose one
A member variable or method prefixed by the protected access modifier can be accessed:
   ► Within the same class
   ► Within the sub-class
   ► Within the same package
   ► All of the above     Click here for Detail
                                                                                         4

                                      MIDTERM EXAMINATION
                                              Spring 2006

More CS506 files

All CS506 files · Midterm Prep 2026 · MCQs Bank