Hackharbor 3.0 Day 3:C

Hackharbor 3.0 Day 3:C

University

17 Qs

quiz-placeholder

Similar activities

DAA 4th Sem

DAA 4th Sem

University

20 Qs

Ulima Day - Ingeniería Ambiental

Ulima Day - Ingeniería Ambiental

University

20 Qs

3.1 - Features and Part Design

3.1 - Features and Part Design

10th Grade - University

22 Qs

Machines Quiz

Machines Quiz

7th Grade - University

18 Qs

Exploring 8085 and 8086 Microprocessors

Exploring 8085 and 8086 Microprocessors

University

15 Qs

Hackharbor 3.0 Day 3:C

Hackharbor 3.0 Day 3:C

University

20 Qs

Herramientas de Carpintería

Herramientas de Carpintería

University

20 Qs

SRT-502. Textile Fabrication Technology (Quiz 2)

SRT-502. Textile Fabrication Technology (Quiz 2)

University

12 Qs

Hackharbor 3.0 Day 3:C

Hackharbor 3.0 Day 3:C

Assessment

Quiz

Engineering

University

Hard

Created by

Vivek N

Used 7+ times

FREE Resource

17 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of pop() when the stack is empty?

-1

Segmentation Fault

"Stack Underflow"

Garbage Value

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

If your crush was a queue, what would you be?

Rear

Front

Stuck waiting

Dequeued

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Why reset front and rear to -1 after dequeue in a queue?

To confuse beginners

Free up memory

Because queue is now empty

Because that’s what seniors do

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which operation follows LIFO?

enqueue

dequeue

push

traverse

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In circular queue, how to access the next position of rear?

rear + 1

(rear + 1) / MAX

(rear + 1) % MAX

rear++

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

When is the queue empty?

front > rear

rear == -1

front == rear

front == rear + 1

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In a queue, which pointer moves forward when dequeue is called?

rear

top

front

NULL

Create a free account and access millions of resources

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?