Coding Quiz Zone
Открыть в Telegram
✨ Part Of @OfficialCodingExpert Dive into the world of computer science, programming, and coding challenges. Sharpen your skills, expand your knowledge, and embark on a journey of continuous learning. Stay tuned for daily quizzes!
Больше1 546
Подписчики
+124 часа
-57 дней
-530 дней
Архив постов
1 546
9:
What will be the result of the following code?
#include int main() { int* p = nullptr; std::cout << *p; }
1 546
8:
What is the output of this program?
#include int main() { int x = 3; for (int i = 0; i < 3; i++) x += i; std::cout << x; }
1 546
7:
What does the following code print?
#include int main() { int a = 5; std::cout << ++a + a++; }
1 546
6:
Which of the following statements is true about template functions in C++?
#include template void foo(T t) { std::cout << t; } int main() { foo(5); foo("Hello"); }
1 546
5:
What will the following code output?
#include int main() { const int x = 10; int *p = (int *)&x; *p = 20; std::cout << x; }
1 546
4:
What does the following code snippet do?
#include int main() { int x = 10; int *p = &x; *p = 20; std::cout << x; }
1 546
3:
What will the following code print?
#include void func(int &x) { x++; } int main() { int a = 5; func(a); std::cout << a; }
1 546
2:
What will happen if you attempt to delete a pointer to a base class object created as a derived class object.
class Base { public: void show() {} }; class Derived : public Base {}; int main() { Base* b = new Derived(); delete b; }
1 546
1.
#include
class Base { public: virtual void show() { std::cout << "Base"; } }; class Derived : public Base { public: void show() override { std::cout << "Derived"; } }; int main() { Base* b = new Derived(); b->show(); delete b; }
1 546
Hello, Dear Programmers! 😊
I hope this message finds you all in good spirits and great health. 🌟 I'm writing to inform you that for Today and Tomorrow, there will be no quizzes conducted in this group, so you can take a break and focus on other important tasks or activities. 🛌💻 Thank you for your attention! 🙏
1 546
9. What will be the output of the following code?
const sym1 = Symbol('foo');
const sym2 = Symbol('foo'); console.log(sym1 === sym2);
1 546
8. What will be the output of the following code?
const obj1 = { a: 1 };
const obj2 = { ...obj1, a: 2 }; console.log(obj2);
1 546
7. What will be the output of the following code?
console.log(1);
setTimeout(() => console.log(2), 0); console.log(3);
1 546
6. What will be the output of the following asynchronous function?
async function example() {
return "Hello World"; } console.log(example());
1 546
7. What will be the output of the following asynchronous function?
async function example() {
return "Hello World"; } console.log(example());
1 546
4. What will be the output of the following code?
const arr = [1, 2, 3];
arr.push(arr); console.log(arr.length);
