Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

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

Let sigmaab give the transition diagram for a

Let Σ={a,b}. Give the transition diagram for a nondeterministic ?nite state machine that accepts the set of strings in {a,b}∗ that contain a substring of length four that begins and ends with the same symbol. For example ...

You are required to design a circuit that takes as input a

You are required to design a circuit that takes as input a serial bit and outputs a '1' whenever there are three successive '1's, i.e., whenever the sequences 111 or 000 occur. Overlaps must be considered Also, assume th ...

A firm produces product a and product b this years sales

A firm produces Product A and Product B. This years sales price of Product A have decreased tremendously, and the sale of Product B has increase by 10 percent. The firm has threeemployees that can produce Product A and f ...

Ssk software has their main office in sylvania ohio and

SSK Software has their main office in Sylvania Ohio and remote locations in Chicago, Toledo, Cleveland and Cincinnati. SSK Software currently has 62 devices connected to the network in Chicago, 30 computers in Toledo, 60 ...

Poblem 1 a firms production function c is given by c q

Problem 1. A firm's production function C is given by C (q) = 0:5q 2+2q 1 2 +18, where q is the level of output. (i) Calculate marginal costs (ii) If all fixed costs are sunk, and the minimum price at which this firm wil ...

Systems analysis and design project 11 can you answer these

Systems analysis and design project 11: can you answer these 3 questions please 1. Design a generic test plan that describes the testing for an imaginary system. 2. Design a generic post-implementation evaluation form. T ...

System analysis project can you answer the 4 questions at

System Analysis project: can you answer the 4 questions at the task section. Personal Trainer, Inc. owns and operates fitness centers in a dozen Midwestern cities. The centers have done well, and the company is planning ...

Question which register is allowed to be used as a pointer

Question : Which register Is allowed to be used as a pointer for register indirect addressing when accessing data stored in program ROM? Give the name and show how it is used Write a program that will read the following ...

The contents of a particular bottle of shampoo marked as

The contents of a particular bottle of shampoo marked as 150 ml are found to be 153 ml at an average, with a standard deviation of 2.5 ml. What proportion of shampoo bottles contain less than the marked quantity? Assume ...

What is the broadcast domain and ports for hubs and

What is the Broadcast Domain and Ports for hubs and bridges?

  • 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