CS506 Mid Term By JUANID.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
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 Mid Term By JUANID.pdf for free?

You can preview and download "CS506 Mid Term By JUANID.pdf" (CS506 PDF, ~240 pages) directly from the MIHORA VU Study Library (https://study.mihora.tech/doc/cs506-mid-term-by-juanid-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 MCQS for MID terms papers
Solved by JUNAID MALIK and Team

AL-JUNAID INSTITUTE OF GROUP
1. Which of the following feature provides the facility for multiple inheritance?
       a. Adapter classes
       b. Wrapper classes
       c. Interfaces                                 Page No 95
       d. Collections
2. setColor() is a method of           _ object.
       a. JPanel
       b. JFrame
       c. Graphics                                   page No 175
       d. Image
3. If we want to animate something like ball, moving from one place to another.
   we constantly need to call paint () method.
       a. True
       b. False                                      Page NO 176
4. If we want to call toString() method of parent class in JAVA. Which of the
   following statement will be used?
       a. this. toString();
       b. new. toString();
       c. sub. toString();
       d. super.toString(); p                        page NO 57
5. Which of the following syntax is used to create a client socket?
       a. Socket s = new Socket(“serverName”);
       b. Socket s = new Socket(serverport);
       c. Socket s = new Socket(“serverName”, serverPort); page No 195
       d. Socket s = new Socket(serverPort, “serverName”);
6. In order to include graphics in your Java program, it is mandatory to extend
   from              class.
       a. JLabel
       b. JFrame
       c. JPanel                 page 174
       d. JButton

AL-JUNAID INSTITUTE OF GROUP
7. What will happen if static modifier is removed from the signature of main
   method?
     a. The program does not compile
     b. The program compiles and runs successfully
     c. The program compiles but does not run                        Google
     d. None of given options

8. Timer class constructor requires time in                     _.
      a. seconds
      b. milli seconds                Page No 180.
      c. micro seconds
      d. nano seconds
9. Which of the following features is available in java?
      a. Pointers
      b. Operator overloading
      c. Global variables
      d. Primitive data types Page No 40.
10.ResultSet Meta Data will help you in answering the following questions except;
      a. How Many columns are in the ResultSet?
      b. What is the name of given column?
      c. How many rows are in the ResultSet? Page No 162.
      d. Are the column name is case sensitive?
11.                    returns the elements at specified position in the list.
      a. Object get(int index)        Page No 62.
      b. Object set(int index)
      c. Object return(int index)
      d. Object remove(int index)
12.WindowListener interface contains                  methods.
      a. Four
      b. Six
      c. Seven page No.124
      d. Eight

AL-JUNAID INSTITUTE OF GROUP
13.Which of the following driver type(s) has better performance than other?
     a. Type 1: JDBC - ODBC Bridge
     b. Type 2: Native - API/partly Java driver
     c. Type 3: Net - protocol/all-Java driver
     d. Type 4: Native - protocol/all-java driver         page No 169
14.Which of the following syntax is used to create a Server Socket?
     a. ServerSocket ss = new ServerSocket(“serverName”);
     b. ServerSocket ss = new ServerSocket(serverPort); page No 197
     c. ServerSocket ss = new ServerSocket(“serverName”, serverPort);
     d. ServerSocket ss = new ServerSocket(serverPort, “serverName”);
15.The keyword "this" is used to
     a. invoke constructor of the another class
     b. invoke alternate constructor of the same class                page 55
     c. invoke constructor of super class from sub class
     d. invoke constructor of sub class from super class
16.An applet can be defined as:
     a. A small program written in Java and included in an HTML page
         page 182
     b. A small program written in JSP and included in an HTML page
     c. A small program written in Servlet and included in an HTML page
     d. A small program written in JSF and included in an HTML page
17. Choose the correct syntax to define an interface named as "Speaker" in java
    language
       a. public class Speaker{}
       b. public interface class Speaker{}
       c. public interface Speaker{}           Page NO 95
       d. public Speaker class interface{}
18. Teacher java class wants to inherit from Employee.java class,
    keyword should be used in blank space in given code to apply inheritance
    class Teacher ---------- Employee{
    public static void main (String args[]){
    }}

AL-JUNAID INSTITUTE OF GROUP
       a. inherit
       b. implement
       c. extends                  Page No 56
       d. override
19.               is correct syntax to create a general purpose container “myPanel”
    having flow layout.
       a. JPanel myPanel = new JPanel (FlowLayout()};
       b. JPanel myPanel = new JPanel (new FlowLayout};
       c. JPanel myPanel = new JPanel (new FlowLayout()}; Page No
           110.
       d. JPanel myPanel = JPanel (FlowLayout()};
20. Java is a             _ language.
       a. Complicated
       b. Not portable
       c. Static
       d. Multi threaded           Page No 22,24
21. Which one of the following blocks always executes irrespective of exception
    occurrence?
       a. Try block
       b. Catch block
       c. Throws block
       d. Finally block                   Page No 72
22.        Based on functionality, the streams can be categorized as
       a. Byte oriented stream and Node stream
       b. Filter stream and Character oriented stream
       c. Node stream and Filter stream Page No 83
       d. Byte oriented stream and Character oriented stream
23.Bytecodes are created and stored on disk by                   .
       a. editor
       b. compiler          Page no 30
       c. class loader
       d. bytecode verifier          AL-JUNAID INSTITUTE OF GROUP
23. Static methods can only access
       a. Instance variables
       b. Instance methods
       c. Static variables and methods           page 50/Concept

AL-JUNAID INSTITUTE OF GROUP
        c. Both static and instance members

More CS506 files

All CS506 files · Midterm Prep 2026 · MCQs Bank