Professional Documents
Culture Documents
Consider the following set of processes, the length of the CPU burst time given in milliseconds: Process
Burst time P1 6 P2 8 P3 7 P4 3 Assuming the above process being scheduled with the SJF scheduling
algorithm :
A. in push operation, if new nodes are inserted at the beginning of linked list, then in pop operation,
nodes must be removed from end.
B. In push operation, if new nodes are inserted at the end, then in pop operation, nodes must be
removed from the beginning.
Farhan writes a code to find the factorial of an inputted number. His code gives correct answers for
some inputs and incorrect answers for others. What kind of error does his program have?
a) Syntactical error
b) Run-time Error
c) Logical Error
d) None of these