DS UNIT 1

DS UNIT 1

University

10 Qs

quiz-placeholder

Similar activities

Java Quiz based on array

Java Quiz based on array

University

15 Qs

Alabi, Kolade, CSCI-2380-01P, POST

Alabi, Kolade, CSCI-2380-01P, POST

University

10 Qs

DAA Quiz 1

DAA Quiz 1

University

10 Qs

Java Arrays

Java Arrays

KG - University

11 Qs

unit3 pointers

unit3 pointers

University

10 Qs

Вказівник

Вказівник

12th Grade - University

12 Qs

Java Programming-1

Java Programming-1

University

10 Qs

Quiz 2 DS1D

Quiz 2 DS1D

University

12 Qs

DS UNIT 1

DS UNIT 1

Assessment

Quiz

Computers

University

Easy

Created by

Sumesh P

Used 1+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which structure is best for implementing undo operations?
A. Queue
B. Tree
C. Stack
D. Graph

Queue
Graph
C
Tree

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these is used to implement recursion?
A. Queue
B. Array
C. Stack
D. Tree

Linked List
Hash Table
Graph
C. Stack

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the function of isEmpty() in a queue?
A. Deletes element
B. Checks if queue is empty
C. Inserts element
D. Shows rear element

E. Displays queue size
B. Checks if queue is empty
F. Removes all elements
G. Retrieves front element

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Queue follows which principle?
A. LIFO
B. FIFO
C. FILO
D. LILO

LIFO
FILO
LILO
B. FIFO

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which data structure uses both front and rear for operations?
A. Stack
B. Array
C. Queue
D. Linked List

F. Hash Table
E. Tree
C. Queue
G. Set

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct array declaration in C?
A. int arr();
B. int arr[] = {1,2,3};
C. arr int[5];
D. int[5] arr;

array int arr[5];
int arr(5);
int arr = {1,2,3};
B. int arr[] = {1,2,3};

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these is a non-primitive data structure?
A. float
B. boolean
C. stack
D. char

A. integer
C. stack
D. array
B. string

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?