Тести
Мова сайту: Українська
Українська
English
Русский
Тести з програмування
Вхід
Реєстрація
Тести з програмування
Теорія
Сніпети
Статті
Головна
Android
Ціни
FAQ
Історія Cosmo
Правила та умови сервісу
Політика конфіденційності
Політика щодо файлів cookie
Зворотній Зв’язок
arrays
:
Мова контенту: English
Русский
What will be the result of compilation and execution of the following code? public class Test { public static void main(String [] a) { int [] b = { 1,2,3,4,5 }; System.out.println("a[2]=" + a[2]); } }
arrays
What will the following program write to the console? public class StringTest { public static void main(String[] arg){ test(new String[] { null }); } static void test(Object[] o){ System.out.print(1); } static void test(String o){ System.out.print(2); } static void test(String...o){ System.out.print(3); } static void test(Object...o){ System.out.print(4); } }
arrays
Every array overrides one of methods defined in class Object. Which one?
arrays
What is a result of following code block execution: a = b = [1, 2, 3] b[2] = 4 print(a)
arrays
Given a list called my_list, what would the following slice notation give you: my_list[-1:-5:-1]
arrays
What is the value of len(d) ? d = set( [ 0, 0, 1, 2, 2, 3, 4] )
arrays
If a and b are strings, which of the following is equivalent to [a] + [b] ?
arrays
Indexed collections: Arrays and typed Arrays
arrays
← Попередня
1
2
3
Наступна →
Зареєструйся Зараз
або
Підпишись на майбутні тести