Java is a programming language that is used by most of the techies. This language can be used in different platforms and is quite easy to understand, write, and debug when compared to others. Below is a trivia quiz that is designed to test your understanding of distributing computing in Java language. Give it a try and see if you get it!
View
Controller
Rate this question:
An UnknownHostException
An IOException
Rate this question:
Windows
Mac OS X
GTK+
None
Rate this question:
JRadioButton
JButton
JSlider
JPanel
Rate this question:
True
False
Rate this question:
JSlider sl; sl = new JSliDer(SwingConstant.VERTICAL,0,255,0);
JSlider sl; sl = new JSlider(SwingConstants.VERTICAL,0,255,0);
JSlider sl; sl = new JSlider(SwingConstant.VERTICAL,0,255,0);
JSlider sl; sl = new JSlider(Swingconstant.VERTICAL,0,255,0);
Rate this question:
JScrollPane
JFC
Oracle
Rate this question:
AddFocusListener(new FocusListener(){ public void focusGained(FocusEvent fe){ } public void focusLost(FocusEvent ev){ } });
AddItemListenner(new ItemListenner(){ public void itemStateChanged(ItemEvent e){ } });
Rate this question:
TCP
UDP
Rate this question:
LightWeight Components
Container Components
Rate this question:
#
$
*
Rate this question:
JFrame
JApplet
JPanel
Rate this question:
JSlider SL; ............. SL.addChangeListener(new ChangeListener(){ public void stateChanged(ChangeEvent e){ // ction Code; } });
JSlider SL; ............. SL.addChangeListener(new ChangeListener(){ public void statechanged(ChangeEvent e){ // ction Code; } });
JSlider SL; ............. SL.addChangelistener(new ChangeListener(){ public void stateChanged(ChangeEvent e){ // ction Code; } });
JSlider SL; ............. SL.addChangeListener(new ChangeListener(){ public void stateChanged(Changeevent e){ // ction Code; } });
Rate this question:
Public void setMinorTickSpacing(int spacing)
Public void setMajorTickSpacing(int spacing)
Public void setSnapToTicks(boolean set)
Rate this question:
Port 20 FTP, Port 21 FTP
Port 161 SNMP
Port 23 Telnet
Port 162 SNMP
Port 25 SMTP
Rate this question:
Controller
View
Model
Rate this question:
JFrame
JApplet
JDialog
JPanel
JWindow
Rate this question:
JComboBox
JList
JTextare
Rate this question:
A Swing Timer can fire only one ActionEvent
A Timer can be configured to fire events repeatedlly
Rate this question:
BorderLayout
FlowLayout
CardLayout
GridLayout
Rate this question:
JScrollPane
DCJ
Rate this question:
1
2
None of above
Rate this question:
The port numbers ranging from 0 to 1023 are reserved
The physical connection is logically numbered within a range of 0 to 65500
The destination address identifiers the computer
Rate this question:
#
A
`
U
H
Rate this question:
JPanel, FormattedTextField
JFrame,
JCheckBox, JRadioButton
JButton,JPasswordTextField
JLabel
Rate this question:
L
None
Rate this question:
True
False
Rate this question:
Converting Data into on-the-wire-format
Converting on-the-wire-format into Data
Invocation of remote method
Transmitting and receiving data
Rate this question:
TCP is a connection-based protocol that provides a reliable flow of data between two computer.
You do not write programs at the lower level like application, instead you generally program at the transport level.
Java provides the java.net package which contains all the necessary classes to perform system-independent network communications.
TCP guarantees that data sent from one end of the connection is received at the other end.
The first layer in the TCP protocol is the network layer.
Rate this question:
Stub and Skeleton Layer
Transport Protocol Layer
Remote Reference Layer
Rate this question:
The java.rmi.Remote interface server to distinguish interfaces which are non remote.
A RMI application has to expose methods, which remote clients can invoke.
The java.rmi.Remote is a maker interface.
The skeleton resides on the client side.
The stub resides on the server side.
Rate this question:
None - Event Handling.
AddFocusListener(new FocusListener(){ public void focusGained(FocusEvent fe){ } public void focusLost(FocusEvent ev){ } });
AddActionListener(new ActionListener(){ public void actionPerformed(ActionEvent ev){ } });
Rate this question:
JLabel
JFrame
JScrollPane
JPanel
Rate this question:
Stub and Skeleton Layer
Stub Reference Layer
Remote Reference Layer
Transport Reference Layer
Transport Protocol Layer
Rate this question:
JWindow
JApple
JFrame
JDialog
JPanel
Rate this question:
SwingConstants.HORIZONTAL
Swing.Constant.HORIZONTAL
Swing.Constants.VERTICAL
Public void setOrientation(int orientation);
SwingConstants.VERTICAL
Rate this question:
A JDialog is a top-level container.
The container is physically constrained with the max size offered by the screen on which it display
To return the parent, it is required to close the modal dialog
If you click on the parent of the modal dialog box, it appears
Rate this question:
GridLayout
BorderLayout
Layout Manager
CardLayout
FlowLayout
Rate this question:
?
A
U
*
Rate this question:
Converting Data into on-the-wire-format
Transmitting and receiving data
Invocation of remote method
Set connection
Converting on-the-wire-format into Data
Rate this question:
True
False
Rate this question:
Jlabel
JPanel
JFrame
JApplet
JTextField
Rate this question:
Once the pattern is applied to the MessageFormat instances, you invoke the getString();
The MessageFormat class can be used to create a compound message.
The applyPatern() method is used to fetch an element from the Resource Bundle
A template is a string, which contained only the fixed part of the message.
The date and numeric values contained in a message need not to be translated.
Rate this question:
AddListSelectionListener
ListSelectionListener Vs valueChanged()
ActionListener() Vs actionPerformed()
AddActionListener
Rate this question:
True
False
Rate this question:
Public void setCorner(String key, component corner)
Public void setHorizontalScrollBarPolicy(int policy)
Public void setVerticalScrollBarPolicy(int policy)
Public void setHorizontalScrollBarPolicy(String key, policy)
Public void actionPerformed(ActionEvent e)
Rate this question:
MVC Architecture was first introduced in SmallTalk.
Model represents the view of the components
Controller reacts to the user inputs from Keyboard and Mouse
View represents the Data.
Separable Architecture combines the View and Controller.
Rate this question:
MVC: Model View Controller
None
Rate this question:
Quiz Review Timeline (Updated): Mar 21, 2023 +
Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.
Wait!
Here's an interesting quiz for you.