Prelim Flashcards

1
Q

is a way to store data

A

data structure

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

give us the possibility to manage large amounts of data efficiently for uses such as large databases and internet indexing services

A

Data structures

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

are essential ingredients in creating fast and powerful algorithms. They help in managing and organizing data, reduce complexity, and increase efficiency

A

Data structures

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

are basic data structures provided by programming languages to represent single values, such as integers, floating-point numbers, characters, and booleans.

A

Primitive Data Structures

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

In Computer Science there are two different kinds of data structures.

A
  1. Primitive Data Structures
  2. Abstract Data Structures
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

is a set of step-by-step instructions to solve a given problem or achieve a specific goal.
(cooking recipe)

A

algorithm

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

are higher-level data structures that are built using primitive data types and provide more complex and specialized operations.
Some common examples include arrays, linked lists, stacks, queues, trees, and graphs

A

Abstract Data Structures

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

are fundamental to computer programming as they provide step-by-step instructions for executing tasks

A

Algorithms

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

is about finding efficient ways to store and retrieve data, to perform operations on data, and to solve specific problems

A

Data structures and algorithms (DSA)

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

are used in virtually every software system, from operating systems to web applications:
- for managing large amounts of data, such as in a social network or a search engine
- for scheduling tasks, to decide which task a computer should do first
- for planning routes, like in a GPS system to find the shortest path from A to B

A

Data structures and algorithms (DSA)

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

are the data structures that are used to store multiple items.
They both support the indexing of elements to access them, slicing, and iterating over the elements

A

lists and arrays

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

Accessing element is fast
they are in a contiguous manner but insertion and deletion is quite expensive because all the elements are shifted from the position of inserting and deleting element linearly.

A

Python Arrays

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

is actually a dynamic array .
Inserting or deleting elements at the beginning or in the middle of a list can be less efficient because it may require shifting all subsequent elements, which is a linear-time operation in the worst case

A

List

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

is an inbuilt collection of items that can contain elements of multiple data types, which may be either numeric, character logical values, etc.
It is an ordered collection supporting negative indexing.
can be easily merged and copied using Python’s inbuilt functions

A

Lists

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

is a vector containing homogeneous elements i.e. belonging to the same data type

A

Array

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

the size of an _____ is fixed. The insertion and deletion costs are high as compared to the list, however indexing is faster in the _____ due to contiguous memory allocation. _____ can be used by importing the array module

A

Array

16
Q
A