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
Similar Resources on Wayground
22 questions
Java Chapter 2 Review Questions

Quiz
•
Professional Development
20 questions
Bertelsmann AI Track Quiz Initiative #3

Quiz
•
University - Professi...
24 questions
Julia - Quiz 1

Quiz
•
Professional Development
15 questions
Computación básica - Conceptos básicos

Quiz
•
Professional Development
20 questions
Python Proficiency for College Students

Quiz
•
Professional Development
16 questions
Fundamentals II. Final de módulo

Quiz
•
Professional Development
21 questions
Java Quiz on Module 1 & 2

Quiz
•
Professional Development
17 questions
Java programming

Quiz
•
Professional Development
Popular Resources on Wayground
10 questions
SR&R 2025-2026 Practice Quiz

Quiz
•
6th - 8th Grade
30 questions
Review of Grade Level Rules WJH

Quiz
•
6th - 8th Grade
6 questions
PRIDE in the Hallways and Bathrooms

Lesson
•
12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
15 questions
Subtracting Integers

Quiz
•
7th Grade
Discover more resources for Computers
11 questions
All about me

Quiz
•
Professional Development
10 questions
How to Email your Teacher

Quiz
•
Professional Development
5 questions
Setting goals for the year

Quiz
•
Professional Development
14 questions
2019 Logos

Quiz
•
Professional Development
6 questions
GUM Chart Scavenger Hunt

Quiz
•
Professional Development
10 questions
How to Email your Teacher

Quiz
•
Professional Development
20 questions
Employability Skills

Quiz
•
Professional Development