programming languages Online Quiz - 9
Description: programming languages Online Quiz - 9 | |
Number of Questions: 20 | |
Created by: Aliensbrain Bot | |
Tags: programming languages |
Which is true about an anonymous inner class?
class Boo {
Boo(String s) {}
Boo() {}
}
class Bar extends Boo {
Bar() {}
Bar(String s) {
super(s);
}
void zoo() {
// insert code here
}
}
which one create an anonymous inner class from within class Bar?
Which is true about a method-local inner class?
Which constructs an anonymous inner class instance?
public class MyOuter {
public static class MyInner {
public static void foo() {}
}
}
which statement, if placed in a class other than MyOuter or MyInner, instantiates an instance of the nested class?
Which of these is /are SYNON relations?
Which is not a file to field relation
Which is not a file to file relation
Which is a non-keyed access path
How many types of access paths are there in SYNON
What is the output of the below JavaScript?
alert(Math.sqrt(-16));
What is the output of the below JavaScript?
with(Math){
alert(pow(2,3));
}
What is the output of the below JavaScript?
alert(parseInt("8.56") + " " + parseInt("8error"));
What is the output of the below JavaScript?
alert(parseFloat("8.56"));
What is the output of the below JavaScript?
var currDate = new Date("30 September, 2011");
alert(currDate.getMonth());
function Book(id, name) {
this.id = id;
this.name = name;
}
var book = new Book("1001", "Head First JavaScript");
alert(book.id);
What is the output of the below JavaScript?
var book = "Head First JavaScript";
alert(book.length);
a = 10;
var b = 20;
var c = a + b;
alert(c);
var personObj = new Object();
personObj.firstname = "Jerome";
personObj.lastname = "Davin";
alert(personObj.firstname);
What is the output of the below JavaScript?
var personObj = {firstname:"Jerome",lastname:"Davin"};
alert(personObj.lastname);