Форум программистов, компьютерный форум CyberForum.ru

Помогите пожалуйста с тестом по ООП - C++

Войти
Регистрация
Восстановить пароль
Другие темы раздела
C++ Браузер на C++. Штат 5 человек http://www.cyberforum.ru/cpp/thread1170695.html
Здравствуйте. Такой вопрос вот с друзьями сидим обсуждаем идею касательно своего браузера, а именно реально ли в 5 написать браузер примерно за полгода и при этом не стать инвалидом?:)
C++ XML Parser Разбираюсь с open source проектом http://conv-net.sourceforge.net/doc/index.html свёрточная нейронная сеть вот, в котором в свою очередь как я понимаю для сохранения и считывания сети используется другой проект expat http://expat.sourceforge.net/ скачал его (работаю под windows 7 на Microsoft Visual Studio 2010) в настройках проекта в дополнительные каталоги включаемых файлов добавил путь ... http://www.cyberforum.ru/cpp/thread1167161.html
C++ Написать функцию, которая позволяет: исключить узел с заданной информационной частью
Написать функцию, которая позволяет: исключить узел с заданной информационной частью.
C++ Улучшения качества изображения путем его фильтрации
Может у кого есть приблизительный пример задачи: Задано многоградационное изображение в виде файла на вне- шнем магнитном носителе. Реализовать процедуру улучшения качества исходного изображения путем его фильтрации. Размер изображения 256х256 элементов Количество уровней квантования 16 Тип фильтрации масочная Тип...
C++ Wi-Fi роутер http://www.cyberforum.ru/cpp/thread1163274.html
Всем добрый день. Хотелось попросить помощи в разработке программного средства перепрограммирования wi fi роутера. Посоветуйте литературу или обьясните как подойти к решению этого вопроса. Жду ответа :)
C++ Удаление строки с RichTextBox по индексу Доброго времени суток. Подскажите пожалуйста как удалить строку с RichTextBox зная только её порядковый номер. Заранее спасибо. Добавлено через 23 часа 35 минут Всё разобрался. Тема не актуальна. подробнее

Показать сообщение отдельно
ospan_arman_94
Сообщений: n/a

Помогите пожалуйста с тестом по ООП - C++

10.05.2014, 10:04. Просмотров 499. Ответов 1
Метки (Все метки)

Помогите пожалуйста с тесттом!
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

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:public A
class A:public B
class B::public A
class A::public B
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
После регистрации реклама в сообщениях будет скрыта и будут доступны все возможности форума.
 
Текущее время: 01:12. Часовой пояс GMT +3.
КиберФорум - форум программистов, компьютерный форум, программирование
Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Рейтинг@Mail.ru