Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Exam (elaborations)

JAVA DATA STRUCTURES FINAL EXAM QUESTIONS WITH COMPLETE SOLUTIONS | GRADED A

Rating
-
Sold
-
Pages
9
Grade
A+
Uploaded on
28-07-2025
Written in
2024/2025

JAVA DATA STRUCTURES FINAL EXAM QUESTIONS WITH COMPLETE SOLUTIONS | GRADED A

Institution
DATA STRUCTURES
Course
DATA STRUCTURES

Content preview

JAVA DATA STRUCTURES FINAL
EXAM



The end at which the insertions and deletions occur in a stack is called the ____ of the
stack. - Correct Answers -top

In the Reverse Polish notation, the operators are written before the operands. - Correct
Answers -False

In a stack, the ____ operation adds an element onto the stack. - Correct Answers -push

The method ____ from the Java class Stack returns and removes the top element of the
stack. - Correct Answers -pop

The push method of the stack can be compared with the method ____ for a general list.
- Correct Answers -insertFirst

Physical simulators include wind tunnels used to experiment with the design of car
bodies. - Correct Answers -true

A stack is also called a ____data structure. - Correct Answers -LIFO

As in a stack, the middle elements of the queue are inaccessible, even if the queue
elements are stored in an array. - Correct Answers -false

Simulating the behavior of an expensive or dangerous experiment using a computer
model is usually more expensive than using the real system. - Correct Answers -false

In a queuing system, the term ____represents the time it takes to serve a customer. -
Correct Answers -transaction time

In a queuing system, when a server becomes free, the customer at the rear of the
queue moves to the free server to be served. - Correct Answers -false

You can use stacks to convert recursive algorithms into nonrecursive algorithms. -
Correct Answers -true

Adding or pushing an element onto the stack is a two-step process. - Correct Answers -
true

, Elements are deleted from a queue at one end, called the ____. - Correct Answers -
front

The ____ method from the interface QueueADT adds a new element to the rear of the
queue. - Correct Answers -addQueue

An array is a random access data structure; that is, you can directly access any element
of the array. - Correct Answers -TRue

A technique in which one system models the behavior of another system is called ____.
- Correct Answers -simulation

The method isFullQueue from the interface QueueADT initializes the queue to an empty
state. - Correct Answers -false

Adding an element to a full stack would generate an error or exception called ____. -
Correct Answers -stack overflow exception

Postfix or Reverse Polish notation has the advantage that the operators appear in the
order required for computation. - Correct Answers -true

What are the two steps in pushing a value onto a stack? - Correct Answers -First, you
must determine if there
is room on the stack for another value. If there is, you push the value onto the stack;
otherwise, you don't.

A ____list is a linked list in which every node has a next pointer and a back pointer. -
Correct Answers -doubly linked

If first points to the first node in a list and first is ____, the list is empty. - Correct
Answers -null

One of the basic operations performed on a list is to process each node of the list. -
Correct Answers -True

An unordered list can be built in two ways: in the forward manner and in the backward
manner. - Correct Answers -true

A doubly linked list can be traversed in either direction. - Correct Answers -true

When building an unordered list in the forward manner, you need ____ reference
variables. - Correct Answers -3

When building an unordered list in the backward manner, a new node is always inserted
at the end of the linked list. - Correct Answers -false

Written for

Institution
DATA STRUCTURES
Course
DATA STRUCTURES

Document information

Uploaded on
July 28, 2025
Number of pages
9
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

$13.49
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Get to know the seller

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
millyphilip West Virginia University
Follow You need to be logged in order to follow users or courses
Sold
2921
Member since
4 year
Number of followers
1958
Documents
44266
Last sold
2 hours ago
white orchid store

EXCELLENCY IN ACCADEMIC MATERIALS ie exams, study guides, testbanks ,case, case study etc

3.6

551 reviews

5
239
4
87
3
104
2
32
1
89

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions