0

programming languages Online Quiz - 2

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

Method-Overloading implements the principle of Compile-time Polymorphism, wheras Method Over-riding implements the concept of Runtime Polymorphism.

  1. True

  2. False


Correct Option: B

JVM is the compiler for Java.

  1. True

  2. False


Correct Option: B

How many objects are created in the below code...????

String s="abc";  
String s1=new String("def");
  1. 1 Object

  2. 2 Objects

  3. 3 Objects

  4. 4 Objects


Correct Option: C

Variables are not interpolated inside which operator when used normally?

  1. " "

  2. < >

  3. ' '

  4. / /


Correct Option: C
  1. Opens a file notes.txt

  2. fails to create a file and displays error

  3. fails to open a file but doesn't display error

  4. Opens a file but not notes.txt


Correct Option: D
  1. A list of hashes which contains a list

  2. A hash of hashes which contains a list

  3. A list of list which contains another list

  4. A list of arrays and hashes containing lists


Correct Option: A

What happens when @_ is modified?

  1. when arrays and references are passed

  2. only when references are passed

  3. args are not changed

  4. Command line args are changed


Correct Option: D

%abc = %\$def which option is correct when $def = \%any_hash ?

  1. all key value pairs are copied but in random order

  2. all key value pairs are copied in proper order

  3. all key value pairs from def may not be copied into abc

  4. syntax error


Correct Option: A

what is the output for printf ("%06.2f", \$amt) when \$amt = 9.355 ?

  1. 9.3550

  2. 9.4

  3. 009.40

  4. Error


Correct Option: C
  1. &complex_num();
  2. complex_num();

which is correct?

  1. 1 can only be called with predecleration of complex_num

  2. 1 and 2 are same

  3. 2 can only be called with predecleration of complex_num

  4. 1 is reference to a subroutine


Correct Option: C
  1. Attributes of ServletContext

  2. Enterprise Java Beans

  3. Attributes of HttpSession

  4. Database


Correct Option: A

Which jsp implicit object is synchronized?

  1. session

  2. page

  3. application

  4. None of the above


Correct Option: B
- Hide questions