
last
Authored by HASAN YIGIT
Computers
Professional Development
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will happen if you try to add an arriving plane to a full queue?
The program crashes due to a segmentation fault.
The program adds the plane to the queue anyway, overwriting existing planes.
A warning message "Queue is full!" is displayed, and the plane is not added.
he oldest plane in the queue is removed to make space for the new one.
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which of the following conditions is used to decide the position of a plane in the priority queue?
Only the fuel level.
Priority level and fuel level.
Both priority and flight number.
Only the priority level.
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the purpose of the strcmp function in the code?
To compare plane priorities.
To verify if a flight number is valid.
To check if the queue is full.
To check if the returned plane structure is empty.
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
How does the program ensure that arrivingPlanes are sorted correctly?
It sorts the queue after each insertion.
It does not ensure sorting; the planes are appended to the end.
It uses a heap-based priority queue.
It shifts elements one position ahead in the array while inserting a plane based on its priority and fuel level.
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Why are front and rear used in the Stack structure for departing planes?
Front is used to track the next departing plane, and rear is used to manage the last added plane.
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the correct way to create a new node in a binary tree in C?
Allocate memory for the node, assign the value, and leave left and right uninitialized.
Use malloc, assign the value, and do not set left and right explicitly.
Allocate memory for the node, assign the value, and set left and right to NULL.
Use calloc to allocate memory and initialize all fields to 0.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How can you perform an in-order traversal of a binary tree using recursion?
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
11 questions
Wealth Showcases - VII
Quiz
•
Professional Development
10 questions
C++Quiz#1
Quiz
•
Professional Development
13 questions
Five Nights At Freddy's: Security Breach Quiz
Quiz
•
KG - Professional Dev...
10 questions
all star
Quiz
•
Professional Development
10 questions
Handling sensitve information on conference calls
Quiz
•
Professional Development
15 questions
4.6.4 Logic Gates
Quiz
•
10th Grade - Professi...
10 questions
Big Data Analytics - Week 2 (Data storage)
Quiz
•
University - Professi...
13 questions
Guess the Video Game Pets 1
Quiz
•
KG - Professional Dev...
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
Discover more resources for Computers
20 questions
Black History Month Trivia Game #1
Quiz
•
Professional Development
100 questions
Screening Test Customer Service
Quiz
•
Professional Development
20 questions
90s Cartoons
Quiz
•
Professional Development
10 questions
Reading a ruler in Inches
Quiz
•
4th Grade - Professio...
16 questions
Parallel, Perpendicular, and Intersecting Lines
Quiz
•
KG - Professional Dev...
12 questions
Valentines Day Trivia
Quiz
•
Professional Development