CS506 Finalterm Paper 2013 File 11 Shared by Rizwana Zahoor

No Comments

A-o-a Dear fellows,

                          I have given my cs506 paper today. Total 52 questions which included MCQS(80% from past papers) + new and subjective totally from current papers shared on group and past papers. I would like to appreciate the efforts of students who share their current papers here and wanted to suggest all of you to prepare the past paper and currently shared subjective and objective both. So, share current papers and past papers for the better results.

(one suggestion while uploading question of current papers if possible also share their solution)

 Please find the attached files from which u can prepare the solved MCQs and solved subjective. Here goes the two supreme files

My current paper of cs506:



Q1: Write 6 features of JSF? 5

Q2:What is Package? How Packages are organized? 5

Many times when we get a chance to work on a small project, one thing we intend to do os to put all java files into a single directory(folder). It is quick, easy and hamless. Hwever, if our small project gets bigger the number of files is increasing, putting all these files into the same directory would bea nightmare for us. In java we can avoid this sort of problem by using packages.

In simple terms, a set of java classes organized for convenience in the same directory to avoid the name collisions. Packages are nothing more than the way we organize files into different directories according to their functionality, usability as well as category they should belong to.



Q 3:Write the name of types of Custom Tags? (5 Marks)

1-     simple tgs

2-     custom tags

3-     tags with attributes

4-     tags with bodies

(explanation from handouts)

Q 4:What do yoy know about  expression languages?      3

The EL is not a programming or scripting language, provides a better way to simplify expressions in JSP. It is a simple language that is geared up towards looking up objects, its properties and performing simple operations on it. It is inspired by both the ECMA Script XPath expression language.

Q5: describe servlet context (2)

Servlet contex belongs to one web application. Therefore it ca be used for sharing resources among servlets in the same web application.

Q6:Advantages of Cookies over re-writing URLs? 5

Q 7: What are two ways of request dispatching? Explain

Q 8: Database connectivity steps? 5

There are following steps required to create a new Database using JDBC application:

    Import the packages . Requires that you include the packages containing the JDBC classes needed for database programming. Most often, using import java.sql.* will suffice.
    Register the JDBC driver . Requires that you initialize a driver so you can open a communications channel with the database.
    Open a connection . Requires using the DriverManager.getConnection() method to create a Connection object, which represents a physical connection with datbase server.

To create a new database, you need not to give any database name while preparing database URL as mentioned in the below example.

    Execute a query . Requires using an object of type Statement for building and submitting an SQL statement to the database.
    Clean up the environment . Requires explicitly closing all database resources versus relying on the JVM's garbage collection.

Q 9: What are methods of java bean design conventions? (5)

Q10: explain ResultSet? 3





Q 11: What is Expression in JSP? Give an example. (5 Mark) Answer:- (Page 335)



The format of writing a Java expression is: <%= Java expression %> These expressions are evaluated, after converted to strings placed into HTML page at the place it occurred in JSP page Examples of writing Expressions are:



 <h2> Time: <%= new java.util.Date() %> </h2>

will print current data & time after converting it to String

 <h2> Welcome: <%= request.getParameter(―name‖)%> </h2>


will print the name attribute


Q 12:  Write briefly two characteristics of Expression Language?



 The Expression Language, not a programming or scripting language, provides a way to simplify expressions in JSP. It is a simple language that is geared towards looking up objects, their properties and performing simple operations on them. It is inspired form both the ECMAScript and the XPath expression language.

Q 13: why do  we need tiers if we have layers? 5

Layers are simply logical grouping of the software components that make up the application or service, wheras Tiers refer to the physical residence of those layers. In simple words layers represents the logical view of application while Tiers represents physical view of application.

Q 14: Why is direct call of paint() method not recommended?



Q 15:What is the difference between variable declared inside a declaration part and variable in scriplet part?
Next PostNewer Post Previous PostOlder Post Home

0 comments

Post a Comment