0

programming languages Online Quiz - 43

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

How many key-value pairs will the hash contain? my %hash = ( [1, 2] => 1, [1, 2] => 2 );

  1. 1

  2. 2

  3. 3

  4. 4


Correct Option: B

: What will be the size of the @fields array? my $record = ':a:b:c:'; my @fields = split(':', $record, -1);

  1. 0

  2. 1

  3. 3

  4. 5


Correct Option: D

What will be the value of $keys after execution of the following code? my $var; if (exists $var->{key1}->{key2}) { $var->{key1}->{key2} = 1; } my $keys = keys(%{$var});

  1. undef

  2. 0

  3. 1

  4. 2

  5. code will fail


Correct Option: C

What will be printed? BEGIN { print 'a'; } END { print 'b'; } BEGIN { print 'c'; } END { print 'd'; }

  1. abcd

  2. acbd

  3. cadb

  4. code will fail


Correct Option: C

What is the output for the below code ? public class Test { public static void main(String[] args) { List list = new ArrayList(); list.add(0, 59); int total = list.get(0); System.out.println(total); } }

  1. 59

  2. Compile time error, because you have to do int total = ((Integer)(list.get(0))).intValue();

  3. Compile time error, because can't add primitive type in List.

  4. Compile Properly but Runtime Exception


Correct Option: A

Flex is used for the development of Rich Internet Application which can also be deployed in

  1. Desktop

  2. Browsers

  3. Operating systems

  4. All the above


Correct Option: D

What are the languages the flex can be developed?

  1. ActionScript

  2. MXML

  3. HTML

  4. None of the above


Correct Option: A,B

Is it possible to make httpService Requests synchronous

  1. True

  2. False


Correct Option: B
- Hide questions