Which one is wrong?
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
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
Similar Resources on Quizizz
21 questions
Java Quiz on Module 1 & 2

Quiz
•
Professional Development
15 questions
React Basics - Quiz I

Quiz
•
Professional Development
24 questions
Julia - Quiz 1

Quiz
•
Professional Development
20 questions
Java Quiz-1

Quiz
•
Professional Development
22 questions
Day 17 - HITech

Quiz
•
Professional Development
20 questions
Exploring Python Data Types

Quiz
•
Professional Development
16 questions
De todo

Quiz
•
1st Grade - Professio...
20 questions
QUIZ-5 static, String and StringBuffer

Quiz
•
Professional Development
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade