0

programming languages Online Quiz - 28

Description: programming languages Online Quiz - 28
Number of Questions: 20
Created by:
Tags: programming languages
Attempted 0/20 Correct 0 Score 0

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


Correct Option: A

AI Explanation

To answer this question, you need to understand the concept of Java's cross-platform capability.

Option A) Byte Code - This option is correct. Java enables the creation of cross-platform programs by compiling Java source code into an intermediate representation called Byte Code. Byte Code is a platform-independent format that can be executed by the Java Virtual Machine (JVM) on any platform.

Option B) Firewall - This option is incorrect. A firewall is a network security device that monitors and controls incoming and outgoing network traffic based on predetermined security rules.

Option C) Tetra Code - This option is incorrect. "Tetra Code" is not a recognized term in the context of Java or cross-platform programming.

Option D) View Code - This option is incorrect. "View Code" does not refer to the intermediate representation used by Java for cross-platform programming.

Therefore, the correct answer is Option A) Byte Code. This option is correct because Java compiles into an intermediate representation called Byte Code to enable the creation of cross-platform programs.

enum is a Keyword in Java, introduced from J2SE 5

  1. True

  2. False


Correct Option: A

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


Correct Option: B

AI Explanation

To answer this question, we need to understand what RMI stands for.

Option A) Random Memory Interface - This option is incorrect because RMI stands for Remote Method Invocation, not Random Memory Interface.

Option B) Remote Method Invocation - This option is correct. RMI stands for Remote Method Invocation, which is a Java API that allows an object running in one Java virtual machine to invoke methods on an object running in another Java virtual machine, in a different process or even on a different machine.

Option C) Random Method Invocation - This option is incorrect because RMI stands for Remote Method Invocation, not Random Method Invocation.

Option D) Remote Memory Interface - This option is incorrect because RMI stands for Remote Method Invocation, not Remote Memory Interface.

The correct answer is B) Remote Method Invocation. This option is correct because RMI is a Java API that allows remote communication between Java programs by invoking methods on remote objects.

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

  1. Active

  2. Passive

  3. Both

  4. None


Correct Option: B
  1. True

  2. False


Correct Option: A
Explanation:

To solve this question, the user needs to have knowledge of Java programming language.

The statement is True.

In Java, a source file is officially called a "compilation unit". It contains the source code for a single Java class or interface. When the Java compiler compiles the source code, it generates a bytecode file for each compilation unit, which can then be executed on any platform that has a Java Virtual Machine (JVM). Therefore, option A is correct.

The Answer is: A. True

  1. Heavy weight components

  2. Medium weight components

  3. Light weight components

  4. None


Correct Option: C

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


Correct Option: A

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


Correct Option: C

AI Explanation

To answer this question, let's go through each option to understand why it is correct or incorrect:

Option A) Servlets are server-side components - This option is correct because servlets are indeed server-side components. They are Java classes that are used to extend the capabilities of a server and generate dynamic web content.

Option B) Applets have GUI interface - This option is correct because applets are Java programs that are designed to be embedded within web pages and run on the client-side. They often have a graphical user interface (GUI) that allows user interaction.

Option C) Servlets have GUI interface - This option is incorrect because servlets do not have a graphical user interface (GUI). They are primarily used for processing requests and generating dynamic content on the server-side, without any direct user interaction.

Option D) Applets are client-side components - This option is correct because applets are indeed client-side components. They are downloaded from a server and run on the client-side, within a web browser or applet viewer.

The correct answer is C. Servlets do not have a GUI interface.

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

  1. Parameter

  2. Value

  3. Index

  4. Object


Correct Option: B

You can override private virtual methods?

  1. True

  2. False


Correct Option: B

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

  1. True

  2. False


Correct Option: B

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

  1. comma

  2. space

  3. single quote

  4. double quote


Correct Option: B

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


Correct Option: D

Output Stream corresponding to the Sequence Input Stream

  1. Sequence Output Stream

  2. Print Stream

  3. None of the above

  4. 1 and 2


Correct Option: C,D

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

  1. Resultset

  2. Prepared Statement

  3. Statement

  4. Number of rows retrieved


Correct Option: D
- Hide questions