IPG101-BACT-Quiz
488 subscribers
23 photos
CODE quiz
Download Telegram
#include <iostream>
using namespace std;

int main() {

string text1 = "C++";
string text2 = "Python";

cout << "Before Swapping:" << endl;
cout << "text1 = " << text1 << endl;
cout << "text2 = " << text2 << endl;
text1.swap(text2);

cout << "\nAfter Swapping:" << endl;
cout << "text1 = " << text1 << endl;
cout << "text2 = " << text2;

return 0;
}
👍1
ماذا يطبع الكود السابق
يطبع الكود السابق هذا الخرج Before Swapping:
text1 = C++
text2 = Python After Swapping: text1 = Python text2 = C++
Anonymous Quiz
51%
صح
49%
خطا
👎3👍21
هذه طباعة الكود السابق
👍31
#include <iostream>
using namespace std;

int main() {

string text = "Hasta la vista!\nbaby!";
cout << text;
return 0;
}
👍1
ما هو خرج الكود السابق اختر الجواب الصحيح
Anonymous Quiz
24%
A
63%
B
9%
C
4%
D
1
#include <iostream>
using namespace std;

int main() {

string text1 = "Batman";
string text2 = "Joker";
string text3 = "Riddler";

text2.swap(text1);
text3.swap(text2);

cout << text1 << endl;
cout << text2 << endl;
cout << text3;

return 0;
}
1👍1
1👍1
ماهو الخرج للكود السابق
Anonymous Quiz
47%
A
44%
B
9%
C
#include <iostream>
using namespace std;

int main() {

string text1 = "Smoke";
string text2 = "On The";
string text3 = "Water";

cout << text1 + " " + text2 + text3;

return 0;
}
ماهو خرج الكود السابق
Anonymous Quiz
35%
A
8%
B
6%
C
51%
D
#include <iostream>
using namespace std;

int main() {

int x[3] = {8, 16, 24};

*x = 5;
cout << *x;

return 0;
}
ماهو خرج الكود السابق
Anonymous Quiz
4%
A
37%
B
16%
C
43%
D
👍2
اختر الكود الصحيح بعد الصورة
1
ماهو الكود الصحيح للصورة السابقة
Anonymous Quiz
17%
A
26%
B
16%
C
41%
D
2
#include <iostream>
using namespace std;

int main() {

for (int i = 0; i < 2; ++i) {
for (int j = 0; j < 1; ++j) {
cout << "*" << endl;
}
}

return 0;
}
ماهو خرج الكود السابق
Anonymous Quiz
48%
A
37%
B
15%
C