0

web technology Online Quiz - 57

Description: web technology Online Quiz - 57
Number of Questions: 20
Created by:
Tags: web technology
Attempted 0/20 Correct 0 Score 0

When you have a graphic that you would like to use for the backdrop of your page, what tag sequence do you use?

  1. BODY PICTURE

  2. BODY BACK

  3. BODY BACKGROUND

  4. BODY BACKDROP


Correct Option: C

How many numerical characters are in a hex color code?

  1. 5

  2. 6

  3. 4

  4. 7


Correct Option: B

What tag is used when you want to create a horizontal divider across your page?

  1. HL

  2. HD

  3. TR

  4. HR


Correct Option: D

What tag is used to center text on a page?

  1. t mid

  2. middle

  3. mid

  4. center


Correct Option: D

What tag do you use if you want text to pop up when the browser hovers his/her mouse over a graphic on your page in Internet Explorer?

  1. ctrl

  2. alt

  3. hover

  4. over


Correct Option: B
  1. BODY & TAIL

  2. HEAD & TAIL

  3. HEAD & BODY

  4. FIRST & BODY


Correct Option: C

HTML documents are also called

  1. Script pages

  2. Web pages

  3. Application pages

  4. HTML pages


Correct Option: B

HTML colors are defined using a notation,

  1. colour

  2. hexadecimal

  3. decimal

  4. number


Correct Option: B

HTML we use today was developed from the prototype written by

  1. Ben lee

  2. Paul werk

  3. John versky

  4. Tim Berners-Lee


Correct Option: D

Servlets are typically used for...

  1. Create a JVM for applets

  2. Extending a web server by providing dynamic web content.

  3. Storing information in applets.

  4. Loading buttons and menus.


Correct Option: B

A program written in the Java programming language can run on any platform because

  1. Java programming is derived from C++

  2. The Java Virtual Machine(JVM) interprets the program for the native operating system

  3. The compiler is identical to a C++ compiler

  4. The APIs do all the work


Correct Option: B

AI Explanation

To answer this question, you need to understand the concept of platform independence in Java. Let's go through each option to understand why it is correct or incorrect:

Option A) Java programming is derived from C++ - This option is incorrect because the derivation of Java programming language from C++ does not guarantee platform independence. Java is actually derived from the C and C++ programming languages, but its platform independence is a result of the Java Virtual Machine (JVM) and other features, not its derivation from C++.

Option B) The Java Virtual Machine (JVM) interprets the program for the native operating system - This option is correct. The Java programming language uses the concept of a Java Virtual Machine (JVM), which interprets the Java code at runtime and converts it into machine code that can be executed by the native operating system. This allows Java programs to run on any platform that has a compatible JVM implementation.

Option C) The compiler is identical to a C++ compiler - This option is incorrect. While there may be similarities between Java and C++ compilers, the compiler itself being identical to a C++ compiler does not guarantee platform independence. The platform independence in Java comes from the JVM, not the compiler.

Option D) The APIs do all the work - This option is incorrect. While APIs (Application Programming Interfaces) are important in Java programming, they do not solely enable platform independence. The JVM plays a crucial role in executing Java programs on different platforms.

The correct answer is Option B. This option is correct because the Java Virtual Machine (JVM) interprets the program for the native operating system, allowing Java programs to run on any platform that has a compatible JVM implementation.

When a program class implements an interface, it must provide behavior for

  1. Two methods defined in that interface

  2. Only certain methods in an interface

  3. Any methods in a class

  4. All methods defined in that interface


Correct Option: D

Which method will a web browser call first on a new applet?

  1. main method

  2. start method

  3. init method

  4. paint method


Correct Option: C

"ls .." would list?

  1. List Contents of Current Working Directory.

  2. List Contents of Parent Directory.

  3. Display an Error.

  4. Display properties of file ..


Correct Option: B

Components in wicket act as

  1. view

  2. controller

  3. Model

  4. 1 & 2

  5. 2 & 3


Correct Option: B

which object holds the data that can be shared by all users ?

  1. request

  2. page

  3. application

  4. session

  5. session store


Correct Option: C

which of the below java components has an associated mark up ?

  1. form

  2. panel

  3. webpage

  4. window

  5. fragment


Correct Option: C

Java component and its associated markup should be in the same directory?

  1. True

  2. False


Correct Option: A

Is the object referenced by a CompoundPropertyModel should be Serializable?

  1. True

  2. False


Correct Option: B
- Hide questions