GATE 2007
184 questions
MCQ 1841-mark 184
Questions 26–30 of 184
Answer: (B)
The rate is requests per hour. In minutes the mean is .
Poisson formula:
Write , with :
Option (C) has the right size of number but uses without the factor .
Answer: (B)
Answer: (D)
Why (D) always holds. When DFS looks at an edge , is either not yet visited, already finished, or still being processed. The last case means a back edge, which would form a cycle, and a DAG has none. If is not yet visited, it is visited inside the call for , so it finishes first. If is already finished, it also finishes before . In both cases .
Why the others can fail. In the figure the edges are , and . Start DFS at first: , . Then start at : , visit : , , then . Take the edge :
- is , false.
- is , false.
- is , false.
i.
ii. if and only if and .
Consider the following ordered pairs:
i. (101, 22)
ii. (22, 101)
iii. (145, 265)
iv. (0, 153)
Which of these ordered pairs of natural numbers are contained in P?
Answer: (D)
(i) (101, 22): units 1 ≤ 2, tens 0 ≤ 2, hundreds 1 ≤ 0 is false (22 has hundreds digit 0). Not in P.
(ii) (22, 101): units 2 ≤ 1 is false. Not in P.
(iii) (145, 265): 5 ≤ 5, 4 ≤ 6, 1 ≤ 2, then (0, 0) is in P. In P.
(iv) (0, 153): 0 ≤ 3, then (0, 15): 0 ≤ 5, then (0, 1): 0 ≤ 1, then (0, 0) is in P. In P.
So (iii) and (iv) are in P.
Answer: (D)
Answer: (A)
A. Valid. Assume and . For any , is true and is true, so is true. Hence .
B. Not valid. Take one element with true and false. LHS is true. RHS says that if some has , some has , which is false here.
C. Not valid. Take domain with true only at and true only at . The right side is true, but no single has both, so the left side is false. The fails.
D. Not valid. Take domain and true exactly when . For each we can pick , so the left side is true. No single works for both , so the right side is false.
Answer: (A)
<Book>
<Title>GATE 2K7 Example<Title>
<Content>
One of many lines
</Content>
<TOC>
One of many content entries
</TOC>
</Book>Consider the XPath expression: *[not (self ) : : TOC]What would be the result of the given XPath expression when the current node is Book?
Answer: (A)
In XPath, selects all child elements of the current node, which here is Book. So the starting set is Title, Content and TOC.
The condition is read as *[not(self::TOC)]. The test is true only when the node being tested is itself a TOC element, and reverses it. So the predicate keeps every child that is not a TOC element.
This removes TOC and keeps the Title and Content elements.
Answer: (A)