Understanding ADA Concepts

Understanding ADA Concepts

University

42 Qs

quiz-placeholder

Similar activities

Struktur Data

Struktur Data

University

45 Qs

DaSA FINAL

DaSA FINAL

University

39 Qs

Eng-103 Vocab 2

Eng-103 Vocab 2

University

40 Qs

mid exam in system fundamentals

mid exam in system fundamentals

University

40 Qs

PRF192 (41 - 80)

PRF192 (41 - 80)

University

40 Qs

Summative 1 - Sys Fund

Summative 1 - Sys Fund

University

40 Qs

Ujian Informatika Kelas VII

Ujian Informatika Kelas VII

7th Grade - University

40 Qs

Arrays

Arrays

University

37 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?