
Строковые величины и текстовые файлы
Authored by Татьяна Кузьмина
Other
10th Grade
Used 2+ times

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

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?