Java Basics Recap

Java Basics Recap

9th Grade - University

25 Qs

quiz-placeholder

Similar activities

CCEA Digital Technology Chapter 14 Multimedia Applications

CCEA Digital Technology Chapter 14 Multimedia Applications

11th Grade

20 Qs

C# Teste diagnóstico 11º Ano

C# Teste diagnóstico 11º Ano

11th Grade

20 Qs

Інформаційні технології. 10 клас

Інформаційні технології. 10 клас

10th Grade

20 Qs

KUIS SKD KD.12

KUIS SKD KD.12

10th Grade

20 Qs

Python Unit 3 Comprehension Check (3,4,5,6)

Python Unit 3 Comprehension Check (3,4,5,6)

9th - 12th Grade

20 Qs

Output Quiz-9

Output Quiz-9

University

20 Qs

Java Control and Loop -2

Java Control and Loop -2

University

20 Qs

UH1_INFO_XII

UH1_INFO_XII

11th Grade

20 Qs

Java Basics Recap

Java Basics Recap

Assessment

Quiz

Computers

9th Grade - University

Hard

Created by

Suprabha Malhar-Jain

Used 5+ times

FREE Resource

AI

Enhance your content in a minute

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

25 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which method to use to find length of a string?

length()

size()

long()

count()

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Is String a primitive data type?

Yes

No

Both

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which data type gets returned from length() method in String class?

double

String

int

number

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

String txt = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";


What is the correct way to find the length of "txt" string?

int len = length(txt);

float len = txt.length();

int len = txt.length();

double len = length(txt);

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which is correct method to convert String into uppercase

changeUpperCase()

convertUpperCase()

toUpper()

toUpperCase()

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Choose correct purpose of indexOf() in String class.

returns the index (the position) of the last occurrence of a specified text in a string

returns the character of the first occurrence of a specified character in a string

returns the index (the position) of the first occurrence of a specified text in a string (excluding whitespace)

returns the index (the position) of the first occurrence of a specified text in a string (including whitespace)

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the return type of equalsIgnorecase() method?

int

String

char

boolean

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

Already have an account?