Tag: programming languages

Questions Related to programming languages

Zombie process will have parent as init

  1. True

  2. False


Correct Option: A
  1. import java.awt.*;package Mypackage;class Myclass {}

  2. package MyPackage;import java.awt.*;class MyClass{}

  3. /This is a comment */package MyPackage;import java.awt.;class MyClass{}

  4. class Myclass {};import java.awt.*;package Mypackage;


Correct Option: B,C
  1. 2variable

  2. variable2

  3. _whatavariable

  4. 3

  5. $anothervar

  6. #myvar


Correct Option: B,C,D,E
  1. System.out.println( -1 >>> 2);will output a result larger than 10

  2. System.out.println( -1 >>> 2); will output a positive number

  3. System.out.println( 2 >> 1); will output the number 1

  4. System.out.println( 1 <<< 2); will output the number 4


Correct Option: A,B,C
  1. System.Collections.Generic

  2. System.Reflection

  3. Microsoft.Office.Interop

  4. None of the above


Correct Option: D
  1. It is possible for a single class to implement multiple interfaces

  2. It is possible for a class to inherit from multiple classes

  3. It is possible for a class to inherit from a Sealed class

  4. All of above


Correct Option: A