DSA part 2 PRELIM Flashcards

1
Q

Focusing on what it does and ignoring how it does it’s job

A

(ADT) Abstract Data types

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

These are high-level
data structures that are defined by their behavior and
the operations that can be performed on them, rather
than by their implementation details.

A

Abstract Data Types (ADT)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

When we consider a primitive type, we are referring to two
things: a data item with certain characteristics and the permissible
operations on that data.

A

Data Type

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

The word abstract in our context stands for
“considered apart from the detailed specifications or
implementation”.

A

Abstract

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

is a fundamental data structure used to store a
fixed-size, ordered collection of elements, all of which must
be of the same data type

A

Array

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Characteristics of Arrays in Java

A
  1. Fixed Size
  2. Initialization
  3. Immutable Size
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Once an array is created, its size is
fixed and cannot be changed. You must
specify the size of the array at the time of
declaration.

A

Fixed Size

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

After declaring an array, you can initialize its
elements individually. However, you must ensure that you do
not access or modify elements beyond the specified size of the
array.

A

Initialization

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Once an array is created, you
cannot change its size.

A

Immutable Size

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

• A one-dimensional array is a linear collection of elements of the same
data type.
• Elements in a one-dimensional array are indexed using a single index.
• Commonly used to represent lists of data.

A

One-Dimensional Arrays

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

• Multi-dimensional arrays are arrays of arrays, that allow you to
organize data in multiple dimensions or rows and columns.
• In Java, two-dimensional arrays are the most common form of multidimensional arrays.
• Elements in multi-dimensional arrays are accessed using multiple
indices.
• Used to represent grids, matrices, tables, and more complex data
structures.

A

Multi-Dimensional Arrays

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

is a linear data structure in which
elements, called nodes, are connected sequentially via
references or links. Each node contains two parts: the
data and a reference (or link) to the next node in the
sequence.

A

Linked list

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

can be implemented in Java using classes
and references.

A

Linked list

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Common Types of Link Lists

A
  1. Singly linked list
  2. Doubly linked list
  3. Circular linked list
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

has one pointer in each node pointing to the next
node in the list

A

Singly link list

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Has two pointers in each node pointing to the next
and previous nodes

A

Doubly linked list

17
Q

The first and last nodes of the list are linked together.

A

Circular linked list

18
Q

In the context of linked data structures, a _________ is a
reference within a node that points to the memory
location (address) of the next node in the structure. It
explicitly specifies where the next element is located
in memory

A

Pointer

19
Q

often used to implement linked
structures like singly linked lists, doubly linked lists,
and trees.

A

Pointer

20
Q

is often used to describe the connection
between nodes in a linked list

A

Link

21
Q

its
implementation may involve pointers or references to
achieve the actual linkage.

A

Link