CS506 Final Term Solved MCQs By JUNAID-1.pdf

Verified academic study resource for CS506 (Enterprise Application Development) under the Computer Science at Virtual University of Pakistan. This PDF document (Final-Term Solved Past Paper & Examination Pack) 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
CS506 – Enterprise Application Development
Faculty
Computer Science
Format
PDF
Type
Final-Term
Coverage
Final-Term Exam Scope (Lectures 23 to 45)
Tags
MCQ, 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 CS506, regardless of midterm scores.

What this file covers — CS506 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 CS506 Final Term Solved MCQs By JUNAID-1.pdf for free?

You can preview and download "CS506 Final Term Solved MCQs By JUNAID-1.pdf" (CS506 PDF, ~320 pages) directly from the MIHORA VU Study Library (https://study.mihora.tech/doc/cs506-final-term-solved-mcqs-by-junaid-1-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 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 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

AL-JUNAID TECH INSTITUTE
Question:1
Which of the following problem occurs with lower priority threads?
   Starvation
   Average waiting time
   Race condition
   Process death

Question:2
Web.xml is a --------------
   Servlet file
   Configuration file
   Jar file
   Java file

Question:3
Which of the following variable value will not be set during the installation
and configuration of apache tomcat server?
    Java_home
    Classpath
    Catalina_home
    Jdk_home

Question:4
 The newly created thread can be moved to “ready state” by calling------------
----method
     Sleep()
     Start()
     Wait()
     Yield()

Question:5
Which of the following is not a servlet related package?
   Javax.servlet.servlet
   Javax.servlet

AL-JUNAID TECH INSTITUTE
    Ja5.vax.servlet.http
    Javax.servlet.swt

Question:7
http response code 403 indicates that-----------
    access to the requested resource was successful
    resource has been destroyed
    access to the requested resource has been denied           page 231
    resource can be accessed after one hour

Question:8
When a thread is in “new state” during its lifecycle, it is--------------
   In ready queue
   Just created page 226
   Being assigned a processor to run
   Ready to run

Question:9
. In the context of http response code, the values in the 200s signify that-------
-----
     Request was successful p231
     Request was not successful
     Error by server
     Error by client

Question:10
Which of the following is not the stage of servlet lifecycle?
   Wait                      Page 267
   Service
   Destroy
   Initialize

Question:11
Request and response of servlet are handles at-----------------stage
   Destroy

AL-JUNAID TECH INSTITUTE
    Initialize
    Failure page 258
    Service

Question:12
At servlet service stage ,webserver invokes-------------method
    Servletservices()
    Services() page 259
    servicesSvlt()
    svltServices()

Question:13
Choose correct line od code to start a thread ‘t’ in java
   t.start()
   t-start()
   t=start()
   t->start()

Question:14
Http response code 401 indicates that
    Request resource is available
    Request requires http authentication page 231
    Error by server
    Request resource is not available

Question:15
   “ready state” means a thread is in------------
   New state page 226
   Waiting state
   Ready state
   Dead state

Question:16
Choose correct line of code to inherit a worker class from thread class in java
   Public class worker new thread()

AL-JUNAID TECH INSTITUTE
    Public class worker inherit thread()
    Public class worker implement thread()
    Public class worker extends thread() page 214

Question:17
In get http request type, attribute-value pair is attached after----------------with
requested url
    #
    @
    ? page 253
    .

Question:18
In web.xml, root tag---------------------represents web application
    Webapp
    <web-app> page 255
    <webapp>
    <web.app>

Question:19
Which of the following method allows any other thread of same priority to
execute?
    Yield() page 224
    Sleep()
    Wait()
    Notify()

Question:20
In--------------state, thread is assigned a processor to run
    Ready
    New
    Running page 226
    Dead

Question:21

AL-JUNAID TECH INSTITUTE
Which of the following interface needs to implement while creating threads?
   Windowslistener
   Runnable page 212
   Actionlistener
   Serializable

Question:22
Which of the following range of response code signify error by server
   300-399
   400-499
   200-299
   500-599 page 232

Question:23
To compile a servlet(e.gmyservlet.java)------------------command is used in
command prompt
   Java-c
   Java
   Java.c
   Javac page 256

Question:25
The---------------method is used when one thread wants to wait for another
thread’s run method to compile its execution
    Yield()
    Sleep()
    Join() page 227
    Wait()

Question:26
In the context of servlet mapping in web.xml, url is provided in -------------tag
    <url-source>
    <url-destination>
    <url-address>
    <url-pattern> page 255

AL-JUNAID TECH INSTITUTE
Question:27
 Choose correct integer value for predefined Thread Priority
“Thread.MAX_PRIORITY” in java
    1
    5
    10
    7

Question:28
Real world business objects are represented in____________
   Data layer
   Presentation
   Business layer
   Application layer

Question:29
Which of the following interface needs to implement while creating threads?
      WindowListener
      Runnable
      ActionListener
      Serializable
Question:30
   Choose correct line of code to inherit a worker class from Thread class in
   java.
         o public class Worker new Thread ()
         o public class Worker inherit Thread ()
         o public class Worker implement Thread ()
         o public class Worker extends Thread ()

Question:31
When JSP page compiled, it is translated into?
        o Applet
        o Application
        o Servlet
        o Web Browser
Question:32

AL-JUNAID TECH INSTITUTE
Hidden Forms Fields contain the information that is needed to send to the
           Client
           Server
           Both server and client
           Neither server nor client
Question:33
Which of the following is used to work with javaBean to include pages at
request time and
forward request to other sources?
           JSP action element
           JSP declaration
           Scriptlets
           JSP expression
Question:34
To define the error page in JSP we use following tag?
           exception-type
           error-type
           error-page
           exception-page
Question:35
setAttribute(String, Object) associates a ----------with a name.
          o Value
          o Object
          o String
          o Both String and Object

More CS506 files

All CS506 files · Midterm Prep 2026 · MCQs Bank