wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

[Generation Girl] - Day 1 (Post Test)

Total questions: 15

Worksheet time: 7mins

Name
Class
Date
1.

What is the symbol that we use to concat a word between a sentence?

a)

!

b)

#

c)

$

d)

@

2.

Below are file extensions that are used in Kotlin, except :

a)

.kt

b)

.ktm

c)

.ktn

d)

.kts

3.

Can we run both java and kotlin files in the same Android project?

a)

Yes

b)

No

4.

How to write a correct String in Kotlin?

a)

val name1: String = "Elsa"

b)

val name2: String? = "Anna"

c)

val name3 = "Olaf"

d)

All answers are correct

5.

Which uses of elvis operation is correct?

a)

a ?: -1

b)

a :? -1

c)

a ?:: -1

d)

a ::? b

6.

Which of the following is not a type of the Integer data type?

a)

Byte

b)

Short

c)

Long

d)

Bit

7.

The operator used to calculate the remainder of the quotient is ?

a)

Mod (%)

b)

Div (/)

c)

Sub (-)

d)

Plus (+)

8.

The conditional operator that evaluates to true if both statements are true is ...

a)

AND

b)

NOT

c)

OR

d)

TRUE

9.

What is the result after executing those code?

a)

TRUE

b)

FALSE

c)

Operator '==' cannot be applied to 'Int' and 'Float'

d)

Operator '==' cannot be applied to 'Int' and 'Double'

10.

Will it generate an ERROR?

a)

YES

b)

NO

11.

Which conditional statements will return true?

a)

if(noTobacco && noAlcohol)

b)

if(veganDiet || ketogenicDiet)

c)

if(veganDiet && ketogenicDiet)

d)

if(noTobacco || veganDiet)

12.

What is the result after executing those code?

a)

selection 1

b)

selection 2

13.

Using kotlin, what is the proper way to define a variable with a specific data type?

a)

var myName: String = "Generation Girl"

b)

var myAge= Int:18

c)

Float myWage = 100.0

d)

var Boolean isPerfect = True

14.

Will that block of code generate an error?

a)

Yes

b)

No

15.

Keyword that used to stop a for loop is

a)

stop

b)

continue

c)

pause

d)

break