
Android - Quiz 15
Authored by Nguyễn Hương
English
University
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
How to sort an array?
Array.sort()
Arrays.sort()
Collection.sort()
System.sort()
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Can an interface be final?
Yes
No
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of this method of class StringBuffer is used to concatenate the string representation to the end of invoking string?
concat()
append()
join()
concatenate()
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of these class is used to create an object whose character sequence is mutable?
String()
StringBuffer()
String() & StringBuffer()
None of the mentioned
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
When compiling, I get an Exception in thread main java.lang.NoClassDefFoundError:myprogram. What does this error mean?
The program path is wrong.
There is no main function
No class declaration
There is no public keyword at the beginning of the class declaration
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of these class is related to all the exceptions that can be caught by using catch?
Error
Exception
RuntimeExecption
All of the mentioned
7.
MULTIPLE SELECT QUESTION
1 min • 1 pt
Which sentences is wrong when say about lateinit and lazy keyword
lateinit if for non-null properties, it means no need to check null for it.
lateinit can only be used with var (mutable) properties whereas lazy can only be used for val (immutable) properties.
lateinit and lazy can work with primitive type.
While using Singleton Pattern (Object Declaration in Kotlin) we should use lazy, as it will be initialized upon first use.
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Microsoft
or continue with
%20(1).png)
Apple
Others
Already have an account?