Network Applications Development II
Network Applications Development II

Network Applications Development II

Lead Author(s): Saylor Academy

Source: Saylor

Student Price: FREE

A Network Applications Development question pack by Saylor Academy.

This content is licensed under the Creative Commons Attribution 3.0 Unported License.

CC BY 3.0 - Saylor

Content on this site is licensed under a Creative Commons Attribution 3.0 Unported License .

Saylor Academy and Saylor.org® are trade names of the Constitution Foundation, a 501(c)(3) organization through which our educational activities are conducted.

Course Designer: n/a

Network Applications Development II Q1

The Java Network Interface can be used to do which of the following?

A

To create a new instance of the interface

B

To determine a virtual connection's IP address

C

To set constructor to public

D

All of the above

Network Applications Development II Q2

The java.net.NetworkInterface can be used to do which of the following?

A

Create a socket

B

Connect/access multiple NIC's

C

Join a multicast group

D

All of the above

Network Applications Development II Q3

The TCP protocol provides a reliable channel for internet applications developed in HTML under which condition?

A

The data can be transformed to the order needed by the receiving URL.

B

The data must be received in the order in which it was sent.

C

The protocol allows networks to detect corrupt files and return them to the sender.

D

All of the above

Network Applications Development II Q4

Which method allows Java to access an URL over a network?

A

getPort

B

URL

C

URLConnection

D

All of the above

Network Applications Development II Q5

Which of following describes a datagram packet?

A

It is another name for a TCP packet.

B

It requires a reliable flow of data between two computers.

C

It relies on the UDP protocol.

D

All of the above

Network Applications Development II Q6

Which of the following applications require code to generate the input/output stream?

A

Cookie

B

Form

C

Search

D

All of the above

Network Applications Development II Q7

Which of the following is the purpose of the site CookieManager constructor?

A

To create the default cookie handler

B

To determine where session cookies will be stored

C

To set cookie policy for the session

D

All of the above

Network Applications Development II Q8

Namespace support to resolve DTD naming conflicts is provided by______________.

A

DOM

B

JAXP

C

SAX

D

XSLT

Network Applications Development II Q9

The API for parsing XML data in the Java programming language is ______________.

A

DOM

B

JAXP

C

SAX

D

XSLT

Network Applications Development II Q10

The API for processing XML data written in the Java programming language is ______________.

A

DOM

B

JAXP

C

SAX

D

XSLT

Network Applications Development II Q11

How is an element in XML similar to a HTML statement?

A

Both contain a beginning tag <>.

B

Both contain an ending tag </>.

C

Both can be nested.

D

All of the above

Network Applications Development II Q12

JAXP pluggability includes which of the following?

A

DOM

B

SAX

C

XSL

D

All of the above

Network Applications Development II Q13

The package java.io includes a class named URL. Which statement best describes what this class does?

A

The URL contains a socket address for a webpage on a network.

B

The URL object defines the web owner.

C

The URL object has an openConnection() method to access the information that it represents.

D

All of the above

Network Applications Development II Q14

The SAX parsing APIs include which of the following classes?

A

SAXParserFactory

B

SAXReader

C

SAXParser

D

DTDHandler

Network Applications Development II Q15

The SAX parsing APIs include which of the following wrappers?

A

SAXParserFactory

B

SAXReader

C

SAXParser

D

DefaultHandler

Network Applications Development II Q16

The SAX parsing APIs include which of the following methods?

A

SAXParserFactory

B

SAXReader

C

SAXParser

D

EntityResolver

Network Applications Development II Q17

When coding in XML, which of the following is similar to coding in HTML?

A

With coding in XML or HTML, always use utf-8.

B

With coding in XML or HTML, start with the declaration statement <?

C

With coding in XML or HTML, use any text editor to create the file

D

All of the above

Network Applications Development II Q18

Which of the following describes the use of the declaration in XML?

A

It identifies the file as an XML document.

B

It is the first processing instruction in the program.

C

It starts with the characters <?

D

All of the above

Network Applications Development II Q19

Which of the following is a set of built-in (default) template rules defined in XSLT?

A

Automatic copying of text

B

Processing instructions

C

Skipping comments

D

All of the above

Network Applications Development II Q20

Which of the following is NOT defined in XSLT's built in template rules?

A

Copying attribute nodes

B

Section Title

C

Skipping comments

D

None of the above

Network Applications Development II Q21

Which of the following statements best describes an XML filter chain in Java?

A

It is the normalization of an XSLT transformation.

B

The output of one transformation becomes the input of the next.

C

The final output is always XML.

D

All of the above

Network Applications Development II Q22

Which statement best describes JAXP?

A

JAXP leverages the parser routines.

B

JAXP provides control over the presentation of XML data.

C

JAXP prevents streaming of events by building object representations.

D

All of the above

Network Applications Development II Q23

The package java.io includes a class named URL. Which statement best describes what this class does?

A

The URL contains a socket address for a webpage on a network.

B

The URL object defines the web owner.

C

The URL object has an openConnection() method to access the information that it represents.

D

All of the above

Network Applications Development II Q24

The SAX parsing APIs include which of the following error interface?

A

DTDHandler

B

EntityResolver

C

SAXParser

D

All of the above

Network Applications Development II Q25

When a method throws an exception, what does your code include?

A

A try statement with a catch clause to handle the exception.

B

The method definition declares that calling the method might throw the exception.

C

The method heading includes a throws clause.

D

All of the above