String Handling

String Handling

10th Grade

20 Qs

quiz-placeholder

Similar activities

JavaScript Math

JavaScript Math

9th - 11th Grade

20 Qs

Computer Science - Python

Computer Science - Python

9th - 12th Grade

15 Qs

Python Basics Review (TSK)

Python Basics Review (TSK)

9th - 12th Grade

20 Qs

2.2 Programming Techniques

2.2 Programming Techniques

10th Grade

20 Qs

Basic Python

Basic Python

10th - 12th Grade

20 Qs

AQA GCSE 3.2.1 - Data types

AQA GCSE 3.2.1 - Data types

9th - 10th Grade

20 Qs

Records and Files

Records and Files

8th - 11th Grade

15 Qs

AP CSA Review Basics

AP CSA Review Basics

9th - 12th Grade

16 Qs

String Handling

String Handling

Assessment

Quiz

Computers

10th Grade

Medium

Used 24+ times

FREE Resource

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

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?