🔰اللجنة العلمية CS مستوى اول 🔰 – Telegram
🔰اللجنة العلمية CS مستوى اول 🔰
715 subscribers
458 photos
16 videos
425 files
96 links
💻 من الصفر إلى البطل في عالم البرمجة🔥
هنا نصنع معاً أبطال الكود والخوارزميات كل المحاضرات والمواد الدراسية بين أيديكم لتبدأوا رحلتكم البرمجية بثقة
مستقبلكم يبدأ اليوم لنبنيه معاً
Download Telegram
Forwarded from علم البيانات | DS2 Quizes (𝙴𝚗𝚐. 𝙷𝚊𝚣𝚎𝚖 𝙵. 𝙰𝚕-𝙷𝚞𝚝𝚑𝚊𝚒𝚏𝚒)
23 What will be output of the following program?
#include<iostream>
using namespace std; int main (){ int array[] = {0, 2, 4, 6, 7, 5, 3}; int x, result = 0; for (int i = 0; i < 8; i++) result += array[x]; cout << result; return 0; }
Anonymous Quiz
3%
25
38%
27
7%
26
52%
Compile time error
Forwarded from علم البيانات | DS2 Quizes (𝙴𝚗𝚐. 𝙷𝚊𝚣𝚎𝚖 𝙵. 𝙰𝚕-𝙷𝚞𝚝𝚑𝚊𝚒𝚏𝚒)
What will be the output of the following C++ program?

int i; enum month { JAN = 1, FEB, MAR, APR, MAY, JUN, JUL, AUG, SEP, OCT, NOV, DEC }; for (i = MAR; i <= NOV; i++) cout << i;
Anonymous Quiz
10%
01234567891011
17%
123456789101112
66%
34567891011
6%
123456789
Forwarded from علم البيانات | DS2 Quizes (𝙴𝚗𝚐. 𝙷𝚊𝚣𝚎𝚖 𝙵. 𝙰𝚕-𝙷𝚞𝚝𝚑𝚊𝚒𝚏𝚒)
What will be the output of the following C++ program?
#include <iostream>
using namespace std; enum test { A = 32, B, C }; int main() { cout << A << B<< C; return 0; }
Anonymous Quiz
13%
323232
5%
323130
5%
323134
77%
323334
Forwarded from علم البيانات | DS2 Quizes (𝙴𝚗𝚐. 𝙷𝚊𝚣𝚎𝚖 𝙵. 𝙰𝚕-𝙷𝚞𝚝𝚑𝚊𝚒𝚏𝚒)
What is the index number of the last element of an array with 9 elements?
Anonymous Quiz
8%
9
77%
8
7%
0
9%
Programmer-defined
Forwarded from علم البيانات | DS2 Quizes (𝙴𝚗𝚐. 𝙷𝚊𝚣𝚎𝚖 𝙵. 𝙰𝚕-𝙷𝚞𝚝𝚑𝚊𝚒𝚏𝚒)
What will be the output of the following C++ program?
#include <iostream>
using namespace std; enum cat { temp = 7 }; int main() { int age = 14; age /= temp; cout << "If you were cat, you would be " << age << endl; return 0; }
Anonymous Quiz
3%
If you were cat, you would be 5
74%
If you were cat, you would be 2
5%
If you were cat, you would be 9
18%
If you were cat, you would be 7
Forwarded from علم البيانات | DS2 Quizes (𝙴𝚗𝚐. 𝙷𝚊𝚣𝚎𝚖 𝙵. 𝙰𝚕-𝙷𝚞𝚝𝚑𝚊𝚒𝚏𝚒)
Which of the following accesses the seventh element stored in array?
Anonymous Quiz
3%
array;
3%
array(7);
37%
array[7];
56%
array[6];
Forwarded from علم البيانات | DS2 Quizes (𝙴𝚗𝚐. 𝙷𝚊𝚣𝚎𝚖 𝙵. 𝙰𝚕-𝙷𝚞𝚝𝚑𝚊𝚒𝚏𝚒)
What will be the output of the following C++ program?
#include<iostream>
using namespace std; int fun(int x = 0, int y = 0, int z) { return (x + y + z); } int main() { cout << fun(10); return 0; }
Anonymous Quiz
34%
10
8%
0
10%
Segmentation fault
48%
Error
1
Forwarded from علم البيانات | DS2 Quizes (𝙴𝚗𝚐. 𝙷𝚊𝚣𝚎𝚖 𝙵. 𝙰𝚕-𝙷𝚞𝚝𝚑𝚊𝚒𝚏𝚒)
Which is more effective while calling the functions?
Anonymous Quiz
4%
call by object
5%
call by pointer
83%
call by reference
8%
Call by value
Forwarded from علم البيانات | DS2 Quizes (𝙴𝚗𝚐. 𝙷𝚊𝚣𝚎𝚖 𝙵. 𝙰𝚕-𝙷𝚞𝚝𝚑𝚊𝚒𝚏𝚒)
What will be the output of the following C++ program?
#include <stdio.h>
#include <iostream> using namespace std; int main() { int array[] = {10, 20, 30}; cout << -2[array]; return 0; }
Anonymous Quiz
3%
-15
35%
-30
46%
compile time error
15%
garbage value
Forwarded from علم البيانات | DS2 Quizes (𝙴𝚗𝚐. 𝙷𝚊𝚣𝚎𝚖 𝙵. 𝙰𝚕-𝙷𝚞𝚝𝚑𝚊𝚒𝚏𝚒)
What will be used when terminating a structure?
Anonymous Quiz
7%
:
15%
}
4%
;;
74%
;
Forwarded from علم البيانات | DS2 Quizes (𝙴𝚗𝚐. 𝙷𝚊𝚣𝚎𝚖 𝙵. 𝙰𝚕-𝙷𝚞𝚝𝚑𝚊𝚒𝚏𝚒)
What will be the output of the following C++ program? 
#include <stdio.h>
#include<iostream>
using namespace std;
int array1[] = {1200, 200, 2300, 1230, 1543};
int array2[] = {12, 14, 16, 18, 20};
int temp, result = 0;
int main()
{
for (temp = 0; temp < 5; temp++)
{
result += array1[temp];
}
for (temp = 0; temp < 4; temp++)
{
result += array2[temp];
}
cout << result;
return 0;
}
Forwarded from علم البيانات | DS2 Quizes (𝙴𝚗𝚐. 𝙷𝚊𝚣𝚎𝚖 𝙵. 𝙰𝚕-𝙷𝚞𝚝𝚑𝚊𝚒𝚏𝚒)
What is the scope of the variable declared in the user defined function?
Anonymous Quiz
8%
whole program
19%
the main function
12%
header section
61%
only inside the {} block
Forwarded from علم البيانات | DS2 Quizes (𝙴𝚗𝚐. 𝙷𝚊𝚣𝚎𝚖 𝙵. 𝙰𝚕-𝙷𝚞𝚝𝚑𝚊𝚒𝚏𝚒)
Forwarded from علم البيانات | DS2 Quizes (𝙴𝚗𝚐. 𝙷𝚊𝚣𝚎𝚖 𝙵. 𝙰𝚕-𝙷𝚞𝚝𝚑𝚊𝚒𝚏𝚒)
What will be the output of the following C++ program?
#include <iostream>
using namespace std; int fun(int=0, int = 0); int main() { cout << fun(5); return 0; } int fun(int x, int y) { return (x+y); }
Anonymous Quiz
6%
-5
66%
5
17%
0
12%
10
Forwarded from علم البيانات | DS2 Quizes (𝙴𝚗𝚐. 𝙷𝚊𝚣𝚎𝚖 𝙵. 𝙰𝚕-𝙷𝚞𝚝𝚑𝚊𝚒𝚏𝚒)
What's the output of the following code?
#include <iostream>
using namespace std; int main(int argc, char *argv[]) { char s0[4]={'D','r','.'}; char s1[5]="Musa"; char s2[7]={"Ghorab"}; cout << s0 << " " << s1 << " " << s2 << "\n"; return 0; }
Anonymous Quiz
4%
Ghorab
5%
Musa
88%
Dr. Musa Ghorab
3%
Dr.
Forwarded from علم البيانات | DS2 Quizes (𝙴𝚗𝚐. 𝙷𝚊𝚣𝚎𝚖 𝙵. 𝙰𝚕-𝙷𝚞𝚝𝚑𝚊𝚒𝚏𝚒)
Which of the following is the correct syntax of including a user defined header files in C++?
Anonymous Quiz
48%
#include <userdefined.h>
33%
#include "userdefined.h"
10%
<include> "userdefined"
10%
Both
Forwarded from علم البيانات | DS2 Quizes (𝙴𝚗𝚐. 𝙷𝚊𝚣𝚎𝚖 𝙵. 𝙰𝚕-𝙷𝚞𝚝𝚑𝚊𝚒𝚏𝚒)
....... are like miniature programs and are called modules.
Anonymous Quiz
13%
Arrays
45%
Functions
17%
Pointers
25%
All of above
Forwarded from علم البيانات | DS2 Quizes (𝙴𝚗𝚐. 𝙷𝚊𝚣𝚎𝚖 𝙵. 𝙰𝚕-𝙷𝚞𝚝𝚑𝚊𝚒𝚏𝚒)
Which of the following is NOT a type of function?
Anonymous Quiz
15%
Main function
16%
Value-returning function
6%
Void function
63%
Parameterized function