![]() |
|
|
Регистрация Восстановить пароль |
Регистрация | Задать вопрос |
Заплачу за решение |
Новые сообщения |
Сообщения за день |
Расширенный поиск |
Правила |
Всё прочитано |
![]() |
|
Опции темы | Поиск в этой теме |
![]() |
#1 |
Новичок
Джуниор
Регистрация: 10.05.2014
Сообщений: 3
|
![]()
Экзамен, дали 2 часа! Помогите пожалуйста с ответами!
What does OOP stand for? Object-Oriented Programming Object-Oriented Post Organization-Object Programming Object-Organization Programming There is no correct answer From what we can create an object? Operator Class Variable Function There is no correct answer According to lecture presentations, how many principle of OOP exist? 1 2 3 4 There is no correct answer Which one is principle of OOP? Data abstraction Operator Function Structured-programming There is no correct answer Which one is not principle of OOP? Inheritance Polymorphism Data Encapsulation Layering There is no correct answer What is definition of data abstraction? Representing data as template Wrapping of data and associated functions in one single unit Act of representing the essential features without including the background Capability of one class to inherit properties from other class details There is no correct answer What is definition of encapsulation? Representing data as template Wrapping of data and associated functions in one single unit Act of representing the essential features without including the background Capability of one class to inherit properties from other class details There is no correct answer What is definition of inheritance? Representing data as template Wrapping of data and associated functions in one single unit Act of representing the essential features without including the background Capability of one class to inherit properties from other class details There is no correct answer What does "Polymorphism" word mean? One form Two forms Three forms Many forms There is no correct answer I want to create a header file, in what format should I save the file? .cpp .exe .h .header There is no correct answer I have a class with name "Real", what is the signature of that class's constructor with empty parameters? Real() void Real() int Real() ~Real() There is no correct answer I have a class with name "Real", what is the signature of that class's destructor? Real() void Real() int Real() ~Real() There is no correct answer Once I initialized constant variable, is it possible for me to change it later using "=" operator? Yes No Yes, if const variable is public Yes, if const variable is private There is no correct answer Using what operator I initialize constant variable in constructor of class? = : :: -> There is no correct answer Is it possible to call nonconstant public member function from constant object? Yes No Possible, if member function is public Possible, if member function is private There is no correct answer Is it possible to call constant public member function from constant object? Yes No Sometimes it is possible Possible, if member function is private There is no correct answer Is it possible to call constant public member function from nonconstant object? Yes No Sometimes it is possible If object from abstract class, then it is possible There is no correct answer What keyword should I use while declaring constant variable int n? constant int n; const int n; int n; static int n; There is no correct answer Which of the following operators can be overloaded? % .* :: ?: There is no correct answer Which of the following operators can not be overloaded? + new >> ?: There is no correct answer Is it possible to overload operator ++(prefix) as member function? Yes No Sometimes it is possible If object from abstract class, then it is possible There is no correct answer Is it possible to overload operator ++(prefix) as friend function? Yes No Sometimes it is possible If object from abstract class, then it is possible There is no correct answer Can we do operator overloading if two operands are not objects? Yes No Sometimes it is possible If object from abstract class, then it is possible There is no correct answer What 2 types of operator overloading exist? Internal and external Inline and outline Unary and binary Unary and polynary There is no correct answer An unary operator, applied to an object x, is invoked either as operator(x) or? x.operator() operator():x operator().x operator()->x There is no correct answer |
![]() |
![]() |
![]() |
#2 |
Новичок
Джуниор
Регистрация: 10.05.2014
Сообщений: 3
|
![]()
A binary operator, applied to the objects*x*and*y, is called either as*operator(x,y)*or?
x.operator(y) x.operator().y y.operator(x) y.operator()->x There is no correct answer What is another name for "base class" Header class Parent class Head class Mother class There is no correct answer What is another name for "derived class" Subclass Daughter class Down class Master class There is no correct answer How many inheritance types do exist? 1 2 3 4 There is no correct answer Which one is not inheritance type? public private protected static There is no correct answer How many copies does memory save when static variable is declared? One Two Depends on number of objects Many copies, more than two There is no correct answer By default, every static variable equal to what? 0 1 garbage in memory -1 There is no correct answer Which one is not right use of key word "this" with int x? this.x this->x (*this).x All of above are true There is no correct answer I have 3 classes - A,B and C. A is base class, B derives from A and C derives from B. In what order will constructor launch, if I create an object of class C in main function? From class A, then B and then C From class C, then B and then A From class B, then A and then C From class B, then C and then A There is no correct answer I have 3 classes - A,B and C. A is base class, B derives from A and C derives from B. In what order will destructors launch, if I create an object of class C in main function? From class A, then B and then C From class C, then B and then A From class B, then A and then C From class B, then C and then A There is no correct answer Using what keyword in C++ we use dynamic allocation of memory? static new public this There is no correct answer I created an object of specific class using dynamic allocation of memory. Using what keyword I may destroy that object in memory? static public this delete There is no correct answer I have 2 classes A and B, B derives from A through protected inheritance. Then all public member functions in A class become in derived classes as? public protected private No true answer There is no correct answer I have 2 classes A and B. B class wants to inherit from A through public inheritance. How it should be written in C++? class B ![]() class A ![]() class B: ![]() class A: ![]() There is no correct answer What is definition of polymorphism? It enables us to "program in the general" rather than "program in the specific“ Wrapping of data and associated functions in one single unit Act of representing the essential features without including the background Capability of one class to inherit properties from other class details There is no correct answer Using what keyword we can warn C++ compiler that this member function might be overriden in derived class? virtual static abstract Interface There is no correct answer What is the name of virtual member function that must be overriden in derived class? pure virtual function clear virtual function abstract virtual function abstract function There is no correct answer To what value should pure virtual function must be equal to? 0 1 2 Null There is no correct answer What is the name of class that has at least one pure virtual function in it? Interface class Abstract class Virtual class Pure virtual class There is no correct answer Is it possible to create objects from abstract class? Yes No Sometimes it is possible If there are more than one pure virtual function, then it is possible There is no correct answer From what type of classes we can create objects? Concrete class Abstract class Virtual class Pure virtual class There is no correct answer What is virtual function? It is as simple function It is a*function*whose behaviour can be*overridden*within an inheriting class by a function with the same*signature It is a function, which tells compiler that it does not exist in memory There is no any virtual functions in C++ There is no correct answer What is benefit from polymorphism principle in OOP? It enables us to "program in the specific" rather than "program in the general“ It can eliminate the need for unnecessary switch logic There is no polymorphism principle in C++ programming language No true answer There is no correct answer There is a program. What will be the output? Real Madrid Manchester United Real Madrid Manchester United No true answer There is no correct answer There is a program. What will be the result? 0 1 2 3 There is no correct answer |
![]() |
![]() |
![]() |
#3 |
Новичок
Джуниор
Регистрация: 10.05.2014
Сообщений: 3
|
![]()
I have 3 classes - A, B and C. A is base class, B derives from A and C derives from B. In what order will constructor launch, if I create an object of class C in main function?
From class A, then B and then C From class C, then B and then A From class B, then A and then C From class B, then C and then A There is no correct answer I have 3 classes - A,B and C. A is base class, B derives from A and C derives from B. In what order will destructors launch, if I create an object of class C in main function? From class A, then B and then C From class C, then B and then A From class B, then A and then C From class B, then C and then A There is no correct answer Using what keyword in C++ we use dynamic allocation of memory? static new public this There is no correct answer I created an object of specific class using dynamic allocation of memory. Using what keyword I may destroy that object in memory? static public this delete There is no correct answer |
![]() |
![]() |
![]() |
![]() |
||||
Тема | Автор | Раздел | Ответов | Последнее сообщение |
запрограммировать в делфи 7 тест Лири и тест Торстона через базу данных (курсовая на 1-м курсе) | mekil | Помощь студентам | 10 | 10.06.2014 17:56 |
тест на C# | Slavik3 | Помощь студентам | 0 | 13.10.2012 14:44 |
Тест | Нешарю | Помощь студентам | 2 | 27.11.2011 17:52 |
тест на C# | Айат | Помощь студентам | 0 | 22.01.2010 19:54 |