
Computer Science Exam Questions
Quiz
•
Other
•
University
•
Practice Problem
•
Hard
John Lawrence
FREE Resource
Enhance your content in a minute
48 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The diagrams below show three items stored in a stack. Which sequence of operations would transform the stack from the initial state to the final state? Initial State TOP C A B Final State TOP A C B
POP, POP, PUSH(C), PUSH(A)
POP, POP, PUSH(A), PUSH(C)
PUSH(A), PUSH(C), POP, POP
POP, POP, POP, PUSH(A), PUSH(C), PUSH(B)
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which ordering below gives a working implementation for the ‘POP ( )’ operation?
IX, V, III, I
II, V, IV, I
VI, IV, II, I
IX, V, IV, I
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Assume that the list is sorted. When searching the sorted list, which of the following will be found the fastest using a binary search?
ant
dog
fish
grasshopper
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Figure 1 below shows the state of a stack before the POP operation is performed. Figure 2 shows the state after the POP operation is performed. Which of the following combinations of arrows correctly identifies the top of the stack structures?
I and V
II and VI
III and VII
IV and VIII
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Entries in a stack are ‘ordered’. What is the meaning of this statement?
The collection of stacks can be sorted.
Stack entries may be compared with the ‘<’ operation.
The entries must be stored in a linked list.
There is a first entry, a second entry and so on.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Consider a circular queue, C, with a pointer rear that references the location of the rear of the queue. The front pointer is set to zero before any ADT operation. The following operations are performed on C. enqueue, enqueue, enqueue, dequeue, dequeue, enqueue, enqueue, enqueue, dequeue Assuming that the locations range from 0 to 4, what is the value of the pointer front?
0
1
2
3
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Using the selection sort algorithm, what would the array above look like after three passes?
3718243230
3724183032
3718303224
3718243032
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
46 questions
Kalėdų tradicijos pasaulyje
Quiz
•
KG - Professional Dev...
50 questions
PRELIM EXAM SOCIAL SCIENCE AND PHILOSOPHY
Quiz
•
University
50 questions
WEEKLY QUIZ - FINALE
Quiz
•
KG - Professional Dev...
50 questions
Journeyman 10 - Nth
Quiz
•
University
50 questions
Bahasa Indonesia kelas 12
Quiz
•
12th Grade - University
50 questions
Pre-test Copywriting Magang UNS 2023
Quiz
•
University
50 questions
UTS PRELIMS
Quiz
•
University
50 questions
ЄДКІ 50 тестів
Quiz
•
University
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 Other
7 questions
How James Brown Invented Funk
Interactive video
•
10th Grade - University
5 questions
Helping Build the Internet: Valerie Thomas | Great Minds
Interactive video
•
11th Grade - University
12 questions
IREAD Week 4 - Review
Quiz
•
3rd Grade - University
23 questions
Subject Verb Agreement
Quiz
•
9th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
19 questions
Review2-TEACHER
Quiz
•
University
15 questions
Pre2_STUDENT
Quiz
•
University
20 questions
Ch. 7 Quadrilateral Quiz Review
Quiz
•
KG - University
