Company: Qualcomm
Difficulty: medium
Among the CPU scheduling algorithms listed below, which one minimizes average waiting time? Multilevel Feedback Queue Round Robin First Come First Serve Shortest Job First The snippet below is meant to compute and print the product of 'p' and 'q'. Spot the bug and say how to fix it. #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 following identities belongs to DeMorgan's Theorems in Boolean algebra? (A.B)' = A' + B (A + B) = A'.B' (A + B)' = A'.B' (A.B)' = (A + B)' Take these two binary numbers: A: 10110 B: 101 Their product is stored in C as shown: C = A * B What decimal value ends up in C? 111 120 101 110 The snippet below is supposed to print the 5th entry of an array named numbers, holding the values {1, 2, 3, 4, 5}, but it has a bug. Which line causes