0

programming languages Online Quiz - 98

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

output of below Program public static voi main(String[] args) { ArrayList; al=new List();//1 al.add("bima");//2 al.add("hidimba");//3 System.out.println(al.size());//4 }

  1. Runtime Exception

  2. Compilation error at line 1

  3. 2

  4. Compilation error at line 2

  5. Compilation error at line 3

  6. Compilation error at line 4


Correct Option: B

Which Operator can be used in sort function for sorting array elements numerically?

  1. <>

  2. >

  3. <=>

  4. cmp


Correct Option: C

In perl ,if $variable="10" then what will output of print 'this is $variable'; ?

  1. this is $10

  2. this is $variable

  3. this is

  4. this is 10


Correct Option: B

what is output of print abs("123abc") ?

  1. 0

  2. 123

  3. abc

  4. 12


Correct Option: B

chomp(@array) will

  1. work on first eleemnt of array

  2. work on last element of array

  3. works on all elements of array

  4. wont work on array


Correct Option: C

Which function you will use to create object in perl?

  1. bless

  2. createobject

  3. create_object

  4. blessed


Correct Option: A
  1. Length

  2. length

  3. len

  4. strlen


Correct Option: A
  1. perl -c <>

  2. perl -c

  3. You cannot compile a program

  4. perl -e <>


Correct Option: A

Which of the following block executes at compile time?

  1. END

  2. BEGIN

  3. CHECK

  4. INIT


Correct Option: B
- Hide questions