Forwarded from علم البيانات | DS2 Quizes (𝙴𝚗𝚐. 𝙷𝚊𝚣𝚎𝚖 𝙵. 𝙰𝚕-𝙷𝚞𝚝𝚑𝚊𝚒𝚏𝚒)
Which of following is category of simple data type ?
Anonymous Quiz
35%
integral
4%
floating-point
22%
enumeration
39%
all of above
Forwarded from علم البيانات | DS2 Quizes (𝙴𝚗𝚐. 𝙷𝚊𝚣𝚎𝚖 𝙵. 𝙰𝚕-𝙷𝚞𝚝𝚑𝚊𝚒𝚏𝚒)
default, all the files in c++ are opened in ............mode?
Anonymous Quiz
5%
VTC
82%
Text
4%
Iscll
9%
Binary
Forwarded from علم البيانات | DS2 Quizes (𝙴𝚗𝚐. 𝙷𝚊𝚣𝚎𝚖 𝙵. 𝙰𝚕-𝙷𝚞𝚝𝚑𝚊𝚒𝚏𝚒)
Which of the following correctly declares an array ?
Anonymous Quiz
3%
array{10}
5%
array array[10]
2%
int array
89%
int array[10]
Forwarded from علم البيانات | DS2 Quizes (𝙴𝚗𝚐. 𝙷𝚊𝚣𝚎𝚖 𝙵. 𝙰𝚕-𝙷𝚞𝚝𝚑𝚊𝚒𝚏𝚒)
Which is more effective while calling the c++ functions?
whine call by ...........
whine call by ...........
Anonymous Quiz
5%
Object
9%
Pointer
78%
Reference
8%
Value
Forwarded from علم البيانات | DS2 Quizes (𝙴𝚗𝚐. 𝙷𝚊𝚣𝚎𝚖 𝙵. 𝙰𝚕-𝙷𝚞𝚝𝚑𝚊𝚒𝚏𝚒)
Which of the following is used to terminate the function prototype in c++?
Anonymous Quiz
82%
;
9%
)
4%
:
5%
All
Forwarded from علم البيانات | DS2 Quizes (𝙴𝚗𝚐. 𝙷𝚊𝚣𝚎𝚖 𝙵. 𝙰𝚕-𝙷𝚞𝚝𝚑𝚊𝚒𝚏𝚒)
An inline function is expanded during ...........?
Anonymous Quiz
11%
End of the program
34%
Run-time
7%
Never expanded
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
61%
ios::beg
5%
ios::cur
13%
ios::first
20%
ios::start
Forwarded from علم البيانات | DS2 Quizes (𝙴𝚗𝚐. 𝙷𝚊𝚣𝚎𝚖 𝙵. 𝙰𝚕-𝙷𝚞𝚝𝚑𝚊𝚒𝚏𝚒)
Which of the following is used to create output stream?
Anonymous Quiz
75%
ofstream
9%
ifstream
15%
iostream
2%
fsstream
Forwarded from علم البيانات | DS2 Quizes (𝙴𝚗𝚐. 𝙷𝚊𝚣𝚎𝚖 𝙵. 𝙰𝚕-𝙷𝚞𝚝𝚑𝚊𝚒𝚏𝚒)
Which header file is required to used file 1/0 operations?
<............>
<............>
Anonymous Quiz
17%
ifstream
5%
ostream
11%
iostream
66%
fstream
Forwarded from علم البيانات | DS2 Quizes (𝙴𝚗𝚐. 𝙷𝚊𝚣𝚎𝚖 𝙵. 𝙰𝚕-𝙷𝚞𝚝𝚑𝚊𝚒𝚏𝚒)
The data elemets in the structure are known as what?
Anonymous Quiz
5%
Object
72%
Members
8%
Data
15%
Object & Data
Forwarded from علم البيانات | DS2 Quizes (𝙴𝚗𝚐. 𝙷𝚊𝚣𝚎𝚖 𝙵. 𝙰𝚕-𝙷𝚞𝚝𝚑𝚊𝚒𝚏𝚒)
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
Forwarded from علم البيانات | DS2 Quizes (𝙴𝚗𝚐. 𝙷𝚊𝚣𝚎𝚖 𝙵. 𝙰𝚕-𝙷𝚞𝚝𝚑𝚊𝚒𝚏𝚒)
Overloading maybe preformed more compact and convenient by......?
Anonymous Quiz
55%
Overloading function
30%
function templates
14%
inline function
2%
none
Forwarded from علم البيانات | DS2 Quizes (𝙴𝚗𝚐. 𝙷𝚊𝚣𝚎𝚖 𝙵. 𝙰𝚕-𝙷𝚞𝚝𝚑𝚊𝚒𝚏𝚒)
All function template definitions begin with the ...........?
Anonymous Quiz
40%
template keyword
31%
template parameter list
18%
template void type
11%
none of them
Forwarded from علم البيانات | DS2 Quizes (𝙴𝚗𝚐. 𝙷𝚊𝚣𝚎𝚖 𝙵. 𝙰𝚕-𝙷𝚞𝚝𝚑𝚊𝚒𝚏𝚒)
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; }
#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
Forwarded from علم البيانات | DS2 Quizes (𝙴𝚗𝚐. 𝙷𝚊𝚣𝚎𝚖 𝙵. 𝙰𝚕-𝙷𝚞𝚝𝚑𝚊𝚒𝚏𝚒)
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; }
#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
Forwarded from علم البيانات | DS2 Quizes (𝙴𝚗𝚐. 𝙷𝚊𝚣𝚎𝚖 𝙵. 𝙰𝚕-𝙷𝚞𝚝𝚑𝚊𝚒𝚏𝚒)
ماهي مخرجات الكود التالي :
int x = 5;
int y = 10; cout << (x == y)<< (x != y) << endl;
int x = 5;
int y = 10; cout << (x == y)<< (x != y) << endl;
Anonymous Quiz
14%
5 10
52%
0 1
34%
Error
Forwarded from علم البيانات | DS2 Quizes (𝙴𝚗𝚐. 𝙷𝚊𝚣𝚎𝚖 𝙵. 𝙰𝚕-𝙷𝚞𝚝𝚑𝚊𝚒𝚏𝚒)
A struct is ................?
Anonymous Quiz
21%
definition
12%
declaration
36%
members
30%
definition and declaration
Forwarded from علم البيانات | DS2 Quizes (𝙴𝚗𝚐. 𝙷𝚊𝚣𝚎𝚖 𝙵. 𝙰𝚕-𝙷𝚞𝚝𝚑𝚊𝚒𝚏𝚒)
Forwarded from علم البيانات | DS2 Quizes (𝙴𝚗𝚐. 𝙷𝚊𝚣𝚎𝚖 𝙵. 𝙰𝚕-𝙷𝚞𝚝𝚑𝚊𝚒𝚏𝚒)
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
Forwarded from علم البيانات | DS2 Quizes (𝙴𝚗𝚐. 𝙷𝚊𝚣𝚎𝚖 𝙵. 𝙰𝚕-𝙷𝚞𝚝𝚑𝚊𝚒𝚏𝚒)
All are correct ,except one sentence.
it is .......?
it is .......?
Anonymous Quiz
17%
struct is a reserved word
22%
memory is allocated for a struct
33%
memory is allocated only when variable are declared
27%
struct is a collection of afixed number of components
Forwarded from علم البيانات | DS2 Quizes (𝙴𝚗𝚐. 𝙷𝚊𝚣𝚎𝚖 𝙵. 𝙰𝚕-𝙷𝚞𝚝𝚑𝚊𝚒𝚏𝚒)
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
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