logo

Crowdly

Browser

Add to Chrome

Check your knowledge: DEVELOPERS Tests

Looking for Check your knowledge: DEVELOPERS Tests test answers and solutions? Browse our comprehensive collection of verified answers for Check your knowledge: DEVELOPERS Tests at softserve.academy.

Get instant access to accurate answers and detailed explanations for your course questions. Our community-driven platform helps students succeed!

Please, write what will be the output after the execution of the next code fragment:

void main() {     int i;     while (++i < 5)         cout << i;     cout << i; }

In case of compilation error please, write C, in case of runtime error please, write R.

View this question

Please, write what will be the output after the execution of the fragment of code below.

In case of compilation error please, write C, in case of runtime error please, write R.

   void main() {     string text = "abcdef";      switch (text[1]) {     case 'a':cout << 1;     case 'b':cout << 2;     case 'c':cout << 3;     }     cout << text[1]; }

View this question

Please, write what will be the output after the execution of the fragment of code below.

In case of compilation error please, write C, in case of runtime error please, write R.

void main() {     string text = "abcdef";      switch (text[1]) {     case 'a':cout << 1; break;     case 'b':cout << 2; break;     case 'c':cout << 3; break;     }     cout << text[1]; }

View this question
Please, choose the numbers of invocations of the function swapn which will be executed without errors.

100%
0%
0%
0%
0%
0%
View this question

Please, write what will be the output after the execution of the fragment of code below.

In case of compilation error please, write C, in case of runtime error please, write R.

View this question

Please, write what will be the output after the execution of the fragment of code below.

In case of compilation error please, write C, in case of runtime error please, write R.

void main() { 	unsigned u[] = { 2, 40, 3, 2, 40 }; 	map<unsigned, unsigned> a; 	unsigned i = 5; 	while (--i) 		a[u[i]] = i; 	unsigned s = 0; 	for (map<unsigned, unsigned>::iterator f = a.find(2); f != a.end(); f++) 		s += f->second; 	cout << s; }

View this question

Please, write what will be the output after the execution of the fragment of code below.

In case of compilation error please, write C, in case of runtime error please, write R.

void main() { 	const unsigned MSize = 10; 	unsigned u[] = { 1 ,20, 20, 30, 20 }; 	list <unsigned> a(u, u + 5); 	vector<unsigned> b(MSize); 	unique_copy(a.begin(), a.end(), b.begin()); 	unsigned s = 0; 	vector<unsigned>::iterator f = b.begin(); 	while (f != b.end())s += *f++; 	cout << s; }

View this question

Please, write what will be the output after the execution of the F() function.

In case of compilation error please, write C, in case of runtime error please, write R.

View this question
View this question

Please, write what will be the output after the execution of the F() function.

In case of compilation error please, write C, in case of runtime error please, write R.

View this question

Want instant access to all verified answers on softserve.academy?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!

Browser

Add to Chrome