Kotlin quiz 3
Quiz
•
Computers
•
Professional Development
•
Medium
Mohamed Gamal
Used 1+ times
FREE Resource
19 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which one is wrong?
var l = [2,4]
val l = List(2,4)
val l = listOf(2,4)
val l = listOf[2,4]
2.
FILL IN THE BLANK QUESTION
1 min • 1 pt
val l = listOf(2,4,6,8)
println(l.indexOf(2))
What is the output?
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
var l = listOf(2,4,6,8)
println(l.asReversed())
What is the output?
(4,2,8,6)
(6,4,2,8)
(8,6,4,2)
(8,2,6,4)
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
val list = mutableListOf(1,2,4,5)
list[0] = 50
println(list[0])
1
50
error
indexOutOfBoundException
5.
FILL IN THE BLANK QUESTION
1 min • 1 pt
val list = listOf(2,4,6,8)
list.add(200)
println(list)
Do not use any braces
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
val list = mutableListOf(1,2,3,4,5)
list.add(2,9)
println(list)
[1, 2, 9, 4, 5]
error
[1, 2, 9, 3, 4, 5]
[1, 9, 3, 4, 5]
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
val set1 = setOf(1,2,3)
val set2 = setOf(2,3,4)
println(set1.intersect(set2))
2,3
null
[2,3]
[1,2,3]
Create a free account and access millions of resources
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
14 questions
Input, output and storage de
Quiz
•
8th Grade - Professio...
20 questions
Class IX
Quiz
•
University - Professi...
16 questions
Pneumatic Systems
Quiz
•
Professional Development
20 questions
the truth table - boolean logic (python - lpthw)
Quiz
•
Professional Development
14 questions
عمارة الحاسب المحمول
Quiz
•
12th Grade - Professi...
14 questions
CONDUCTA DE ENTRADA SEGURIDAD DE LA INFORMACION
Quiz
•
University - Professi...
15 questions
JavaScript
Quiz
•
Professional Development
20 questions
Révision HTML, CSS et JavaScript
Quiz
•
Professional Development
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
6 questions
FOREST Self-Discipline
Lesson
•
1st - 5th Grade
7 questions
Veteran's Day
Interactive video
•
3rd Grade
20 questions
Weekly Prefix check #2
Quiz
•
4th - 7th Grade
Discover more resources for Computers
10 questions
Identifying Phishing Emails Quiz
Quiz
•
Professional Development
14 questions
2019 Logos
Quiz
•
Professional Development
7 questions
Tone and Mood Quick Check
Quiz
•
Professional Development
32 questions
Abbreviations and Equivalents
Lesson
•
6th Grade - Professio...
5 questions
11.4.25 Student Engagement & Discourse
Lesson
•
Professional Development
