GATE 2015 (Session 3)
65 questions
MCQ 45 · NAT 201-mark 30 · 2-mark 35
Questions 16–20 of 65
Let # be a binary operator defined as
X#Y=X'+Y' where X and Y are Boolean variables.
Consider the following two statements.
(S1) (P # Q) # R = P # (Q # R)
(S2) Q # R = R # Q
Which of the following is/are true for the Boolean variables P, Q and R?
X#Y=X'+Y' where X and Y are Boolean variables.
Consider the following two statements.
(S1) (P # Q) # R = P # (Q # R)
(S2) Q # R = R # Q
Which of the following is/are true for the Boolean variables P, Q and R?
Answer: (B)
The operator X # Y = X' + Y' = (XY)', which is the NAND operation.
- S2: NAND is commutative so S2 is True.
- S1: (P # Q) # R = PQ + R', but P # (Q # R) = P' + QR. The two are not the same (for example, take P = 0 and R = 1) so S1 is False.
Answer: Only S2 is true
- S2: NAND is commutative so S2 is True.
- S1: (P # Q) # R = PQ + R', but P # (Q # R) = P' + QR. The two are not the same (for example, take P = 0 and R = 1) so S1 is False.
Answer: Only S2 is true
Consider a software project with the following information domain characteristics for calculation of function point metric.
Number of external inputs (I) = 30
Number of external outputs (O) = 60
Number of external inquiries (E) = 23
Number of files (F) = 08
Number of external interfaces (N) = 02
It is given that the complexity weighting factors for I, O, E, F and N are 4, 5, 4, 10 and 7, respectively. It is also given that, out of fourteen value adjustment factors that influence the development effort, four factors are not applicable, each of the other four factors have value 3, and each of the remaining factors have value 4. The computed value of function point metric is ________.
Number of external inputs (I) = 30
Number of external outputs (O) = 60
Number of external inquiries (E) = 23
Number of files (F) = 08
Number of external interfaces (N) = 02
It is given that the complexity weighting factors for I, O, E, F and N are 4, 5, 4, 10 and 7, respectively. It is also given that, out of fourteen value adjustment factors that influence the development effort, four factors are not applicable, each of the other four factors have value 3, and each of the remaining factors have value 4. The computed value of function point metric is ________.
Answer: 612 to 613
Unadjusted function points (UFP) = sum of count weight:
Value adjustment factors (14 of them): 4 are not applicable (value 0), 4 have value 3 and the remaining 6 have value 4:
Function points:
Answer: 612.06
Value adjustment factors (14 of them): 4 are not applicable (value 0), 4 have value 3 and the remaining 6 have value 4:
Function points:
Answer: 612.06
In a web server, ten WebPages are stored with the URLs of the form http://www.yourname.com/.html; where, is a different number from 1 to 10 for each Webpage. Suppose, the client stores the Webpage with (say W1) in local machine, edits and then tests. Rest of the WebPages remains on the web server. W1 contains several relative URLs of the form “.html” referring to the other WebPages. Which one of the following statements needs to be added in W1, so that all the relative URLs in W1 refer to the appropriate WebPages on the web server?
Answer: (B)
A relative URL such as “2.html” is completed using the base URL of the page. W1 now sits on the local machine, so by default its relative links point to local files.
The HTML <base> element sets one base URL for every relative link in the page. With base href “http://www.yourname.com/”, the link “.html” becomes http://www.yourname.com/.html, the page on the web server.
(A) and (C) are <a> tags: each makes one link and does not change the other links. (D) adds a “range” attribute, which <base> does not have.
Answer: (B)
The HTML <base> element sets one base URL for every relative link in the page. With base href “http://www.yourname.com/”, the link “.html” becomes http://www.yourname.com/.html, the page on the web server.
(A) and (C) are <a> tags: each makes one link and does not change the other links. (D) adds a “range” attribute, which <base> does not have.
Answer: (B)
Consider the following statements.
I. TCP connections are full duplex
II. TCP has no option for selective acknowledgement
III. TCP connections are message streams
I. TCP connections are full duplex
II. TCP has no option for selective acknowledgement
III. TCP connections are message streams
Answer: (A)
Let us look at each statement one by one:
- I: TCP connections are full duplex. Data can flow in both directions at the same time on one connection. This is true.
- II: "TCP has no option for selective acknowledgement". This is false, because TCP does have a SACK (selective acknowledgement) option (RFC 2018).
- III: "TCP connections are message streams". This is false, because TCP is a byte stream and does not keep message boundaries.
Only I is correct.
Answer: (A)
- I: TCP connections are full duplex. Data can flow in both directions at the same time on one connection. This is true.
- II: "TCP has no option for selective acknowledgement". This is false, because TCP does have a SACK (selective acknowledgement) option (RFC 2018).
- III: "TCP connections are message streams". This is false, because TCP is a byte stream and does not keep message boundaries.
Only I is correct.
Answer: (A)
Consider the equality and the following choices for X
I.
II.
III.
IV.
The equality above remains correct if X is replaced by
I.
II.
III.
IV.
The equality above remains correct if X is replaced by
Answer: (C)
Any function is also and . It is not .
Answer: I or III or IV but not II