Write my Essay on Mulitpule questions for a quiz

Question 1 5 pts
(TCO 4) What is a packet?

A unit of data transmitted over the network.

A key protocol at the transport layer of the Internet architecture.

A text-based, request-response protocol that calls for only one round of exchange of messages.

Allows a selected set of programming data types and data structures to be specified with IPC operations.

Question 2 5 pts
(TCO 4) Explain datagram socket API.

Supports the exchange of continuous units of data.

Supports the exchange of discrete units of data.

Supports the exchange of continuous and discrete units of data.

None of the statements is correct.

Question 3 5 pts
(TCO 4) What is a connection socket?

A type of stream-mode socket API, provided via the ServerSocket class that accepts connections.

A type of stream-mode socket API, provided via the Socket class that accepts connections.

A type of stream-mode socket API, provided via the ServerSocket class that exchanges data.

A type of stream-mode socket API, provided via the Socket class that exchanges data.

Question 4 5 pts
(TCO 4) What is the difference between the ServerSocket class and the Socket class?

The ServerSocket class is for the transfer of data and the Socket class is for the establishment of connections.

The ServerSocket class is for the establishment of connections and the Socket class is for the transfer of data.

The ServerSocket class utilizes data sockets while the Socket class utilizes connection sockets.

The ServerSocket class utilizes connection sockets, but the Socket class doesn’t utilize any socket.

Question 5 5 pts
(TCO 4) What is the Java Secure Socket Extension (JSSE)?

A socket API that provides nonblocking I/O operations.

A process that wishes to communicate with the server.

A set of Java packages that enable secure Internet communications.

A stream-mode socket API that enables secure Internet communications.

Question 6 5 pts
(TCO 5) What are the differences between client processes and server processes?

Client processes run on a network-connected computer and a server process access the server to obtain a network service.

Client processes access the server to obtain a network service and a server process runs on a network-connected computer.

Client processes run on a network-connected computer called a server host.

A server process accesses the server to obtain a network service called a server host.

Question 7 5 pts
(TCO 5) What is a request-response pattern?

A single interaction between the server and client.

The interaction of processes within the client-server model.

A term used for a void function.

A process that makes use of a single central processing unit to execute one or more programs for each application.

Question 8 5 pts
(TCO 5) What is a stub?

A method defined with minimal code to allow the program to compile and run initially.

A class that contains the necessary methods for stream-mode IPC.

A code that uses the stream-mode socket API to accept a connection.

A separation within the client-side software that allows modifications to be made to the logic at one layer without requiring changes to be made at the other layers.

Question 9 5 pts
(TCO 5) What is an iterative server?

Services one client at a time.

Has a limited server for exchanging data.

Both a & b.

None of the statements is correct.

Question 10 5 pts
(TCO 5) What is a stateful server?

A server that must maintain some state information in order to provide its service.

A server that sometimes should maintain some state information in order to provide its service.

A server that provides a service according to a stateless protocol.

None of the statements is correct.

Question 11 5 pts
(TCO 6) What is the state?

Data of the entity.

Data is contained in the instance variables of each object.

Both a & b.

None of the statement is correct.

Question 12 5 pts
(TCO 6) What are remote methods?

Methods of local object.

Methods belonging to a local object.

Methods belonging to any object.

Methods of a distributed object.

Question 13 5 pts
(TCO 6) Which of the following is true about procedural programming?

Postdates object-oriented programming.

A function is not a control structure.

A procedure is a control structure that provides the abstraction for an action.

The action of a function is invoked by a variable.

Question 14 5 pts
(TCO 6) A skeleton layer _____

Interacts with the stub layer on the client side.

Interacts with the stub layer on the server side.

Interacts with the other layers on the client side.

Interacts with the other layers on the server side.

Question 15 5 pts
(TCO 6) Which of the following is true about the Remote interface?

The RMI API is the starting point of creating a local object

The RMI API is the starting point of creating a distributed object.

A Java interface is not a class but a complex method.

A Java interface contains the implementations of the method.

Question 16 5 pts
(TCO 7) Hypertext Markup Language (HTML) ________

Is a markup language used to create documents that can be retrieved using the Web.

Is based on SGML.

Can represent simple structured documents.

All of the above.

Question 17 5 pts
(TCO 7) Base64 _______

Is an encoding scheme for text contents specified with the MIME protocol.

Is an encoding scheme for text contents transferred between UNIX systems.

Is an encoding scheme for text contents transferred between Windows systems

None of the statements is correct.

Question 18 5 pts
(TCO 7) Which of the following is true about persistence?

CGI scripts and Servlets are the same in terms of persistence.

Servlets instances will run for at least as long as there is a request issued to them.

CGI scripts will run for at least as long as there are requests issued to them.

A CGI script is loaded only once.

Question 19 5 pts
(TCO 7) Which of the following is true about methods specified with each servlet object?

init method is invoked when a client request is forwarded to the servlet.

shutdown method is invoked when a servlet is no longer needed.

service method is invoked when a servlet is initialized.

service method is invoked when a servlet is no longer needed.

Question 20 5 pts
(TCO 7) Service discovery protocols ________

Allow a service to be deregistered.

Allow a service to be registered and located.

Allow a service to be described to the directory.

Allow a service to be deleted from the directory.
Question 21 30 pts
(TCO 2 and 4) Write the listenSocket method (server-side program)
a – Write the required lines of code that will create a ServerSocket object with a port number 1024 on which the server program is going to listen for client communications.

b – Write the required lines of code that will create a new socket object.

c – Write the required lines of code that will read the data sent over the socket connection from the client program.

Copy the above code into the method below:
public void listenSocket(){
// PART A

//PART B

// PART C

}
Question 22 30 pts
(TCO 2 and 4) Write the listenSocket method (client-side program) with the hostname mydevry1 and port number 1024. Write it to send the data over the socket connection to the server and read the text sent by the server back to the client.

The post Mulitpule questions for a quiz appeared first on Essaysholic.

Would you like to get in touh with us?
Contact Us

Is this question part of your Assignment?

We can help

Our aim is to help you get A+ grades on your Coursework.

We handle assignments in a multiplicity of subject areas including Admission Essays, General Essays, Case Studies, Coursework, Dissertations, Editing, Research Papers, and Research proposals

Header Button Label: Get Started NowGet Started Header Button Label: View writing samplesView writing samples