Hackharbor 3.0 Day 3:C

Quiz
•
Engineering
•
University
•
Hard
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
Similar Resources on Wayground
20 questions
OS_1ST_UNIT_MRIIRS

Quiz
•
University
13 questions
FlexSim Quiz Assessment 2

Quiz
•
University
20 questions
Desarrollo Aplicacion Movil I

Quiz
•
University
20 questions
Search Algorithms Quiz

Quiz
•
University
20 questions
Operating System

Quiz
•
University
20 questions
Quiz Round For Group 2

Quiz
•
University
20 questions
SISTEMAS MECANICOS

Quiz
•
University
13 questions
Quiz on Sustainable Development and Environmental Engineering

Quiz
•
University
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Engineering
21 questions
Spanish-Speaking Countries

Quiz
•
6th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
7 questions
Common and Proper Nouns

Interactive video
•
4th Grade - University
12 questions
Los numeros en español.

Lesson
•
6th Grade - University
7 questions
PC: Unit 1 Quiz Review

Quiz
•
11th Grade - University
7 questions
Supporting the Main Idea –Informational

Interactive video
•
4th Grade - University
12 questions
Hurricane or Tornado

Quiz
•
3rd Grade - University
7 questions
Enzymes (Updated)

Interactive video
•
11th Grade - University