0
Alien head

programming languages Online Quiz - 28

Description: programming languages Online Quiz - 28
Number of Questions: 20
Created by:
Tags: programming languages

The below statement returns ?executeUpdate(String sql)...

  1. Resultset

  2. Prepared Statement

  3. Statement

  4. Number of rows retrieved

Answer: 4

Output Stream corresponding to the Sequence Input Stream

  1. Sequence Output Stream

  2. Print Stream

  3. None of the above

  4. 1 and 2

Answer: 3,4

Try catch block should be used whenever

  1. I/O operation

  2. Database operation

  3. Networking

  4. All of the above

  5. None of the above

Answer: 4

StringTokenizer st= new StringTokenizer(String s). The output string is tokenized based on

  1. comma

  2. space

  3. single quote

  4. double quote

Answer: 2

Vector.size() refers to the space alloted to the vector

  1. True

  2. False

Answer: 2

You can override private virtual methods?

  1. True

  2. False

Answer: 2

C# provides a default constructor for me. I write a constructor that takes a string as a parameter, but want to keep the no parameter one. How many constructors should I write?

  1. One

  2. Two

  3. Nill

  4. None

Answer: 2

You can declare the override method static while the original method is non-static.

  1. True

  2. False

Answer: 2

Whats the implicit name of the parameter that gets passed into the class set method?

  1. Parameter

  2. Value

  3. Index

  4. Object

Answer: 2

You Can inherit multiple interfaces.

  1. True

  2. False

Answer: 1

Choose the false statement among these?

  1. Servlets are server side components

  2. Applets have GUI interface

  3. Servlets have GUI interface

  4. Applets are client side components

Answer: 3

In order to use a servlet for handling the submission of a web form, subclass HttpServlet() and put service code in ______

  1. service() method

  2. getServletInfo() method

  3. doGet() or doPost() method

  4. None

Answer: 3

The list of locations for the compiler to search in order to resolve class names at compile time is called _______

  1. build path

  2. runtime classpath

  3. Both (A) and (B )

  4. None

Answer: 1

The peerless components are called

  1. Heavy weight components

  2. Medium weight components

  3. Light weight components

  4. None

Answer: 3

In Java, a source file is officially called a compilation unit

  1. True

  2. False

Answer: 1

An _________ is a special kind of Java program that is designed to be transmitted over the Internet

  1. Viewlet

  2. Servlet

  3. Object

  4. Applet

Answer: 4

When you read your e-mail, you are viewing _________ data

  1. Active

  2. Passive

  3. Both

  4. None

Answer: 2

Java support RMI. What does this RMI stands for?

  1. Random Memory Interface

  2. Remote Method Invocation

  3. Random Method Invocation

  4. Remote Memory Interface

Answer: 2

enum is a Keyword in Java, introduced from J2SE 5

  1. True

  2. False

Answer: 1

Java enables the creation of cross-platform programs by compiling into an intermediate representation called Java

  1. Byte Code

  2. Firewall

  3. Tetra Code

  4. View Code

Answer: 1
+ View questions