Kotlin - OOP & Functional Programming

Kotlin - OOP & Functional Programming

Professional Development

10 Qs

quiz-placeholder

Similar activities

JAVA - Arrays

JAVA - Arrays

University - Professional Development

15 Qs

Functions on C

Functions on C

Professional Development

15 Qs

Mech 3

Mech 3

Professional Development

10 Qs

Java Displaying Data & Data Types

Java Displaying Data & Data Types

University - Professional Development

12 Qs

Inheritance

Inheritance

Professional Development

10 Qs

JMS Fundamentals: Core Java

JMS Fundamentals: Core Java

Professional Development

15 Qs

Datatypes and Flowcontrol

Datatypes and Flowcontrol

Professional Development

15 Qs

BrightChamps Technical Round - C++ language

BrightChamps Technical Round - C++ language

Professional Development

15 Qs

Kotlin - OOP & Functional Programming

Kotlin - OOP & Functional Programming

Assessment

Quiz

Computers

Professional Development

Medium

Created by

Arif Faizin

Used 40+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

By default functions in Kotlin are ...

Private

Internal

Protected

Public

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

According to code convention, what format used for the function name?

camelCase

PascalCase

snake_case

kebab-case

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How to write correct parameters in Kotlin?

fun sum(Int: ValueA, Int: valueB)

fun sum(Int ValueA, Int valueB)

fun sum(valueA: Int, valueB: Int)

fun sum(valueA Int, valueB Int)

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

a function which can accepts a function as parameter or can returns a function is called ...

Extensions

Lambda

High-Order Function

Nullable Receiver

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which function does not use a lambda receiver (this)?

let

run

with

apply

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

classes can be inherited from other classes using keyword...

colon ( : )

extend

implement

comma ( , )

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Why do we need abstract class?

to inherited values from other classes

to avoid creating instances of the class

to not inherit values from other classes

to create an instance of the class

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?