0

programming languages Online Quiz - 8

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

What is the output of the below JavaScript?


var bol = new Boolean();        
alert(bol);     

  1. false

  2. true

  3. error

  4. None of the above


Correct Option: A

var one = ["a", "b"];       
var two = ["c", "d"];       
var three = one.concat(two);        alert(three);       

  1. abcd

  2. a,b,c,d

  3. c,d,a,b

  4. error


Correct Option: B

What is the output of the below JavaScript?


var one = ["a", "b", "c", "d"];         
alert(one.slice(-2));       

  1. error

  2. a,b

  3. a,b,c,d

  4. c,d


Correct Option: D

Given:

public static void before() {
    Set set = new TreeSet();
    set.add("2");
    set.add(3);
    set.add("1");
    Iterator it = set.iterator();
    while (it.hasNext())    System.out.print(it.next() + " ");
}

Which statements are true?

  1. The before() method will print 1 2

  2. The before() method will print 1 2 3

  3. The before() method will print three numbers, but the order cannot be determined

  4. The before() method will not compile

  5. The before() method will throw exception at runtime


Correct Option: E

SAS stands for

  1. Statistical Analysis System

  2. Statistical Analysis Systems

  3. Statistic Analysis System

  4. Statestical Analysis System


Correct Option: A

SAS is a

  1. Low Level Language

  2. High Level Language

  3. Machine Level Language

  4. Binary Level Language


Correct Option: B
  1. Sixth Generation Language

  2. Third Generation Language

  3. Fifth Generation Language

  4. Fourth Generation Language


Correct Option: D

SAS can be used to

  1. Data access

  2. Data management

  3. Data analysis

  4. All the above


Correct Option: D

SAS can't be used for "Data Presentation"

  1. True

  2. False


Correct Option: B
- Hide questions