Ask Computer Engineering Expert

Question 1
The syntax for accessing a class (struct) member using the operator -> is ____.
A. pointerVariableName.classMemberName
B. pointerVariableName->classMemberName
C. pointerVariableName&->classMemberName

Question 2
Operations, such as finding the height, determining the number of nodes, checking whether the tree is empty, tree traversal, and so on, on AVL trees cannot be implemented the same way they are implemented on binary trees.
True
False

Question 3
The expression vecCont.empty() empties the vector container of all elements.
True
False

Question 4
Because a queue is an important data structure, the Standard Template Library (STL) provides a class to implement queues in a program.
True
False

Question 5
Every call to a recursive function requires the system to allocate memory for the local variables and formal parameters
True
False

Question 6
A linked list is a collection of ____.
A. classes
B. addresses
C. nodes

Question 7
The deque class is a type of container adapter.
True
False

Question 8
The binary search algorithm uses the ____ technique to search the list.
A. conquer-and-resign
B. divide-and-conquer
C. divide-and-divide

Question 9
Containers are essentially used ____.
A. to manage objects of a given type
B. to manipulate data
C. to update objects that are part of a given set of elements

Question 10
The header node is placed at the ____ of a list.
A. end
B. beginning
C. middle

Question 11
The use of a queue structure ensures that the items are processed in the order they are received.
True
False

Question 12
The analysis of algorithms enables programmers to decide which algorithm to use for a specific application.
True
False

Question 13
To define new classes, you create new ____ files.
A. placeholder
B. friend
C. header

Question 14
Containers are class templates.
True
False

Question 15
Default arguments can be used with an overloaded operator.
True
False

Question 16
In breadth first traversal, starting at the first vertex, the graph is traversed as little as possible.
True
False

Question 17
The number of key comparisons in a sequential search depends on the value of the search item.
True
False

Question 18
____ iterators are forward iterators that can also iterate backward over the elements.
A. Output
B. Input
C. Bidirectional

Question 19
We can traverse a singly linked list backward starting from the last node.
True
False

Question 20
In the random probing method, the ith slot in the probe sequence is ____.
A. (h(X) % HTSize) + ri
B. (h(X) + ri) % HTSize
C. (h(X) + HTSize) % ri
D. (h(X) % ri) + HTSize

Question 21
With the help of the ____, two values can be combined into a single unit and, therefore, can be treated as one unit.
A. class unit
B. class pair
C. class double
D. class tuple

Question 22
The operation ____ reinitializes the stack to an empty state.
A. alloc
B. initializeStack
C. init

Question 23
The copy constructor automatically executes when, as a parameter, an object is passed by value.
True
False

Question 24
The expression vecList.front() moves an element to the front of the vector.
True
False

Question 25
When the destructor ____ the queue, it deallocates the memory occupied by the elements of the queue.
A. instantiates
B. allocates
C. destroys

Question 26
To remove, or pop, an element from the stack ____.
A. invert stackTop
B. increment stackTop by 1
C. decrement stackTop by 1

Question 27
The components of a class are called the ____ of the class.
A. members
B. operators
C. objects

Question 28
In a doubly linked list, some of the operations require modification from how they were implemented for a regular linked list, because of the ____ pointer(s) in each node.
A. two
B. null
C. three

Question 29
If the list is stored in an array, we can traverse the list in either direction using an ____.
A. index variable
B. increment variable
C. interface variable

Question 30
If the list is stored in a linked list, we can traverse the list in only one direction starting at the first node because the links are only in one direction.
True
False

Question 31
The structured design approach is also known as ____.
A. object design
B. top-down design
C. bottom-up design

Question 32
The derived class can redefine public member functions of a base class.
True
False

Question 33
A list is ordered if its elements are ordered according to some criteria.
True
False

Question 34
A technique in which one system models the behavior of another system is called ____.
A. bench testing
B. referencing
C. simulation

Question 35
In a ____, customers or jobs with higher priority are pushed to the front of the queue.
A. false queue
B. free queue
C. double queue
D. priority queue

Question 36
A ____ is a list in which each element contains a key, such that the key in the element at position k in the list is at least as large as the key in the element at position 2k + 1 (if it exists) and 2k + 2 (if it exists).
A. heap
B. hemp
C. hash table

Question 37
A precondition is a statement specifying the condition(s) that must be true before the function is called.
True
False

Question 38
When you declare a derived class object, this object inherits the members of the base class, but the derived class object cannot directly access the ____.
A. private data members of the base class
B. data members in its own class
C. base class constructors

Question 39
In a shallow copy, two pointers of different data types point to the same memory.
True
False

Question 40
The statement vecList.push_back(elem) deletes the element elem from the vector.
True
False

Computer Engineering, Engineering

  • Category:- Computer Engineering
  • Reference No.:- M91944828

Have any Question?


Related Questions in Computer Engineering

Does bmw have a guided missile corporate culture and

Does BMW have a guided missile corporate culture, and incubator corporate culture, a family corporate culture, or an Eiffel tower corporate culture?

Rebecca borrows 10000 at 18 compounded annually she pays

Rebecca borrows $10,000 at 18% compounded annually. She pays off the loan over a 5-year period with annual payments, starting at year 1. Each successive payment is $700 greater than the previous payment. (a) How much was ...

Jeff decides to start saving some money from this upcoming

Jeff decides to start saving some money from this upcoming month onwards. He decides to save only $500 at first, but each month he will increase the amount invested by $100. He will do it for 60 months (including the fir ...

Suppose you make 30 annual investments in a fund that pays

Suppose you make 30 annual investments in a fund that pays 6% compounded annually. If your first deposit is $7,500 and each successive deposit is 6% greater than the preceding deposit, how much will be in the fund immedi ...

Question -under what circumstances is it ethical if ever to

Question :- Under what circumstances is it ethical, if ever, to use consumer information in marketing research? Explain why you consider it ethical or unethical.

What are the differences between four types of economics

What are the differences between four types of economics evaluations and their differences with other two (budget impact analysis (BIA) and cost of illness (COI) studies)?

What type of economic system does norway have explain some

What type of economic system does Norway have? Explain some of the benefits of this system to the country and some of the drawbacks,

Among the who imf and wto which of these governmental

Among the WHO, IMF, and WTO, which of these governmental institutions do you feel has most profoundly shaped healthcare outcomes in low-income countries and why? Please support your reasons with examples and research/doc ...

A real estate developer will build two different types of

A real estate developer will build two different types of apartments in a residential area: one- bedroom apartments and two-bedroom apartments. In addition, the developer will build either a swimming pool or a tennis cou ...

Question what some of the reasons that evolutionary models

Question : What some of the reasons that evolutionary models are considered by many to be the best approach to software development. The response must be typed, single spaced, must be in times new roman font (size 12) an ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As