Quiz
Ohne Titel
Erstelle ein kostenloses Konto, um dieses Quiz zu beenden
Speichere deinen Fortschritt und sieh dir dein Endergebnis an.
oder mit deiner E-Mail registrieren
Schon ein Konto? Anmelden
Fragen in diesem Quiz (92)
1What does OOP stand for?
- AObject-Oriented Programming
- B Object-Oriented Post
- COrganization-Object Programming
- D Object-Organization Programming
- E There is no correct answer
2From what we can create an object?
- AOperator
- BClass
- CVariable
- DFunction
- EThere is no correct answer
3According to lecture presentations, how many principle of OOP exist?
- A1
- B2
- C3
- D4
- EThere is no correct answer
44. Which one is principle of OOP?
- AData abstraction
- BOperator
- CFunction
- DStructured-programming
- EThere is no correct answer
55. Which one is not principle of OOP?
- AInheritance
- BPolymorphism
- CData Encapsulation
- DLayering
- EThere is no correct answer
66. What is definition of data abstraction?
- ARepresenting data as template
- BWrapping of data and associated functions in one single unit
- CAct of representing the essential features without including the background
- DCapability of one class to inherit properties from other class details
- EThere is no correct answer
77. What is definition of encapsulation?
- ARepresenting data as template
- BWrapping of data and associated functions in one single unit
- CAct of representing the essential features without including the background
- DCapability of one class to inherit properties from other class details
- EThere is no correct answer
88. What is definition of inheritance?
- ARepresenting data as template
- BWrapping of data and associated functions in one single unit
- CAct of representing the essential features without including the background
- DCapability of one class to inherit properties from other class details
- EThere is no correct answer
99. What does "Polymorphism" word mean?
- AOne form
- BTwo forms
- CThree forms
- DMany forms
- EThere is no correct answer
1010. I want to create a header file, in what format should I save the file?
- A.cpp
- B.exe
- C.h
- D.header
- EThere is no correct answer
1111. I have a class with name "Real", what is the signature of that class's constructor with empty parameters?
- AReal()
- Bvoid Real()
- Cint Real()
- D~Real()
- EThere is no correct answer
1212. I have a class with name "Real", what is the signature of that class's destructor?
- AReal()
- Bvoid Real()
- Cint Real()
- D~Real()
- EThere is no correct answer
1313. Once I initialized constant variable, is it possible for me to change it later using "=" operator?
- AYes
- BNo
- CYes, if const variable is public
- DYes, if const variable is private
- EThere is no correct answer
1414. Using what operator I initialize constant variable in constructor of class?
- A=
- B:
- C::
- D->
- EThere is no correct answer
1515. Is it possible to call nonconstant public member function from constant object?
- AYes
- BNo
- CPossible, if member function is public
- DPossible, if member function is private
- EThere is no correct answer
1616. Is it possible to call constant public member function from constant object?
- AYes
- BNo
- CSometimes it is possible
- DPossible, if member function is private
- EThere is no correct answer
1717. Is it possible to call constant public member function from nonconstant object?
- AYes
- BNo
- CSometimes it is possible
- DIf object from abstract class, then it is possible
- EThere is no correct answer
1818. What keyword should I use while declaring constant variable int n?
- Aconstant int n;
- Bconst int n;
- Cint n;
- Dstatic int n;
- EThere is no correct answer
1919. Which of the following operators can be overloaded?
- A%
- B.*
- C::
- D?:
- EThere is no correct answer
2020. Which of the following operators can not be overloaded?
- A+
- Bnew
- C>>
- D?:
- EThere is no correct answer
2121. Is it possible to overload operator ++(prefix) as member function?
- AYes
- BNo
- CSometimes it is possible
- DIf object from abstract class, then it is possible
- EThere is no correct answer
2222. Is it possible to overload operator ++(prefix) as friend function?
- AYes
- BNo
- CSometimes it is possible
- DIf object from abstract class, then it is possible
- EThere is no correct answer
2323. Can we do operator overloading if two operands are not objects?
- A• Yes
- BNo
- CSometimes it is possible
- DIf object from abstract class, then it is possible
- EThere is no correct answer
2424. What 2 types of operator overloading exist?
- AInternal and external
- BInline and outline
- CUnary and binary
- DUnary and polynary
- EThere is no correct answer
2525. An unary operator, applied to an object x, is invoked either as operator(x) or?
- Ax.operator()
- Boperator():x
- Coperator().x
- Doperator()->x
- EThere is no correct answer
2626. A binary operator, applied to the objects x and y, is called either as operator(x,y) or?
- Ax.operator(y)
- Bx.operator().y
- Cy.operator(x)
- Dy.operator()->x
- EThere is no correct answer
2727. What is another name for "base class"
- AHeader class
- BParent class
- CHead class
- DMother class
- EThere is no correct answer
2828. What is another name for "derived class"
- ASubclass
- BDaughter class
- CDown class
- DMaster class
- EThere is no correct answer
2929. How many inheritance types do exist?
- A1
- B2
- C3
- D4
- EThere is no correct answer
3030. Which one is not inheritance type?
- Apublic
- Bprivate
- Cprotected
- Dstatic
- EThere is no correct answer
3131. How many copies does memory save when static variable is declared?
- AOne
- BTwo
- CDepends on number of objects
- DMany copies, more than two
- EThere is no correct answer
3232. By default, every static variable equal to what?
- A0
- B1
- Cgarbage in memory
- D-1
- EThere is no correct answer
3333. Which one is not right use of key word "this" with int x?
- Athis.x
- Bthis->x
- C(*this).x
- DAll of above are true
- EThere is no correct answer
3434. 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?
- AFrom class A, then B and then C
- BFrom class C, then B and then A
- CFrom class B, then A and then C
- DFrom class B, then C and then A
- EThere is no correct answer
3535. 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?
- AFrom class A, then B and then C
- BFrom class C, then B and then A
- CFrom class B, then A and then C
- DFrom class B, then C and then A
- EThere is no correct answer
3636. Using what keyword in C++ we use dynamic allocation of memory?
- Astatic
- Bnew
- Cpublic
- Dthis
- EThere is no correct answer
3737. I created an object of specific class using dynamic allocation of memory. Using what keyword I may destroy that object in memory?
- Astatis
- Bpublic
- Cthis
- Ddelete
- EThere is no correct answer
3838. 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?
- Apublic
- Bprotected
- Cprivate
- DNo true answer
- EThere is no correct answer
3939. I have 2 classes A and B. B class wants to inherit from A through public inheritance. How it should be written in C++?
- A• class B:public A
- B• class A:public B
- C• class B::public A
- D• class A::public B
- E• There is no correct answer
4040. What is definition of polymorphism?
- A• It enables us to "program in the general" rather than "program in the specific“
- B• Wrapping of data and associated functions in one single unit
- C• Act of representing the essential features without including the background
- D• Capability of one class to inherit properties from other class details
- E• There is no correct answer
4141. Using what keyword we can warn C++ compiler that this member function might be overriden in derived class?
- Avirtual
- Bstatic
- Cabstract
- Dinterface
- EThere is no correct answer
4242. What is the name of virtual member function that must be overriden in derived class?
- A• pure virtual function
- B• clear virtual function
- C• abstract virtual function
- D• abstract function
- E• There is no correct answer
4343. To what value should pure virtual function must be equal to?
- A0
- B1
- C2
- DNull
- EThere is no correct answer
4444. What is the name of class that has at least one pure virtual function in it?
- AInterface class
- BAbstract class
- CVirtual class
- DPure virtual class
- EThere is no correct answer
4545. Is it possible to create objects from abstract class?
- AYes
- BNo
- CSometimes it is possible
- DIf there are more than one pure virtual function, then it is possible
- EThere is no correct answer
4646. From what type of classes we can create objects?
- AConcrete class
- BAbstract class
- CVirtual class
- DPure virtual class
- EThere is no correct answer
4747. What is virtual function?
- A• It is as simple function
- B• It is a function whose behaviour can be overridden within an inheriting class by a function with the same signature
- C• It is a function, which tells compiler that it does not exist in memory
- D• There is no any virtual functions in C++
- E• There is no correct answer
4848. What is benefit from polymorphism principle in OOP?
- A• It enables us to "program in the specific" rather than "program in the general“
- B• It can eliminate the need for unnecessary switch logic
- C• There is no polymorphism principle in C++ programming language
- D• No true answer
- E• There is no correct answer
4962. What feature in C++ programming language allow functions and classes operate with generic types?
- ATemplate
- BEncapsulation
- CException
- DOperator overloading
- EThere is no correct answer
5063. How many types of template do exist?
- A1
- B2
- C3
- D4
- EThere is no correct answer
5164. Which of the following are 2 types of template?
- A• First and second
- B• Class and function
- C• Class and object
- D• Internal and external
- EThere is no correct answer
5265. What keywords we use in exception handling?
- A• try, catch, throw
- B• try, catch, show
- C• try, catch, continue
- D• catch, throw, namespace
- E• There is no correct answer
5366. What does STL stand for?
- A• Standard Template Library
- B• Standard Template Language
- C• Scroll Timed Listening
- D• System Timer Line
- E• There is no correct answer
5467. Which one is NOT component of STL?
- AAlgorithm
- BIterator
- CContainer
- DException Handling
- EThere is no correct answer
5568. Which one is component of STL?
- AIterator
- BPolymorphism
- CInheritance
- DOperator overloading
- EThere is no correct answer
5669. According to lecture presentation how many sequence containers exist?
- A1
- B2
- C3
- D4
- EThere is no correct answer
5770. Which one is type of sequence containers?
- ASet
- BMap
- CStack
- DVector
- EThere is no correct answer
5871. Which one is NOT type of sequence containers?
- AVector
- BList
- CDeque
- DSet
- EThere is no correct answer
5972. Which one is type of associative containers?
- ASet
- BVector
- CList
- DStack
- EThere is no correct answers
6073. Which one is NOT type of associative containers?
- ASet
- BMulticet
- CStack
- DMap
- EThere is no correct answer
6174. Which one is type of adapter containers?
- ASet
- BStack
- CList
- DVector
- EThere is no correct answer
6275. According to lecture presentation how many associative containers do exist?
- A1
- B2
- C3
- D4
- EThere is no correct answer
6376. I want to use vector container from STL, what library should I include to program?
- A#include vector
- B#include sequense
- C#include vectors
- D#include using namespace std
- EThere is no correct answer
6477. I want to use list container from STL, what library should I include to program?
- A#include list
- B#include lists
- C#include containers
- D#include vector
- EThere is no correct answer
6578. I want to use deque container from STL, what library should I include to program?
- A#include deque
- B#include que
- C#include containers
- D#include vector
- EThere is no correct answer
6679. I want to use set container from STL, what library should I include to program?
- A#include set
- B#include map
- C#include containers
- D#include sets
- EThere is no correct answer
6780. I want to use multiset container from STL, what library should I include to program?
- A#include set
- B#include map
- C#include containers
- D#include multiset
- EThere is no correct answer
6881. I want to use map container from STL, what library should I include to program?
- A• #include set
- B• #include map
- C• #include containers
- D• #include maps
- EThere is no correct answer
6982. I want to use multimap container from STL, what library should I include to program?
- A• #include set
- B• #include map
- C• #include containers
- D• #include multimaps
- EThere is no correct answer
7083. Which of the following containers’ elements are stored as a node?
- AList
- BVector
- CDeque
- DAll sequence containers' elements are stored as a node
- EThere is no correct answer
7184. Which of the following containers’ elements are stored as blocks?
- AList
- BVector
- CDecue
- DAll sequence containers' elements are stored as a node
- E• There is no correct answer
7285. Which of the following containers store its own elements NOT in contiguous memory?
- AVector
- BList
- CAll sequence containers' do not store its own elements in contiguous memory
- DAll sequence containers' store its own elements in contiguous memory
- EThere is no correct answer
7386. From which of the following containers' elements(or values) can not be modified?
- AVector
- BSet
- CMap
- DMultimap
- EThere is no correct answer
7487. Which of the following containers can not have duplicate elements(or values)?
- AVector
- BSet
- CDeque
- DStack
- EThere is no correct answer
7588. Which of the following containers, random access is allowed?
- AStack
- BList
- CVector
- DAll containers may use random access
- EThere is no correct answer
7689. Which of the following containers, random access is NOT allowed?
- AVector
- BDeque
- CMap
- DStack
- EThere is no correct answer
7790. Which one is not function of Stack container?
- A• push()
- B• pop()
- C• top()
- D• push_front()
- E• There is no correct answer
7891. Which one is NOT function of Vector container?
- A• push_back()
- B• pop()
- C• pop_back()
- D• insert()
- E• There is no correct answer
7992. Which one is NOT function of Deque container?
- Apush_front()
- Bpop()
- Cpop_back()
- Derase()
- EThere is no correct answer
8093. Which one is function of Stack container?
- Apush_back()
- Bpop()
- Cpop_back()
- Dpush_front()
- EThere is no correct answer
8194. What library should be included to use functions like sort(),reverse() and swap()?
- A#include algorithm
- B#include STL
- C#include containers
- D#include iostream
- EThere is no correct answer
8295. Programmer wants to sort array's elements in ascending order, what function he may use from algorithm library?
- Asort()
- Bunsort()
- Creverse()
- DSwap
- EThere is no correct answer
8396. Programmers wants to identify minimum element of 2 integer variables(x and y), what function he may use from algorithm library?
- A• min(x,y)
- B• minimum(x,y)
- C• m(x,y)
- D• max(x,y)
- E• There is no correct answer
8497. Programmers wants to identify maximum element of 2 integer variables(x and y), what function he may use from algorithm library?
- A• max(x,y)
- B• maximum(x,y)
- C• m(x,y)
- D• min(x,y)
- E• There is no correct answer
8598. What technique does Stack container use?
- ALILO
- BLIFO
- CFIFO
- DFILO
- EThere is no correct answer
8699. According to lecturer presentation what STL container use "key" and "value" concepts?
- AVector
- BMap
- CList
- DDeque
- EThere is no correct answer
87100. Which of the following containers always sort its own elements in ascending order?
- AVector
- BList
- CStack
- DSet
- EThere is no correct answer
88101. What is multimap container?
- A• Same as map,but allows duplicate keys
- BSame as map,but do not allow duplicate keys
- CSame as set,but allows duplicate keys
- DSame as set,but do not allow duplicate keys
- E• There is no correct answer
89177. 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?
- A• From class A, then B and then C
- B• From class C, then B and then A
- C• From class B, then A and then C
- D• From class B, then C and then A
- E• There is no correct answer
90178. 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?
- AFrom class A, then B and then C
- B• From class C, then B and then A
- C• From class B, then A and then C
- DFrom class B, then C and then A
- E• There is no correct answer
91179. Using what keyword in C++ we use dynamic allocation of memory?
- Astatic
- Bnew
- Cpublic
- Dthis
- EThere is no correct answer
92180. I created an object of specific class using dynamic allocation of memory. Using what keyword I may destroy that object in memory?
- Astatic
- Bpublic
- Cthis
- Ddelete
- EThere is no correct answer
Informationen
- Beschreibung
- Quiz am Ohne Titel, erstellt von swd 04 am 02/06/2019.
- Autor
- swd 04
- Sprache
- English
- Aufrufe
- 3
- Bewertung
- Noch keine Bewertungen Bewerte dieses Quiz