Trivia Quiz On Distributed Computing In Java

65 Questions | Total Attempts: 581

SettingsSettingsSettings
Please wait...
Trivia Quiz On Distributed Computing In Java

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!


Questions and Answers
  • 1. 
    Which statements are true?- 3 choices
    • A. 

      TCP is a connection-based protocol that provides a reliable flow of data between two computer.

    • B. 

      You do not write programs at the lower level like application, instead you generally program at the transport level.

    • C. 

      Java provides the java.net package which contains all the necessary classes to perform system-independent network communications.

    • D. 

      TCP guarantees that data sent from one end of the connection is received at the other end.

    • E. 

      The first layer in the TCP protocol is the network layer.

  • 2. 
    Which statements are true?
    • A. 

      Once the pattern is applied to the MessageFormat instances, you invoke the getString();

    • B. 

      The MessageFormat class can be used to create a compound message.

    • C. 

      The applyPatern() method is used to fetch an element from the Resource Bundle

    • D. 

      A template is a string, which contained only the fixed part of the message.

    • E. 

      The date and numeric values contained in a message need not to be translated.

  • 3. 
    This is responsible for determining whether the component should react to any input events from input devices such as the keyboard or mouse.
    • A. 

      View

    • B. 

      Controller

  • 4. 
    Event handling of JTextField are:
    • A. 

      AddFocusListener(new FocusListener(){ public void focusGained(FocusEvent fe){ } public void focusLost(FocusEvent ev){ } });

    • B. 

      AddItemListenner(new ItemListenner(){ public void itemStateChanged(ItemEvent e){ } });

  • 5. 
    Lightweight components includes:- 3 choices
    • A. 

      JPanel, FormattedTextField

    • B. 

      JFrame,

    • C. 

      JCheckBox, JRadioButton

    • D. 

      JButton,JPasswordTextField

    • E. 

      JLabel

  • 6. 
    If an error occurs when creating a socket an IOException is thrown.
    • A. 

      True

    • B. 

      False

  • 7. 
    Event Handling of JComboBox is :- 2 choices
    • A. 

      AddListSelectionListener

    • B. 

      ListSelectionListener Vs valueChanged()

    • C. 

      ActionListener() Vs actionPerformed()

    • D. 

      AddActionListener

  • 8. 
    Which statements are true?- 3 choices
    • A. 

      The java.rmi.Remote interface server to distinguish interfaces which are non remote.

    • B. 

      A RMI application has to expose methods, which remote clients can invoke.

    • C. 

      The java.rmi.Remote is a maker interface.

    • D. 

      The skeleton resides on the client side.

    • E. 

      The stub resides on the server side.

  • 9. 
    If the host does not exist,  the Constructor Socket(String host,int port); will throws .........
    • A. 

      An UnknownHostException

    • B. 

      An IOException

  • 10. 
     This supports a technology called 'pluggable-Look-And-Feel' where components can be displayed as on any operating system.
    • A. 

      Windows

    • B. 

      Mac OS X

    • C. 

      GTK+

    • D. 

      None

  • 11. 
    TCP (Transmission Control Protocol) includes:- 3 choices
    • A. 

      Port 20 FTP, Port 21 FTP

    • B. 

      Port 161 SNMP

    • C. 

      Port 23 Telnet

    • D. 

      Port 162 SNMP

    • E. 

      Port 25 SMTP

  • 12. 
    Which statements are true?- 2 choices
    • A. 

      The port numbers ranging from 0 to 1023 are reserved

    • B. 

      The physical connection is logically numbered within a range of 0 to 65500

    • C. 

      The destination address identifiers the computer

  • 13. 
    MVC Architecture decomposes components:
    • A. 

      MVC: Model View Controller

    • B. 

      None

  • 14. 
    Which a three layered architecture is based on?
    • A. 

      Stub and Skeleton Layer

    • B. 

      Stub Reference Layer

    • C. 

      Remote Reference Layer

    • D. 

      Transport Reference Layer

    • E. 

      Transport Protocol Layer

  • 15. 
    Which statements are true?
    • A. 

      Internationalized software is developed separately for each country and language.

    • B. 

      Successful translation of the source files in the desired language is very difficult.

    • C. 

      Cost of development of the product in the desired language will be much lower than one time cost.

    • D. 

      Internationalized software should be developed such that it can be adapted without engineering changes

    • E. 

      Internationalization is process of the designing an application so that it can adapt to various.

  • 16. 
    JList can be supported scrolling inherently by JScrollPane as JComboBox
    • A. 

      True

    • B. 

      False

  • 17. 
    This layer is responsible for setting up connections using sockets.It listens for incoming calls, and manages requests from remote reference layer
    • A. 

      Stub and Skeleton Layer

    • B. 

      Transport Protocol Layer

    • C. 

      Remote Reference Layer

  • 18. 
    Which statements  are True?
    • A. 

      A sever must retrieve the InputStream and OutputStream from the proxy socket object to comunicate with the client.

    • B. 

      When a client requests, the accept() method creates an object of class ServerSocket and return it.

    • C. 

      The accept() method is a blocking method.

    • D. 

      The ServerSocket class has a method clientAccept() for listening to client request.

    • E. 

      The accept method, once invoked, will wait till a client request for a connection.

  • 19. 
    This is a protocol that sends independent package of data, called datagrams, from one computer to another with no quarantee about its transmission. it is not connect - based protocol.
    • A. 

      TCP

    • B. 

      UDP

  • 20. 
    The root panel has four parts :
    • A. 

      Glass Panel,Content Panel

    • B. 

      JPanel

    • C. 

      Layered Panel

    • D. 

      ToolBar Panel

    • E. 

      Menu Bar

  • 21. 
    Which methods is used for registering listener-objects of JCheckBox ?
    • A. 

      AddActionListener();

    • B. 

      AddItemListener();

  • 22. 
    Which statements are true?
    • A. 

      The Java Foundation Class were introduced since JDK 1.0

    • B. 

      The JFC includes 2D graphics support.

    • C. 

      Swing is based on a tookit.

    • D. 

      Swing supports a technology called "Pluggable Like and Feel"

    • E. 

      JFC is a graphical framework

  • 23. 
    Event handling of JTextArea is:
    • A. 

      None - Event Handling.

    • B. 

      AddFocusListener(new FocusListener(){ public void focusGained(FocusEvent fe){ } public void focusLost(FocusEvent ev){ } });

    • C. 

      AddActionListener(new ActionListener(){ public void actionPerformed(ActionEvent ev){ } });

  • 24. 
    This is a Java program which is meant to run as a part of a web page.
    • A. 

      JFrame

    • B. 

      JApplet

    • C. 

      JDialog

    • D. 

      JPanel

    • E. 

      JWindow

  • 25. 
    Which statements are true?- 4 choices
    • A. 

      The getCurrencyInstance() returns an instance of a NumberFormat class initialized to the specified locale.

    • B. 

      The argument passed can only be primitive data type.

    • C. 

      The getCurrencyInstance() takes an instance of Locale class as an argument.

    • D. 

      The date and time format need not conform to the conventions of the end user's Locale

    • E. 

      Formatting the captions of the GUI components ensures that the look and feel of the application is in a locale-sensitive manner.

Back to Top Back to top