0% found this document useful (0 votes)
4 views6 pages

Object Oriented Programingعملي

The document contains an examination report for a student named Fatima Khairy Ahmed Mohamed Aboalatta, who scored 10 out of 20 in an Object Oriented Programming practical and oral test. It includes personal details such as email, student ID, and national ID, as well as questions and answers related to C++ programming concepts. The document also features a code snippet for a C++ application to calculate the area of a circle.

Uploaded by

abdoalsenaweabdo
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views6 pages

Object Oriented Programingعملي

The document contains an examination report for a student named Fatima Khairy Ahmed Mohamed Aboalatta, who scored 10 out of 20 in an Object Oriented Programming practical and oral test. It includes personal details such as email, student ID, and national ID, as well as questions and answers related to C++ programming concepts. The document also features a code snippet for a C++ application to calculate the area of a circle.

Uploaded by

abdoalsenaweabdo
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

‫إجمالي النقاط ‪10/20‬‬ ‫‪Object Oriented Programing‬‬

‫اختبارالعملى والشفهى للمستوى االول برنامج الذكاء االصطناعى الحيوى مادة البرمجه الشيئيه‬

‫عنوان بريد إلكتروني *‬


‫‪[email protected]‬‬

‫‪ 0‬من إجمالي ‪ 0‬نقطة‬

‫اسم الطالب كامال باللغه العربيه كما هو مدون بقوائم الكليه *‬


‫فاطمة خيري احمد محمد ابوالعطا‬

‫رقم الجلوس المستخدم فى امتحانات الفصل الدراسى االول باللغه االنجليزيه *‬


‫‪30206168800969‬‬

‫الرقم القومى للطالب باللغه االنجليزيه وفى حالة الطالب الوافدين رقم جواز السفر باللغة االنجليزيه *‬
‫‪30206168800969‬‬

‫صورة كارنيه الكليه الخاص بالطالب‬

‫‪…a Aboalatta.jpeg‬‬
* ‫رقم الجلوس المستخدم فى امتحانات الفصل الدراسى االول باللغه االنجليزيه‬
30206168800969

* ‫رقم الهاتف باللغه االنجليزيه‬


01025063204

‫ نقطة‬10 ‫ من إجمالي‬10 ‫السؤال االول‬

1/1 * Structures and Classes in C++ are differ from each others

True

False

1/1 * ? what is correct of the following

A class is an instance of its objects

An object is an instance of its class

A class is an instance of the data type that the class have

An object is an instance of the data type of the class


1/1 * ?If structures and classes are differ, which of the following is correct

In Structures, members are public by default whereas, in Classes, they are private
by default

In Structures, members are private by default whereas, in Classes, they are public by
default

Structures by default hide every member whereas classes do not

none of them is right

1/1* what is the minimum number of arguments received with the


?destructor of a class

none of them is right

1/1 * ?Enumerators are stored by the compiler as int

True

False
1/1 * what will be the output of the following code

323334

323232

323130

323134

1/1 * ?the function in the following code is overloaded

True

False
1/1 * References and pointers are different from each others because

A reference cannot be made null

A reference cannot be changed once initialized

No extra operator is needed for dereferencing of a reference

All of the mentioned

1/1 * The other name used for functions inside a class is

Member variables

Member functions

Class functions

Class variables

1/1 * ?Which of the following is an abstract ( user defined) data type

int

float

class

string

‫ نقطة‬10 ‫ من إجمالي‬0 ‫السؤال الثانى‬


1/···* Create a C++ application using class, default constructor, and
0 accessing data members of a class out the scope of the class to
.calculate the area of a circle and the user must enter the radius

>include <iostream#
;using namespace std
;float pi = 3.14

class Circle
{
:private
;float radius

:public
)(Circle
};radius = 0{
)(void get_R
{
;cout << "please Enter The radius: "<< endl
};cin >> radius
)(float find_Area
{
};return pi*radius*radius
)(void display
{
};cout << "area is: " << find_Area() << endl

;}

)(int main
{
;Circle circle
;)(circle.get_R
;)(circle.display
;return 0
}

‫ سياسة الخصوصية‬- ‫ شروط الخدمة‬- .Google ‫لم يتم إنشاء هذا المحتوى وال اعتماده من ِقبل‬

‫نماذج‬

You might also like