علم البيانات | DS2 Quizes – Telegram
علم البيانات | DS2 Quizes
968 subscribers
96 photos
2 videos
14 files
110 links
"قناة علمية متخصصة في مجال علم البيانات، قناة خاصة بالاختبارات MCQ ."
القناة العامة: @Computer_DS_1
النقاشات: @Computer_DS1
قناة الاختبارات: @Computer_DS_2
بوت التواصل والمشاركات : @DS_Combot
Download Telegram
true or false (√ or ×)
Q) Which type of loop checks the condition before executing the loop body?
Anonymous Quiz
26%
A) for-loop
31%
B) while-loop
13%
C) do-while loop
31%
D) All of the above
select the best choice among all :
Q) What is the size of a Boolean variable in C++?
Anonymous Quiz
40%
A) 1 bit
45%
B) 1 byte
8%
C) 4 bytes
8%
D) 2 bytes
select the best choice among all :
Q) What will be the output of the following?
int x = 3, y = 5; cout << x + y << endl;
Anonymous Quiz
11%
A) 35
89%
B) 8
0%
C) 53
select the best choice among all :
Q) What will be the output of the following?
int a = 2, b = 3, result = 1, power = b; while (power != 0) { result *= a; power--; } cout << a << " raised to the power of " << b << " is: " << result << endl;
Anonymous Quiz
11%
A) 2 raised to the power of 3 is: 6
61%
B) 2 raised to the power of 3 is: 8
11%
C) 2 raised to the power of 3 is: 9
17%
D) Error
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;
Anonymous Quiz
33%
A) Sum of squares from 1 to 5 is: 25
22%
B) Sum of squares from 1 to 5 is: 30
39%
C) Sum of squares from 1 to 5 is: 55
6%
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; }
Anonymous Quiz
62%
A) 0 1 1 2 3 5 8 13 21 34
18%
B) 1 1 2 3 5 8 13 21 34
10%
C) 1 2 3 5 8 13 21 34 55
10%
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;
Anonymous Quiz
37%
A) Sum of even numbers between 1 and 10 is: 20
43%
B) Sum of even numbers between 1 and 10 is: 30
11%
C) Sum of even numbers between 1 and 10 is: 25
9%
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;
Anonymous Quiz
31%
A) Sum of products of consecutive integers from 1 to 5 is: 55
17%
B) Sum of products of consecutive integers from 1 to 5 is: 45
46%
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 ث
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] << " "; }
Anonymous Quiz
31%
A) 16 46 56 80 110
34%
B) 16 50 58 90 98
19%
C)16 50 56 90 96
16%
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] << " "; }
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
select the best choice among all :
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 د
🎲 اختبار 'إختبار أساسيات برمجة بإستخدام سي بلس بلس 1️⃣'
إختبار أساسيات برمجة بإستخدام سي بلس بلس. Eng. Hazem F. Al-Huthaifi قناة علوم البيانات : @Computer_DS_1 التعليم لمن اراد والشهادة للجميع
🖊 12 سؤالًا · 45 ث
🎲 اختبار 'إختبار أساسيات برمجة بإستخدام سي بلس بلس 2️⃣'
إختبار أساسيات برمجة بإستخدام سي بلس بلس. Eng. Hazem F. Al-Huthaifi قناة علوم البيانات : @Computer_DS_1 التعليم لمن اراد والشهادة للجميع
🖊 12 سؤالًا · 45 ث
🎲 اختبار 'إختبار أساسيات برمجة بإستخدام سي بلس بلس 3️⃣'
إختبار أساسيات برمجة بإستخدام سي بلس بلس. Eng. Hazem F. Al-Huthaifi قناة علوم البيانات : @Computer_DS_1 التعليم لمن اراد والشهادة للجميع
🖊 16 سؤالًا · 45 ث
select the best choice among all :
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.
select the best choice among all :
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
select the best choice among all :
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.