Тести
Мова сайту: Українська
Українська
English
Русский
Тести з програмування
Вхід
Реєстрація
Тести з програмування
Теорія
Сніпети
Статті
Головна
Android
Ціни
FAQ
Історія Cosmo
Правила та умови сервісу
Політика конфіденційності
Політика щодо файлів cookie
Зворотній Зв’язок
operators
:
Мова контенту: English
Русский
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); } }
operators
Will the text located into conditional operator block be printed out? public static void main(String[] args){ int x = 18; int y = x++; if (x == 18 && y > 10){ System.out.println("y = " + y); System.out.println("x = " + x); } }
operators
What will be printed as a program result? public class Test { public static void main(String args[]) { System.out.println(6^3); } }
operators
What will be displayed in the console? public class StringTest { public static void main(String[] args) { int result = 12 + 2 * 5 % 3 - 15 / 4; String x = 12 - 6 + "Hello" + 7 + 5; System.out.println(result + " - " + x); } }
operators
In which operators all the operands are always evaluated (select all that apply)?
operators
That will the following code fragment display? int n = 33; int s = 0; while (n > 0) { s += n % 2; n /= 2; } System.out.println(s);
operators
What will be the result of the following code execution? public class Main { public static void main(String[] args) { byte b = 12; byte k = b + 1; System.out.println(k); } }
operators
What will be the result of the following code execution? public class Main { public static void main(String[] args) { double d = Math.sqrt(-1); System.out.println(Double.NaN == d); d = d / 0; System.out.println(Double.isNaN(d)); } }
operators
After execution of which lines 0 will be displayed, if i = 0?
operators
What is the result of the following code compilation? public class MyFirst { public static void main(String[] args){ int i, j; i = 10; j = 20; while(++i < --j); System.out.println(i); } }
operators
← Попередня
2
3
4
5
6
Наступна →
Зареєструйся Зараз
або
Підпишись на майбутні тести