2.2.3 String Manipulation Techniques

2.2.3 String Manipulation Techniques

11th Grade

16 Qs

quiz-placeholder

Similar activities

AQA GCSE Computer Science Paper 1

AQA GCSE Computer Science Paper 1

9th - 11th Grade

20 Qs

Java 1 Practice

Java 1 Practice

9th - 12th Grade

21 Qs

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

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

11th - 12th Grade

20 Qs

CS 26_01_24

CS 26_01_24

9th - 12th Grade

20 Qs

Project-Stem Unit 1 python coding

Project-Stem Unit 1 python coding

9th - 12th Grade

12 Qs

AP CSP Unit 4

AP CSP Unit 4

10th - 12th Grade

15 Qs

Practice for 8th AP Java Quiz

Practice for 8th AP Java Quiz

10th - 12th Grade

14 Qs

Java - arrays and String methods

Java - arrays and String methods

9th - 12th Grade

12 Qs

2.2.3 String Manipulation Techniques

2.2.3 String Manipulation Techniques

Assessment

Quiz

Computers

11th Grade

Medium

Created by

Amanda Beacham

Used 1+ times

FREE Resource

16 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is string manipulation?

The process of creating new strings from scratch.

The act of manipulating, extracting, or changing the characters in a string variable.

The process of deleting strings.

The act of converting strings to numbers.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In the context of an online form, why might string manipulation be necessary?

To delete user input.

To ensure the first letter of each name is capitalised and the rest are lowercase.

To convert all text to numbers.

To remove spaces from the input.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is text parsing in the context of a search engine?

The process of deleting irrelevant text.

The process of extracting and manipulating parts of a string to provide a sensible output.

The process of converting text to images.

The process of encrypting text.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the `.length` command do in string manipulation?

It converts a string to uppercase.

It returns the length of a string.

It extracts a substring.

It concatenates two strings.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which command would you use to convert a string to uppercase?

`.lower`

`.upper`

`.substring`

`.length`

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the `.substring` command do?

It returns the entire string.

It returns part of the string starting at a specified position and for a specified number of characters.

It converts a string to lowercase.

It concatenates two strings.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How would you extract the left-most characters from a string?

Using `.right`

Using `.left`

Using `.substring`

Using `.length`

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?