Tag: programming languages

Questions Related to programming languages

Which of the following when turned on do not allow incompatible type conversion?

  1. Option Explicit

  2. Option Strict

  3. Option All

  4. All of the Above


Correct Option: B

For Arrays & Collection, Sort order & search order need not to be SAME.

  1. True

  2. False


Correct Option: B

What will be the output?public static void main(String[] args) { for (int i=0;i<= 10;i++){if( i>6) break;}System.out.println(i);}

  1. runtime exception

  2. 6

  3. 7

  4. comiple error.

  5. 10


Correct Option: D

What will be the output?public static void main(String[] args) { for (int i=0;i<= 10;i++) { if( i>6) break; }System.out.println(i); }

  1. Runtime exception

  2. 6

  3. 7

  4. Compile Error

  5. 11


Correct Option: D

For Arrays & Collection, Sort order & search order need not to be SAME.

  1. True

  2. False


Correct Option: B