GDSC Android Bootcamp [Kotlin Quiz]

GDSC Android Bootcamp [Kotlin Quiz]

University

10 Qs

quiz-placeholder

Similar activities

Stings, Cloning and ArrayList

Stings, Cloning and ArrayList

University

10 Qs

Array

Array

University

11 Qs

java script

java script

University

10 Qs

JavaScript Basics

JavaScript Basics

12th Grade - University

15 Qs

Java Basics 1

Java Basics 1

University

10 Qs

Cuestionario Kotlin Básico

Cuestionario Kotlin Básico

University

10 Qs

Javascript

Javascript

KG - Professional Development

13 Qs

Javascript

Javascript

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?