Java, part I

Java, part I

11th Grade - University

20 Qs

quiz-placeholder

Similar activities

11° Evaluación bimestral de informática

11° Evaluación bimestral de informática

11th Grade

15 Qs

Round 2 for Preplacement Bootcamp

Round 2 for Preplacement Bootcamp

University

15 Qs

Databases

Databases

11th Grade

15 Qs

NACOS Kahoot Session II

NACOS Kahoot Session II

University

20 Qs

07 - Map

07 - Map

University

15 Qs

TIN 11 BÀI 11 KIỂU MẢNG

TIN 11 BÀI 11 KIỂU MẢNG

11th Grade

18 Qs

COA_QUIZ_UNIT I

COA_QUIZ_UNIT I

University

20 Qs

City & Guilds Award in Business Processes

City & Guilds Award in Business Processes

12th Grade

20 Qs

Java, part I

Java, part I

Assessment

Quiz

Computers

11th Grade - University

Practice Problem

Medium

Created by

Satrio Rukmono

Used 389+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Who invented Java?

Ryan Gosling

Bjarne Stroustrup

James Gosling

Guido van Rossum

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Is String a primitive data type?

Yes

No

Both

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which method to use to find length of a string?

length()

size()

long()

count()

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

String x = "10";

String y = "20";

String z = x + y;

System.out.println(z);

Guess the output.

1020

10 20

30

"10 20"

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Choose most appropriate purpose of trim() method in String?

to remove white spaces

to get a substring of the string

to cut String at desired index

to remove extra white spaces from start and end of String

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the most appropriate way to check if two Strings are identical?

string1 == string2

string1.equals(string2)

string1.same(string2)

string1.equalsIgnorecase(string2)

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

int[] myArray = {11, 22, 33, 44, 55};

which code is correct to print length of above int-array?

System.out.println(int[].myArray.length());

System.out.println(myArray.length);

System.out.println(myArray.length());

System.out.println(int[].myArray.size());

Create a free account and access millions of resources

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?