Company: Qualcomm
Difficulty: medium
Which one of the algorithms given in options is the optimal CPU scheduling algorithm when the average waiting time is considered? Multilevel Feedback Queue Round Robin First Come First Serve Shortest Job First The following code tries to calculate and print the product of the variables 'p' and 'q'. What is the error in the code (if any), and how can it be fixed? #include <stdio.h> int main() { int p = 5; int q = 10; int z; z = p x q; printf("The product of %d and %d is %d\n", x, y); return 0; } Replace 'x' with '*' in the calculation of z Add third argument in printf Change "%d" to "%f" in the printf statement No Error Which of the theorem given in options is a part of DeMorgan's Theorems in Boolean logic? (A.B)' = A' + B (A + B) = A'.B' (A + B)' = A'.B' (A.B)' = (A + B)' Consider the below given binary numbers: A: 10110 B: 101 The final result is stored in C as given below: C = A * B What is the final value stored in C in decimal form? 111 120 101 110 The given code aims to prin