Looking for Інформатика test answers and solutions? Browse our comprehensive collection of verified answers for Інформатика at dl.nure.ua.
Get instant access to accurate answers and detailed explanations for your course questions. Our community-driven platform helps students succeed!
Что выведет фрагмент программы?
string[] dig = {"один", "три", "один", "два"};
stringoutstr = String.Empty;
foreach(string str indig)
switch
(str)
{
case
"один":
outstr = outstr.Insert(0, "1");
break
;
case
"два":
outstr = outstr.Insert(0, "2");
break
;
case
"три":
outstr += "3";
break
;
}
Console.WriteLine(outstr);
Что выведет фрагмент программы?
charstr1 = '1';
charstr2 = '2';
charstr3 = '3';
Console.WriteLine("str1 + str2 + str3")
Что выведет фрагмент программы?
stringstr1 = "1";
stringstr2 = "2";
stringstr3 = "3";
Console.WriteLine(str1 + str2 + str3);
Что выведет код программы?
strings5 = "Printing backwards";
for (inti = 0; i < s5.Length; i++)
{
Console.Write(s5[s5.Length - i - 1]);
}