Hackharbor 3.0 Day 3:C

Hackharbor 3.0 Day 3:C

University

17 Qs

quiz-placeholder

Similar activities

CAES Viva 1 Batch 2

CAES Viva 1 Batch 2

University

16 Qs

LOGICAL THINKING

LOGICAL THINKING

University

20 Qs

Quiz on Foundations of Artificial Intelligence

Quiz on Foundations of Artificial Intelligence

University

20 Qs

Preguntas sobre AutoCAD y Dibujo Técnico

Preguntas sobre AutoCAD y Dibujo Técnico

University

15 Qs

ADS&AA QUIZ-2

ADS&AA QUIZ-2

University

20 Qs

Depth-First Search Quiz

Depth-First Search Quiz

University

20 Qs

Unidad 3 Posición Orbital Función del Tiempo

Unidad 3 Posición Orbital Función del Tiempo

University

15 Qs

Programming Languages Chapter 1 & 2 Quiz Review

Programming Languages Chapter 1 & 2 Quiz Review

University

16 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
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?