Understanding ADA Concepts

Understanding ADA Concepts

University

42 Qs

quiz-placeholder

Similar activities

SOAL STS-REMIDI INFOR-X-new

SOAL STS-REMIDI INFOR-X-new

1st Grade - University

40 Qs

Java-Collections

Java-Collections

University

40 Qs

Data structure

Data structure

University

40 Qs

2025190602

2025190602

University

40 Qs

Sorting, Searching and Big O Review

Sorting, Searching and Big O Review

9th Grade - University

45 Qs

UTS Algoritma dan Pemrograman

UTS Algoritma dan Pemrograman

University

42 Qs

2902032025

2902032025

University

40 Qs

special final exam DSA

special final exam DSA

University

40 Qs

Understanding ADA Concepts

Understanding ADA Concepts

Assessment

Quiz

Computers

University

Hard

Created by

Mr. Gogoi

FREE Resource

42 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What are the main data structures used in ADA?

Arrays, Records, Access Types

Strings, Tuples, Sets

Graphs, Hash Tables, Linked Lists

Stacks, Queues, Trees

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Explain the difference between a stack and a queue in ADA.

A stack allows random access, while a queue does not.

A stack uses LIFO, while a queue uses FIFO.

Both stack and queue use LIFO for data management.

A stack uses FIFO, while a queue uses LIFO.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What control structures are available in ADA?

Multithreading constructs

Function overloading

Sequential statements, conditional statements (if-then-else, case), loop statements (for, while), exception handling.

Goto statements

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Describe the purpose of the 'if' statement in ADA.

The 'if' statement in ADA is used for conditional execution of code.

The 'if' statement in ADA is used to import libraries.

The 'if' statement in ADA is for declaring variables.

The 'if' statement in ADA is used to define loops.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

List and explain three different sorting algorithms.

Heap Sort

Insertion Sort

1. Bubble Sort 2. Quick Sort 3. Merge Sort

Selection Sort

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How does the quicksort algorithm work?

Quicksort sorts an array by merging elements in pairs.

Quicksort sorts an array by selecting a pivot, partitioning elements, and recursively sorting sub-arrays.

Quicksort requires the array to be sorted in reverse order before execution.

Quicksort uses a single loop to sort all elements at once.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the time complexity of bubble sort?

O(n^2)

O(n)

O(log n)

O(n log n)

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?