logo

Crowdly

Browser

Add to Chrome

*Програмування на Jаvа

Looking for *Програмування на Jаvа test answers and solutions? Browse our comprehensive collection of verified answers for *Програмування на Jаvа at dl.nure.ua.

Get instant access to accurate answers and detailed explanations for your course questions. Our community-driven platform helps students succeed!

Which of the following are valid Java identifiers? (Choose all that apply)

100%
100%
0%
100%
0%
0%
View this question

Given the following class, which of the following calls print out Blue Jay? (Choose all that apply)

public class BirdDisplay {

 public static void main(String[] name) {

 System.out.println(name[1]);

} }

0%
0%
100%
0%
0%
0%
0%
View this question

What is the output of the following code?

1: public class ArithmeticSample {

2: public static void main(String[] args) {

3: int x = 5 * 4 % 3;

4: System.out.println(x);

5: }}

0%
0%
100%
0%
0%
View this question

What is the output of the following code snippet?

3: int x = 0;

4: String s = null;

5: if(x == s) System.out.println("Success");

6: else System.out.println("Failure");

100%
0%
0%
0%
View this question

What is the output of the following code snippet?

3: int x = 1, y = 15;

4: while x < 10

5: y––;

6: x++;

7: System.out.println(x+", "+y);

0%
0%
100%
0%
0%
0%
View this question

What change would allow the following code snippet to compile? (Choose all that apply)

3: long x = 10;

4: int y = 2 * x;

0%
100%
100%
100%
100%
0%
View this question

What is the output of the following code snippet?

4: int result = 4;

5: result += ++c;

6: System.out.println(result);

0%
0%
100%
0%
0%
0%
View this question

What data type (or types) will allow the following code snippet to compile? (Choose all that apply)

byte x = 5;

byte y = 10;

_____ z = x + y;

0%
0%
100%
100%
0%
100%
View this question

What is the output of the following code?

1: public class TernaryTester {

2: public static void main(String[] args) {

3: int x = 5;

4: System.out.println(x > 2 ? x < 4 ? 10 : 8 : 7);

5: }}

0%
0%
0%
0%
100%
0%
View this question

What is the output of the following code snippet?

3: int x = 4;

4: long y = x * 4 - x++;

5: if(y<10) System.out.println("Too Low");

6: else System.out.println("Just right");

7: else System.out.println("Too High");

0%
0%
0%
100%
0%
0%
View this question

Want instant access to all verified answers on dl.nure.ua?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!

Browser

Add to Chrome