DSA Long Quiz Flashcards
Which of the following is not true about Computational Problems?
They entail solving tasks through computation and efficient algorithms.
Usually, solutions to them are empowered by streamlined data structures, for minimizing time and memory usage.
Solutions to them require optimization in addressing real-world challenges. ,
All of the above
None of the above.
None of the above.
Which of the following is true about Abstract Data Types?
ADTs can be understood as high-level descriptions of data structures, specifying the behavior and operations associated with them without delving into the specific implementation details.
ADTs are like sets of rules for using special containers in a way to make it easy to organize and interact with different things.
Using ADTs would mean using data and operations.
All of the above.
None of the above.
All of the above.
These are values, components and properties of what is placed inside a container.
Data
Operations
Primitive Data Type
None of the above.
Data
These are manipulations of data.
Data
Operations
Primitive Data Type
None of the above.
Operations
These represent basic building blocks of a programming language.
Data
Operations
Primitive Data Type
None of the above.
Primitive Data Type
Which of the following is not an example of a Primitive Data Type?
Integers
Floating-point numbers
Characters
All of the above.
None of the above.
None of the above.
Which of the choices follow the correct sequence of ADT Stages?
Representation, Implementation, Specification
Specification, Implementation, Representation
Specification, Representation, Implementation
Implementation, Specification, Representation
Specification, Representation, Implementation
This ADT Stage involves creating a mathematical abstraction of a data structure.
Representation
Specification
Implementation
None of the above.
Specification
This ADT Stage is where the way to organize and store data is decided.
Representation
Specification
Implementation
None of the above.
Representation
This ADT Stage is where the actual code is written to realize the ADT.
Representation
Specification
Implementation
None of the above.
Implementation
This is a common ADT Operation where the data structure is created and setup.
Initialization
Insertion
Deletion
Search
Initialization
This is a common ADT Operation that looks for a particular element in the data structure.
Initialization
Insertion
Deletion
Search
Search
This Persian mathematician, astronomer and geographer, is known as the “father of algebra” and from whom the term “algorithm” came from.
Abu Ja’far Muhammed Ibn Musa Al-Khwarimzi
Abu Muhammad Ibn Al-Khwarimzi
Abu Ja’Far Muhammed Ibn Musa Al-Khwarimzi
Abu Ja’Far Muhammad Ibn Musa Al-Khwarizmi
Abu Ja’Far Muhammad Ibn Musa Al-Khwarizmi
Which of the following is true about good algorithms?
Good algorithms describe the process precisely and concisely.
Properties of good algorithms include having an input and output, definiteness and infiniteness.
Good algorithms only use natural language to define instructions.
All of the above.
None of the above.
Good algorithms describe the process precisely and concisely.
These algorithms refer to the process of repeatedly executing a set of instructions or a block of code.
Iterative Algorithms
Recursive Algorithms
Advanced Algorithms
None of the above.
Iterative Algorithms
These algorithms refer to applying a rule of formula to its own result, again and again.
Iterative Algorithms
Recursive Algorithms
Advanced Algorithms
None of the above.
Recursive Algorithms
Which of the following is used by Iterative Algorithms?
For Loop
While Loop
Both of these.
None of these.
Both of these.
Recursive algorithms require which key concepts?
Base Case
Recursive Step
Both of these.
None of these.
Both of these.
In the recursiveness of factorials, the Factorial Function’s Base Case is which of the following?
If the input is 0, return 0.
If the input is 1, return n.
If the input is 0 or 1, return n.
If the input is 0 or 1, return 1.
If the input is 0 or 1, return 1.
In the recursiveness of Fibonacci sequences, its Base Case is which of the following?
If the input is 0, return 0.
If the input is 1, return n.
If the input is 0 or 1, return n.
If the input is 0 or 1, return 1.
If the input is 0 or 1, return n.