Computer Science Ics Part 1 Chapter 4 Online Test With Answers

Computer Science Ics Part 1 Chapter 4 Online Test

Sr. # Questions Answers Choice
1

What is the dequeue opertion in a queue.

<p>Removing an item formt he front</p> <p>Additing an item to the back</p> <p>Sorthing the queue</p> <p>Copying the queue</p>
2

What is the enqueue operation in a queue.

<p>Removeing an item from the front</p> <p>Printing the queue</p> <p>Adding an item to the back</p> <p>Searchign for an item</p>
3

Which principle does a queue follow.

<p>LIFO</p> <p>FIFO</p> <p>FILO</p> <p>Random access</p>
4

What is a queue.

<p>Add/remvoe from top</p> <p>Add/remvoe from both ends</p> <p>Add at back , remvoe form front</p> <p>Store items randomly</p>
5

Which real life example follows the stack principle.

<p>Ticket line</p> <p>Browser back button</p> <p>Music playlist</p> <p>Email inbox</p>
6

What is the purpose of the pop operation in a stack 

<p>Add an item to the top</p> <p>Remove the top item</p> <p>Count the numebr of items</p> <p>Print the stack</p>
7

Which is the purpose of the push operation in a stack.

<p>Remvoe teh bottom item</p> <p>Add an item to the top</p> <p>Search for an item</p> <p>Sort the stack</p>
8

Which principle does a stack follow.

<p>FIFO</p> <p>LIFO</p> <p>FILO</p> <p>LILO</p>
9

What is a stack.

<p>Add/remove at both ends</p> <p>Add /remove from the top</p> <p>Add front, remvoe back</p> <p>No specific order</p>
10

Which of the following is an application of lists.

<p>Storing a single number</p> <p>Implementing stacks and queues</p> <p>Creating images</p> <p>Playing music</p>
11

Whcih keyword checks if an item exists in alist

<p>In</p> <p>for</p> <p>if</p> <p>exists</p>
12

Which operation  remvoes an intem by its index in a list.

<p>Pop()</p> <p>delete ()</p> <p>Remove()</p> <p>clear ()</p>
13

Which operation remvoe an itesm by tis value in a list

<p>Delete ()</p> <p>Remove()</p> <p>Pop ()</p> <p>Clear ()</p>
14

Which operation remvoes an item by its value in a list.

<p>delete ()</p> <p>pop ()</p> <p>remove()</p> <p>clear ()</p>
15

What hapens when you use the append () method on a list.

<p>It deletes the last item</p> <p>It adds an item to the end of the list</p> <p>It sorts the list</p> <p>It creates a new list</p>
Download This Set

Is this page helpful?