Lab Quiz Batch I

Approved & Edited by ProProfs Editorial Team
The editorial team at ProProfs Quizzes consists of a select group of subject experts, trivia writers, and quiz masters who have authored over 10,000 quizzes taken by more than 100 million users. This team includes our in-house seasoned quiz moderators and subject matter experts. Our editorial experts, spread across the world, are rigorously trained using our comprehensive guidelines to ensure that you receive the highest quality quizzes.
Learn about Our Editorial Process
| By Monyj1987
M
Monyj1987
Community Contributor
Quizzes Created: 3 | Total Attempts: 190
Questions: 10 | Attempts: 65

SettingsSettingsSettings
Lab Quiz Batch I - Quiz


Questions and Answers
  • 1. 

    Which class is used to create servers that listen for either local client or remote client programs?   

    • A.

      ServerSockets

    • B.

      HttpServer

    • C.

      HttpResponse

    • D.

      None of the above

    Correct Answer
    A. ServerSockets
    Explanation
    ServerSockets is the correct answer because it is the class used to create servers that listen for either local client or remote client programs. ServerSockets are used in Java to create server applications that can accept incoming connections from clients and handle them accordingly. This class provides methods to bind the server to a specific port and IP address, accept incoming connections, and communicate with the connected clients.

    Rate this question:

  • 2. 

    Which constructor of DatagramSocket class is used to creates a datagram socket and binds it with the given Port Number?   

    • A.

      DatagramSocket(int port)

    • B.

      DatagramSocket(int port, InetAddress address)

    • C.

      DatagramSocket()

    • D.

      None of the above

    Correct Answer
    B. DatagramSocket(int port, InetAddress address)
    Explanation
    The constructor DatagramSocket(int port, InetAddress address) is used to create a datagram socket and bind it with the given Port Number. This constructor allows the user to specify both the port number and the IP address of the local machine to which the socket will be bound. By using this constructor, the user can create a datagram socket that is specifically bound to a particular port number and IP address.

    Rate this question:

  • 3. 

    Which statement is true regarding the user exec and privileged exec mode?

    • A.

      They both require the enable password

    • B.

      User exec is a subset of the privileged exec

    • C.

      The '?' only works in Privileged exec

    • D.

      They are identical

    Correct Answer
    B. User exec is a subset of the privileged exec
    Explanation
    The statement that "User exec is a subset of the privileged exec" is true. In a network device, such as a router or switch, there are different levels of access modes. User exec mode provides limited access to basic monitoring and troubleshooting commands, while privileged exec mode grants full access to all device commands. Therefore, user exec mode is considered a subset of privileged exec mode, as it has fewer privileges and capabilities.

    Rate this question:

  • 4. 

    What is an example of a MAC address

    • A.

      Az32:6362:2434

    • B.

      BA:281x:8288

    • C.

      101:354:665:8734:ffd6:8023

    • D.

      A625:cbdf:6525

    Correct Answer
    D. A625:cbdf:6525
  • 5. 

    If a datagram router goes down then …………..

    • A.

      All packets will suffer

    • B.

      Only those packets which are queued in the router at that time will suffer

    • C.

      Only those packets which are not queued in the router atthat time will suffer

    • D.

      No packets will suffer

    Correct Answer
    B. Only those packets which are queued in the router at that time will suffer
    Explanation
    When a datagram router goes down, it means that it is no longer functioning and cannot process or forward any packets. Therefore, only those packets which are already queued in the router at that time will suffer because they will not be able to be processed or forwarded to their destination. Any packets that have not yet reached the router will not be affected as they will be rerouted through other functioning routers.

    Rate this question:

  • 6. 

    What is route poisoning?

    • A.

      It sends back the protocol received from a router as a poison pill, which stops the regular updates. The use of variable length subnet masks is permitted

    • B.

      It is information received from a router that can’t be sent back to the originating router.RIPv2 supports classless routing

    • C.

      It prevents regular update messages from reinstating a route that has just come up

    • D.

      It describes when a router sets the metric for a downed link to infinity

    Correct Answer
    D. It describes when a router sets the metric for a downed link to infinity
    Explanation
    Route poisoning is a technique used in routing protocols where a router sets the metric for a downed link to infinity. This is done to prevent regular update messages from reinstating a route that has just come up. By setting the metric to infinity, the router effectively marks the route as unreachable, ensuring that other routers do not attempt to use it. This helps to prevent routing loops and ensures more efficient routing in the network.

    Rate this question:

  • 7. 

    Which statement is true regarding classless routing protocols?

    • A.

      The use of discontinuous networks is not allowed

    • B.

      The use of variable length subnet masks is permitted

    • C.

      RIPv1 is a classless routing protocol

    • D.

      RIPv2 supports classless routing

    Correct Answer
    B. The use of variable length subnet masks is permitted
    Explanation
    Classless routing protocols, such as RIPv2, allow for the use of variable length subnet masks (VLSMs). This means that the network can be divided into subnets of different sizes, allowing for more efficient use of IP addresses. With VLSMs, a network administrator can allocate IP addresses based on the specific needs of each subnet, rather than being restricted to fixed subnet sizes. This flexibility is one of the advantages of classless routing protocols over classful routing protocols.

    Rate this question:

  • 8. 

    The DatagramSocket and DatagramPacket classes are not used for connection-less socket programming. 

    • A.

      True

    • B.

      False

    Correct Answer
    B. False
    Explanation
    The statement is false because the DatagramSocket and DatagramPacket classes are indeed used for connection-less socket programming. These classes are part of the Java networking API and are specifically designed for sending and receiving datagrams over a network. DatagramSocket is used to create a socket that can send or receive datagrams, while DatagramPacket is used to encapsulate the data being sent or received. Together, these classes provide the necessary functionality for connection-less communication in socket programming.

    Rate this question:

  • 9. 

    Which methods are commonly used in ServerSocket class? 

    • A.

      Public OutputStream getOutputStream()

    • B.

      Public Socket accept()

    • C.

      Public synchronized void close()

    • D.

      None of the above

    Correct Answer
    B. Public Socket accept()
    Explanation
    The correct answer is "public Socket accept()". This method is commonly used in the ServerSocket class to accept a connection from a client. It blocks until a client connects to the server and then returns a Socket object representing the client connection. This method allows the server to establish communication with the client and exchange data.

    Rate this question:

  • 10. 

     Each packet is routed independently in ……………….

    • A.

      Virtual circuit subnet

    • B.

      Short circuit subnet

    • C.

      Datagram subnet

    • D.

      ATM subnet

    Correct Answer
    C. Datagram subnet
    Explanation
    In a datagram subnet, each packet is routed independently without any prior setup or connection establishment. This means that each packet is treated as a separate entity and can take different paths to reach its destination. This approach offers flexibility and scalability as it does not require any overhead for setting up and tearing down connections. It is commonly used in IP-based networks where packets are individually addressed and routed based on the destination address.

    Rate this question:

Quiz Review Timeline +

Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.

  • Current Version
  • Mar 18, 2023
    Quiz Edited by
    ProProfs Editorial Team
  • Mar 23, 2018
    Quiz Created by
    Monyj1987
Back to Top Back to top
Advertisement
×

Wait!
Here's an interesting quiz for you.

We have other quizzes matching your interest.