Skip to content

Quiz Lookup

  • Home
  • Blog

Blog

What type of error is that if a java program produces a wron…

What type of error is that if a java program produces a wrong calculation result?

Published January 19, 2026
Categorized as Uncategorized

What will be printed out by the following code fragment?int…

What will be printed out by the following code fragment?int num = 0;while (num < 10){   if (num%2 != 0)     System.out.print(num);   num++;}

Published January 19, 2026
Categorized as Uncategorized

Write a do-loop that verifies that the user enters an odd in…

Write a do-loop that verifies that the user enters an odd integer value – keep asking for an odd integer until an odd integer is entered.

Published January 19, 2026
Categorized as Uncategorized

What is output with the statement “System.out.println(“1+5=”…

What is output with the statement “System.out.println(“1+5=” + (1+5));”?

Published January 19, 2026
Categorized as Uncategorized

What output is produced by the following code fragment? int…

What output is produced by the following code fragment? int x = 15, y = 10; if (x < y) System.out.print ("apple "); System.out.print("orange "); System.out.println("pear");

Published January 19, 2026
Categorized as Uncategorized

Assuming that “generator” is a java.util.Random object, what…

Assuming that “generator” is a java.util.Random object, what is the range of the following expression? 10 + generator.nextInt(90)

Published January 19, 2026
Categorized as Uncategorized

float num1 = 3, num2 = 4;What value will z have if we execut…

float num1 = 3, num2 = 4;What value will z have if we execute the following assignment statement?float z = num1 / num2;

Published January 19, 2026
Categorized as Uncategorized

If a method (excluding constructor) does not have a return s…

If a method (excluding constructor) does not have a return statement, then

Published January 19, 2026
Categorized as Uncategorized

Assuming that “generator” is a java.util.Random object, what…

Assuming that “generator” is a java.util.Random object, what is the range of the following expression? 1 + generator.nextInt(100)

Published January 19, 2026
Categorized as Uncategorized

How many “Go” will be printed by the following code fragment…

How many “Go” will be printed by the following code fragment?for(int row=1; row

Published January 19, 2026
Categorized as Uncategorized

Posts pagination

Newer posts Page 1 … Page 24,580 … Page 100,350 Older posts
Powered by Studyeffect
  • Privacy Policy
  • Terms of Service
Quiz Lookup
Proudly powered by WordPress.