Skip to main content

Posts

Showing posts with the label CS506 Recent Papers

CS506 Current Midterm Paper Fall 2013 File 1

by ++libriansmine++ on December 20, 2013 at 1:39pm 1. whats the start do in applet cycle and when we use it? [2 makrs] 2.Write the syntax to load the oracle driver . [2 marks] 3. What the given code do ? ResultSet rs=TYPING_SCROLL_INSENSITIVE [3 marks] 4.what problem we faced in interprtr and how do we handle that situation ?[3 mraks] 5. write coding for while lope in ResultSet6. (columns ) method a table was given [5 makrs] 6. write any five GUI based component ? [5 marks]

CS506 Current Midterm Paper Fall 2013 File 5

by marri on December 20, 2013 at 6:38pm Asalamualikum .....my todays paper..... write the code of the ResultSetDataMeta rs the 2nd column . 2 marks write the code of given queiry . changed the name of student NaeemKhan where its id is 10. 2 marks note: table name is Student. column name is Std_name column name of id is std_id. Differentiation between Named vs. Anonymous object with example code? 3 marks (paintBorder, paintComponent, paintchildern )methods are used in java. write their order in java? 3 marks. write a graph code in which you draw a pink rectangular and a string show “ i am a student” 5 marks. The given code is Mouse listener code you have change the code to stop the implementation of interface or sath mai adapter method given tha. 5 marks. 1. import java.awt.*; 2. import javax.swing.*; 3. import java.awt.event.*; 4. public class EventsEx implements MouseMotionListener , WindowListener { 5. JFrame frame; 6. JLabel coordinates; // setting layout 7. public void initGUI ( ...

CS506 Current Midterm Paper Fall 2013 File 3

by Qaiser Tufail on December 20, 2013 at 5:34pm Cs 506 20 december 2013 Almost all paper was difficult Only 2 mcq’z from past paper Q1 what type of a driver odbc-jdbc bridge? And why we cal so. 2 mrks Q2 What is the difference b/w socket and server socket, also give a java syntax of socket and Server socket. 5 mrks Q3 If we does not set the width and hight of applet. 3 options were given we have to chose one 1 it will not compile 2 compile but not visible I don’t remember the last one Q4 One advantage and disadvantage of rowset rather than normal database 3 mrks Q5 Wht is the disadvantage of interface in implementation ? 2mrks

CS506 Current Midterm Paper Fall 2013 File 6

MCQ’s   1.       Adapter classes have been defined for listener interfaces except ______ interface.  MouseListener  KeyListener  WindowListener    i think correct option window listener hai  ActionListener     2.      You can ---------to a network using sockets. Read Write Read/Write (Page 222) None of these  3.      A class that is defined in another class is called ________. Private class Public class Inner class    correct option Derived class   4.      Which block always execute whether exception occurs or not. Finally block        correct option. 5.      2 nd phase of java programming Compile       correct option. 6.       Pe...