GDSC Android Bootcamp [Kotlin Quiz]

GDSC Android Bootcamp [Kotlin Quiz]

University

10 Qs

quiz-placeholder

Similar activities

[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

JS- Quiz 1

JS- Quiz 1

University

10 Qs

Web JavaScript

Web JavaScript

10th Grade - University

15 Qs

JavaScript Quiz

JavaScript Quiz

University

12 Qs

Java Arrays

Java Arrays

University

10 Qs

JAVA FINAL QUIZ FOR ASSESSMENT

JAVA FINAL QUIZ FOR ASSESSMENT

University

15 Qs

kuiz 1 - chapter 5

kuiz 1 - chapter 5

University - Professional Development

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