GDSC Android Bootcamp [Kotlin Quiz]

GDSC Android Bootcamp [Kotlin Quiz]

University

10 Qs

quiz-placeholder

Similar activities

Flutter intro and Dart quiz

Flutter intro and Dart quiz

University

15 Qs

Alpro Asix

Alpro Asix

University

15 Qs

C Program Array and strings

C Program Array and strings

University

10 Qs

Quiz 1

Quiz 1

University

10 Qs

[Generation Girl] - Day 1 (Post Test)

[Generation Girl] - Day 1 (Post Test)

6th Grade - University

15 Qs

PHP - Syntax & Output

PHP - Syntax & Output

University

15 Qs

Mobile e IoT

Mobile e IoT

University

10 Qs

DFT4024 Quiz 2 (Topic 3 - CLO1)

DFT4024 Quiz 2 (Topic 3 - CLO1)

University

10 Qs

GDSC Android Bootcamp [Kotlin Quiz]

GDSC Android Bootcamp [Kotlin Quiz]

Assessment

Quiz

Computers

University

Hard

Created by

Ritesh Phadtare

Used 3+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

What is Kotlin?

A programming language for web development

A scripting language

A programming language for Android development

A markup language

2.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Which of the following is true about Kotlin and Java interoperability?

Kotlin is not interoperable with Java

Kotlin can seamlessly interoperate with Java

Kotlin can only interoperate with JavaScript

Kotlin and Java have no compatibility features

3.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

In Kotlin, how do you declare a variable with a non-nullable type?

var myVar: String? = "Hello"

val myVar: String = "Hello"

var myVar: String = "Hello"

val myVar: String? = "Hello"

4.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

What is the purpose of the 'when' expression in Kotlin?

Used for looping in Kotlin

Used for exception handling

Used for pattern matching and branching based on values

Used for defining class properties

5.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

How do you define a function in Kotlin?

func myFunction() {}

fun myFunction() {}

function myFunction() {}

def myFunction() {}

6.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

What is the keyword used to declare a class in Kotlin?

class

struct

type

object

7.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

In Kotlin, how do you represent a single-line comment?

// This is a comment

/* This is a comment */

<!-- This is a comment -->

# This is a comment

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?