Тесты
Язык сайта: Русский
Українська
English
Русский
Тесты по программированию
Вход
Регистрация
Тесты по программированию
Теория
сниппеты
Статьи
Главная
Android
Цены
FAQ
История Cosmo
Правила и условия сервиса
Политика конфиденциальности
Политика в отношении файлов cookie
Обратная Связь
numbers
:
Язык контента: English
Русский
What will be displyed after the following code is executed? int x = 0; System.out.print(x++==++x);
numbers
What is the result of the following code execution? public class Main { public static void main(String[] args) { int var = 1; System.out.println("The variable var (post-increment): " + var++); System.out.println("The variable var (pre-increment): " + ++var); //1 int var1 = 1; int var2 = 1; if (var1++ == ++var2) //2 System.out.println("The variables are equal"); else System.out.println("The variables are not equal"); } }
numbers
Select the only correct program output when it is run by a "java Test 1 two 3" command. public class Test { static public void main(String[] args) { try { int k = Integer.parseInt(args[1]); System.out.println(args[k]); } catch (Exception e) { System.out.println(e); } } }
numbers
What will be printed out to console as a result of the following code execution? public class Clazz { public static void main(String[] args) { int a = 0; System.out.println("a=" + new Integer(a = 1)); } }
numbers
What happens as a result of an attempt to compile and execute the following code? byte b1 = 127; b1 += 1;
numbers
In what ways can 28 be represented in java?
numbers
What is the result of the following code execution? public class Main { public static void main(String[] args) { String value = "29.1"; System.out.println((Float.valueOf(value) + 1.0) == 30.1); System.out.println((Double.valueOf(value) + 1.0) == 30.1); System.out.println(Float.valueOf(value) / 0); System.out.println(Double.valueOf(value) / 0); } }
numbers
What is the result of the following code execution? int i1 = 012; int i2 = 20; System.out.println(i1 * i2);
numbers
What is the result of the following code compilation and execution? public class Test { public static void main(String[] args) { float f = 1.0 + 1.0f; f = f + 1; System.out.println(f / 0); } }
numbers
What will the following code print out? public class Test { public static void main(String[] args) { int f; f = 5; f = ++f + f++; System.out.println(f); } }
numbers
← Предыдущая
1
2
3
4
5
Следующая →
Зарегистрируйся сейчас
или
Подпишись на будущие тесты