Java String and Character Classes Revision

Java String and Character Classes Revision

11th Grade

10 Qs

quiz-placeholder

Similar activities

Java Character and String class methods

Java Character and String class methods

10th - 12th Grade

10 Qs

Unit 7

Unit 7

9th - 12th Grade

8 Qs

Basics in Java

Basics in Java

9th - 12th Grade

15 Qs

Break the fear

Break the fear

11th - 12th Grade

10 Qs

Strings

Strings

11th Grade

10 Qs

Quiz 11 - Strings

Quiz 11 - Strings

11th Grade

10 Qs

JAVA: Level-1

JAVA: Level-1

5th - 12th Grade

15 Qs

Javascript

Javascript

10th - 12th Grade

15 Qs

Java String and Character Classes Revision

Java String and Character Classes Revision

Assessment

Quiz

Computers

11th Grade

Medium

Created by

Claire Firman

Used 21+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

To convert a char from lower to upper case, use

toUpperCase()

ToUpperCase()

toUpper()

capitalise()

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The toUpperCase() method of the Character class is

static

non-static

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A typed method is one that _____ a value

returns

changes

updates

prints

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

non-static methods are called using the form:

objectName.methodName()

true

false

sometimes

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Void methods ____ return a value

do

do not

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

To find out how long the String below is use:

String city = "Johannesburg"

String.length()

city.length()

city.charCount()

String.chars()

7.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

To find out if two Strings are equal we use

==

equals()

equalsIgnoreCase()

isSame()

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?