Strings

Strings

12th Grade

20 Qs

quiz-placeholder

Similar activities

Java Level 1 - A

Java Level 1 - A

12th Grade

15 Qs

Code.org: AP CSA U3, Lessons 1-6 Review

Code.org: AP CSA U3, Lessons 1-6 Review

11th - 12th Grade

20 Qs

Intro to Java Q1 Assessment

Intro to Java Q1 Assessment

9th Grade - University

16 Qs

002_Java Methods

002_Java Methods

12th Grade - University

15 Qs

Java Arrays Basic

Java Arrays Basic

10th - 12th Grade

15 Qs

CodeHS AP CSP Unit 3 Review

CodeHS AP CSP Unit 3 Review

11th - 12th Grade

22 Qs

3rd Qtr QUIZ1 COMPUTER PROGRAMMING-Strings in Java-2-22-2023

3rd Qtr QUIZ1 COMPUTER PROGRAMMING-Strings in Java-2-22-2023

12th Grade

20 Qs

Python Basics

Python Basics

KG - University

16 Qs

Strings

Strings

Assessment

Quiz

Computers

12th Grade

Hard

Created by

Jeanette Patterson

FREE Resource

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

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?