Zombie process will have parent as init
True
False
Which of the following will compile without error.
import java.awt.*;package Mypackage;class Myclass {}
package MyPackage;import java.awt.*;class MyClass{}
/This is a comment */package MyPackage;import java.awt.;class MyClass{}
class Myclass {};import java.awt.*;package Mypackage;
Which of the following are legal identifiers.
2variable
variable2
_whatavariable
3
$anothervar
#myvar
What will happen if you try to compile and run the following code? public class Q { public static void main(String argv[]){ int anar[]=new int[]{1,2,3}; System.out.println(anar[1]); }}
1
Error anar is referenced before it is initialized.
2
Error: size of array must be defined.
Which of the following statements are true?
System.out.println( -1 >>> 2);will output a result larger than 10
System.out.println( -1 >>> 2); will output a positive number
System.out.println( 2 >> 1); will output the number 1
System.out.println( 1 <<< 2); will output the number 4
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
If you want to use USER32.DLL in your program, which namespace you should use:
System.Collections.Generic
System.Reflection
Microsoft.Office.Interop
None of the above
When you need to perform complex calculations or access external resources in SQL Server 2005, which one of the following programming methods do you use?
SQL Server Management Studio
CLR User Defined Type
CLR Stored Procedure
T-SQL View
Consider following statements: 1. System.Collections.ArrayList can store values of only single data type 2. System.Collections.ArrayList can store values of multiple data types 3. System.Collections.Generic.List can store values of multiple datatypes 4. System.Collections.Generic.List can store values of only single data type Which of the above is false:
Only 2
Both 1 and 3
4
Both 2 and 4
Which of the following is true:
It is possible for a single class to implement multiple interfaces
It is possible for a class to inherit from multiple classes
It is possible for a class to inherit from a Sealed class
All of above