Модераторы: bsa
  

Поиск:

Закрытая темаСоздание новой темы Создание опроса
> C++, C++ Test 
:(
    Опции темы
ospanarman94
Дата 10.5.2014, 09:17 (ссылка)    | (голосов:1) Загрузка ... Загрузка ... Быстрая цитата Цитата


Новичок



Профиль
Группа: Участник
Сообщений: 1
Регистрация: 10.5.2014

Репутация: нет
Всего: нет



Please help with the test!

 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
PM MAIL   Вверх
JackYF
Дата 11.5.2014, 15:34 (ссылка) |    (голосов:2) Загрузка ... Загрузка ... Быстрая цитата Цитата


полуавантюрист
****


Профиль
Группа: Участник
Сообщений: 5814
Регистрация: 28.8.2004
Где: страна тысячи озё р

Репутация: 6
Всего: 162



Нет.


--------------------
Пожаловаться на меня как модератора можно здесь.
PM MAIL Jabber   Вверх
  
Закрытая темаСоздание новой темы Создание опроса
Правила форума "C/C++: Для новичков"
JackYF
bsa

Запрещается!

1. Публиковать ссылки на вскрытые компоненты

2. Обсуждать взлом компонентов и делиться вскрытыми компонентами

  • Действия модераторов можно обсудить здесь
  • С просьбами о написании курсовой, реферата и т.п. обращаться сюда
  • Вопросы по реализации алгоритмов рассматриваются здесь


Если Вам понравилась атмосфера форума, заходите к нам чаще! С уважением, JackYF, bsa.

 
0 Пользователей читают эту тему (0 Гостей и 0 Скрытых Пользователей)
0 Пользователей:
« Предыдущая тема | C/C++: Для новичков | Следующая тема »


 




[ Время генерации скрипта: 0.0664 ]   [ Использовано запросов: 22 ]   [ GZIP включён ]


Реклама на сайте     Информационное спонсорство

 
По вопросам размещения рекламы пишите на vladimir(sobaka)vingrad.ru
Отказ от ответственности     Powered by Invision Power Board(R) 1.3 © 2003  IPS, Inc.