Kotlin Quiz 4
Quiz
•
Computers
•
Professional Development
•
Practice Problem
•
Hard
Mohamed Gamal
Used 3+ times
FREE Resource
Enhance your content in a minute
12 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Can the class have a function of its name?
true
false
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which declares an object correctly
class Human{}
fun main(){
val obj =
new Human()
}
class Human{}
fun main(){
val obj = Human()
}
class Human{}
fun main(){
val obj =
new Human();
}
class Human{}
fun main(){
val obj =
Human();
}
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How to declare static members and methods?
class A{
static color: String = "Red"
}
class A{
static val color: String = "Red"
}
class A{
static var color = "Red"
}
class A{
companion object{
val color = "Red"
}}
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output?
class A{
A(){
println("class A instantiated")
}
}
fun main(){
val a = A()
}
class A instantiated
"class A instantiated"
class A: "class A instantiated"
Error
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output?
class Calculator(num1: Int, num2: Int){
fun add() = num1 + num2
}
fun main(){
val calc = Calculator(5,2)
println(calc.add())
}
7
9
11
Error
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
which of the following is not OOP concept
Inheritance
Acbstraction
Polymorphism
Exception
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output?
fun main(){
val a = A()
println(10); println(5); println(8); }
class A{
init{
println(10)
println(5)
println(8)
}
}
10
5
8
10
5
8
10
5
8
10 5 8
10
5
8
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
Already have an account?
Similar Resources on Wayground
12 questions
Pengenalan Google Classroom
Quiz
•
5th Grade - Professio...
10 questions
COMPUTER CONCEPTS
Quiz
•
Professional Development
12 questions
Javascript Avanzado ft-22b Grupo 5
Quiz
•
Professional Development
10 questions
OSI Model - Network Layer
Quiz
•
9th Grade - Professio...
10 questions
Python Basics
Quiz
•
Professional Development
16 questions
Digital etiquette
Quiz
•
KG - Professional Dev...
14 questions
Revisão HTML / CSS - CEMI
Quiz
•
Professional Development
10 questions
CyberCrime
Quiz
•
5th Grade - Professio...
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
Discover more resources for Computers
26 questions
Christmas Movie Trivia
Lesson
•
8th Grade - Professio...
25 questions
Christmas Movies
Quiz
•
Professional Development
20 questions
Christmas Trivia
Quiz
•
Professional Development
15 questions
Fun Holiday Trivia
Quiz
•
Professional Development
25 questions
Name That Tune - Christmas
Quiz
•
Professional Development
29 questions
Christmas Song Emoji Pictionary
Quiz
•
Professional Development
9 questions
Holiday Movie Trivia
Lesson
•
Professional Development
34 questions
Winter Trivia
Quiz
•
Professional Development
