0% found this document useful (0 votes)
13 views

Java Programming II CS 606

Bsc questions

Uploaded by

mrgenius5267
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
0% found this document useful (0 votes)
13 views

Java Programming II CS 606

Bsc questions

Uploaded by

mrgenius5267
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 8
Seat Number, [S]¢ [4 23 DH-102 Total Pages Time : 2 Hours Note : (1) (2) (3) (4) ) 1. (A) Attempt any six of.the following :” @ Gi) JSP stands for ... CS-606 (B) Java Programming-II (862462) : 6] Max Marks : 60 Do nat write anything on question paper except Seat No. All questions are compulsory. Figures to the right indicate full marks: Students should note, no supplement will be provided. Graph or diagram should be drawn with the black ink pen or black HB pencil. 6 .. is a topmost window that may not be part of any other window. @ Panel (6) Frame © = Grid @ Button (@ Java Server Pages (6) JDK Script Package () JavaScript Package (d) All of the above P.T.0. DH-102 (iv) () (vi) (vii) ... method is invoked to display the output on the Screen in the form of text, graphics, etc. (a) graphics( ) (6) paint( ) (ce) image( ) (d)_init( ) tess menu is a menu that is not attached to a menu bar but that appears somewhere. (@) Pop-up (6) Regular © Main (d)_ All of these .. method is used set or change the text in a label. @ —_getText( ) (6) print( ) ©) setText( ) (@__ changetext( ) Java event is a .... which specifies the change of state in the source. (a) class (6) object ©) both (a) and (b) (d) _ string API stands for ... (a) Applet Programming Interface (6) Application Programming Interchange (c) Applied Programming Interface (d) Application Programming Interface (B) eee ~ TP Ra (ii) ‘Which of the following is not valid layout manager in Java ? . @ Grid layout (©) Border layout © Flow layout @ Container layout Attempt any six of the following : 6 © What is default size of frame ? — ) (i) What is an applet ? - © G) Gii) Define Collections in Java. () What is purpose of text area component ? (x) What do you mean by event listener? — (vi) What are benefits of frame layout ? (vii) How to draw 2D rectangle ? — cr (viii) Define JavaBeans. 2. Attempt any six of the following : 12 @ Explain how to set a different color to graphics object. (i) How to use icon in menu item ? (ii) | Write the steps used to execute an applet. ~ @) Discuss Type 1 JDBC driver. () Draw the figure of servlet life-cycle. P.T.0. DH-102 (vi) What is bean persistence property ? (vit) What is the purpose of an adapter class ? (viii) Explain tag with its attributes. - i} (x) What is purpose of password field ? How to create object of it ? Attempt any four of the following : 12 @ Explain how to display an image using draw Image ) method (i) Differentiate between semantic and low-level events. — 2/4) a rs (ii) Explain border layout manager. are (w) How to create an object of JTextField class. Explain with suitable example. A (v) Write is purpose of radio button ? Also write java code to create radio button object. Y (vi) What is meant by dialog box ? Explain modal and modeless dialog boxes, Attempt any three of the following : 12 Es @ Write a java code to create a frame by extending class JFrame.” — @) Explain any four methods of MouseListener interface. ~ DH-102 @ii) @) create combo box. (») _ Explain the static methods of JOptionPane class, Attempt any two of the following : 12 @ What do you mean by JSP ? Enlist characteristics of JSP. Also explain a (i) Explain life-cycle of applet with the help of suitable diagram. — how does JSP work ? @ii) Explain event handling in AWT with the help of suitable diagram. DH-102 seer - 101/102 B) Java Programming “Il (362407) Time : Two Hours ee Instructions to Candidates : 1. Do not write anything on question e Paper except Seat No. 2. Graph or diagram should be drawn with for writing paper or black HB pencil, Rae nk Pa baw Uc 3. Students should note, no supplement will be provided. 4. All questions are compulsory. 1. a) Attempt any six 6 1) ~~ arranges the components horizontally, a) Border Layout b) Card Layout ©) Grid Layout d) Flow Layout 2) The ------ interface is used to handle Button events @) Container Listener b) _ IntemListener ©) ActionListener 4) WindowListener 3) Which method is called first by an applet. a) Start() b) Run() ¢) Init () d) Paint () 4) MVC stands for -----. a) Mobile view control b) Model vast control c) Model view controller d) None of these 5) Applet viewer tool is available in which of the folder of JOK. a) Bin b) Lib c) Source d) Class ked if a character is entered. 6) Which of these methods will be he metaceery a) KeyPressed () tered () c) KeyTyped() ikea seer - 101 / 102 7) 8) b) 1) 2) 3) 4) 5) 6) 7) 8) 2. Attempt any six. 1) 2) 3) 4) 5) 6) 7) FEST - 101 / 102 SRST - 101 / 102 — creates @ drop down list of textual entries. a) Choice entries b) Checkbox c) Textbox d) Text component Package of drawstring ( ) method is a) Java.Applet b) Java.io cc) JavaX.Swing d) Javaawt Attempt any six. 6 Which type of parameter is used in PaintComonent ( ) method. List various methods of MouseListener. What is JSP. Name three compulsory attributes for tag. Which methods are used to obtain X & Y co-ordinates of mouse pointer when mouse was clicked. Define multicasting. What is the purpose of Adapter class. What is setviet. 12 List any two methods of frame. State different types of JDBC drivers. What do you mean by panel container. Explain tag with example. List common features of JavaBeans. State four static methods of JoptionPane. What is collection framework. 8) D i i }) Draw inheritance diagram of AWT event of Sere lasses, 9) In which situation radio by itton contro} in ication. ituati io but I use in J lava application. 1) Write a short note on focus event. i 2) How event handling is done in Java, 3) Explain tag with example. 4) Explain the concept of popup menu with example. 5) Write a short note on password field in Java. 6) Explain 2D shapes in Java. Attempt any three. . 12 1) Explain internal structure of J frame. 2) Explain life cycle of servlet with diagram. 3) Write a Java program to draw rectangle and fill it with blue color. 4) Explain in brief Concept of option dialog in Java. 5) Explain Keyboard event in detail. Attempt any two. in 1) Write a short note on i) Border Layout ii) JavaBeans 2) Write Java application to implement the concept of multicasting 3) What is event? Explain WindowListener along with its methods. 4149 | 1400 SEIT - 101 / 102

You might also like