GDSC Android Bootcamp [Kotlin Quiz]

GDSC Android Bootcamp [Kotlin Quiz]

University

10 Qs

quiz-placeholder

Similar activities

Web JavaScript

Web JavaScript

10th Grade - University

15 Qs

Java Strings

Java Strings

1st Grade - Professional Development

10 Qs

GDSC

GDSC

University

10 Qs

JavaScript Quiz | For Beginners

JavaScript Quiz | For Beginners

1st Grade - University

10 Qs

Java Static

Java Static

University

10 Qs

ARRAYLIST - JAVA

ARRAYLIST - JAVA

University

15 Qs

kuiz 1 - chapter 5

kuiz 1 - chapter 5

University - Professional Development

7 Qs

Java Programming

Java Programming

University

15 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?