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
18%
A) 1 3 5 7
27%
B) 1 6 10 20
21%
C) 1 6 10 14
33%
D) 6 10 20
Forwarded from علم البيانات مستوى ثاني | جامعة صنعاء (Eng. Hazem Al-Huthaifi)
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
44%
A) 5 byte
36%
B) 20 byte
10%
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 ث
Forwarded from 𐩣 𐩢𐩱𐩸𐩣 𐩱𐩡𐩢𐩹𐩺𐩰𐩺
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
62%
A. A compiler translates the entire code at once, while an interpreter translates it line by line.
8%
B. An interpreter translates the entire code at once, while a compiler translates it line by line.
23%
C. Both compile the code at runtime.
8%
D. A compiler creates an executable file, while an interpreter does not.
Forwarded from 𐩣 𐩢𐩱𐩸𐩣 𐩱𐩡𐩢𐩹𐩺𐩰𐩺
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
8%
A. Incorrect variable declaration.
83%
B. Division by zero.
0%
C. Missing semicolon.
8%
D. Incorrect use of a loop.
Forwarded from 𐩣 𐩢𐩱𐩸𐩣 𐩱𐩡𐩢𐩹𐩺𐩰𐩺
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
25%
A. Before the loop body
67%
B. After the initialization
8%
C. At the end of the loop
0%
D. After the increment statement
Forwarded from 𐩣 𐩢𐩱𐩸𐩣 𐩱𐩡𐩢𐩹𐩺𐩰𐩺
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
18%
A. Processing user input.
55%
B. Iterating through the elements of an array.
9%
C. Conditional statements.
18%
D. Defining functions.
Forwarded from 𐩣 𐩢𐩱𐩸𐩣 𐩱𐩡𐩢𐩹𐩺𐩰𐩺
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
17%
A. Syntax Error
42%
B. Runtime Error
42%
C. Logical Error
0%
D. Compilation Error
👍1
Forwarded from 𐩣 𐩢𐩱𐩸𐩣 𐩱𐩡𐩢𐩹𐩺𐩰𐩺
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
36%
A) for-loop
7%
B) while-loop
50%
C) do-while loop
7%
D) infinite loop
Forwarded from 𐩣 𐩢𐩱𐩸𐩣 𐩱𐩡𐩢𐩹𐩺𐩰𐩺
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
88%
A) 12
12%
B) 7
0%
C) 34
Forwarded from 𐩣 𐩢𐩱𐩸𐩣 𐩱𐩡𐩢𐩹𐩺𐩰𐩺
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
7%
A) 4
7%
B) 8
79%
C) 12
7%
D) 16
Forwarded from 𐩣 𐩢𐩱𐩸𐩣 𐩱𐩡𐩢𐩹𐩺𐩰𐩺
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
44%
A) 0
13%
B) 1
13%
C) 3
31%
D) Error
Forwarded from 𐩣 𐩢𐩱𐩸𐩣 𐩱𐩡𐩢𐩹𐩺𐩰𐩺
Q) What the output?
int num = 29;
bool isPrime = true; for (int i = 2; i <= num / 2; ++i) { if (num % i == 0) { isPrime = false ; break ; }} if (isPrime) cout << num << " is a prime." << endl; else cout << num << " is not a prime." << endl;
int num = 29;
bool isPrime = true; for (int i = 2; i <= num / 2; ++i) { if (num % i == 0) { isPrime = false ; break ; }} if (isPrime) cout << num << " is a prime." << endl; else cout << num << " is not a prime." << endl;
Anonymous Quiz
69%
A) 29 is a prime.
23%
B) 29 is not a prime.
8%
C) 29
👍1
Forwarded from 𐩣 𐩢𐩱𐩸𐩣 𐩱𐩡𐩢𐩹𐩺𐩰𐩺
select the best choice among all :
Q) What will be the output of the following
int a = 9, b = 4; cout << a / b;
Q) What will be the output of the following
int a = 9, b = 4; cout << a / b;
Anonymous Quiz
53%
A) 2
35%
B) 2.25
12%
C) 4
0%
D) 3
Forwarded from 𐩣 𐩢𐩱𐩸𐩣 𐩱𐩡𐩢𐩹𐩺𐩰𐩺
select the best choice among all :
Q) What does the following code print?
int a = 5, b = 10; if (a > b) cout << a; else cout << b;
Q) What does the following code print?
int a = 5, b = 10; if (a > b) cout << a; else cout << b;
Anonymous Quiz
13%
A) 5
81%
B) 10
6%
C) 0
Forwarded from 𐩣 𐩢𐩱𐩸𐩣 𐩱𐩡𐩢𐩹𐩺𐩰𐩺
true or false (√ or ×)
Q) High-level languages increase the focus on the problem being solved rather than the computer's hardware
Q) High-level languages increase the focus on the problem being solved rather than the computer's hardware
Anonymous Quiz
80%
True (√)
20%
False (×)
Forwarded from 𐩣 𐩢𐩱𐩸𐩣 𐩱𐩡𐩢𐩹𐩺𐩰𐩺
true or false (√ or ×)
Q) The preprocessor directive in C++ starts with #include.
Q) The preprocessor directive in C++ starts with #include.
Anonymous Quiz
87%
True (√)
13%
False (×)
Forwarded from 𐩣 𐩢𐩱𐩸𐩣 𐩱𐩡𐩢𐩹𐩺𐩰𐩺
true or false (√ or ×)
Q) Machine languages use mnemonic codes for instructions.
Q) Machine languages use mnemonic codes for instructions.
Anonymous Quiz
58%
True (√)
42%
False (×)