CS506 FinalTerm Subjective Solved 2014-2.docx
Verified academic study resource for CS506 (Enterprise Application Development) under the Computer Science at Virtual University of Pakistan. This DOC 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
- DOC
- Type
- Final-Term
- Coverage
- Final-Term Exam Scope (Lectures 23 to 45)
- Tags
- SUBJECTIVE, 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
- Object-Oriented Paradigms: Classes & Data Abstraction — Lectures 23 to 29 (Pages 281 to 360). 16% Final-Term Marks (Core OO Concepts)
- Inheritance Hierarchies & Dynamic Polymorphism — Lectures 30 to 36 (Pages 361 to 435). 20% Final-Term Marks (Virtual Functions & V-Tables)
- Templates, Standard Library & Persistent File I/O — Lectures 37 to 41 (Pages 436 to 510). 14% Final-Term Marks (Generic Code & Streams)
- 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 FinalTerm Subjective Solved 2014-2.docx for free?
You can preview and download "CS506 FinalTerm Subjective Solved 2014-2.docx" (CS506 DOC, ~320 pages) directly from the MIHORA VU Study Library (https://study.mihora.tech/doc/cs506-finalterm-subjective-solved-2014-2-docx) 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
All time you will not get same thread priority as you except. Why? Identify the predefined constant used to assign thread priority.
Answer:
Thread.MAX_PRIORITY used to assign maximum priority
Q:Why thread is called light weight? (2)
Answer:
Threads are light weight as compared to processes because they take fewer resources then a process. A thread is easy to create and destroy. Threads share the same address space i.e. multiple threads can share the memory variables directly, and therefore may require more complex synchronization logic to avoid deadlocks and starvation.
Q: syntax of El language. (2)
Answer:
${valid expression}
Q: why JSp support run time exception handling? (2)
Answer:
You can use the errorPage attribute of the page directive to have uncaught run-time exceptions automatically forwarded to an error processing page. For example:
<%@ page errorPage="error.jsp" %>
redirects the browser to the JSP page error.jsp if an uncaught exception is encountered during request processing.
Q: cookies ka code writes krna tha (2)
Answer:
Cookie c = new cookie(“name”, “value”);
Q: EJBs and JSp in which servers they run?(3)
Answer:
EJB runs on Application Server.
JSP runs on web server.
Q: what will impact on java bean object is produce when it is stored in servlet request object?? (3)
Answer:
This value signifies that, in addition to being bound to local variable, the bean object should be placed in ServletRequest object for the duration of the current request. In other words, until you continue to forward the request to another JSP/servlet, the beans values are available.
Q: what happen when join() method is called in thread. (3)
Answer:
Used when a thread wants to wait for another thread to complete its run() method
• For example, if thread2 sent the thread2.join() message, it causes the currently executing
thread to block efficiently until thread2 finishes its run() method
• Calling join method can throw InterruptedException, so you must use try-catch block to
handle it
Q: aik code write krna tha k client ki request jo hai wo repeat visiter hai. complete nahi likhna tha just repeat visitor ka (5)
Answer:
String msg = "";
boolean repeatVisitor = false;
// reading cookies
Cookie[] cookies = request.getCookies();
// if cookies are returned from request object
if (cookies != null) {
//search for cookie -- repeat
for (int i = 0; i < cookies.length; i++) {
// retrieving one cookie out of array
Cookie c = cookies[i];
// retrieving name & value of the cookie
String name = c.getName();
String val = c.getValue();
// confirming if cookie name equals“repeat” and
// value equals “yes”
if( name.equals("repeat") && val.equals("yes"))
{
msg= "Welcome Back";
repeatVisitor = true;
break; }
} // end for
} // end if
// if no cookie with name “repeat” is found
if (repeatVisitor== false)
{
// create a new cookie
Cookie c1 = new Cookie("repeat", "yes");
// setting time after which cookies expires
c1.setMaxAge(60);
// adding cookie to the response
response.addCookie(c1);
msg = "Welcome Aboard";}
Q: different steps to write code thread creation interface .(5)
Answer:
Threads Creation Steps Using Interface
• Step 1 - Implement the Runnable Interface
class Worker implements Runnable
• Step 2 - Provide an Implementation of run() method
public void run( ){ }
• Step 3 - Instantiate Thread class object by passing Runnable object in the constructor
Worker w = new Worker (“first”);
Thread t = new Thread (w);
• Step 4 - Start thread by calling start() method
t.start();
Q: explain literals of EL. (5)
Q: write the name of JSP scopes in EL. what happen if these scopes will miss. (5)
• Page Scope
• Request Scope
• Session Scope
• Application Scope
The scope attribute can have one possible value out of page, request, session and application. If this attribute is omitted, the default value of scope attribute is page. We’ll discuss in detail about scope shortly.
Q 1 Define type <jsp:studenttag.study> </jsp:studenttag.study> (2marks)
Answer:
Tag with attribute
Q 2 Differentiate b/w java classes and servlet ? 2
Q 3 Code for creating user session?? 3
Answer:
1. Getting the user’ssession object
To get the user’s session object, we call the getSession()method of HttpServeltRequest that returns the object of HttpSession
HttpSession sess = request.getSession(true);
2. Storing information in a Session
To store information in Session object (sess), we use setAttribute() method of HttpSession class. Session object works like a HashMap, so it is able to store any java object against key. So you can store numberof keys and their values in pair form. For example,
sess.setAttribute(“sessionid”, ”123”);
3. Looking up information associated with a Session
To retrieve back the stored information from session object, getAttribute()method of
HttpSession class is used. For example,
String sid=(String)sess.getAttribute(“sessionid”);
4. Terminating a Session
sess.invalidate()
Q 4 Why HTTP is stateless protocol ? give example.3
Answer: Pageno:285 Chp:30
HTTP is a stateless protocol. Every request is considered independent of every other request. But many applications need to maintain a conversational state with the client. A shopping cart is a classical example of such conversational state. For Example:
Suppose a user logs on to the online bookshop, selects some books and adds them to his cart. He enters his billing address and finally submits the order. HTTP cannot track session as it is stateless in nature and user thinks that the choices made on page1 are remembered on page3
Q 5 Write 6 request which client send to server ? 3
Q 6 Wite any 6 EL operators? 3
Q 7 JSP code for action element <jsp: setProperty name = "name" value = "raza"/>
Answer:
Name.setproperty(“raza”);
Q 8 Comlpete request dispatcher code half was given ? 5
Answer:
RequestDispatcher provides a way to forward or include data from another source. The method
getRequestDispatcher(String path) of ServletContext returns a RequestDispatcher objectMore CS506 files
- All Subjects Mid & Final 25000 Pdf Files.pdf (PDF · Final-Term)
- CS-506 Subjective FinalTerm By Vu Topper RM.pdf (PDF · Final-Term)
- CS506 CUREENT SOLVED FINAL TERM BY JUNAID.pdf (PDF · Final-Term)
- CS506 Current 2020 Final Paper by VU Answer-1.pdf (PDF · Final-Term)
- CS506 Current 2020 Final Paper by VU Answer.pdf (PDF · Final-Term)
- CS506 Current Final Solved By Rehan-1.pdf (PDF · Final-Term)
- CS506 Current Final Solved By Rehan.pdf (PDF · Final-Term)
- CS506 FINAL TERM FILE 1 SOLVED BY TEAM HADI.pdf (PDF · Final-Term)