Search Header Logo

Data_Structures_1

Authored by sobha xavier

Computers

University

Used 3+ times

Data_Structures_1
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

16 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

What is a data structure?

a) A programming language

b) A collection of algorithms

c) A way to store and organize data

d) A type of computer hardware

2.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

What are the disadvantages of arrays?

a) Index value of an array can be negative

b) Elements are sequentially accessed

c) Data structure like queue or stack cannot be implemented

d) There are chances of wastage of memory space if elements inserted in an array are less than the allocated size

3.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

3. Which data structure is used for implementing recursion?

a) Stack

b) Queue

c) List

d) Array

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

7. What is the value of the postfix expression 6 3 2 4 + – *?

a) 74

b) -18

c) 22

d) 40

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A linear list of elements in which deletion can be done from one end (front) and insertion can take place only at the other end (rear) is known as _____________

a) Queue

b) Stack

c) Tree

d) Linked list

6.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

If the elements “A”, “B”, “C” and “D” are placed in a queue and are deleted one at a time, in what order will they be removed?

a) ABCD

b) DCBA

c) DCAB

d) ABDC

7.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

A normal queue, if implemented using an array of size MAX_SIZE, gets full when?

a) Rear = MAX_SIZE – 1

b) Front = (rear + 1) mod MAX_SIZE

c) Front = rear + 1

d) Rear = front

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?

Discover more resources for Computers