Android - Quiz 15

Android - Quiz 15

University

15 Qs

quiz-placeholder

Similar activities

Group 1 EnglishDesign_Day 2 Quiz

Group 1 EnglishDesign_Day 2 Quiz

University

16 Qs

Android - Quiz 13

Android - Quiz 13

University

15 Qs

It's Our Garden

It's Our Garden

3rd Grade - University

16 Qs

UNIT 2 SHIP ENGINE ROOM

UNIT 2 SHIP ENGINE ROOM

University

10 Qs

Understanding Data Transmission

Understanding Data Transmission

3rd Grade - University

10 Qs

Android - Quiz 11

Android - Quiz 11

University

15 Qs

Pragmatics & Discourse

Pragmatics & Discourse

11th Grade - University

20 Qs

COLLOCATIONS WITH PREPOSITIONS

COLLOCATIONS WITH PREPOSITIONS

3rd Grade - University

12 Qs

Android - Quiz 15

Android - Quiz 15

Assessment

Quiz

English

University

Medium

Created by

Nguyễn Hương

Used 1+ times

FREE Resource

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.

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?