Search Header Logo

String Handling

Computers

10th Grade

Used 24+ times

String Handling
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is returned by the method call:

String x = "New Mexico is the land of enchantment.";

x.length();

true

nothing; the method is void

38

37

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is returned by the method call:

String x = "Approximately 0.04% of people survive the 8th grade.";

x.contains("big fat lies");

-1

true

false

nothing; the method is void

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is returned by the method call:

String x = "I'm glad it's Friday!!!";

x.indexOf("Friday");

14

true

15

nothing; the method is void

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is returned by the method call:

String x = "";

x.length();

1

false

0

true

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is returned by the method call:

String x = "Welcome to the jungle";

x.contains("met");

5

4

true

false

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What data type is used for storing a single alphabetical or numerical symbol?

Character

String

Integer

Boolean

Real

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

A value stored in memory that cannot change while a program runs.

Constant

Variable

Data type

Assignment

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?