🔰اللجنة العلمية CS مستوى اول 🔰 – Telegram
🔰اللجنة العلمية CS مستوى اول 🔰
715 subscribers
458 photos
16 videos
425 files
96 links
💻 من الصفر إلى البطل في عالم البرمجة🔥
هنا نصنع معاً أبطال الكود والخوارزميات كل المحاضرات والمواد الدراسية بين أيديكم لتبدأوا رحلتكم البرمجية بثقة
مستقبلكم يبدأ اليوم لنبنيه معاً
Download Telegram
Forwarded from علم البيانات | DS2 Quizes (𝙴𝚗𝚐. 𝙷𝚊𝚣𝚎𝚖 𝙵. 𝙰𝚕-𝙷𝚞𝚝𝚑𝚊𝚒𝚏𝚒)
The data elements in the structure are also known as what?
Anonymous Quiz
26%
Objects & data
52%
Members
11%
Data
10%
Objects
Forwarded from علم البيانات | DS2 Quizes (𝙴𝚗𝚐. 𝙷𝚊𝚣𝚎𝚖 𝙵. 𝙰𝚕-𝙷𝚞𝚝𝚑𝚊𝚒𝚏𝚒)
An inline function is expanded during _.
Anonymous Quiz
16%
End of the program
13%
Never expanded
25%
Run-time
47%
Compile-time
Forwarded from علم البيانات | DS2 Quizes (𝙴𝚗𝚐. 𝙷𝚊𝚣𝚎𝚖 𝙵. 𝙰𝚕-𝙷𝚞𝚝𝚑𝚊𝚒𝚏𝚒)
Which of the following is used to move the file pointer to start of a file?
Anonymous Quiz
38%
ios::start
16%
ios::first
6%
ios::cur
39%
ios::beg
Forwarded from علم البيانات | DS2 Quizes (𝙴𝚗𝚐. 𝙷𝚊𝚣𝚎𝚖 𝙵. 𝙰𝚕-𝙷𝚞𝚝𝚑𝚊𝚒𝚏𝚒)
Which header file is required to use file I/O operations?
Anonymous Quiz
21%
<iostream>
62%
<fstream>
5%
<ostream>
11%
<ifstream>
Forwarded from علم البيانات | DS2 Quizes (𝙴𝚗𝚐. 𝙷𝚊𝚣𝚎𝚖 𝙵. 𝙰𝚕-𝙷𝚞𝚝𝚑𝚊𝚒𝚏𝚒)
Which of the following is used to create an output stream?
Anonymous Quiz
4%
fsstream
27%
iostream
8%
ifstream
61%
ofstream
Forwarded from علم البيانات | DS2 Quizes (𝙴𝚗𝚐. 𝙷𝚊𝚣𝚎𝚖 𝙵. 𝙰𝚕-𝙷𝚞𝚝𝚑𝚊𝚒𝚏𝚒)
Which of the following is used for comments in C++?
Anonymous Quiz
89%
/* comment */
4%
'comment'
8%
both
Forwarded from علم البيانات | DS2 Quizes (𝙴𝚗𝚐. 𝙷𝚊𝚣𝚎𝚖 𝙵. 𝙰𝚕-𝙷𝚞𝚝𝚑𝚊𝚒𝚏𝚒)
What will be the output of the following C++ program?
#include <iostream>
using namespace std; enum colour { green, red, blue, white, yellow, pink }; int main() { cout << green<< red<< blue<< white<< yellow<< pink; return 0; }
Anonymous Quiz
14%
123456
63%
012345
9%
runtime error
14%
compile time error
Forwarded from علم البيانات | DS2 Quizes (𝙴𝚗𝚐. 𝙷𝚊𝚣𝚎𝚖 𝙵. 𝙰𝚕-𝙷𝚞𝚝𝚑𝚊𝚒𝚏𝚒)
Which of the following code will give error on compilation?
==code 1==
#include<iostream> using namespace std; int main() { cout<<"Hello World"; return 0; } ==code 2== #include <iostream> int main() { std::cout<<"Hello World"; return 0; }
Anonymous Quiz
8%
Code 1 only
16%
Code 2 only
15%
Both code 1 and code 2
61%
Neither code 1 nor code 2
Forwarded from علم البيانات | DS2 Quizes (𝙴𝚗𝚐. 𝙷𝚊𝚣𝚎𝚖 𝙵. 𝙰𝚕-𝙷𝚞𝚝𝚑𝚊𝚒𝚏𝚒)
By default, all the files in C++ are opened in _____ mode.
Anonymous Quiz
6%
ISCII
70%
Text
22%
Binary
2%
VTC
Forwarded from علم البيانات | DS2 Quizes (𝙴𝚗𝚐. 𝙷𝚊𝚣𝚎𝚖 𝙵. 𝙰𝚕-𝙷𝚞𝚝𝚑𝚊𝚒𝚏𝚒)
Which of the following correctly declares an array in C++?
Anonymous Quiz
2%
array{10};
4%
int array;
5%
array array[10];
89%
int array[10];
Forwarded from علم البيانات | DS2 Quizes (𝙴𝚗𝚐. 𝙷𝚊𝚣𝚎𝚖 𝙵. 𝙰𝚕-𝙷𝚞𝚝𝚑𝚊𝚒𝚏𝚒)
Which is more effective while calling the C++ functions?
Anonymous Quiz
8%
call by object
11%
call by pointer
68%
call by reference
14%
call by value
1
Forwarded from علم البيانات | DS2 Quizes (𝙴𝚗𝚐. 𝙷𝚊𝚣𝚎𝚖 𝙵. 𝙰𝚕-𝙷𝚞𝚝𝚑𝚊𝚒𝚏𝚒)
Which of the following is used to terminate the function prototype in C++?
Anonymous Quiz
3%
:
4%
]
71%
;
22%
)
1
Forwarded from علم البيانات | DS2 Quizes (𝙴𝚗𝚐. 𝙷𝚊𝚣𝚎𝚖 𝙵. 𝙰𝚕-𝙷𝚞𝚝𝚑𝚊𝚒𝚏𝚒)
What will be the output of the following C++ program? 
#include <iostream>
using namespace std;
int main(){
for(int i=1;i<=5 ;i++ ){
if(i==3){
continue;
}
cout << i << " ";
}
return 0;
}
Forwarded from علم البيانات | DS2 Quizes (𝙴𝚗𝚐. 𝙷𝚊𝚣𝚎𝚖 𝙵. 𝙰𝚕-𝙷𝚞𝚝𝚑𝚊𝚒𝚏𝚒)
What will be the output of the following C++ program?
#include <iostream>
using namespace std; int main(){ for(int i=1;i<=5 ;i++ ){ if(i==3){ continue; } cout << i << " "; } return 0; }
Anonymous Quiz
12%
12345
5%
1234
79%
1245
3%
1235
Forwarded from علم البيانات | DS2 Quizes (𝙴𝚗𝚐. 𝙷𝚊𝚣𝚎𝚖 𝙵. 𝙰𝚕-𝙷𝚞𝚝𝚑𝚊𝚒𝚏𝚒)
What will be the output of the following C++ program? 
#include <iostream>
using namespace std;
void fun(int x,int y){
x=20;
y=10;
}
int main(){
int x=10;
fun(x,x);
cout << x << endl;
return 0;
}
Forwarded from علم البيانات | DS2 Quizes (𝙴𝚗𝚐. 𝙷𝚊𝚣𝚎𝚖 𝙵. 𝙰𝚕-𝙷𝚞𝚝𝚑𝚊𝚒𝚏𝚒)
What will be the output of the following C++ program?
#include <iostream>
using namespace std; void fun(int x,int y){ x=20; y=10; } int main(){ int x=10; fun(x,x); cout << x << endl; return 0; }
Anonymous Quiz
14%
20
70%
10
5%
30
10%
Error
Forwarded from علم البيانات | DS2 Quizes (𝙴𝚗𝚐. 𝙷𝚊𝚣𝚎𝚖 𝙵. 𝙰𝚕-𝙷𝚞𝚝𝚑𝚊𝚒𝚏𝚒)
What will be the output of the following C++ code?
#include <iostream>
using namespace std; int main() { char c = 73; cout << c; return 0; }
Anonymous Quiz
23%
J
17%
A
48%
I
11%
N
Forwarded from علم البيانات | DS2 Quizes (𝙴𝚗𝚐. 𝙷𝚊𝚣𝚎𝚖 𝙵. 𝙰𝚕-𝙷𝚞𝚝𝚑𝚊𝚒𝚏𝚒)
What will be the output of the following C++ program?
#include<iostream>
using namespace std; int main(){ int x = 5; auto a = x; x++; cout<<"Value of a: "<<a<<endl; return 0; }
Anonymous Quiz
4%
Segmentation fault
56%
Value of a: 5
9%
Error
31%
Value of a: 6
Forwarded from علم البيانات | DS2 Quizes (𝙴𝚗𝚐. 𝙷𝚊𝚣𝚎𝚖 𝙵. 𝙰𝚕-𝙷𝚞𝚝𝚑𝚊𝚒𝚏𝚒)
What will be the output of the following C++ program?
#include <iostream>
using namespace std; int main (){ int a, b, c; a = 2; b = 7; c = (a > b) ? a : b; cout << c; return 0; }
Anonymous Quiz
7%
12
15%
14
9%
6
69%
7
1
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