logo

Crowdly

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

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 < 10; i++){

break;

}

System.out.println(i);

}

}

View this question

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

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, b = 5;

while(b--){

System.out.println(a++);

}

}

}

View this question

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

public class Test{

public static void main(String[] args){

int i = 1;

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

}

System.out.println(i);

}

}

View this question

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

public class Test{

public static void main(String[] args){

for(int i = 0; i < 10; i++){

if(i % 2 == 0)

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 = 5;

while( b-- > a++)

System.out.println(a);

}

}

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 = 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 i = 0;

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

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

}

}

}

View this question

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

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