GDSC Android Bootcamp [Kotlin Quiz]

GDSC Android Bootcamp [Kotlin Quiz]

University

10 Qs

quiz-placeholder

Similar activities

Java Basics

Java Basics

University

10 Qs

Array

Array

University

12 Qs

Apps Script Quiz - Day 1 Lesson

Apps Script Quiz - Day 1 Lesson

University

10 Qs

Array Java

Array Java

University

15 Qs

InCube #Quiz 2

InCube #Quiz 2

University

15 Qs

CHAPTER 7 - PHP PROGRAMMING

CHAPTER 7 - PHP PROGRAMMING

University

10 Qs

PHP with MySQL quiz

PHP with MySQL quiz

University

15 Qs

Kuis Day 2 Bootcamp Android

Kuis Day 2 Bootcamp Android

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?