programming languages Online Quiz - 8
Description: programming languages Online Quiz - 8 | |
Number of Questions: 20 | |
Created by: Aliensbrain Bot | |
Tags: programming languages |
Attempted
0/20
Correct 0
Score 0
‹
›
What is the output of the below JavaScript?
var bol = new Boolean();
alert(bol);
var str = "This is an Example";
alert(str.replace("Example", "Error"));
var one = ["a", "b", "c"];
one.pop();
alert(one);
What is the output of the below JavaScript?
var one = ["a", "b", "c", "d"];
alert(one.slice(-2));
Given:
import java.util.*;
public class Magellan {
public static void main(String[] args) {
TreeMap myMap = new TreeMap();
myMap.put("a", "apple"); myMap.put("d", "date");
myMap.put("f", "fig"); myMap.put("p", "pear");
System.out.println("1st after mango: " + // sop 1
myMap.higherKey("f"));
System.out.println("1st after mango: " + // sop 2
myMap.ceilingKey("f"));
System.out.println("1st after mango: " + // sop 3
myMap.floorKey("f"));
SortedMap sub = new TreeMap();
sub = myMap.tailMap("f");
System.out.println("1st after mango: " + // sop 4
sub.firstKey());
}
}
Which of the System.out.println statements will produce the output 1st after mango: p?
Given:
import java.util.*;
public class Looking {
public static void main(String[] args) {
String input = "1 2 a 3 45 6";
Scanner sc = new Scanner(input);
int x = 0;
do {
x = sc.nextInt();
System.out.print(x + " ");
} while (x!=0);
}
}
What is the result?
SAS stands for
SAS is a
SAS can be used to