DS UNIT 1

DS UNIT 1

University

10 Qs

quiz-placeholder

Similar activities

DSA-Quiz1

DSA-Quiz1

University

12 Qs

Data Structure

Data Structure

University

14 Qs

CS1010 Lab 4

CS1010 Lab 4

University

10 Qs

UAS Logika dan Algoritma Pemrograman

UAS Logika dan Algoritma Pemrograman

1st Grade - University

15 Qs

common data structure

common data structure

University

10 Qs

C++ vs Python: A Quiz Introduction

C++ vs Python: A Quiz Introduction

11th Grade - University

10 Qs

Data Structure

Data Structure

University

10 Qs

Quiz 12: Templates, STL

Quiz 12: Templates, STL

University

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