Sail E0 Webinar

MCQs

Total Questions : 97 | Page 10 of 10 pages
Question 91. In a k-way set associative cache, the cache is divided into v sets, each of which consists of k lines. The lines of a set are placed in sequence one after another. The lines in set s are sequenced before the lines in set (s+1). The main memory blocks are numbered 0 onwards. The main memory block numbered j must be mapped to any one of the cache lines from
  1.    (j mod v) * k to (j mod v) * k + (k-1)
  2.    (j mod v) to (j mod v) + (k-1)
  3.    (j mod k) to (j mod k) + (v-1)
  4.    (j mod k) * v to (j mod k) * v + (v-1)
 Discuss Question
Answer: Option A. -> (j mod v) * k to (j mod v) * k + (k-1)


-NA-


Question 92. What is the time complexity of Bellman-Ford single-source shortest path algorithm on a complete graph of n vertices?
  1.    Î˜(n2)
  2.    Î˜(n2log n)
  3.    Î˜(n3)
  4.    Î˜(n3log n)
 Discuss Question
Answer: Option C. -> Θ(n3)


-NA-


Question 93. Which one of the following expressions does NOT represent exclusive NOR of x and y?
  1.    xy + x' y'
  2.    x ⊕ y'
  3.    x' ⊕ y
  4.    x' ⊕ y'
 Discuss Question
Answer: Option D. -> x' ⊕ y'


-NA-


Question 94. Consider the following relational schema. Students(rollno: integer, sname: string) Courses(courseno: integer, cname: string) Registration(rollno: integer, courseno: integer, percent: real)Which of the following queries are equivalent to this query in English?"Find the distinct names of all students who score more than 90% in the course numbered 107(I) SELECT DISTINCT S.snameFROM Students as S, Registration as RWHERE R.rollno=S.rollno AND R.courseno=107 AND R.percent >90(II) Πsname = (σcourseno=107 ∧ percent>90 (Registration ⋈ Students))(III) {T|ÆŽSϵ Students, ÆŽRϵ Registration ( S.rollno=R.rollno ∧ R.courseno=107 ∧ R.percent>90 ∧T.sname=S.sname)} (IV) {(SN) | ÆŽSRÆŽRP ((SR, SN)ϵ Students ∧ SR, 107, RP > ϵ Registration ∧ RP>90)}
  1.    I, II, III and IV
  2.    I, II and III only
  3.    I, II and IV only
  4.    II, III and IV only
 Discuss Question
Answer: Option A. -> I, II, III and IV


-NA-


Question 95. Consider the following languages. L1 = {0p 1q 0r | p, q, r ≥ 0} L2 = {0p 1q 0r | p, q, r ≥ 0, p ≠ r} Which one of the following statements is FALSE?
  1.    L2 is context-free.
  2.    L1 ∩ L2 is context-free.
  3.    Complement of L2 is recursive.
  4.    Complement of L1 is context-free but not regular.
 Discuss Question
Answer: Option D. -> Complement of L1 is context-free but not regular.


-NA-


Question 96. A shared variable x, initialized to zero, is operated on by four concurrent processes W, X, Y, Z as follows. Each of the processes W and X reads x from memory, increments by one, stores it to memory, and then terminates. Each of the processes Y and Z reads x from memory, decrements by two, stores it to memory, and then terminates. Each process before reading x invokes the P operation (i.e., wait) on a counting semaphore S and invokes the V operation (i.e., signal) on the
semaphore S after storing x to memory. Semaphore S is initialized to two. What is the maximum possible value of x after all processes complete execution?
  1.    -2
  2.    -1
  3.    1
  4.    2
 Discuss Question
Answer: Option D. -> 2


-NA-


Question 97. Determine the maximum length of the cable (in km) for transmitting data at a rate of 500 Mbps in an Ethernet LAN with frames of size 10,000 bits. Assume the signal speed in the cable to be 2,00,000 km/s.
  1.    1
  2.    2
  3.    2.5
  4.    5
 Discuss Question
Answer: Option B. -> 2


-NA-


Latest Videos

Latest Test Papers