Hackharbor 3.0 Day 3:C

Hackharbor 3.0 Day 3:C

University

17 Qs

quiz-placeholder

Similar activities

DAY 29 WORKSHEET LSGD Steel

DAY 29 WORKSHEET LSGD Steel

1st Grade - University

15 Qs

Quiz on Foundations of Artificial Intelligence

Quiz on Foundations of Artificial Intelligence

University

20 Qs

ADS&AA QUIZ-2

ADS&AA QUIZ-2

University

20 Qs

Unidad 3 Posición Orbital Función del Tiempo

Unidad 3 Posición Orbital Función del Tiempo

University

20 Qs

Preguntas sobre AutoCAD y Dibujo Técnico

Preguntas sobre AutoCAD y Dibujo Técnico

University

15 Qs

Solidification and Nucleation Quiz

Solidification and Nucleation Quiz

University

20 Qs

Programming Languages Chapter 1 & 2 Quiz Review

Programming Languages Chapter 1 & 2 Quiz Review

University

16 Qs

CAES Viva 1 Batch 2

CAES Viva 1 Batch 2

University

16 Qs

Hackharbor 3.0 Day 3:C

Hackharbor 3.0 Day 3:C

Assessment

Quiz

Engineering

University

Practice Problem

Hard

Created by

Vivek N

Used 7+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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?