Strings

Strings

12th Grade

20 Qs

quiz-placeholder

Similar activities

LA3.C3: Variables

LA3.C3: Variables

9th Grade - University

16 Qs

Data structure test1

Data structure test1

12th Grade

20 Qs

Pemrograman Dasar 3

Pemrograman Dasar 3

9th - 12th Grade

20 Qs

Uji Pemahaman Formula Excel

Uji Pemahaman Formula Excel

9th Grade - University

15 Qs

ULANGAN HARIAN KELAS TIK 9

ULANGAN HARIAN KELAS TIK 9

12th Grade

20 Qs

ZTE Phone Quiz

ZTE Phone Quiz

1st Grade - Professional Development

17 Qs

Music, Politics, Poetry, Tech 2021

Music, Politics, Poetry, Tech 2021

3rd Grade - University

17 Qs

Strings

Strings

Assessment

Quiz

Computers

12th Grade

Practice Problem

Hard

Created by

Jeanette Patterson

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

What is a string in Java?

A collection of booleans
A collection of integers
A collection of characters
A collection of floats

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does it mean for a string to be immutable?

It can be updated once created
It can't be deleted once created
It can't be updated once created
It can be deleted once created

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the charAt() method do?

Returns the length of a string
Compares two given strings
Converts the string to lowercase letters
Returns a character at a specified position

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the equals() method do?

Converts the string to lowercase letters
Returns a character at a specified position
Returns the length of a string
Compares two given strings

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the concat() method do?

Returns the length of a string
Appends one string to the end of another
Returns a character at a specified position
Converts the string to lowercase letters

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the length() method do?

Converts the string to lowercase letters
Returns the length of a string
Returns a character at a specified position
Compares two given strings

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the toLowerCase() method do?

Returns the length of a string
Converts the string to uppercase letters
Returns a character at a specified position
Converts the string to lowercase letters

Access all questions and much more by creating a free account

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?