Sail E0 Webinar

MCQs

Total Questions : 97 | Page 7 of 10 pages
Question 61. An automobile plant contracted to buy shock absorbers from two suppliers X and Y. X supplies 60% and Y supplies 40% of the shock absorbers. All shock absorbers are subjected to a quality test. The ones that pass the quality test are considered reliable. Of X's shock absorbers, 96% are reliable. Of Y's shock absorbers, 72% are reliable. The probability that a randomly chosen shock absorber, which is found to be reliable, is made by Y is
  1.    0.288
  2.    0.334
  3.    0.667
  4.    0.720
 Discuss Question
Answer: Option B. -> 0.334


-NA-


Question 62. What is the correct translation of the following statement into mathematical logic? "Some real numbers are rational
  1.    ÆŽx (real(x) á´  rational(x))
  2.    ÆŽx (real(x) →
  3.    ÆŽx (real(x) á´§ rational(x))
  4.    ÆŽx (rational(x) →
 Discuss Question
Answer: Option C. -> ÆŽx (real(x) á´§ rational(x))


-NA-


Question 63. Given the basic ER and relational models, which of the following is INCORRECT?
  1.    An attribute of an entity can have more than one value
  2.    An attribute of an entity can be composite
  3.    In a row of a relational table, an attribute can have more than one value
  4.    In a row of a relational table, an attribute can have exactly one value or a NULL value
 Discuss Question
Answer: Option C. -> In a row of a relational table, an attribute can have more than one value


-NA-


Question 64. The recurrence relation capturing the optimal execution time of the Towers of Hanoi problem with n discs is
  1.    T(n) = 2T(n − 2) + 2
  2.    T(n) = 2T(n − 1) + n
  3.    T(n) = 2T(n/2) + 1
  4.    T(n) = 2T(n − 1) + 1
 Discuss Question
Answer: Option D. -> T(n) = 2T(n − 1) + 1


-NA-


Question 65. Which of the following statements are TRUE about an SQL query? P : An SQL query can contain a HAVING clause even if it does not have a GROUP BY clause Q: An SQL query can contain a HAVING clause only if it has a GROUP BY clause R : All attributes used in the GROUP BY clause must appear in the SELECT clause S : Not all attributes used in the GROUP BY clause need to appear in the SELECT clause
  1.    P and R
  2.    P and S
  3.    Q and R
  4.    Q and S
 Discuss Question
Answer: Option C. -> Q and R


-NA-


Question 66. Which of the following transport layer protocols is used to support electronic mail?
  1.    SMTP
  2.    IP
  3.    TCP
  4.    UDP
 Discuss Question
Answer: Option C. -> TCP


-NA-


Question 67. In the IPv4 addressing format, the number of networks allowed under Class C addresses is
  1.    214
  2.    27
  3.    221
  4.    224
 Discuss Question
Answer: Option C. -> 221


-NA-


Question 68. Given the language L = {ab, aa, baa}, which of the following strings are in L*? 1) abaabaaabaa 2) aaaabaaaa 3) baaaaabaaaab 4) baaaaabaa
  1.    1, 2 and 3
  2.    2, 3 and 4
  3.    1, 2 and 4
  4.    1, 3 and 4
 Discuss Question
Answer: Option C. -> 1, 2 and 4


-NA-


Question 69. Fetch_And_Add(X,i) is an atomic Read-Modify-Write instruction that reads the value of memory location X, increments it by the value i, and returns the old value of X. It is used in the pseudo code shown below to implement a busy-wait lock. L is an unsigned integer shared variable initialized to 0. The value of 0 corresponds to lock being available, while any non-zero value corresponds to the lock being not available.AcquireLock(L){while (Fetch_And_Add(L,1))L = 1;}ReleaseLock(L){L = 0;}This implementation
  1.    fails as L can overflow
  2.    fails as L can take on a non-zero value when the lock is actually available
  3.    works correctly but may starve some processes
  4.    works correctly without starvation
 Discuss Question
Answer: Option B. -> fails as L can take on a non-zero value when the lock is actually available


-NA-


Question 70. The bisection method is applied to compute a zero of the function f(x) = x4 - x3 - x2 - 4 in the interval [1,9]. The method converges to a solution after “““““ iterations.
  1.    1
  2.    3
  3.    5
  4.    7
 Discuss Question
Answer: Option B. -> 3


-NA-


Latest Videos

Latest Test Papers