0

programming languages Online Quiz - 188

Description: programming languages Online Quiz - 188
Number of Questions: 20
Created by:
Tags: programming languages
Attempted 0/20 Correct 0 Score 0
  1. Define the interfaces

  2. Implementing Interface

  3. Compile the interfaces

  4. All the above


Correct Option: D

Which files contains the libraries, resources and accessories files like property files?

  1. .jar

  2. .war

  3. .ear

  4. .zip


Correct Option: A

What is a DTD file?

  1. Document Type definition

  2. Document type decision

  3. Document type data

  4. Document type development


Correct Option: A
  1. The Void class extends the Class class.

  2. The Float class extends the Double class.

  3. The System class extends the Runtime class.

  4. The Integer class extends the Number class.


Correct Option: D

How many number of models are there in MVC architecture?

  1. 1

  2. 2

  3. 3

  4. 4


Correct Option: B
  1. Displaying page data

  2. Connecting to database

  3. Routing Requests

  4. Performing front end validations


Correct Option: C
  1. UTF characters are all 8-bits.

  2. UTF characters are all 16-bits.

  3. UTF characters are all 24-bits.

  4. Unicode characters are all 16-bits.


Correct Option: D
  1. initialize instance variables

  2. destroy variables

  3. both (a) and (b)

  4. None of the above


Correct Option: A
  1. -1

  2. 0

  3. 4

  4. random value


Correct Option: A
Explanation:

To solve this question, the user needs to understand the behavior of the indexOf() method in Java. This method returns the index of the first occurrence of a specified substring within a given string. If the substring is not found in the string, the method returns -1.

In the given code fragment, the string s is initialized to "Foolish boy." and the indexOf() method is called on this string with the argument "fool". Note that the substring "fool" is not present in the original string with the same letter case. The index of the first occurrence of the substring "fool" in the string s is thus -1.

Therefore, the correct answer is:

The Answer is: A. -1

  1. A TextArea can handle multiple lines of text

  2. A textarea can be used for output

  3. TextArea is not a class

  4. TextAreas are used for displaying graphics


Correct Option: A
  1. FIFO

  2. LIFO

  3. both (a) and (b)

  4. None of the above


Correct Option: B

The keyword used along with try catch block to execute a part of code even if an exception is not caught is

  1. Finalize

  2. Finally

  3. Final

  4. Financial


Correct Option: B
  1. FIFO

  2. LIFO

  3. both (a) and (b)

  4. None of the above


Correct Option: A
  1. For loop

  2. While loop

  3. if loop

  4. All the above


Correct Option: C
- Hide questions