Quiz
sdp4
Crie uma conta grátis para terminar este quiz
Salve seu progresso e veja sua nota final.
Já tem uma conta? Inicie sessão
Perguntas do quiz (187)
1Choosing pivot and place all items smaller than pivot to the left and bigger ones to the
right, then repeat the same with two branches is similar to _____________ sort algorithm.- Aquick
- Bmerge
- Cbubble
- Dheap
2Inventor of merge sort is ?
- AJohn von Neumann
- BMr Merge
- CJohn Lennon
- DProfessor Sortmerg
3А collision occurs when ... ?
- Atwo keys hash to the same table index.
- Btwo values hash to the same table index
- Ctwo keys are hashed to big table inde and rehash needed
- Dimpossible to answer
4What are the two parts of ADT?
- Aprivate, public
- Bmethods and data fields
- CParent and Child
- DInt and Float
- EQueue and Stack
5List two ways of organizing hashtable.
- Aopen addressing and chaining
- Bkey and value
- Carraylist and vector
- DBreadth first search and Depth first search
6Which of them has more methods?
- ASubclass
- BSuperclass
- CParentclass
- DObject
7Indicate the relationship of HastableOpen and Entry classes?
- Ahas-a
- Bstatic
- Cis-b
- Dis-a
8The relationship when one class is defined inside the definition of another ?
- Ahas-a
- Bis
- Cis-a
9Which of them is NOT an example of Data Structure ?
- AArrayList
- BBreadth First Search
- CSet
- DPriority Queue
- EGraph
10Redefinition of method of superclass in a subclass with the same name and number of
parameters?- AOverride
- BOverload
- CPublic
- DEncapsulation
11A set view of a map can be obtained through method_______?
- AentrySet
- BsetView
- CgoAhead
- DemptySet
12Which of them is NOT feature of collection interface ?
- AGraph
- BList
- CQueue
- DVector
- ESet
13Redefinition of method with the same name but different number of parameters?
- AOverload
- BOverride
- CEncapsulation
- DPolymorphism
14 If you want to call the constructor of superclass you would use
- ASuper()
- BParent()
- Cthat()
15Quadratic probing is usually used to ?
- Areduce collisions
- Breallocate array
- Cfor fun
- Denlarge table size
16This returns TRUE if the collection contains object
- AFind(obj)
- BgoTo(obj)
- CindexF(obj)
- Dcontains(obj)
- EindexOf(obj)
17If you want to call different constructor of current class you would use
- Athis()
- Bthat()
- Canay()
- Dwhich()
18Elements of a List are accessed by means of an
- Aindex
- Bposition
- Cbook
- Dloop
- Eswitch
19Set of ordered pairs whose element are known as the key and value is ?
- Aset
- Bmap
- Cgraph
- Darray
20If there is at least one abstract method in a class, that class is called
- AAbstract class
- BChild class
- CParent class
- DNot given
21If there are no abstract methods in the class we call that class…
- AActual class
- BAbstract class
- CParent
- DSuperclass
22A list can ___ or ___ as items(elements) are added or removed
- Aflow, shrink
- Bgrow, shrink
- Cdecrease, think
- Dfly, sit
- Eincrease, grow
23Is it possible to inherit from multiple classes ?
- ANo
- BYes
24 Is it possible to implement multiple interfaces?
- Ano
- Byes
25 The Collection is a _____ of a List ?
- Asuperinterface
- Bfather
- Cnode
- Dparent
- Einterface
26Every class has _____as a superclass
- AObject(parent of classes)
- BObject(childof classes)
- CSuperclass
- Dint
27Which method returns an object at the top of a Stack in JAVA?
- Atop()
- Bpop()
- Cfront()
- Dpeek()
- Epoll()
28InstanceOf used to test
- AWhether an object belongs to class or not
- BDivision by zero may occur
- Cclass belongs to object
29Which method adds an item on the top of a Stack in JAVA?
- Aadd()
- Btop()
- Cpeek()
- Dpush()
- Ebush()
30Two JAVA API Implementation of Set and Map are
- Atree and hash
- Bgraph and vector
- Clist and hash
- Dtree and list
31What is not perfect in this code: ave = sum/count;
- ADivision by zero may occur
- BDivision by one may occur
- Cnothing
- Dnot given
32First in last out structure is...
- ATree
- BGraph
- CSet
- DQueue
- EStack
33Attempt to convert a string that is not numeric to a number faults …
- ANumberFormatException
- BArrayIndexOutOfBoundsException
- CDivisionByZero
34 Which structure is widely used in finding palindrome problem?
- AMap
- BStack
- CGraph
- DQueue
- ESet
35Average time complexity of Insertion sort is?
- AO(n^2)
- BO(1)
- CO(nlogn)
- DO(logn)
- EO(n)
36Attempt to access array element using index less than zero folds
- AArrayIndexOutOfBoundsException
- BNumberFormatException
- COutOfBoundsException
37Which container is not appropriate to implement Stack in JAVA?
- AArray
- BGraph
- CList
- DVector
38 ________ exception is an error normally due to programmer
- Aunchecked
- Bchecked
- Cnot given
- Dnull
39Which structure is widely used to calculate the value of postfix expression?
- AString
- BArray
- CSet
- DStack
- EQueue
40A hash table uses hashing to transform an items key into a table index so that iterations,
retrievals and deletions can be performed in expected ___________ time.- AO(1)
- BO(n)
- CO(n^2)
- DO(nlogn)
- EO(logn)
41________ exception is an error normally not due to programmer
- Aunchecked
- Bchecked
- Cnull
- Dnot given
42Calculate value of "4 7 * 20 - "
- A1
- B3
- C136
- D8
- E144
43ADT that enables a user to access information (data) corresponding to a specified key.
- AMap
- BQueue
- CSet
- DGraph
44Ability of object of one class to act like it is an object of another class is?
- AInheritance
- BPolymorphism
- CEncapsulation
- DJava code
- ESLOC (Source Line of Code)
45What does method empty return for empty stack?
- Anothing
- Bempty
- Chello
- Dtrue
- Efalse
46Which of the following is not example of visibility in Java ?
- AEclipse
- BJetBrains
- CNetBeans
47Waiting line of people is similar to which data structure?
- AGraph
- BStack
- CQueue
- DTree
- ELinkedList
48Sets the element on position Index to reference entry
- ASet (Index, Entry )
- BGEt(Index, Entry)
- CNothing
- DSet(Entry)
49Average time complexity of Merge sort is?
- AO(nlogn)
- BO(1)
- CO(logn)
- DO(n)
- EO(n^2)
50You can reference an object of a ___ type through a variable of a ___ type
- Asubclass, superclass
- Bsuperclass, subclass
- Csubclass, parent class
- Dinterface, subclass
51Most sorting algorithm are divided into two basic groups.
- Afast and slow
- Bgo amd play
- Csort and search
- Dordered and unordered
52What is the time complexity of insert(index) method in ArrayList
- AO(n)
- BO(n^2)
- CO(1)
- DO(n^3)
53You cast an object referenced by a___ type to an object of a___ type in order to apply methods of the___type to the object –___ :
- Asubclass, superclass, subclass, downcast
- Bsuperclass, subclass, subclass, downcast
- Csubclass, subclass, superclass, downcast
- Dsubclass, subclass, downcast, superclass
54Which structure is better to use when printing many documents from multiple computers at one printer?
- ASet
- BQueue
- CGraph
- DStack
- ETree
55What is the difference between ArrayList and Vector?
- AVector is synchronized, where ArrayList is not
- Bthere are same
- CArrayLIst is synchronized, where Vectoris not
56JAVA API uses ____________ to implement both Set and Map interfaces.
- Ahash table
- Btree table
- Cvector
- Dgraph
- EArrayList
57If we call remove() function for the queue, which item will be removed
- Athird
- Bsecond
- Cmiddle
- Dfirst
- Elast
58Each node is a single-linked list, has a reference to__ and __
- Anext node, previous node
- Bnext node, data
- Cdata, next node
- Dimplement, next node
59For(int i=0; i<size; i++){
If(theData[i]==entry){
Return i;
}Return -1;}
This method is similar to which method of ArrayList- AIndexOf(entry)
- Bnumber
- CIndexOf(cell)
- Dnot given
60What function return first added item in the queue?
- AgiveMeFirst()
- Bfront()
- Cfirst()
- DgoBack()
- Eelement()
61Indicate constant time complexity in terms of Big-O notation
- AO(1)
- BO(n)
- CO(n^2)
- DO(n^3)
62This method associates specified value with the specified key in the map.
- Aput(key,value)
- Bset(key,value)
- Cget(key,value)
- Dkey.set(key,value)
63Which function is used to add new item in the queue?
- Aadd()
- Bsuffer()
- Cremove()
- Doffer()
- Epoll()
64The collection of abstract methods is called
- AInterface
- BPolymorphism
- CSuper()
- DTree
65 Indicate logarithm time complexity in terms of big-O notation?
- Alog(n)
- Blog(1)
- Clog(n^2)
- Dlog(n^3)
66Average time complexity of Shell sort is?
- AO(n^1.25)
- BO(n)
- CO(n^2)
- DO(nlogn)
- EO(1)
67Indicate linear time complexity in terms of big-O notation?
- An
- Blogn
- Cn^2
- Dn^3
68Indicate exponential time complexity in terms of big-O notation?
- AO(2^n)
- BO(3^n)
- CO(1)
- DO(n)
69What determines whether you should use quadratic sort or a logarithmic sort algorithm?
- Aarray size
- Barray indexes
- Carray type
- Darray values
- Eswapping conditions
70 Find the slowest time
- AO(n!)
- BO(1)
- CO(logn)
- DO(n^2)
71What is the time complexity of ArrayList remove(index) method
- AO(n)
- BO(1)
- CO(n^2)
- DO(n^3)
72In a double-linked list, each node has a reference to: ___, ___and ___
- Anext node, previous node, data
- Bimplement, data, next node
- Cnext node, data, previous node
- Ddata, next node previous node
73In open addressing you can not remove an item to be deleted, so what should you do
instead?- Amark as deleted flag
- Bdo nothing
- Cdelete and save in temporary list
- Dchange its palce with another item
74What is the time complexity of adding an item in front of a LinkedList
- AO(1)
- BO(n)
- CO(n!)
- DO(logn)
75Average time complexity of Bubble sort is?
- AO(n^2)
- BO(nlogn)
- CO(1)
- DO(n)
- EO(logn)
76What is the time complexity of insert(index) method in ArrayList?
- AO(n^2)
- BO(n)
- CO(1)
- DO(mxn)
- EO(logn)
77To remove an item from a single -linked list, you need a reference to
- Aprevious node
- Bnext node
- Cdata
- Dthe node
78What is the time complexity of adding element in the beginning of ArrayList
- AO(n)
- BO(n!)
- CO(1)
- DO(logn)
79If two or more keys will be encoded to the same index of a hashtable, it is called.
- Acollision
- Berror
- Cmistake
- Dduplicate
80Which method removes an item on the top of a Stack in JAVA?
- Apeek()
- Bpop()
- Chop()
- Dremove()
- Edrop()
81To remove an item from a double -linked list, you need a reference to
- Adata
- Bnode
- Cnext
- Dprevious node
82Which method searches for target and returns its position in LinkedList
- AIndexOf(target)
- BIndexOf(cell)
- CNot given
- DArrayIndexOutOfBloundException
83Inheritance is:
- Apowerful code reuse mechanism
- Bproviding access to data
- Cability of object of one class to act like it is an object of another class
- Dhiding an access to data
- Epowerful technique to store all data together
84Hiding access to data members of a class is called:
- APolymorphism
- BEncapsulation
- CInheritence
- DNone of them
85An iterator allows us to access items of a list
- Asequentially
- Bordinal
- Ctogether
- Ddon't know
86The relationship when one class is a subclass of another is called:
- Ahas
- Bis
- Ccan
- Dare
- Einclude
87How to remove item from LinkedList
- AChange Link of previous item to next item of item to be removed
- BChange Item
- CChange Link of next item to previous item to be changed
- DChange Link of next item to previous item of item to be removed
88 ___testing focuses on testing the functional characteristics of a module
- AGreen-box
- BTerminal
- CWhite-box
- DBlack-box
89Ideal data structure for a contact list is ?
- Atree
- Bmap
- Cgraph
- Dset
- Evector
90___testing requires the use of test data that exercise each statement in a module
- AWhite-box
- BBlack-box
- CTerminal
- DGreen-box
91What is attribute of CircularList
- Anext of last item referencing to the first item
- Bset of Nubmber
- CRules
- Dlast of next item referencing to the last item
92You apply method ____________ to set view to get an object that facilitates sequential
access to the Map elements.- Aiterator
- Baccessor
- Ctraversal
- Dpreorder
93What is popularity used to traverse SingleLinkedList
- AInterface
- BIterator
- CTraversator
- DLoop and switch
- ECommutator
94Which of the following in Java is very similar to “contract”?
- Anext of last item referencing to the first item
- BInterface implementation
- CInheritance
- DAccess denied
95The java linked-list class uses a ___ to implement the list interface
- Aarray-linked list
- Barray list
- Clinked list
- Ddouble-linked list
96List iterator and iterator is the same thing in JAVA
- AVerdadeiro
- BFalso
97 Is it possible to traverse containing of a list this way? for(int nextInt : aList){… }
- Ayes
- Bno
- Cmaybe
98Show the method which exists in a DoubleLinkedList and not exist in a SingleLinkedList
- APrevious()
- BLast()
- CNext()
- DThis()
99Can we access the element of a set by index?
- Ano
- Byes
100What relationship class Node and LinkedList have?
- Ahas-a
- Bhas
- Cis
- Dis-a
101A listIterator allows us to access the elements
- Aboth forward and backward
- Bbackward
- Cneither forward nor backward
- Dforward
102Which of them is NOT an example of Data Structure ?
- ABreadth First Search
- BSearch
- CSearch1
103A queue is a ___-in ___-out data structure
- Afirst, first
- Bfirst, last
- Clast, first
- Dlast, last
104Operating system use ___ to determine which print job should be handled next
- Aqueue
- Bstack
- Corder
- Ddepth
105Two JAVA API implementation of Set and Map are:
- Atree anf hash
- Btree and list
- Cvector
- DarrayList
106int xxx(int x){
if(n==1)return 1;
return x*xxx(x-1);
}- An!
- Blog(n)
- Cfibonacci
- D2^n
107.Data structure similar to tree but it doesn't have limitation according to number of parents
is?- Agraph
- Btree
- Chash
- Dvector
108int xxx(int x, int y, int z){
if(z==1){return 1;}
return xxx(x+y,x,z-1);
}- Afibonacci
- Bn!
- Ctrash in function
- Dlogn
109Explain how interface is like a contract
- AClass implementing interface must define none of it’s methods
- BClass implementing interface must define all it’s methods
- CClass implementing interface must define only one of it’s methods
- DClass implementing interface must define some of it’s methods
110Node of a graph is called?
- Avertex
- Bedge
- Croot
111What is the time complexity of recursive Binary Search algorithm?
- AO(logn)
- BO(n)
- CO(1)
- DO(2^n)
112Recursive implementation works faster than lopped one
- AVerdadeiro
- BFalso
113It's possible to implement all recursive algorithms without
- AVerdadeiro
- BFalso
114Recursive solutions are more beautiful and easy to understands
- AVerdadeiro
- BFalso
115Set of connections between vertices of a graph is called?
- Aedge
- Bvertex
- Cpath
- Droot
116What are two important differences between abstract class and actual class? What are the
similarities?- AAbstract class should have abstract methods. It can’t be instantiated. They both may have
actual datafields and methods - BActual class should have abstract methods. It can’t be instantiated. They both may have
actual datafields and methods - CAbstract class should have actual methods. It can be instantiated. They both may have
actual datafields and methods - DActual class should have actual methods. It can be instantiated. They both have not
abstract datafields and methods - EAbstract class should have not abstract methods. It can be instantiated. They both may have actual datafields and methods
- AAbstract class should have abstract methods. It can’t be instantiated. They both may have
117Quicksort is implemented recursively
- AVerdadeiro
- BFalso
118List four subclasses of RuntimeException: IndexOutOfBounds, Arithmetic, IlegalArgument,
- AOutputMismatch
- BInputMismatch
- CLogarithmic
- DLegalArgument
- EIllegalMismatch
119What the time complexity of LinearSearch algorithm?
- AO(n)
- BO(1)
- CO(logn)
- DO(nlogn)
120Graph where each edge has a direction is called?
- Adirected
- Bsymmetric
- Cunconnected
121How protected visibility can be equivalent to public?
- AIf two related classes are in the different package.
- BIf two related classes are in the same package.
- CIf one related class is in the same package.
- DIf two related methods are in the same package.
- EIf two related methods are in the different package.
122for(i<n)
if(a[i] == item)
return i;
This algorithm is similar to ...- ALinear Search
- BBinary Search
- CHuffman tree
- DFull binary search
123Adjacent matrix representing undirected graph should be?
- Asymmetric
- Bassymmetric
- Cconnected
124Explain why Shape can not be an actual class
- ABecause it has abstract methods
- BBecause it has actual methods
- CBecause it has not abstract methods
- DBecause it has not actual methods
125To use Binary Search items should be ...
- Aordered
- Btraversed
- Cmatched
- Ddivorced
126Vertex is ________ to another vertex if there is an edge connecting them
- Aadjacent
- Bsubling
- Cbrotherhood
- DBFS
127Overriding
- Athe different method realized differently in a child class.
- Bthe same method realized differently in a child class.
- Cthe same method realized samely in a child class.
- Dthe same method not realized differently in a child class.
- Ethe same method realized differently in a parent class.
128.A __________ is a sequence of vertices in which each successive vertex is connected to its
predecessor. (Graphs)- Apath
- Bcycle
- Croute
- Dweight
129Overloading
- Athe same method realized differently in a child class.
- Bwhen number of parameters changed then it will be another method.
- Cthe same method realized differently in a parent class.
- Dwhen single of parameter changed then it will be another method.
- Ewhen number of parameters changed then it still will be same method.
130A ___________ path is a simple path in which only the first and last items are the same.
- Acycle
- Btrip
- Cmapped
- Dlooped
131The node of a tree without children is called ...?
- Aleaf
- Bsubtree
- Csiding
- Dfull
132Describe the use of the keywords super. and super(...)?
- AIf you want to call some method of parent class then use super.
- BIf you want to call some method of child class then use super.
- CIf you want to call some method of parent class then use normal.
- DIf you want to call some method of child class then use normal.
- EIf you want to call some method of parent class then do not use super.
133.If there is no path path from vertex to any other vertex that graph is considered to be ?
- Aunconnected
- Bconnected
134A _______ of a node is a tree whose root is a child of that node
- Aparent
- Bsubtree
- Cleaf
- Droot
- Echild
135What can you say about class Object?
- AObject is child of all classes in JAVA.
- BObject is parent of one class in JAVA.
- CObject is child of one class in JAVA.
- DObject is parent of all classes in JAVA.
- EObject is parent of some class in JAVA.
136Indicate two ways of graph implementations
- Alist and matrix
- Bhash and list
- CArrauList and vector
- DTree and map
137.A __________ graph is one in which [E] is close to but less than [V]^2.
- Adense
- Bsparse
- Ccute
- Dbad
138 Describe the difference between is - a and has - a relationships?
- AHas - a – parent child relationship Is - a – when one class has another inside itself.
- BHas - a – parent child relationship Is - a – when all classes have another inside itself.
- CIs - a – parent child relationship Has - a – when one class has another inside itself.
- DIs - a – parent child relationship Has - a – when all classes have another inside itself.
139A ________ graph is one where [E] is much less than [V]^2.
- Asparse
- Bdense
- Ci don`t know
- Dgo home and cry
140What is the advantage of specifying an abstract data type as an interface instead of just going ahead and implementing it as a class?
- AAny class can implement many interface and can not extend more than one class
- BAll classes can implement only one interface and can not extend more than one class
- CAll classes can implement only one interface and can extend more than one class
- DAny class can implement many interface and can extend more than one class
- EAll class can implement many interface and can extend more than one class
141Which of the graph implementation is more efficient in terms of memory usage?
- Alist
- Btree
- Cmap
- Dgraph
142The ______ of a node is a measure of its distance from the root
- Alevel
- Bdistance
- Cparent
- Droot
- Esibling
143Which of the graph implementations is more simple?
- Amatrix
- Blist
- Ctree
144What are two different uses of a term interface in programming
- AInterface is a java keyword. Relationship between user and computer (HCI).
- BInterface is not a java keyword. Relationship between user and computer (HCI).
- CInterface is a java keyword. Relationship between programm and computer (HCI).
- DInterface is a not java keyword. Relationship between user and programm (HCI).
- EInterface is a java keyword. Relationship with user and computer (HCI).
145Why do we need BFS and DFS algorithms?
- Ato have fun
- Bto traverse a graph
- Cbe aware of collision
146Distance from the root to its deepest leaf is knows as ______ of a tree?
- Aheight
- Broot
- Cpath
- Dsubtree
- Edepth
147What do abstract methods and interfaces have in common? How do they differ?
- AIn interface methods are defined. But in abstract classes the abstract methods can be defined to show its default behaviour.
- BIn interface methods are not defined. But in actual classes the abstract methods can be defined to show its default behaviour.
- CIn interface methods are not defined. But in abstract classes the abstract methods can be defined to show its default behaviour.
- DIn interface methods are defined. But in abstract classes the actual methods can be defined to show its default behaviour.
- EIn interface methods are defined. But in abstract classes the abstract methods cannot be defined to show its default behaviour.
148Traversing graph visiting a start node first, then all nodes that are adjacent to it next.
- ABFS
- BDFS
149 List two subclasses of IOException:
- AEOFException, FileFoundException
- BEOFException, FileNotFoundException
- CSQLException, FileNotFoundException
- DEOFException, SQLException
150Traversing graph visiting a start node first, then choose one node that is adjacent to it next.
- ABFS
- BDFS
151Dijkstra's algorithm use ______ algorithm to traverse all nodes.
- ABFS
- BDFS
152Explain why Shape can not be an interface
- ABecause it has not actual methods
- BBecause it has actual methods
- CBecause it has abstract methods
- DBecause it has not abstract methods
- EBecause it has actual and abstract methods
153Graph is considered to be ___________ if there is a path from each vertex to any other
vertex.- Aconnected
- Bfull
- Cdirected
154.In ___________ graph is {v, u} is edge then {u, v} is not necessary an edge
- Adirected
- Bconnected
155Tree where every item must have at most 2 children is called?
- ABinary Tree
- BUnary Tree
- CHuffman Tree
- DGeneral Tree
156Structured set of data is called _______.
- Adata structure
- Balgorithm
157What does encapsulation mean, and how it is used in JAVA?
- AEncapsulation – unlimiting access to datafields.
- BEncapsulation is one of the OOPs feature that allows us to perform a single action in different ways.
- CEncapsulation is one of the OOPs feature that is not allows us to perform a single action in different ways.
- DEncapsulation – limiting access to datafields.
158An ordered set of instructions is called.
- Aalgorithm
- Bmodel
- Cdata
159What is the benefit of encoding letters trough Huffman tree
- Aearning space
- Bit is smart
- Cjust for fun
- Dmore beautiful
- Eit is simple
160Describe the use of the keywords this. and this (...)?
- AThis() – used to get datafields of current class This. – used to call the constructor
of current class. - BThis. – used to get datafields of current class This() – used to call the constructor
of current class. - CThis. – used to call the constructor of current class This() – used to get datafields of current class
- DThis. – used to get datafields of all classes This() – used to call the constructor
of current class. - EThis. – used to get datafields of all classes This() – used to call the constructor
of all classes.
- AThis() – used to get datafields of current class This. – used to call the constructor
161Explain the relationship between classes Number, Integer and Short.
- ANumber is child of Integer and Short.
- BInteger is parent of Number and Short.
- CNumber is parent of Integer and Short.
- DShort is parent of Number and Integer.
- EInteger is child of Number and Short.
162A tree where left child is less and right child is more than its parent called?
- ABinary
- BHuffman Tree
- CDFS
- DBreadth first search
163Search a binary search tree costs?
- AO(logn)
- BO(nlogn)
- CO(1)
- DO(n)
164The four kinds of visibility in order of decreasing visibility are:
- APublic, package, protected, private
- BPrivate, protected, package, public
- CPackage, private, public, protected
- DProtected, package, private, public
- EPrivate, public, protected, package
165What is default package visibility?
- AClasses in the different package are visible to each other without import.
- BClasses in the same package are visible to each other without import.
- CClasses in the same package are not visible to each other without import.
- DClasses in the different package are not visible to each other without import.
- EClasses in the same package are invisible to each other without import.
166Form of method determined by its name and arguments
- AJava method
- BSignature method
- CGet method
- DData method
- ESet method
167A tree where all nodes should have 2 children and leaves have no children is called?
- Afull binary tree
- Bgeneral tree
- Cunary tree
- Dperfect tree
- Ebinary tree
168An____ specifies the requirements of an ADT as a contract between the____ and ____; A ____ implements the ADT
- Ainterface, user, developer, method
- Bimplemetation, developer, user, class
- Cinterface, developer, user,class
- Dimplemetation, user, developer, class
- Eimplemetation, developer, user, method
169Visit root node, traverses left subtree, traverse right subtree traversal is called?
- Ainorder
- Bpreorder
- Cpostorder
170An interface can be implemented by multiple classes -
- Atrue
- Bfalse
171Traverse left subtree, Visit root node, traverse right subtree traversal is called?
- Apreorder
- Binorder
- Cpostorder
172traverse left subtree visit root node traversal is called?
- Ainorder
- Bpostorder
- Cpreorder
173This method of a binary tree class return true if tree is a leaf and false otherwise?
- AisLeaf()
- BisEmpty()
- CnoMore()
- DisLast()
- EgoHome()
174Element insertion to a Binary Search tree costs?
- AO(logn)
- BO(1)
- CO(n)
- DO(nlogn)
175Does binary search tree contain duplicates?
- Ano
- Byes
- Cgo home
- Dmaybe
176Complete binary tree where all children must be smaller than parents is?
- Amaxheap
- Bminheap
- Chiphop
- Dtreeheap
177Complete binary tree where all children must be bigger than parents is?
- Aminheap
- Bmaxheap
- Chiphop
- Dfullheap
- Etreeheap
178Insert and remove items from a heap costs?
- AO(1)
- BO(n)
- CO(nlogn)
- DO(nxn)
179The heap is used to implement the special kind of a queue called priority queue
- Aheap
- Bdeap
- CDFS
- DDBS
180A ________ tree is a binary tree used to store a code that facilitates the compression
- Aheap
- BHuffman
- CDijkstra
- DDFS
- EDBS
181Data structure based on BST where all items are sorted and unique is?
- Agraph
- BtreeMap
- CtreeSet
- Dvector
- Etree
182Recursive nonlinear data structure that is used to represent data organized in a hierarchy?
- Atree
- Bvector
- Cgraph
- DarrayList
- ElinkedList
183In a Huffman tree, the item with the lowest frequency of occurrence will have the _____ code.
- Alongest
- Beasiest
- Cshortest
- Dbinary
- Edeepest
184Which of the following is recursive algorithm?
- AQuickSort
- BInsertionsort
- CSelectionsort
- DBUBBLESORT
185Average time complexity of Selection sort is?
- AO(n^2)
- BO(n^3)
- CO(n^2,25)
- DO(n)
186Average time complexity of Heap sort is?
- AO(logn)
- BO(nlogn)
- CO(n)
- DO(1)
187Average time complexity of Quick sort is?
- AO(nlogn)
- BO(logn)
- CO(n)
- DO(1)
Informações
- Descrição
- Quiz sobre sdp4, criado por 1610 R em 24-05-2018.
- Autor
- 1610 R
- Idioma
- English
- Visualizações
- 359
- Histórico
- Criado em 24 mai 2018 · atualizado em 24 mai 2018
- Avaliação
- Ainda sem avaliações Avalie este quiz