What base class do all Web Forms inherit from?
Web class
Page class
Data class
Html classs
Which is the best place to store connectionstring in .NET projects ?
Session
Cookie
Web.config
Variable
Can you call one constructor from another if a class has multiple constructors?
True
False
Which of the following lines will compile without warning or error.
float f=1.3;
char c="a";
byte b=257;
int i=10;
A byte can be of what size?
-128 to 127
(-2 power 8 )-1 to 2 power 8
-255 to 256
depends on the particular implementation of the Java Virtual machine
What will be printed out if this code is run with the following command line? java myprog good morning public class myprog{ public static void main(String argv[]) { System.out.println(argv[2]); } }
myprog
good
morning
Exception raised: "java.lang.ArrayIndexOutOfBoundsException: 2"
Which of the following are keywords or reserved words in Java?
if
then
goto
case
What will be printed out if you attempt to compile and run the following code ? int i=1; switch (i) { case 0: System.out.println("zero"); break; case 1: System.out.println("one"); case 2: System.out.println("two"); default: System.out.println("default"); }
one
one, default
one, two, default
default
Given the following declarations String s1=new String("Hello"); String s2=new String("there"); String s3=new String(); Which of the following are legal operations?
s3=s1 + s2;
s3=s1-s2;
s3=s1 & s2;
s3=s1 && s2
You need to create a class that will store unique object elements. You do not need to sort these elements but they must be unique. What interface might be most suitable to meet this need?
Set
List
Map
Vector