kotlin Quiz 2

kotlin Quiz 2

University

12 Qs

quiz-placeholder

Similar activities

Briefing Operator Java

Briefing Operator Java

University

10 Qs

CMP128 Java Ch. 05 Methods

CMP128 Java Ch. 05 Methods

University

10 Qs

JAVA - Arrays

JAVA - Arrays

University - Professional Development

15 Qs

SPB Hfdstk 1 & 1.2

SPB Hfdstk 1 & 1.2

University

9 Qs

PAP Module-3 Part3

PAP Module-3 Part3

University

15 Qs

One Dimensional Arrays

One Dimensional Arrays

9th Grade - University

14 Qs

Java Quiz 3

Java Quiz 3

University

15 Qs

String Methods

String Methods

12th Grade - University

9 Qs

kotlin Quiz 2

kotlin Quiz 2

Assessment

Quiz

Computers

University

Hard

Created by

Mohamed Gamal

Used 2+ times

FREE Resource

12 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

val x = 10

x.inc()

println(x)

11

9

10

15

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

val num = 5

num.pow(2)

10

25

Error

55

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

from what we can read input from user?

cin>>

stdin.readlinesync()

Scanner(System.in).next()

Scanner(System.`in`).next()

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

val text="TeXt";

println(text.uppercase());

what is the output?

text

tExT

TEXT

TeXt

5.

FILL IN THE BLANK QUESTION

1 min • 1 pt

var text="TeXt";

print("text.tolowercase()");

what is the output?

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

val text="a-b-c-d";

print(text.split("-"));

abcd

a b c d

[a, b, c, d]

7.

FILL IN THE BLANK QUESTION

1 min • 1 pt

var text=" a b c d ";

print("text.trim()");

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?