0

programming languages Online Quiz - 110

Description: programming languages Online Quiz - 110
Number of Questions: 20
Created by:
Tags: programming languages
Attempted 0/20 Correct 0 Score 0
  1. Using SSI include

  2. Using JSP include

  3. Using Asp include

  4. All of the above


Correct Option: A

Which sequence of HTML tags are correct?


Correct Option: B

UPDATE command is of following type

  1. Data Defenition Language

  2. Data Manipulation Language

  3. Data Updation Language

  4. Data Selection Language


Correct Option: B

DELETE command will delete the table from database

  1. True

  2. False


Correct Option: A

You want to select all employee names starting with capital C. Which clause you will use?

  1. order by

  2. Like

  3. sameas

  4. not like


Correct Option: B

The default character for specifying runtime variables in SELECT statements is

  1. Ampersand

  2. Ellipses

  3. Quotation marks

  4. Asterisk


Correct Option: A

Which of the following is not a group function?

  1. avg( )

  2. sqrt( )

  3. sum( )

  4. max( )


Correct Option: B
  1. Execute notify(thread1); from within synchronized code of mon.

  2. Execute mon.notify(thread1); from synchronized code of any object.

  3. Execute thread1.notify(); from synchronized code of any object.

  4. Execute thread1.notify(); from any code(synchronized or not) of any object.

  5. You cannot specify which thread will get notified.


Correct Option: E
  1. The program exits via a call to System.exit(0);

  2. Another thread is given a higher priority.

  3. A call to the thread's stop method.

  4. A call to the halt method of the Thread class.


Correct Option: D
  1. Execute notify(thread1); from within synchronized code of mon.

  2. Execute mon.notify(thread1); from synchronized code of any object.

  3. Execute thread1.notify(); from synchronized code of any object.

  4. Execute thread1.notify(); from any code(synchronized or not) of any object.

  5. You cannot specify which thread will get notified.


Correct Option: E
  1. The program exits via a call to System.exit(0);

  2. Another thread is given a higher priority.

  3. A call to the thread's stop method.

  4. A call to the halt method of the Thread class.


Correct Option: D

Program output : package com.collection.examples; import java.util.HashSet; public class HashSetExample { public static void main(String[] args) { HashSet s = new HashSet();//1 for(short i = 0; i<100;i++){ //2 s.add(i); //3 s.remove(i-1); //4 } System.out.println(s.size()); //5 } }

  1. NumberFormat Exception

  2. 100

  3. Compilation fails at line 4

  4. 99


Correct Option: B
  1. Runtime Exception

  2. finally block will be executed

  3. finally block will not be executed

  4. Compilation error in else block


Correct Option: C
- Hide questions