Module Test2
Module Test2
A. UnknownException
B. SocketException
C. UnknownSocketException
D. UnknownPortException
A. Connection-oriented
B. Connection-less
C. A&B
D. Reliable
A. DatagramSoclet
B. ServerSocket
C. DatagramPacket
D. ClientSocket
8.How would you set the color of a graphics context called g to cyan?
A. g.setColor(Color.cyan);
B. g.setCurrentColor(cyan);
C. g.setColor("Color.cyan");
D. g.setColor(new Color(cyan));
A. a , b and c
B. a , c and d
C. b,c and d
D. a, b and d
A. b ,c and d
B. a ,b and c
C. a and b
D. all of above
15. Which of these package contains classes and interfaces for networking?
A. java.io
B. java.util
C. java.net
D. java.network
17. By using ___________ control, we can create a set of mutually exclusiwhich one and only one
checkbox in the group can be checked at a time.
A. Button
B. Checkbox
C. CheckboxGroup
D. List
18.Superclass of TextField and TextArea classes that is used to create Multiple textfields are
A. TextBox
B. TextComponent
C. Checkbox
D. Choice
19Subclass of TextComponent is
A. TextArea
B. Button
C. Label
D. Checkbox.
20. Which of these is a protocol for breaking and sending packets to an adnetwork?
A. TCP/IP
B. DNS
C. Socket
D. Proxy Server
22. How many ports of TCP/IP are reserved for specific protocols?
A. 10
B. 1024
C. 2048
D. 512
23. Swing components that don't rely on Native GUI are reffered to as ____A. GUI component
C. Ligthweight component
A. 8
B. 16
C. 32
D. 64
A. display()
B. paint()
C. displayApplet()
D. PrintApplet()
26. _____AWT Component is used to select only one item from popup list of
A. Button
B. Choice
C. Checkbox
D. All of above
A. display()
B. print()
C. drawString()
D. String()
28. How many bits value does IPv4 and IPv6 uses to represent the address?
A. 32 and 64
B. 64 and 128
C. 32 and 128
D. 64 and 64
29.In Swing Buttons are the subclasses of which class?
A. AbstractButton
B. Button
C. Both A & B
D. None of the above
30. The__________method is automatically called the first time the applet screen and every time the
applet receives focus.
A. update( )
B. paint( )
C. repaint( )
D. reupdate( )
35. __________method is used to know the type of content used in the URL.
A. ContentType()
B. Contenttype()
C. GetContentType()
D. getContentType()
37. What are the steps for the execution of an MVC project?
A. Receive first request for the application
B. Performs routing
C. Creates MVC request handler
D. All of the above
43. The elements of a _________ Layout are organized in a top to bottom, lpattern.
A. Grid
B. Border
C. Card
D. Flow
44. Cookies were originally designed for
A. Client-side programming
B. Server-side programming
C. Both Client-side & Server-side programming
D. web programming