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
❤2
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; }
#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
👍3❤2
❤2
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;
}
علم البيانات | 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…
What will be the output of the following C++ program?
Anonymous Quiz
10%
6522
23%
12200
48%
6533
18%
6553
👍3
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
❤1
Which of the following is important in a function?
Anonymous Quiz
7%
Function name
6%
Return type
33%
Both return type and function name
54%
The return type, function name and parameter list
👎5👍2🤔2
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); }
#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
❤1
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; }
#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.
❤2
كل هذه الأسئلة من نماذج سابقة للدكتور #موسى_غراب
👍5🫡3
علم البيانات | DS2 Quizes pinned «أسئلة في مادة البرمجة 2 #برمجة_2 #programming_2 SOON✨ 👇👇 #علم_البيانات الدفـعـ(1)ــة»
السلام عليكم ورحمة الله وبركاته
اسعد مساءكم بكل خير
الاخوة الطلاب
اللي يتذكر اسئلة من إختبار اليوم، نرجو منكم كتابتها، لكي ينتفع بها الدفع من بعدنا.
وكذلك نستفيد من كتابة الأسئلة في معرفة الأخطاء في إدخال الأسئلة إلى النظام.
الذي يتذكر الخيارات فقط يكتبها والذي يتذكر الأسئلة فقط يكتبها، والذي يتذكر الأسئلة والخيارات يكتبها.
يمكنكم إرسال أسئلة الاختبارات على بوت المشاركات:
@DS_Combot
كتب الله اجركم
اسعد مساءكم بكل خير
الاخوة الطلاب
اللي يتذكر اسئلة من إختبار اليوم، نرجو منكم كتابتها، لكي ينتفع بها الدفع من بعدنا.
وكذلك نستفيد من كتابة الأسئلة في معرفة الأخطاء في إدخال الأسئلة إلى النظام.
الذي يتذكر الخيارات فقط يكتبها والذي يتذكر الأسئلة فقط يكتبها، والذي يتذكر الأسئلة والخيارات يكتبها.
يمكنكم إرسال أسئلة الاختبارات على بوت المشاركات:
@DS_Combot
كتب الله اجركم
"كُن كالغيث ، إن أقبل استبشر الناس وإن رحل ظل أثره"
👍1
علم البيانات | DS2 Quizes
السلام عليكم ورحمة الله وبركاته اسعد مساءكم بكل خير الاخوة الطلاب اللي يتذكر اسئلة من إختبار اليوم، نرجو منكم كتابتها، لكي ينتفع بها الدفع من بعدنا. وكذلك نستفيد من كتابة الأسئلة في معرفة الأخطاء في إدخال الأسئلة إلى النظام. الذي يتذكر الخيارات فقط يكتبها…
اتمنئ من الكل المشاركة
بادرو مثل مايبادر طلاب الكليات الاخرى، فهم يقومون بعمل جماعي ويكتبون الاسئلة كاملة يفيدوا بها طلاب اخرين
🤍🤍🤍
بادرو مثل مايبادر طلاب الكليات الاخرى، فهم يقومون بعمل جماعي ويكتبون الاسئلة كاملة يفيدوا بها طلاب اخرين
🤍🤍🤍
❤1
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
🫡1
....... are like miniature programs and are called modules.
Anonymous Quiz
13%
Arrays
45%
Functions
17%
Pointers
25%
All of above
❤1
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
Which of the following is NOT a type of formal parameter?
Anonymous Quiz
14%
Value parameter
18%
Reference parameter
35%
Constant parameter
33%
Default parameter
🔥4❤1
Which of the following is the correct way to define a function prototype?
Anonymous Quiz
13%
functionName();
44%
functionType functionName(formal parameter list);
7%
return functionName;
35%
functionType functionName(formal parameter list) { function body }
🔥3❤1👍1
Which of the following is the correct way to call a value-returning function?
Anonymous Quiz
11%
functionName();
30%
functionType functionName(actual parameter list);
29%
return functionName;
30%
functionName(actual parameter list);
❤2
Which of the following is the correct way to define a void function?
Anonymous Quiz
9%
functionName();
69%
void functionName(formal parameter list);
8%
functionName(formal parameter list);
15%
All of above
❤1
Which of the following is the correct way to call a void function?
Anonymous Quiz
7%
int x= functionName();
34%
void functionName(actual parameter list);
44%
functionName(actual parameter list);
15%
cout<<functionName(actual parameter list);
👍5❤1