علم البيانات | DS2 Quizes – Telegram
علم البيانات | DS2 Quizes
966 subscribers
96 photos
2 videos
14 files
110 links
"قناة علمية متخصصة في مجال علم البيانات، قناة خاصة بالاختبارات MCQ ."
القناة العامة: @Computer_DS_1
النقاشات: @Computer_DS1
قناة الاختبارات: @Computer_DS_2
بوت التواصل والمشاركات : @DS_Combot
Download Telegram
Which of the following is used to terminate the function prototype in c++?
Anonymous Quiz
82%
;
9%
)
4%
:
5%
All
👍2
An inline function is expanded during ...........?
Anonymous Quiz
11%
End of the program
34%
Run-time
7%
Never expanded
47%
Compile-time
Which of the following is used to move the file pointer to start of a file?
Anonymous Quiz
61%
ios::beg
5%
ios::cur
13%
ios::first
20%
ios::start
1
Which of the following is used to create output stream?
Anonymous Quiz
75%
ofstream
9%
ifstream
15%
iostream
2%
fsstream
Which header file is required to used file 1/0 operations?
<............>
Anonymous Quiz
17%
ifstream
5%
ostream
11%
iostream
66%
fstream
👍2
The data elemets in the structure are known as what?
Anonymous Quiz
5%
Object
72%
Members
8%
Data
15%
Object & Data
👍1
The unary scope resolution operator can not used to access a local variable of the same name in an outer block?
Anonymous Quiz
60%
Tru
40%
False
Overloading maybe preformed more compact and convenient by......?
Anonymous Quiz
55%
Overloading function
30%
function templates
14%
inline function
2%
none
1
All function template definitions begin with the ...........?
Anonymous Quiz
40%
template keyword
31%
template parameter list
18%
template void type
11%
none of them
2👍1
What will be the output of the following c++ program?

#include <iostream> using namespace std; void fun(int z , int y) { x=30; y=20; } int main() { int x = 20; fun(x,x); cout<<x; return 0; }
Anonymous Quiz
6%
10
68%
20
15%
30
11%
Error
1
What will be the output of the following c++ program?

#include <iostream> using namespace std; int main() { for (int i = 4 ; i <= 8 ; i++){ if(i == 7) { continue; } cout<<i; } return 0; }
Anonymous Quiz
8%
45678
13%
4567
77%
4568
2%
4678
1
ماهي مخرجات الكود التالي :
int x = 5;
int y = 10; cout << (x == y)<< (x != y) << endl;
Anonymous Quiz
14%
5 10
52%
0 1
34%
Error
2
👎2
A struct variable can be passed as a parameter ?
Anonymous Quiz
78%
True
22%
False
A struct variable can be passed as a parameter by ..............?
Anonymous Quiz
10%
value only
19%
reference only
58%
value or reference
12%
none of them
2
int arr[7]={5,9,77,55,44};
cout<<"arr[5]="<<arr[5];
cout<<"arr[8]="<<arr[8]; The output is? Note: 17936272 is a random value
Anonymous Quiz
27%
arr[5]= 17936272 , arr[8]=0
52%
arr[5]=0 , arr[8]= 17936272
14%
0 / 17936272
7%
17936272 / 0
🔥1
مخرجات الكود التالي :
int num[] = {4, 8, 15, 16, 23, 42};
cout << num[2] << endl;
Anonymous Quiz
14%
8
86%
15
👍1
ماهو نتيجة الآتي في لغة ++c:
int r, x= 2;
float y= 5; r= y%x; cout<<r;
Anonymous Quiz
47%
1
10%
0
20%
2
23%
compile error
😢1
#include <iostream>
using namespace std;
enum fruit{ banana,apple,orange,tomato } int main() {cout<<banana<<apple<<orang <<tomato; return 0;} The output is?
Anonymous Quiz
10%
1234
72%
0123
18%
Error
👍3👎3
int char c='74';
cout<<c;
return 0; The output is?
Anonymous Quiz
27%
I
44%
J
21%
j
8%
i
👍6👎5