Skip to content

Quiz Lookup

  • Home
  • Blog

Author: Anonymous

What is the output of the following code? int x = 10;int y =…

What is the output of the following code? int x = 10;int y = 5;if (x > y)    if (y < 0)        System.out.println("foo");else     System.out.println("bar");

Published May 2, 2021
Categorized as Uncategorized

What is the resulting value of the following expression: (fl…

What is the resulting value of the following expression: (float)((int)9.0/2)  

Published May 2, 2021
Categorized as Uncategorized

What is the resulting value of the following expression?   5…

What is the resulting value of the following expression?   5 / 2 * 5 + 5.0 

Published May 2, 2021
Categorized as Uncategorized

In Java, what would the following boolean expression evaluat…

In Java, what would the following boolean expression evaluate to?Assume that t has the value of true and f has the value of false. t || ((t || f) && (!t || f))

Published May 2, 2021
Categorized as Uncategorized

Which of these methods is the entry point into a Java applic…

Which of these methods is the entry point into a Java application?

Published May 2, 2021
Categorized as Uncategorized

You have compiled a file named SecretMessage.java. What comm…

You have compiled a file named SecretMessage.java. What command do you use to run the program in the terminal?

Published May 2, 2021
Categorized as Uncategorized

What is printed when the following code is run? String a = n…

What is printed when the following code is run? String a = new String(“Dragon”); String b = new String(“Dragon”); String c = “Dragon”; System.out.println(a == b); System.out.println(c == b); 

Published May 2, 2021
Categorized as Uncategorized

What is the resulting value of the following expression?   5…

What is the resulting value of the following expression?   5 / 2 * 10 + 6.0 

Published May 2, 2021
Categorized as Uncategorized

What is the output of the following code?  String build = “c…

What is the output of the following code?  String build = “culc”; int n = 11; if ((build + n).length() > 6) { System.out.println(“@@@”); } else { if (n

Published May 2, 2021
Categorized as Uncategorized

What is the output of the following code? int num1 = 20;int…

What is the output of the following code? int num1 = 20;int num2 = 100;if (num2 > num1)    if (num2 < 50)        System.out.println("foo");else     System.out.println("bar");

Published May 2, 2021
Categorized as Uncategorized

Posts pagination

Newer posts Page 1 … Page 77,560 … Page 84,190 Older posts
Powered by Studyeffect
  • Privacy Policy
  • Terms of Service
Quiz Lookup
Proudly powered by WordPress.