CS506 Subjective file for Mid Term.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) 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)
Tags
SUBJECTIVE, 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 Subjective file for Mid Term.pdf for free?

You can preview and download "CS506 Subjective file for Mid Term.pdf" (CS506 PDF, ~240 pages) directly from the MIHORA VU Study Library (https://study.mihora.tech/doc/cs506-subjective-file-for-mid-term-pdf) 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 Subjective                                      April 30,2012
                                      From Midterm Papers
    MC100401285               Moaaz.pk@gmail.com             Mc100401285@gmail.com                     PSMD01

                                   CS506 Midterm fall 2011 papers
1. Why we use serialization,     2marks
Answer:- (Page 219)
Used to send an object to a stream

2. Differentiate between array and ArrayList .          2marks
Answer:- (Page 61)
It’s like a resizable array. ArrayList actually comes as a replacement the old “Vector” collection. As we add or
remove elements into or from it, it grows or shrinks over time.

3. Write the syntax to load the oracle driver . 2marks
Answer:- (Page 152)
Class.forName(“oracle.jdbc.driver.OracleDriver”);

4. What will happen if an image drawn out of the window coordinates? . 5 marks

5. How we process the results of sql query.         5 marks
Answer:- (Page 153)
Process Results of the Query
      The ResultSet provides various getXXX methods that takes a column index or name and returns the data
      The ResultSet maintains the data in the form tables (rows & columns)
      First row has index 1, not 0.
      The next method of ResultSet returns true or false depending upon whether the next row is available (exist) or not
         and moves the cursor
      Always remember to call next() method at-least once
      To retrieve the data of the column of the current row you need to use the various getters provided by the
         ResultSet.
      For example, the following code snippet will iterate over the whole ResultSet and illustrates the usage of getters
         methods
while ( rs.next() ){
//by using column name
 String name = rs.getString(“columnName”);

// or by using column index
 String name = rs.getString(1);}

                                                                                                          1

6. How a window handle its own events. 3marks
Answer:- Click here for Detail
Using listeners is the preferred way of handling events since it is easier than enabling events directly for an
object, and the code is clearer. Nonetheless, we should take a look at how you deal with events after calling
enableEvents().

Diff b/w array n arraylist?     2marks
Answer:- rep

automatic reading in serialization?3marks
Answer:- (Page 220)
System knows how to read data from stream and re-create object in memory.
The recreated object is type of “Object” therefore Down-casting is required to convert it into actual type.

GUI drivers? 3marks
Answer:- Click here for Detail
Java GUI Drivers
    Several well-developed open-source tools
    Some are more for unit testing GUIcomponents. Others are for system oracceptance testing.
    Use various methods for triggering controls:
           Use Robot to generate native OS events
           Generate AWT events
           Drive control components directly

What is advantage of collection over array?[2]
Answer:- (Page 60)
Advantage of a collection over an array is that you don’t need to know the eventual size of the collection in
order to add objects to it.

Which method of ResultSetMetaData objective is used to return the suggested value to column label for
printout?[2]
Answer:- (Page 175)
The getColumnLabel() method returns the suggested column label for printouts

If a method is declared in protected where it can be accessible?[2]
Answer:-
It can be accessible to only to the class to which they belong, and any subclasses

What will happen if class implemented WindowListner interface and provided its definition of only one
method? [3]
Answer:-
To handle window events, we need to implement “WindowListner” interface.
To handle window events, we need to implement “WindowListner” interface.
“WindowListner” interface contains 7 methods We require only one i.e. windowClosing
                                                                                                      2

But, We have to provide definitions of all methods to make our class a concrete class, if don’t do this we can
not create its object.

State the name of the class with which Window like container can be declared for GUI and animation
based Web application. And explain it. [3]

Write down the steps of make Client on Java Client Server application. [5]
Answer:- (Page 175)
Steps – To Make a Simple Client
To make a client, process can be split into 5 steps. These are:
1. Import required package
         You have to import two packages
         . java.net.*;
         . java.io.*;

2. Connect / Open a Socket with Server
        Create a client socket (communication socket) Socket s =
        new Socket(“serverName”, serverPort) ;

              serverName : Name or address of the server you wanted to connect such as
                           http://www.google.com or 172.2.4.98 etc. For testing if you are running
                           client and server on the same machine then you can specify “localhost” as
                           the name of server
.     serverPort : Port number you want to connect to
    The scheme is very similar to our home address and then phone number.
3. Get I/O Streams of Socket
    Get input & output streams connected to your socket

    .   For reading data from socket As stated above, a socket has input stream attached to it.

        InputStream is = s.getInputStream();
        // now to convert byte oriented stream into character oriented buffered reader // we use intermediary
        stream that helps in achieving above stated purpose
        InputStreamReader isr= new InputStreamReader(is); BufferedReader br = new BufferedReader(isr);

        .   For writing data to socket
            A socket has also output stream attached to it. Therefore,
            OutputStream os = s.getOutputStream();

            // now to convert byte oriented stream into character oriented print writer

More CS506 files

All CS506 files · Midterm Prep 2026 · MCQs Bank