Quizzes
Site Language: English
Українська
English
Русский
Programming Tests
Login
Sign Up
Programming Tests
Theory
Snippets
Papers
Landing
Android
Prices
FAQ
Cosmo Story
Terms and Conditions
Privacy Policy
Cookies Policy
Send Feedback
arrays
:
Content language: 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
← Prev
1
2
3
Next →
Sign Up Now
or
Subscribe for future quizzes