🎲 اختبار 'إختبار أساسيات برمجة بإستخدام سي بلس بلس'
إختبار أساسيات برمجة بإستخدام سي بلس بلس. Eng. Hazem F. Al-Huthaifi قناة علوم البيانات : @Computer_DS_1 التعليم لمن اراد والشهادة للجميع
🖊 12 سؤالًا · ⏱ 45 ث
إختبار أساسيات برمجة بإستخدام سي بلس بلس. Eng. Hazem F. Al-Huthaifi قناة علوم البيانات : @Computer_DS_1 التعليم لمن اراد والشهادة للجميع
🖊 12 سؤالًا · ⏱ 45 ث
Forwarded from 𐩣 𐩢𐩱𐩸𐩣 𐩱𐩡𐩢𐩹𐩺𐩰𐩺
true or false (√ or ×)
Q) C++ is a low-level programming language.
Q) C++ is a low-level programming language.
Anonymous Quiz
37%
True (√)
63%
False (×)
Forwarded from 𐩣 𐩢𐩱𐩸𐩣 𐩱𐩡𐩢𐩹𐩺𐩰𐩺
true or false (√ or ×)
Q) A programming language's syntax does not need to follow any predefined rules.
Q) A programming language's syntax does not need to follow any predefined rules.
Anonymous Quiz
22%
True (√)
78%
False (×)
Forwarded from 𐩣 𐩢𐩱𐩸𐩣 𐩱𐩡𐩢𐩹𐩺𐩰𐩺
true or false (√ or ×)
Q) In the C++ language, a program typically starts with the main function.
Q) In the C++ language, a program typically starts with the main function.
Anonymous Quiz
80%
True (√)
20%
False (×)
Forwarded from 𐩣 𐩢𐩱𐩸𐩣 𐩱𐩡𐩢𐩹𐩺𐩰𐩺
true or false (√ or ×)
Q) The assembly language uses binary code to replace machine language instructions.
Q) The assembly language uses binary code to replace machine language instructions.
Anonymous Quiz
59%
True (√)
41%
False (×)
Forwarded from 𐩣 𐩢𐩱𐩸𐩣 𐩱𐩡𐩢𐩹𐩺𐩰𐩺
true or false (√ or ×)
Q) Translators like assemblers and compilers are necessary to run programs on computers.
Q) Translators like assemblers and compilers are necessary to run programs on computers.
Anonymous Quiz
82%
True (√)
18%
False (×)
Forwarded from 𐩣 𐩢𐩱𐩸𐩣 𐩱𐩡𐩢𐩹𐩺𐩰𐩺
select the best choice among all :
Q) What does the following code print?
int a = 5; cout << ++a;
Q) What does the following code print?
int a = 5; cout << ++a;
Anonymous Quiz
9%
A) 4
13%
B) 5
78%
C) 6
Forwarded from 𐩣 𐩢𐩱𐩸𐩣 𐩱𐩡𐩢𐩹𐩺𐩰𐩺
Q) What the output?
int n = 10;
int prev = 0, current = 1, next; cout << "Fibonacci sequence: "<< prev << " " << current << " "; for(int i = 1; i <= n - 2; ++i) { next = prev + current; cout << next << " "; prev = current; current = next;}
int n = 10;
int prev = 0, current = 1, next; cout << "Fibonacci sequence: "<< prev << " " << current << " "; for(int i = 1; i <= n - 2; ++i) { next = prev + current; cout << next << " "; prev = current; current = next;}
Anonymous Quiz
39%
A) Fibonacci sequence: 0 1 1 2 3 5 8 13 21 34
26%
B) Fibonacci sequence: 0 1 1 2 3 5 8 13 21 33
26%
C) Fibonacci sequence: 0 1 2 3 5 8 13 21 34
10%
D) Fibonacci sequence: 0 1 1 3 6 10 15 21 28
Forwarded from 𐩣 𐩢𐩱𐩸𐩣 𐩱𐩡𐩢𐩹𐩺𐩰𐩺
select the best choice among all :
Q) What does the following code print?
int n = 100, sum = 0, i = 1; do { sum += i; i++; } while (i <= n); cout << "Sum of numbers from 1 to " << n << " is " << sum << endl;
Q) What does the following code print?
int n = 100, sum = 0, i = 1; do { sum += i; i++; } while (i <= n); cout << "Sum of numbers from 1 to " << n << " is " << sum << endl;
Anonymous Quiz
29%
A) Sum of numbers from 1 to 100 is 5000
57%
B) Sum of numbers from 1 to 100 is 5050
7%
C) Sum of numbers from 1 to 100 is 505
7%
D) Sum of numbers from 1 to 100 is 2500
Forwarded from 𐩣 𐩢𐩱𐩸𐩣 𐩱𐩡𐩢𐩹𐩺𐩰𐩺
Q) What the output?
int number = 6;
int sum = 0; for (int i = 1; i < number; ++i) { if (number % i == 0) { sum += i; }} if (sum == number) cout << number << " is perfect." << endl; else cout << number << " is not perfect." << endl;
int number = 6;
int sum = 0; for (int i = 1; i < number; ++i) { if (number % i == 0) { sum += i; }} if (sum == number) cout << number << " is perfect." << endl; else cout << number << " is not perfect." << endl;
Anonymous Quiz
67%
A) 6 is a perfect.
17%
B) 6 is not a perfect.
13%
C) Error
4%
D) 0
Forwarded from 𐩣 𐩢𐩱𐩸𐩣 𐩱𐩡𐩢𐩹𐩺𐩰𐩺
select the best choice among all :
Q) What does the following code print?
int num = 9; int i = 1; while (i <= 10) { cout << num << " x " << i << " = " << num * i << endl; i++; }
Q) What does the following code print?
int num = 9; int i = 1; while (i <= 10) { cout << num << " x " << i << " = " << num * i << endl; i++; }
Anonymous Quiz
12%
A) Multiplication table of 5 up to 10
72%
B) Multiplication table of 9 up to 10
8%
C) Multiplication table of 10 up to 9
8%
D) Nothing
Forwarded from 𐩣 𐩢𐩱𐩸𐩣 𐩱𐩡𐩢𐩹𐩺𐩰𐩺
Q) What does the following code print?
int n = 5;
int factorial = 1; int i = 1; while (i <n) { factorial *= i; i++; } cout << "Factorial of " << n << " is " << factorial << endl;
int n = 5;
int factorial = 1; int i = 1; while (i <n) { factorial *= i; i++; } cout << "Factorial of " << n << " is " << factorial << endl;
Anonymous Quiz
19%
A) Factorial of 5 is 5
50%
B) Factorial of 5 is 120
8%
C) Factorial of 5 is 60
23%
D) Factorial of 5 is 24
Forwarded from 𐩣 𐩢𐩱𐩸𐩣 𐩱𐩡𐩢𐩹𐩺𐩰𐩺
select the best choice among all :
Q) What does the last code (in image) print?
Q) What does the last code (in image) print?
Anonymous Quiz
65%
A) 12321 is a palindrome.
17%
B) 12321 is not a palindrome.
17%
C) Error
0%
D) 321
🎲 اختبار 'إختبار أساسيات برمجة بإستخدام سي بلس بلس 2️⃣'
إختبار أساسيات برمجة بإستخدام سي بلس بلس. Eng. Hazem F. Al-Huthaifi قناة علوم البيانات : @Computer_DS_1 التعليم لمن اراد والشهادة للجميع
🖊 12 سؤالًا · ⏱ 45 ث
إختبار أساسيات برمجة بإستخدام سي بلس بلس. Eng. Hazem F. Al-Huthaifi قناة علوم البيانات : @Computer_DS_1 التعليم لمن اراد والشهادة للجميع
🖊 12 سؤالًا · ⏱ 45 ث
Forwarded from 𐩣 𐩢𐩱𐩸𐩣 𐩱𐩡𐩢𐩹𐩺𐩰𐩺
true or false (√ or ×)
Q) High-level languages require programmers to concentrate on hardware details.
Q) High-level languages require programmers to concentrate on hardware details.
Anonymous Quiz
65%
True (√)
35%
False (×)
Forwarded from 𐩣 𐩢𐩱𐩸𐩣 𐩱𐩡𐩢𐩹𐩺𐩰𐩺
true or false (√ or ×)
Q) A computer program consists of a set of ordered instructions.
Q) A computer program consists of a set of ordered instructions.
Anonymous Quiz
87%
True (√)
13%
False (×)
Forwarded from 𐩣 𐩢𐩱𐩸𐩣 𐩱𐩡𐩢𐩹𐩺𐩰𐩺
true or false (√ or ×)
Q) The output statement in C++ uses is cout.
Q) The output statement in C++ uses is cout.
Anonymous Quiz
88%
True (√)
12%
False (×)
Forwarded from 𐩣 𐩢𐩱𐩸𐩣 𐩱𐩡𐩢𐩹𐩺𐩰𐩺
true or false (√ or ×)
Q) The main() function is the starting point of a C++ program.
Q) The main() function is the starting point of a C++ program.
Anonymous Quiz
88%
True (√)
12%
False (×)
Forwarded from 𐩣 𐩢𐩱𐩸𐩣 𐩱𐩡𐩢𐩹𐩺𐩰𐩺
true or false (√ or ×)
Q) An interpreter translates and executes each line of the source program.
Q) An interpreter translates and executes each line of the source program.
Anonymous Quiz
65%
True (√)
35%
False (×)
Forwarded from 𐩣 𐩢𐩱𐩸𐩣 𐩱𐩡𐩢𐩹𐩺𐩰𐩺
select the best choice among all :
Q) What does the goto statement do?
Q) What does the goto statement do?
Anonymous Quiz
26%
A) Moves to the next iteration of a loop
65%
B) Transfers control to another part of the program
3%
C) Ends the program
6%
D) Skips over a specific line of code