0

Computer Networks

Description: C.N
Number of Questions: 25
Created by:
Tags: C.N Data Communication & Networks Programming
Attempted 0/25 Correct 0 Score 0

Which of the following is the noise where foreign signal enters the path of the transmitted signal?

  1. Cross talk

  2. Dispersion

  3. Impulse

  4. None of these


Correct Option: A
Explanation:

Cross talk is the noise where foreign signal enters the path of the transmitted signal.

Which of the following protocols is used in TCP/IP model to transport electronic mail from one computer to another?

  1. TELNET

  2. FTP

  3. SMTP

  4. None of these


Correct Option: C
Explanation:

SMTP is the protocol used to transport electronic mail from one computer to another.

'Chatting' on internet is an example of __________ type of transmission.

  1. asynchronous

  2. synchronous

  3. simplex

  4. none of these


Correct Option: B
Explanation:

Synchronous is one type of communication in which the parties communicating are live or present in space and time.

Which of the following topologies has higher reliability than any other topology?

  1. Ring

  2. Star

  3. Tree

  4. Bus


Correct Option: D
Explanation:

This type of topology keeps track of unique electronic address for each node, and manages the flow of information. Hence, it is more reliable than any other topology.

Which of the following is the first phase in communication using circuit switching?

  1. Data transfer

  2. Connection establishment

  3. Termination

  4. None of these


Correct Option: B
Explanation:

This is the first phase in communication in which before any signal can be transmitted, an end to end circuit must be established.

Which of the following layers in OSI controls the dialogues between computers?

  1. Network layer

  2. Session layer

  3. Transport layer

  4. Presentation layer


Correct Option: B
Explanation:

The session layer controls the dialogues/connections between computers.

Which of the following data types in Java has the smallest size in bits?

  1. Short

  2. Boolean

  3. Byte

  4. None of these


Correct Option: B
Explanation:

This data type takes 1 bit to store boolean values( true or false). Hence, it occupies the smallest size among all data types in Java.

Which of the following types of communication is used when data is transmitted byte-by-byte?

  1. Serial communication

  2. Cross talk

  3. Parallel communication

  4. None of these


Correct Option: C
Explanation:

Parallel communication is type of communication in which data is transmitted byte-by-byte.

Which of the following classes in Java defines common properties and behaviours of other classes?

  1. Abstract class

  2. Final class

  3. Super

  4. None of these


Correct Option: A
Explanation:

Abstract classes defines common properties and behaviors of other classes.

Which of the following Java back-end tools is required to provide a database-programming interface for Java programs?

  1. ODBC

  2. JDBC driver manager

  3. JDBC

  4. None of these


Correct Option: C
Explanation:

This tool provides a database-programming interface for Java programs.

Which of the following functions or methods in Java is used to concatenate string at the end of any other string?

  1. valueof()

  2. insert()

  3. append()

  4. none of these


Correct Option: C
Explanation:

This method concatenates the string at the end of any other string.

Which of the following methods in Java determines whether a given string begins with a specified string or not?

  1. endsWith()

  2. startWith()

  3. regionMatches()

  4. None of these


Correct Option: B
Explanation:

This method determines whether a given string begins with a specified string.

Which of the following methods sets the query parameters of the prepared statement object?

  1. Connection object

  2. Setstring() method

  3. Executequery() method

  4. None of these


Correct Option: B
Explanation:

This method sets the query parameters of the prepared statement object.

Which of the following event objects is generated when a component receives focus for input?

  1. Action event

  2. Adjustment event

  3. Container event

  4. Focus event


Correct Option: D
Explanation:

This object is generated when a component receives focus for input.

Which of the following objects in Java uses statement object to send simple queries to database?

  1. Resultset object

  2. Prepared statement object

  3. Statement object

  4. None of these


Correct Option: C
Explanation:

This object send simple queries to the database.

Which of the following classes is generated when a check box or a list item is clicked or when a checktable menu item is selected or deselected?

  1. FocusEvent

  2. ContainerEvent

  3. ItemEvent

  4. None of these


Correct Option: C
Explanation:

This class is generated when a check box or a list item is clicked or when a checktable menu item is selected or deselected.

Which of the following integer constants of Window Event class does not exist in Java?

  1. WINDOW_ACTIVATED

  2. WINDOW_CLOSING

  3. WINDOW_RUN

  4. WINDOW_OPENED


Correct Option: C
Explanation:

This is not a valid constant of Window Event class.

Which of the following is the line break tag used in applet programming in Java?

  1. <H1>

  2. <B>

  3. <BR>

  4. None of these


Correct Option: C
Explanation:

This is a line break tag used to skip a line.

Which of the following methods is used in applet life cycle to kill the applet from idle state?

  1. stop()

  2. destroy()

  3. paint()

  4. none of these


Correct Option: B
Explanation:

This method is used to kill the applet from idle state. killing of an applet means removing it from the memory.

Which of the following methods is used in Java to convert upper case letters to lower case?

  1. tolower()

  2. toUpperCase()

  3. toLowerCase()

  4. valueOf()


Correct Option: C
Explanation:

This method is used in Java to convert upper case letters to lower case.

Which of the following functions pre-allocate room for a certain number of characters after a StringBuffer has been constructed?

  1. setLength()

  2. ensureCapacity()

  3. length()

  4. none of these


Correct Option: B
Explanation:

This function preallocate room for a certain number of characters after a StringBuffer has been constructed.

Which of the following String classes creates flexible length strings that can be modified in terms of length and content?

  1. StringBuffer

  2. String()

  3. Length()

  4. None of these


Correct Option: A
Explanation:

StringBuffer class creates flexible length strings that can be modified in terms of length and content.

Which of the following methods in applet programming clears the screen and calls the paint() method?

  1. Update() method

  2. Stop() method

  3. Destroy() method

  4. Init() method


Correct Option: A
Explanation:

The update() method clears the screen and calls the paint() method.

Which of the following blocks in Java is to deal with certain statements irrespective of whether an exception is raised or not?

  1. Try block

  2. Catch block

  3. Finally block

  4. None of these


Correct Option: C
Explanation:

The finally block in Java is to deal with certain statements irrespective of whether an exception is raised or not.

Which of the following methods in Java is used to store characters in an array of bytes?

  1. getChars()

  2. getBytes()

  3. charAt()

  4. none of these


Correct Option: B
Explanation:

 This method is used to store the characters in an array of bytes.

- Hide questions