Android - Quiz 15

Android - Quiz 15

University

15 Qs

quiz-placeholder

Similar activities

Solving Two-Step Word Problems with Diagrams for 2nd Grade

Solving Two-Step Word Problems with Diagrams for 2nd Grade

2nd Grade - University

10 Qs

Viewing Comprehension Quiz

Viewing Comprehension Quiz

University

15 Qs

MS Excel - Day 08

MS Excel - Day 08

University

10 Qs

LAYOUTING CAMPUS PAPER

LAYOUTING CAMPUS PAPER

University

15 Qs

Visualizing Ratios: Word Problems with Tape Diagrams

Visualizing Ratios: Word Problems with Tape Diagrams

4th Grade - University

10 Qs

TEST 1 REVIEW G4

TEST 1 REVIEW G4

4th Grade - University

19 Qs

Elements of Graphic Novels

Elements of Graphic Novels

11th Grade - University

15 Qs

Collective Nouns

Collective Nouns

6th Grade - University

15 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?