
Computer Science Exam Questions

Quiz
•
Other
•
University
•
Hard
John Lawrence
FREE Resource
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
Create a free account and access millions of resources
Similar Resources on Wayground
50 questions
Đề thi cuối kỳ: Lập trình giao diện (2019-2020) - ĐH Mở TP.HCM

Quiz
•
University
51 questions
Tourism Promotion Services Quiz

Quiz
•
12th Grade - University
50 questions
MLP LA-2 Quiz 1

Quiz
•
University
46 questions
Fundamentals of Accountancy, Business and Management Exam

Quiz
•
University
46 questions
Kỳ thi cuối kỳ - Hệ thống thông tin

Quiz
•
University
44 questions
Basics of Python Programming

Quiz
•
University
44 questions
USHC 3

Quiz
•
11th Grade - University
50 questions
Rolling Sky Birthday Quiz

Quiz
•
KG - Professional Dev...
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 Other
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