الفريق العربي للبرمجةأرشيف المنتديات · 2000 – 2023
نسخة أرشيفية للقراءة فقط — التسجيل والمشاركة مغلقان، والمحتوى محفوظ كما كان.

أسئلة نظرية

مغلق
بدأه الحذر في 9 أبريل 2006 · 2 رد · 951 مشاهدة · في ارشيف قسم C/C++
مشاركة: واتساب X فيسبوك تيليجرام
#1 صاحب الموضوع

السلام عليكم انا عندي اسئلة نظرية أغلبها الحمد لله عرفت حلها

بس في البعض يتوه

1-the statement if(x==20)cin>>x ; does not change the value of x if the value of x =20

2-Comments in programs increase execution

3-Using global variable in function is good programming

4-The switch statement is fully equivalent to the if/else/else statement

5-Assuming x is true,yis true and z is false the value of the logical expression not(xory andz)is true

6-Apredicate is a function that returns a truth value

7-Stepwise refinement is breaking a diffcult task into simpler tasks

8-The loop for(i=10;i<=40;i+=5)is executes 6 times

9-A variable of type ofstream is used for reading from a file

10-A stack is a sequential LIFO(last input first output) data structure

11-Aggregation in C++ is implemented by using data fields

12-The purpose of a constructor is to initialize the data fields of an object

13-Encapsulation provides protection but not information hiding

14-An object can have more than one constructor

15-The statement int*x allocates memory from the heap during execution

16-C++ does not support dynamic memory management

17-The statement new int defines a new pointer variable

18- Inheritance represents an is-a relationship

إجاباتي:

1-صح 2- خطأ 3- صح 4- خطأ 5- صح 6- ؟ 7-؟ 8-؟ 9- صح 10- صح 11-؟ 12- صح 13- خطأ 14-صح

15- صح 16- خطأ 17- صح 18- ؟

اسف على الاطالة لا تحرمونا خبراتكم و شو في اجاباتي اذا كان صح ولا خطأ

و السلام عليكم و رحمة الله و بركاته

;)

I_can_always_make_you_smile_by_Praerion.jpg

#2

15- خطأ

the memory heap only used when the program use the word (new)

18-صح

ENG. IMAD, Programing is a way of life, It's in the air, we breath It's pumps through our veines, Without it, we soon crumble to dust

#3

i just make a quick look so there maybe other mistakes but i did not recognize them

ENG. IMAD, Programing is a way of life, It's in the air, we breath It's pumps through our veines, Without it, we soon crumble to dust

هذا الموضوع مغلق.

مواضيع مشابهة

عدد الزوار حالياً

المتواجدون خلال آخر دقيقتين · يتحدّث كل ٣٠ ثانية

—الإجمالي—أعضاء مسجّلون—زوار بدون تسجيل

جارٍ التحقق من المتواجدين…