C++ String Manipulation

C++ String Manipulation

10th - 12th Grade

15 Qs

quiz-placeholder

Similar activities

Câu hỏi trắc nghiệm Tin Học 10 - Bài 10

Câu hỏi trắc nghiệm Tin Học 10 - Bài 10

10th Grade

10 Qs

Data Structures: 1D,2D & List

Data Structures: 1D,2D & List

11th Grade

17 Qs

Trắc nghiệm Bài 14_15 tin học K10

Trắc nghiệm Bài 14_15 tin học K10

10th Grade

20 Qs

Google

Google

7th - 12th Grade

20 Qs

Kuiz ICT

Kuiz ICT

KG - 12th Grade

10 Qs

Five Nights At Freddy's: Security Breach Quiz

Five Nights At Freddy's: Security Breach Quiz

KG - Professional Development

13 Qs

BÀI KIỂM TRA GIỮA KÌ 2 LỚP 4

BÀI KIỂM TRA GIỮA KÌ 2 LỚP 4

10th Grade

10 Qs

CAPÍTULO 1 NETWORKING ESSENTIALS

CAPÍTULO 1 NETWORKING ESSENTIALS

1st - 12th Grade

11 Qs

C++ String Manipulation

C++ String Manipulation

Assessment

Quiz

Computers

10th - 12th Grade

Practice Problem

Medium

Created by

Summer Ehresman

Used 69+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

The concatenation operator is what in C++?

=

,

+

""

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

To make a string uppercase I would use which function?

uppercase()

upper()

makeUpper()

transform()

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

If I had the following code what will display?

string word = "Purdue";

int x = word.length();

cout<<x<<endl;

5

6

7

nothing

4.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

What will the variable word be after this code?

string word = "Chase Ross";

word.erase(0,4);

Chase Ross

e Ross

se Ross

Chase

5.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

What will the variable word be after this code?

string word = "Chase Ross";

word.erase(6);

Chase Ross

Chase

Ross

e

6.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

string word = "Jacob Tallman";

string w2= word.substr(0,2)


What letters are in w2?

Jacob Tallman

cob Tallman

Ja

Jac

7.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

string word = "Carter Franklin";

string w2= word.substr(7,5);


What letters are in w2?

Carter

Frank

Franklin

Carter Franklin

Create a free account and access millions of resources

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?