السلام عليكم انا عندي اسئلة نظرية أغلبها الحمد لله عرفت حلها
بس في البعض يتوه
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- ؟
اسف على الاطالة لا تحرمونا خبراتكم و شو في اجاباتي اذا كان صح ولا خطأ
و السلام عليكم و رحمة الله و بركاته
;)
