logo

Crowdly

Browser

Add to Chrome

Об’єктно-орієнтоване програмування

Looking for Об’єктно-орієнтоване програмування test answers and solutions? Browse our comprehensive collection of verified answers for Об’єктно-орієнтоване програмування at vns.lpnu.ua.

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

Що буде результатом виконання коду?

public class Test{

public static void main(String[] args){

int i = 0;

for(i = 0; i < 3 ; i++){

continue;

}

System.out.println(i);

}

}

View this question

Що буде результатом виконання коду?

public class Test{

public static void main(String[] args){

int a = 0;

while(a < = 10){

a++;

}

System.out.println(a);

}

}

View this question

Яким буде результат виконання коду?

public class Test{

public static void main(String[] args){

int a = 0, b = 10;

while(b - 2 > 0){

b -= 2;

while(a + 2 < 10){

a += 2;

if(a == b)

continue;

System.out.print(a + " " + b + ", ");

}

}

}

}

View this question

Що буде результатом виконання коду?

public class Test{

public static void main(String[] args){

int a = 0;

while(a < 10){

System.out.println(++a);

}

}

}

View this question

Яким буде результат виконання коду?

public class Test{

public static void main(String[] args){

int a = 0, b = 5;

while( b-- > a++)

System.out.println(a);

}

}

View this question

Яким буде результат виконання коду?

public class Test{

public static void main(String[] args){

int i = 0;

for(  i = 100; i < = 0; i -= 10 ){

System.out.print(i + ", ");

}

}

}

View this question

Яким буде результат виконання коду?

public class Test {

public static void main(String[] args){

int a = 25;

if(a < 25)

System.out.println("1");

if(a > 10)

System.out.println("2");

else

System.out.println("3");

}

}

View this question

Яким буде результат виконання коду?

public class Test {

public static void main(String[] args){

int a = 23, b = 30;

if(a > 20 && b > 25)

System.out.println("1");

if(a > 30 && b < 35)

System.out.println("2");

else

System.out.println("3");

}

}

View this question

Яким буде результат виконання коду?

public class Test {

public static void main(String[] args){

int a = 2 * 22 + 13 - 21;

int b = 15 * 3 + 17 - 12;

if(a > b);

System.out.println("Greater");

else

System.out.println("Less");

}

}

View this question
Яким буде результат виконання коду?

public class Test{

public static void main(String[] args){

int i = 1;

switch(i){

default:

System.out.println("Default ");

case 1:

System.out.println("1 ");

break;

case 0:

System.out.println("0 ");

}

}

}

View this question

Want instant access to all verified answers on vns.lpnu.ua?

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

Browser

Add to Chrome