programming languages Online Quiz - 101
Description: programming languages Online Quiz - 101 | |
Number of Questions: 20 | |
Created by: Aliensbrain Bot | |
Tags: programming languages |
"What do you think the output of the following code snippet will be? 01 WS-NUM-TEST PIC +9(2).99. 01 WS-NUM-TEST2 PIC -9(2).99. MOVE 19.99 TO WS-NUM-TEST MOVE -9.99 TO WS-NUM-TEST2 IF WS-NUM-TEST > WS-NUM-TEST2 DISPLAY ""+VE GREATER THAN -VE"" ELSE DISPLAY ""+VE LESS THAN -VE"" END-IF "
What will be the output of the below code snippet? public class Quiz3 { public static void main(String args[]) { final String pig = "length: 10"; final String dog = "length: " + pig.length(); System.out.println("Animals are equal: " + pig == dog); } }
What will be the output of the below code snippet? public class Quiz4 { public static void main(String args[]) { int j = 0; for (int i = 0; i < 100; i++) j = j++; System.out.println(j); } }
What will be the output of the below code snippet? public class Quiz5 { public static void main(String args[]) { int i = 0; while (-1 << i != 0) i++; System.out.println(i); } }
What will be the output of the below code snippet? public class Quiz6 { public static void main(String[] args) { System.out.println(decision()); } static boolean decision() { try { return true; } finally { return false; } } }
What will be the output of the below code snippet? public class Quiz10 { public static void main(String args[]) { System.out.println((int) (char) (byte) -1); } }
Which Man class properly represents the relationship “Man has a best friend who is a Dog”?
Which statements about JDBC are true?