String Manipulation Quiz

String Manipulation Quiz

8th Grade

15 Qs

quiz-placeholder

Similar activities

Editing and Formatting with MS Word for Grade 4

Editing and Formatting with MS Word for Grade 4

4th Grade - University

20 Qs

CSS

CSS

1st Grade - Professional Development

15 Qs

Python

Python

8th Grade

11 Qs

CLASS 8 - VIVA 2024-25

CLASS 8 - VIVA 2024-25

8th Grade

10 Qs

Python Week 3 Homework - Conditional Statements

Python Week 3 Homework - Conditional Statements

8th Grade

11 Qs

Data Type

Data Type

7th - 12th Grade

20 Qs

JavaScript Variables and Arithmetic

JavaScript Variables and Arithmetic

8th - 12th Grade

14 Qs

2.3.1 Defensive Design Lesson 1

2.3.1 Defensive Design Lesson 1

8th - 10th Grade

20 Qs

String Manipulation Quiz

String Manipulation Quiz

Assessment

Quiz

Computers

8th Grade

Hard

Created by

Demi Oni

FREE Resource

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the act of manipulating, extracting or changing the characters in a string variable called?

Variable declaration

Algorithm design

String manipulation

Data analysis

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In the example of an online form, what do we need to do with the entered strings for the first and last name?

Extract the first letter and convert to uppercase, then convert the rest to lowercase

Convert to binary

Count the number of characters

Remove all special characters

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

Extract the number and characters from a string to provide a sensible output

Encrypt the search query for security

Delete the search query after processing

Translate the search query to a different language

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In the train ticket example, what is the purpose of manipulating the string for long train station names?

To increase the font size on the ticket

To fit the names on a printed ticket by abbreviating them

To remove the names completely

To change the color of the names

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the 'dot length' command return for a string?

Number of uppercase characters

Number of special characters

Length of the string

Number of lowercase characters

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do we convert a string to uppercase in the given syntax?

string.uppercase()

string.convertUpper()

string.toUpper()

string.upper()

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the 'dot substring' command do?

Returns the entire string in lowercase

Returns the entire string in uppercase

Returns part of the string starting at the character of the first parameter and up to the number of characters in the second parameter

Returns part of the string starting at the first character

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?