.... How to Find Your Subject Study Group & Join ....   .... Find Your Subject Study Group & Join ....  

We are here with you hands in hands to facilitate your learning & don't appreciate the idea of copying or replicating solutions. Read More>>

Study Groups By Subject code Wise (Click Below on your university link & Join Your Subject Group)

[ + VU Study Groups Subject Code Wise ]  [ + COMSATS Virtual Campus Study Groups Subject Code Wise ]

Looking For Something at vustudents.ning.com?Search Here

I post some solved papres and upload some more solved papers

Views: 3750

Attachments:

Replies to This Discussion

Note: (This is Featured Discussion)

For Important Helping Material related to this subject (Solved MCQs, Short Notes, Solved past Papers, E-Books, FAQ,Short Questions Answers & more). You must view all the featured Discussion in this subject group.

For how you can view all the Featured discussions click on the Back to Subject Name Discussions link below the title of this Discussion & then under featured Discussion corner click on the view all link.

 Muhammad Azmat gud keep it up & thanks 

Tariq Bhai mugha bare mushkal yeh papers mila hain main upload kar dia ta ka hamare tamam dost in papers ko daikh sakain

Attachments:

Muhammad Azmat ya gud...

but please upload folder in .ZIP format..beacause site does not support the .rar folder format.thanks 

ok

MIDTERM EXAMINATION

Fall 2008

CS506- Web Design and Development (Session - 2)

 

Time: 60 min

Marks: 38

Question No: 1    ( Marks: 1 )    - Please choose one

 Which of the following methods are invoked by the AWT to support paint and repaint operations?

       ► paint( )

       ► repaint( )

       ► draw( )

       ► redraw( )

   

Question No: 2    ( Marks: 1 )    - Please choose one

 When defining a method you must include a ___________ to declare any exception that might be thrown but is not caught in the method. 

       ► try block

       ► finally block

       ► catch block

       ► throws-clause

   

Question No: 3    ( Marks: 1 )    - Please choose one

 Aside from the Scanner class, which of the following classes can be used for text-file file input? 

 

       ► ObjectInputStream

       ► BufferedReader

       ► StringTokenizer

       ► None of these

   

Question No: 4    ( Marks: 1 )    - Please choose one

 Which of the following statements is true regarding Vectors with no specified base type?

       ► A base type is needed, because Java needs to know how to allocate memory.

       ► No base type is needed, because Java will use the Object class as a base type.

       ► If a base type is not specified the code will not compile.

       ► No base type is needed because Vectors default to storing String objects.

   

Question No: 5    ( Marks: 1 )    - Please choose one

 A serializable class must implement the method(s) _________.

       ► readObject and writeObject

       ► Either readObject or writeObject, or both, depending upon the desired behavior

       ► No need to implement any method

       ► None of the given option

   

Question No: 6    ( Marks: 1 )    - Please choose one

 You can ---------to a network using sockets.

       ► Read

       ► Write

       ► Read/Write

       ► None of these

   

Question No: 7    ( Marks: 1 )    - Please choose one

 Socket is a --------------communication channel between hosts.

       ► Uni-directional

       ► Bi-directional

       ► Multi-directional

       ► None of these

   

Question No: 8    ( Marks: 1 )    - Please choose one

 Which of the following are passed as an argument to the paint ( ) method?

       ► A Canvas object

       ► A Graphics object

       ► An Image object

       ► A paint object

   

Question No: 9    ( Marks: 1 )    - Please choose one

 The code below draws a line. What color is the line?

g.setColor(Color.red.green.yellow.red);
g.drawLine(0, 0, 100,100);

 

       ► Red

       ► Green

       ► Yellow

       ► Black

   

Question No: 10    ( Marks: 1 )    - Please choose one

 To create DataBaseMetaData object we write following line of code 

       ► DataBaseMetaData db = con.getMeataData();

       ► ResultSetMetaData rsmd = rs.getMetaData();

       ► ResultSetMetaData rsmd = rs.setMetaData();

       ► DataBaseMetaData db = con.setMeataData();

   

Question No: 11    ( Marks: 1 )    - Please choose one

 Event source can have --------- listeners registered on it.

       ► Single

       ► Double

       ► Triple

       ► Multiple

   

Question No: 12    ( Marks: 1 )    - Please choose one

 Anabstractclass ---------------instantiated.

 

       ► Can’t be

       ► Can be

       ► Must

       ► None of these

   

Question No: 13    ( Marks: 1 )    - Please choose one

 A ___________ defines the way and method of communication between two parties.

 

       ► Compiler

       ► Protocol

       ► Tool

       ► Technique

  

Question No: 14    ( Marks: 1 )    - Please choose one

 What if the static modifier is removed from the signature of the main method?

 

       ►The program does not compile

       ►The program compiles but does not run

       ►The program compiles and runs properly

       ►The program throws an exception on compile time

   

Question No: 15    ( Marks: 1 )    - Please choose one

 What if the main method is declared as private?

       ►The program does not compile

       ►The program compiles but does not run

       ►The program compiles and runs properly

       ►The program throws an exception on compile time

   

Question No: 16    ( Marks: 1 )    - Please choose one

 A member variable or method prefixed by the protected access modifier can be accessed:

       ► Within the same class

       ► Within the sub-class

       ► Within the same package

       ► All of the above

   

Question No: 17    ( Marks: 1 )

 What is the typical use of Hashtable?

 

   

Question No: 18    ( Marks: 1 )

 Why we use paintChildern( ) method?

   

Question No: 19    ( Marks: 2 )

 Write any two steps of painting strategy.

   

Question No: 20    ( Marks: 3 )

 Name three paint () methods which are used to paint Swing Component.

   

Question No: 21    ( Marks: 5 )

 Differentiate between Named and Anonymous Objects.

   

Question No: 22    ( Marks: 10 )

 Following are the contents of file1.txt

 

My name is ali.

My roll no is bc020400001.

I am studying java.

Java is very easy.

 

You are required to write a code which will read this file and create a new file in which lines would be swapped in such a way that first line would be swapped with 2nd and 3rd with 4th and so on.

 

New file should look like:

 

My roll no is bc020400001.

My name is ali.

Java is very easy.

I am studying java.

 

(5 Marks file handling, 5 Marks swapping)

 

 

some solved CS506 mid term papers

Attachments:

thank you so much Azmat bahi Allah Bles you .

welcome

thnx bro ..

RSS

QUICK ACCESS Links

Main Discussion Forum

Latest Activity In Main Forum

Newest Discussions In Main Forum

Most Popular Discussion

----------------------------------------

Study Zone

Latest Activity In Study Groups

Study Groups Subject Code Wise

Find Your Subject Study Group

Latest Activity

+ M.Tariq Malik liked Sameera Kharal's discussion Lady Home Tutor for VU Subjects
2 minutes ago
Asma Zafar replied to Hira's discussion Assignment No. 02 Semester: Fall 2016 CS609 – System Programming in the group CS609 System Programming
2 minutes ago
Asma Zafar replied to Hira's discussion Assignment No. 02 Semester: Fall 2016 CS609 – System Programming in the group CS609 System Programming
4 minutes ago
Profile IconImhum MCS and Asif Sadiqi joined + M.Tariq Malik's group
4 minutes ago
Imhum MCS replied to Ayesha Ahmad's discussion CS302 Assignment no#2 / Due Date: 5 Dec, 2016 in the group CS302 Digital Logic Design
4 minutes ago
+ M.Tariq Malik liked + USA's discussion National Book Foundation... ( 50% discount on each book)
6 minutes ago
Atiqa Farhat joined + M.Tariq Malik's group
7 minutes ago
Atiqa Farhat replied to + M.Tariq Malik's discussion MTH401 Assignment No 01 Solution & Discussion Due date: 07/12/2016 in the group MTH401 Differential Equations
7 minutes ago
+ Ansa Pari posted photos
8 minutes ago
+ M.Tariq Malik liked Shining Star's discussion bheega bheega sa ye december ha
9 minutes ago
+ M.Tariq Malik replied to Asad Ashraf's discussion ENG001 Assignment No 02 Solution & Discussion Due Date: Dec 06, 2016 in the group ENG001 Elementary English
11 minutes ago
+ zεε left a comment for + "Nåÿåβ♥
11 minutes ago
+ zεε left a comment for + "Nåÿåβ♥
11 minutes ago
+ zεε left a comment for + "Nåÿåβ♥
11 minutes ago
+ zεε left a comment for + "Nåÿåβ♥
12 minutes ago
+ мυsкαη left a comment for + "Nåÿåβ♥
12 minutes ago
+ M.Tariq Malik replied to Muhammad Tahir Rafiq's discussion Fall Eng001 Soved Assignment 2 in the group ENG001 Elementary English
12 minutes ago
+ мυsкαη left a comment for + "Nåÿåβ♥
12 minutes ago
+ M.Tariq Malik replied to Muhammad Tahir Rafiq's discussion Fall Eng001 Soved Assignment 2 in the group ENG001 Elementary English
12 minutes ago
+ M.Tariq Malik replied to Muhammad Tahir Rafiq's discussion Fall Eng001 Soved Assignment 2 in the group ENG001 Elementary English
12 minutes ago

© 2016   Created by + M.Tariq Malik.   Powered by

Promote Us  |  Report an Issue  |  Privacy Policy  |  Terms of Service