Recent questions tagged goclasses-cs-dpp-day-321

7 7 votes
1 1 answer
314
314 views
When a child process is created using the $\texttt{fork()}$ system call, its state is set to running.True False
2 2 votes
1 1 answer
217
217 views
Which of the following is not applicable to RAM?RAM is volatile memory. RAM holds the BIOS, which is essential for starting up the computer. RAM is significantly faster t...
3 3 votes
1 1 answer
195
195 views
Which of the following is/are true for interrupts?Interrupts temporarily suspend the currently running process to handle a specific event. When an interrupt occurs, the C...
4 4 votes
1 1 answer
214
214 views
Which of the following is/are not treated as a resource in a computer system?CPU cycles Main memory User processes None of the other options
5 5 votes
1 1 answer
211
211 views
Which of the following is not the responsibility of the operating system?Resource management Controlling program execution Network management Developing application softw...
6 6 votes
1 1 answer
236
236 views
A binary tree has:Left subtree containing $1000$ nodes Right subtree containing $100$ nodesHow many nodes are processed before the root in preorder, inorder, and postorde...
5 5 votes
2 2 answers
236
236 views
A binary tree has the following traversals:Preorder traversal $: \text{A M P K L D H T}$ Inorder traversal $:\text{P M L K A H T D}$Which of the following is the postorde...
7 7 votes
1 1 answer
204
204 views
Which of the following functions correctly returns the total number of nodes in a binary tree rooted at $\texttt{t}$?int tree_size(TreeNode *t) { if (t == NULL) return 0;...
6 6 votes
1 1 answer
194
194 views
Consider the following binary tree:Which option correctly gives the preorder, postorder, inorder, and level-order traversals?Preorder $:\texttt{9 15 23 12 8 6 2 7 10 5 35...
6 6 votes
1 1 answer
174
174 views
Consider the following binary search tree:If we traverse the tree in postorder and print only the key values that are greater than $12$ and less than $20$, what will be t...
To see more, click for the full list of questions or popular tags.