select the best choice among all :
Q) What will be the output of the following?
int n = 5; int sum = 0; for (int i = 1; i <= n; i++) { sum += i * i; } cout << "Sum of squares from 1 to " << n << " is: " << sum << endl;
Q) What will be the output of the following?
int n = 5; int sum = 0; for (int i = 1; i <= n; i++) { sum += i * i; } cout << "Sum of squares from 1 to " << n << " is: " << sum << endl;
Anonymous Quiz
19%
A) Sum of squares from 1 to 5 is: 25
15%
B) Sum of squares from 1 to 5 is: 30
61%
C) Sum of squares from 1 to 5 is: 55
5%
D) Sum of squares from 1 to 5 is: 15
select the best choice among all :
Q) What will be the output of the following?
int n = 10, a = 0, b = 1, nextTerm; for (int i = 1; i <= n; ++i) { cout << a << " "; nextTerm = a + b; a = b; b = nextTerm; }
Q) What will be the output of the following?
int n = 10, a = 0, b = 1, nextTerm; for (int i = 1; i <= n; ++i) { cout << a << " "; nextTerm = a + b; a = b; b = nextTerm; }
Anonymous Quiz
53%
A) 0 1 1 2 3 5 8 13 21 34
20%
B) 1 1 2 3 5 8 13 21 34
22%
C) 1 2 3 5 8 13 21 34 55
5%
D) 1 2 4 8 16 32
select the best choice among all :
Q) What will be the output of the following?
int n = 10, sum = 0; for (int i = 1; i <= n; i++) { if (i % 2 == 0) sum += i; } cout << "Sum of even numbers between 1 and " << n << " is: " << sum << endl;
Q) What will be the output of the following?
int n = 10, sum = 0; for (int i = 1; i <= n; i++) { if (i % 2 == 0) sum += i; } cout << "Sum of even numbers between 1 and " << n << " is: " << sum << endl;
Anonymous Quiz
21%
A) Sum of even numbers between 1 and 10 is: 20
60%
B) Sum of even numbers between 1 and 10 is: 30
15%
C) Sum of even numbers between 1 and 10 is: 25
4%
D) Sum of even numbers between 1 and 10 is: 15
select the best choice among all :
Q) What will be the output of the following?
int n = 5, sum = 0; for (int i = 1; i < n; ++i) { sum += i * (i + 1); } cout << "Sum of products of consecutive integers from 1 to " << n << " is: " << sum << endl;
Q) What will be the output of the following?
int n = 5, sum = 0; for (int i = 1; i < n; ++i) { sum += i * (i + 1); } cout << "Sum of products of consecutive integers from 1 to " << n << " is: " << sum << endl;
Anonymous Quiz
34%
A) Sum of products of consecutive integers from 1 to 5 is: 55
11%
B) Sum of products of consecutive integers from 1 to 5 is: 45
48%
C) Sum of products of consecutive integers from 1 to 5 is: 40
6%
D) Sum of products of consecutive integers from 1 to 5 is: 35
🎲 اختبار 'إختبار أساسيات برمجة بإستخدام سي بلس بلس 3️⃣'
إختبار أساسيات برمجة بإستخدام سي بلس بلس. Eng. Hazem F. Al-Huthaifi قناة علوم البيانات : @Computer_DS_1 التعليم لمن اراد والشهادة للجميع
🖊 16 سؤالًا · ⏱ 45 ث
إختبار أساسيات برمجة بإستخدام سي بلس بلس. Eng. Hazem F. Al-Huthaifi قناة علوم البيانات : @Computer_DS_1 التعليم لمن اراد والشهادة للجميع
🖊 16 سؤالًا · ⏱ 45 ث
select the best choice among all :
Q) What's the following code output?
int numbers[5] = {10, 20, 30, 40, 50}; for (int i = 0; i < 5; i++) { if(i%2==0) numbers[i] - = 2; else numbers[i] += 5; numbers[i] *= 2; cout << numbers[i] << " "; }
Q) What's the following code output?
int numbers[5] = {10, 20, 30, 40, 50}; for (int i = 0; i < 5; i++) { if(i%2==0) numbers[i] - = 2; else numbers[i] += 5; numbers[i] *= 2; cout << numbers[i] << " "; }
Anonymous Quiz
27%
A) 16 46 56 80 110
15%
B) 16 50 58 90 98
42%
C)16 50 56 90 96
15%
D) 16 50 56 90 96 110
select the best choice among all :
Q) What does the following code output?
int arr[4] = {1, 3, 5, 7}; arr[3] = 10; for (int i = 1; i < 4; i++) { arr[i] *= 2; cout << arr[i] << " "; }
Q) What does the following code output?
int arr[4] = {1, 3, 5, 7}; arr[3] = 10; for (int i = 1; i < 4; i++) { arr[i] *= 2; cout << arr[i] << " "; }
Anonymous Quiz
17%
A) 1 3 5 7
18%
B) 1 6 10 20
22%
C) 1 6 10 14
43%
D) 6 10 20
select the best choice among all :
Q) What is the size of the following array?
int numbers[5] = {10, 20, 30, 40, 5}
Q) What is the size of the following array?
int numbers[5] = {10, 20, 30, 40, 5}
Anonymous Quiz
40%
A) 5 byte
45%
B) 20 byte
5%
C) 20 bit
10%
D) 5 bit
🎲 اختبار 'إختبار نصفي أساسيات برمجة نظري بإستخدام سي بلس بلس'
إختبار نصفي أساسيات برمجة نظري بإستخدام سي بلس بلس الدكتورة مروة الهادي علم البيانات Exam of Programming fundamentals with C++ Eng. Hazem Al-Huthaifi https://news.1rj.ru/str/Computer_DS_1
🖊 22 سؤالًا · ⏱ 1 د
إختبار نصفي أساسيات برمجة نظري بإستخدام سي بلس بلس الدكتورة مروة الهادي علم البيانات Exam of Programming fundamentals with C++ Eng. Hazem Al-Huthaifi https://news.1rj.ru/str/Computer_DS_1
🖊 22 سؤالًا · ⏱ 1 د
🎲 اختبار 'إختبار أساسيات برمجة بإستخدام سي بلس بلس 1️⃣'
إختبار أساسيات برمجة بإستخدام سي بلس بلس. Eng. Hazem F. Al-Huthaifi قناة علوم البيانات : @Computer_DS_1 التعليم لمن اراد والشهادة للجميع
🖊 12 سؤالًا · ⏱ 45 ث
إختبار أساسيات برمجة بإستخدام سي بلس بلس. Eng. Hazem F. Al-Huthaifi قناة علوم البيانات : @Computer_DS_1 التعليم لمن اراد والشهادة للجميع
🖊 12 سؤالًا · ⏱ 45 ث
🎲 اختبار 'إختبار أساسيات برمجة بإستخدام سي بلس بلس 2️⃣'
إختبار أساسيات برمجة بإستخدام سي بلس بلس. Eng. Hazem F. Al-Huthaifi قناة علوم البيانات : @Computer_DS_1 التعليم لمن اراد والشهادة للجميع
🖊 12 سؤالًا · ⏱ 45 ث
إختبار أساسيات برمجة بإستخدام سي بلس بلس. Eng. Hazem F. Al-Huthaifi قناة علوم البيانات : @Computer_DS_1 التعليم لمن اراد والشهادة للجميع
🖊 12 سؤالًا · ⏱ 45 ث
🎲 اختبار 'إختبار أساسيات برمجة بإستخدام سي بلس بلس 3️⃣'
إختبار أساسيات برمجة بإستخدام سي بلس بلس. Eng. Hazem F. Al-Huthaifi قناة علوم البيانات : @Computer_DS_1 التعليم لمن اراد والشهادة للجميع
🖊 16 سؤالًا · ⏱ 45 ث
إختبار أساسيات برمجة بإستخدام سي بلس بلس. Eng. Hazem F. Al-Huthaifi قناة علوم البيانات : @Computer_DS_1 التعليم لمن اراد والشهادة للجميع
🖊 16 سؤالًا · ⏱ 45 ث
select the best choice among all :
Q) What is the primary difference between a compiler and an interpreter?
Q) What is the primary difference between a compiler and an interpreter?
Anonymous Quiz
78%
A. A compiler translates the entire code at once, while an interpreter translates it line by line.
12%
B. An interpreter translates the entire code at once, while a compiler translates it line by line.
5%
C. Both compile the code at runtime.
5%
D. A compiler creates an executable file, while an interpreter does not.
select the best choice among all :
Q) Which of the following is an example of a runtime error in C++?
Q) Which of the following is an example of a runtime error in C++?
Anonymous Quiz
11%
A. Incorrect variable declaration.
68%
B. Division by zero.
14%
C. Missing semicolon.
8%
D. Incorrect use of a loop.
👍1
select the best choice among all :
Q) In a for loop, where is the condition typically placed?
Q) In a for loop, where is the condition typically placed?
Anonymous Quiz
31%
A. Before the loop body
57%
B. After the initialization
4%
C. At the end of the loop
7%
D. After the increment statement
select the best choice among all :
Q) Which of the following is a common use case for a for loop?
Q) Which of the following is a common use case for a for loop?
Anonymous Quiz
12%
A. Processing user input.
59%
B. Iterating through the elements of an array.
23%
C. Conditional statements.
5%
D. Defining functions.
select the best choice among all :
Q) What type of error occurs when the program executes but produces incorrect results?
Q) What type of error occurs when the program executes but produces incorrect results?
Anonymous Quiz
19%
A. Syntax Error
8%
B. Runtime Error
64%
C. Logical Error
9%
D. Compilation Error
select the best choice among all :
Q) Which of the following loops will execute at least once, even if the condition is false?
Q) Which of the following loops will execute at least once, even if the condition is false?
Anonymous Quiz
6%
A) for-loop
10%
B) while-loop
78%
C) do-while loop
6%
D) infinite loop
select the best choice among all :
Q) What is the output of the following code?
int a = 3; int b = 4; cout << a * b;
Q) What is the output of the following code?
int a = 3; int b = 4; cout << a * b;
Anonymous Quiz
95%
A) 12
4%
B) 7
1%
C) 34
select the best choice among all :
Q) What will be the output of the following
int x = 4; x *= 3; cout << x;
Q) What will be the output of the following
int x = 4; x *= 3; cout << x;
Anonymous Quiz
1%
A) 4
4%
B) 8
93%
C) 12
2%
D) 16
select the best choice among all :
Q) What will be the output of the following
int a = 3; cout << (a != 3);
Q) What will be the output of the following
int a = 3; cout << (a != 3);
Anonymous Quiz
61%
A) 0
8%
B) 1
4%
C) 3
28%
D) Error