¤Virtual University Of Pakistan Network¤
What type of variable is reqiured when you donot want to access data if you you using serialization and why? 3 marks
what is difference between Updater and UpdateRow() . 2 marks
what are paint startgy .3 marks
Steps of JDBC. 5 marks
named Vs anonymous 5 marks
Q1 basline data : 2marks
Q2 project projection: 2 marks
Q3 risk assessing question: 3 marks
Q4 How design of a software is measured quantitatively: 3 marks
Q5 technical risk sy related the bht lamba : 5 marks
Q6 factors other then usabilty: 5 marks
My todays Paper of Cs506:
Total 26 questions:
20 Mcqs Mostly new,
and 6 subjective questions which are:
1.Updateble/Scrollable Result Set? (02 marks)
2.Why is direct call of paint() method is not recommended? (02 Marks)
3.What Difference between serialization and de-serialization? (03 marks)
4.Can Anonymous class be declared as implementing an interface and extending a class? (03 marks)
5.What is an Applet and its stages. (05 marks)
6.Create Updatable/Scrollable Result Set Table for Person? (05 marks)
1. What are the situations when anonymous object and named objects can be used? Give example with code. 05 Marks
2. Discuss any four methods of DataBaseMetaData. 05 Marks
3. Is there any way through which applets can communicate with each other? 03 Marks
4. What do you know about Java Database Conectivity having Driver interface? 03 Marks
5. What is difference between default ResultSet and updateable/Scrollable ResultSet? Give examples. 02 Marks
6. Why is direct call of paint() method is not recommended? 02 Marks
diffrence b/w serialization De-serialization?
what is port and they used for? 5
executeUPDATE() used for?
aik code tha 5
mcqs past papers main thy maximum
Discuss any four methods of DataBaseMetaData.
ResultSet Meta data:
ResultSet Meta Data will helpyou in answering such questions
-Ho columns are in the ResultSet?
GettingResultSet Meta Data Object:
ResultSetMetaData object by calling eta pet (here rsis a valid ResultSetobject): Fro ResultSet (the returntypeof executeQue getM Data()method as shown inthe given codesnip
Useful ResultSetMetaData Methods
DataBase Meta Data will help you in answering such questions
What SQL types are supported by DBMS to create table?
What is the name of a database product?
What is the version number of this database product?
What is the name of the JDBC driver that is used?
Is the database in a read-only mode?
CS506 Midterm Examz All Current papers in one thread Spring May 2012
[b]sHARED By COKEANDLAYS
total 26 questions thy 20 MCQS or 6 Questions
2,3 or 5 marks k 2,2 Questions thy....
Most of MCQS Past papers me sy e ay thy here i attach a MCQS file mere takreban sary MCQS isi me sy ay thy.....
Q.1- 4 types of applets (2 marks)
Q.2- If a method is declared as protected where can be the method accessed? (2 marks)
Q.3- Discuss any three methods of ResultSetMetaData? (3 marks)
Q.4- Differentiate between Named and Anonymous Objects. (3 marks)
Q.5- 1 GUI interface diya huwa tha uski coding karni thi (5 marks)
Q.6- how we process the results of sql query (5 marks)[/b]
6 Questions of Theory
1. For a company named ABC what are the basic steps to communicate their database with JDBC through Java languages.(5 marks)
2. Write the names of steps to make a simple client in Java client Server application. (5marks)
3. Write down the code for a method of ResultMetaData object (rs) to return the database type name of second column. (3 marks)
4. Describe types of statements used in JDBC. (3 marks)
5. You need to state the names of any four applet life cycle methods. (2 marks)
6. Suppose we created a button in a program which can generate events and then we built an object that can handle these events. You need to state that are we completed all the necessary steps in our program for handling the events of that button. (2 marks)