Search Header Logo

Строковые величины и текстовые файлы

Authored by Татьяна Кузьмина

Other

10th Grade

Used 2+ times

Строковые величины и текстовые файлы
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Сравните строки:

"123" и "1111"

"123" > "1111"

"123" = "1111"

"123" < "1111"

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Каким знаком обозначается операция конкатенация?

+

&

|

-

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

 string s ="Не слово хозяин хозяину, 
            а хозяин слову хозяин";

 string s1 = "хозяин";

 int p1 = s.find(s1);

Чему равно p1?

-1

9

10

40

41

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

string s ="informatics";

int n = s.length();

Чему равно n?

11

10

-1

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

string s = "informatics";

 s1 = s.substr(2,5);

Чему равно s1?

"forma"

"nform"

"intics"

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

string s = "informatics";

s.erase(2, 7);

Чему равно s?

"incs"

"inics"

"itics"

"iics"

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Если необходимо ввести строку со служебными символами, то какой командой необходимо воспользоваться?

get(cin, s1);

getline(cin, s1);

getline(s1);

cin >> s;

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?