Complete: The man who is now Municipal Commissioner worked as ___. A the security guard at a university; B a security guard at the university; C a security guard at university; D the security guard at the university.
Your answer
Answer & solution
Official answer: B
Our answer: B under intended article context
B describes one security guard at an understood university: a security guard at the university. It is the official choice. However A and D can also be grammatical in suitable contexts, with the referring to a particular guard and a/the university depending on prior knowledge. The isolated sentence does not uniquely determine these article choices; the key reflects a preferred contextual reading, not an unconditional grammar exclusion.
Use “a” when introducing one member of an occupation and “the” when the listener can identify the institution. The initial “the man” identifies the man, not automatically his former job or university. Thus article choice is a question of reference as well as grammar; the official preference needs unstated context.
In “Nobody knows how the Indian cricket team is going to cope with the difficult and seamer-friendly wickets in Australia,” choose the closest meaning of “cope with.” A put up with; B put in with; C put down to; D put up against.
Your answer
Answer & solution
Official answer: A
Cope with means manage or endure a difficult situation. Put up with is the closest listed expression, A.
Substitute each phrase into the sentence and preserve the relation to difficult conditions. “Put up with” means tolerate them. “Put down to” means attribute something to a cause, which changes the meaning; the other combinations do not express the required idiom here.
Find the odd word: A mock; B deride; C praise; D jeer.
Your answer
Answer & solution
Official answer: C
Mock, deride and jeer express ridicule. Praise expresses approval, so it is the odd one, C.
Classify by meaning rather than spelling or word length. Mock means make fun of, deride means express contemptuous ridicule, and jeer means taunt. All three have negative evaluative force toward their target, whereas praise expresses admiration or approval.
Find the odd letter sequence: A CADBE; B JHKIL; C XVYWZ; D ONPMQ.
Your answer
Answer & solution
Official answer: D
Relative to each five-letter alphabetical block, A, B, C follow positions 3, 1, 4, 2, 5: CADBE, JHKIL, XVYWZ. ONPMQ follows 3, 2, 4, 1, 5 instead. Thus D.
Sort the letters of each option alphabetically first. ABCDE, HIJKL and VWXYZ all undergo the same permutation 3,1,4,2,5. Sorting D yields MNOPQ, so applying that permutation would give OMPNQ, not the offered ONPMQ. The different starting letters are irrelevant.
The roots α,β of a quadratic satisfy αβ=4. Evaluate (α^n+β^n)/(α^(−n)+β^(−n)). A n^4; B 4^n; C 2^(2n−1); D 4^(n−1).
Your answer
Answer & solution
Official answer: B
Our answer: B where the ratio is defined
Since alpha·beta=4, alpha−n+beta−n=(alphan+betan)/(alpha·beta)n. Cancelling the nonzero common numerator gives 4n, B. Both roots are nonzero. If alphan+betan=0, the original ratio is 0/0 and undefined, so the question implicitly restricts to values for which it exists.
Write the denominator over a common denominator: 1/αn+1/βn=(βn+αn)/(αβ)n. Dividing by this fraction multiplies by (αβ)n, giving the result whenever cancellation is legal. For example α=β=2,n=2 gives 8/(1/2)=16=4², checking the exponent rather than a multiple of n.
Of 150 faculty, 55 use Facebook and 85 use WhatsApp; 30 use neither. How many use Facebook only? A 35; B 45; C 65; D 90.
Your answer
Answer & solution
Official answer: A
The union contains 150−30=120 people. Intersection size=55+85−120=20. Facebook-only count 55−20=35, A.
Draw disjoint regions Facebook only, both, WhatsApp only and neither. The values are 35,20,65,30; they add to 150. A quicker method is to subtract all WhatsApp users from the 120-person union: 120−85=35. Subtracting 85 directly from 150 wrongly includes those using neither.
A paragraph says computers were invented for high-end useful computation, but now dominate life; the internet is ubiquitous and many believe it an unintended consequence. Mobile computing opens a new dimension. The author wonders whether these developments are good or even required. Infer: (i) the author believes computers are not good for us; (ii) mobile computers and the internet are both intended inventions. A i only; B ii only; C both; D neither.
Your answer
Answer & solution
Official answer: D
The author questions whether developments are good or necessary, without asserting they are bad. The paragraph also reports a belief that the internet was unintended, rather than establishing that both inventions were intended. Neither statement follows, D.
A valid inference must follow from the stated words, not merely be compatible with them. A question about whether something is good leaves both answers open. Similarly “many believe” reports others’ opinions; it does not establish the truth of intended invention for either technology.
All hill-stations have a lake. Ooty has two lakes. Infer: (i) Ooty is not a hill-station; (ii) no hill-station can have more than one lake. A i only; B ii only; C both; D neither.
Your answer
Answer & solution
Official answer: D
Have a lake means at least one, not exactly one. A hill station can therefore have two lakes, and the premises neither exclude Ooty from hill stations nor limit them to one lake. Thus neither, D.
Formalize the premise as hill(x)⇒atLeastOneLake(x). It is neither a bound of exactly one nor a biconditional. A countermodel makes Ooty a hill-station with two lakes and all other hill-stations have one: all premises hold while both proposed conclusions fail.
A rectangular grid has 2 rows and 4 columns, with every cell rectangular. Count all rectangles whose sides follow grid lines. A 21; B 27; C 30; D 36.
Your answer
Answer & solution
Official answer: C
A2-by 4 grid has 3 horizontal and 5 vertical boundary lines. Choosing two of each determines one rectangle: C(3, 2)C(5, 2)=3·10=30, C.
A rectangle is uniquely specified by its top and bottom boundaries and its left and right boundaries. There are three horizontal lines and five vertical lines. Equivalently count by height: height-one rectangles contribute 2×(4+3+2+1)=20, and height-two rectangles contribute 10, totaling 30.
Identify f(x) from the plotted inverted V: it passes through (−3,−2),(0,1),(1,2),(3,0), with straight segments meeting at (1,2). A 1−|x−1|; B 1+|x−1|; C 2−|x−1|; D 2+|x−1|.
Your answer
Answer & solution
Official answer: C
Its expression is 2−|x−1|, C.
An absolute-value graph y=k−|x−h| has peak (h,k). The minus sign produces a peak instead of a trough. For x≤1 the candidate becomes x+1, and for x≥1 it becomes 3−x; both match the plotted slopes and intercepts. Testing only the vertex already removes three options.
How many of (i) false, (ii) Q, (iii) true, (iv) P∨Q, (v) ¬Q∨P are logically implied by P∧(P⇒Q)?
Answer & solution
Official answer: 4.0 : 4.0
Our answer: 4
P∧(P→Q) simplifies to P∧Q. It implies Q, true, P∨Q, and ¬Q∨P, but not false because the premise is satisfiable. Thus four listed expressions are implied.
Implication can be rewritten as ¬P∨Q. Combining with P forces P=true and hence Q=true. Evaluate all five candidates at this sole satisfying assignment: item (i) is false, while (ii), (iii), (iv) and (v) are true. A satisfiable premise does not imply a contradiction.
Let f be a polynomial and g=f′. If degree(f(x)+f(−x))=10, find degree(g(x)−g(−x)).
Answer & solution
Official answer: 9.0 : 9.0
Our answer: 9
f(x)+f(−x) isolates twice the even-degree part of f, whose highest degree is 10. Differentiating gives g(x)−g(−x), and the nonzero degree 10 leading term becomes degree 9. Therefore9.
Write f(x)=Σak xk. Adding f(−x) cancels odd powers and doubles even powers; a10 is therefore nonzero and all higher even coefficients vanish. The derivative difference cancels derivative terms from odd original powers and doubles those from even original powers. Even a higher odd degree of f cannot affect the answer.
Find the minimum number of colors sufficient to properly vertex-color every planar graph.
Answer & solution
Official answer: 4.0 : 4.0
Our answer: 4
The four-color theorem guarantees four colors suffice for every planar graph. The planar graph K4 requires four distinct colors, so fewer cannot cover every case. Answer 4.
A proper coloring requires different colors only at adjacent vertices. The answer is a universal worst-case guarantee, not the color count for each planar graph: trees often need two and triangles three. K4 can be drawn with one vertex inside a triangle joined to its corners, showing that the four-color lower bound is itself planar.
For systems of m linear equations in n variables: I if m<n all such systems have a solution; II if m>n none has a solution; III if m=n there exists a system with a solution. A all three; B II and III only; C III only; D none.
Your answer
Answer & solution
Official answer: C
I fails for an inconsistent underdetermined system, for example 0x+0y=1. II fails for a consistent overdetermined system, for example x=1 and 2x=2. III holds, for example the identity coefficient matrix with any right-hand side. Thus only III, C.
Compare ranks, not just numbers of equations: solvability requires rank(A)=rank([A|b]). Having extra variables permits free variables only after consistency is established. Having extra equations can still be consistent when those equations are redundant. The existential wording in III needs only one example, such as x1=…=xn=0.
A shop stocks equal numbers of Type 1 and Type 2 LED bulbs. Their respective probabilities of lasting over 100 hours are 0.7 and 0.4. Find the probability for a uniformly chosen bulb.
Answer & solution
Official answer: 0.55 : 0.55
Our answer: 0.55
Equal populations give prior probabilities 1/2 for each type. The law of total probability gives(0.7+0.4)/2=0.55.
The two bulb types partition the sample space, so add their joint survival probabilities: P(survive,type1)=0.5×0.7=0.35 and P(survive,type2)=0.5×0.4=0.20. Their sum is 0.55. Multiplying 0.7 by 0.4 would describe a different event involving both types rather than one randomly selected bulb.
Matrix A has eigenvalues 1,2,4. Find det((A^(−1))^T).
Answer & solution
Official answer: 0.124 : 0.126
Our answer: 0.125
det(A)=1·2·4=8. Inversion reciprocates the determinant and transpose preserves it, so det((A−1)T)=1/8=0.125.
No eigenvalue is zero, so A is invertible. The eigenvalues of A inverse are reciprocals 1,1/2,1/4, whose product is 1/8. Transposition leaves the characteristic polynomial, and hence the determinant, unchanged. The decimal 0.125 belongs to the preserved official tolerance interval.
An eight-bit ripple-carry adder adds two’s-complement integers A and B. With A=1, give the decimal B causing the longest latency for the sum to stabilize.
Answer & solution
Official answer: -1.0 : -1.0
Our answer: −1; sum-only timing may also tie at 127
With A=00000001 and B=11111111 (−1), the low-order 1+1 generates a carry that propagates through all seven higher positions, giving the standard full-ripple worst case and official−1. If only the eight sum outputs matter and final carry-out is excluded, B=01111111 (127) also propagates the carry into the sign position and can tie the longest sum-settling delay under a conventional equal-delay full-adder model. Thus uniqueness depends on the precise output/timing model; −1 is a valid worst-case operand but need not be the only one.
At bit 0, 1+1 creates carry c1. At every higher bit of B=−1, A has 0 and B has 1, so the carry-propagate signal Ai XOR Bi is 1. Thus each carry waits on the previous stage. Binary 11111111 denotes −1, not 255, in the specified signed representation.
Boolean variables satisfy x1⊕x2⊕x3⊕x4=0. Which always holds? A x1x2x3x4=0; B x1x3+x2=0; C ¬x1⊕¬x3=¬x2⊕¬x4; D x1+x2+x3+x4=0. Juxtaposition is AND and + is OR.
Your answer
Answer & solution
Official answer: C
XOR parity zero means x1 XOR x3=x2 XOR x4. Complementing both inputs of either XOR leaves its value unchanged, giving ¬x1 XOR ¬x3=¬x2 XOR ¬x4, C. All four variables 1 satisfies the premise but refutes A, B, D.
XOR is addition modulo two. Moving terms across the equality means XORing both sides with the same terms, not ordinary subtraction. Also (¬u)⊕(¬v)=(u⊕1)⊕(v⊕1)=u⊕v because 1⊕1=0. This algebra proves C for every even-parity input, not just a sample assignment.
X is the number of distinct integers representable in 16-bit two’s complement; Y is the corresponding number for 16-bit sign magnitude. Find X−Y.
Answer & solution
Official answer: 1.0 : 1.0
Our answer: 1
Two’s complement has 216 distinct values. Sign magnitude has two encodings of zero, leaving 216−1 distinct values. Hence X−Y=1.
Two’s-complement range is −32768 through 32767, containing 65536 integers. Sign magnitude ranges from −32767 through 32767, containing 65535 integers. Both formats have 65536 bit patterns; the question asks distinct mathematical values, so +0 and −0 count once.
A processor has 40 instructions and 24 general-purpose registers. Its 32-bit instruction has an opcode, two register fields and an immediate field. How many bits remain for the immediate?
Answer & solution
Official answer: 16.0 : 16.0
Our answer: 16
Forty opcodes require ceil(log₂40)=6 bits. Each of 24 registers requires 5 bits, so two register fields need 10. The immediate field has 32−6−10=16 bits.
An r-bit identifier distinguishes at most 2r possibilities. Five opcode bits cover only 32 instructions, so six are needed; four register bits cover only 16 registers, so five are needed per operand. Some encodings remain unused, but fractional bit fields are impossible in this fixed-field format.
BFS starts at the root of a binary tree. Vertex t is at distance 4 from the root and is the nth visited vertex, counting the root first. Find the maximum n.
Answer & solution
Official answer: 31.0 : 31.0
Our answer: 31
BFS visits all shallower levels first. A full binary tree has 1+2+4+8=15 nodes above level4 and at most 16 nodes on level4. Taking t last on that level gives position 31, attained by a perfect tree through level4.
The last possible position at depth d in a binary tree is Σ(k=0 to d)2k=2d+1−1. Nodes at greater depth cannot precede t in BFS. Sparse levels or placing t earlier can only reduce its ordinal, so a full tree and a last-on-level choice attain the bound.
C-like code: void f(int* p,int m){m=m+5; *p=*p+m; return;} void main(){int i=5,j=10; f(&i,j); printf("%d",i+j);} Find the printed value under the intended ordinary integer execution.
Answer & solution
Official answer: 30.0 : 30.0
Our answer: 30
The value parameter m changes from 10 to 15 locally. Writing through p updates i from 5 to 20, while caller j stays 10. Hence i+j=30. Routine library declarations and the intended void-main extension are assumed.
Passing &i copies i’s address, not its value, into p. Dereferencing p consequently changes the caller’s i. Passing j copies 10 into the separate local variable m, so changing m cannot change j. The final addition is 20+10, not 20+15 or the original 5+10.
For ascending sorted input, assess: I quicksort is Θ(n²); II bubblesort is Θ(n²); III mergesort is Θ(n); IV insertion sort is Θ(n). A I,II only; B I,III only; C II,IV only; D I,IV only. The source supplies no implementation details.
Your answer
Answer & solution
Official answer: D
Our answer: D under textbook implementation conventions
With first/last-element pivot selection, sorted input gives quicksort Θ(n²). An early-exit bubble sort detects no swaps after one pass and takes Θ(n), ordinary mergesort remains Θ(n log n), and insertion sort takes Θ(n). These conventions make I and IV true, D. The names alone do not determine these cases: a balanced/randomized-pivot quicksort need not be quadratic, unoptimized bubble sort can be quadratic, and adaptive mergesort can be linear. The official answer requires the stated implementation choices.
The quadratic quicksort recurrence is T(n)=T(n−1)+Θ(n), whose level costs add to Θ(n²). The insertion-sort best case makes one failed comparison per new item, hence linear work. Standard merging processes n elements at each of log n levels. These derivations explain the official convention rather than falsely treating algorithm names as complete implementations.
Which paradigm underlies Floyd–Warshall all-pairs shortest paths? A greedy; B divide-and-conquer; C dynamic programming; D none of these.
Your answer
Answer & solution
Official answer: C
Floyd–Warshall maintains shortest distances whose allowed intermediate vertices come from the first k vertices, updating dk(i, j)=min(dk−1(i, j), dk−1(i, k)+dk−1(k, j)). Reusing these subproblems is dynamic programming, C.
Define Dk(i,j) as the best i-to-j path using only vertices 1,…,k internally. Such a path either avoids k or decomposes through k into two earlier subproblems. Initialize D0 with edge weights, zero diagonals and infinity for absent edges. Iterating k,i,j uses Θ(V³) time and can reuse one distance matrix.
A sorted doubly linked list initially holds N items. Delete and decrease-key receive pointers to their records. An algorithm performs, in order, Θ(N) deletes, O(log N) inserts, O(log N) finds and Θ(N) decrease-key operations. Select total time: A O(log²N); B O(N); C O(N²); D Θ(N² log N).
Your answer
Answer & solution
Official answer: C
With the node pointer, doubly linked deletion is O(1). Maintaining sorted order can require O(N) search per insertion, find, or decrease-key repositioning. Thus Θ(N) deletions cost O(N), O(log N) insert/find calls cost O(N log N), and Θ(N) decreases cost O(N²) in the worst case. Total O(N²), C; the deletion count may leave Θ(N) elements, allowing this worst case.
A pointer removes the need to locate a node for deletion, but decreasing its key may move it far left to preserve order. Relinking is constant time; locating the new position can be linear. A linked list does not permit constant-time access to a middle index, so sortedness alone does not give array-style logarithmic binary search.
How many states does a minimum DFA need for (0+1)*(0+1)(0+1)*, where + denotes union?
Answer & solution
Official answer: 2.0 : 2.0
Our answer: 2
Step through it (2 parts)
The expression Σ*ΣΣ* is exactly the nonempty binary strings. Use a nonaccepting start state and one accepting state reached by either symbol, with both loops on the latter. The empty string differs from every nonempty word, so at least two states are necessary.
The mandatory middle (0+1) contributes at least one symbol, while the starred parts may be empty. The transition table is start:0→accept,1→accept; accept:0→accept,1→accept. The empty suffix distinguishes start from accept because only one is accepting, establishing minimality rather than merely constructing a two-state automaton.
L1 has grammar S1→aS1b|ε, and L2 has S2→abS2|ε. P: L1 is regular; Q: L2 is regular. A both; B P only; C Q only; D neither.
Your answer
Answer & solution
Official answer: C
L1={an bn: n≥0}, nonregular by pumping/distinguishable prefixes. L2=(ab)* is regular. Therefore P false, Q true, C.
Each use of S1→aS1b adds one a and one b at opposite ends; ε stops the derivation. Pumping an a-prefix of ap bp changes only the a count, proving nonregularity. In contrast, S2 repeatedly appends the fixed block ab; a three-state complete DFA can check alternating a,b blocks and reject violations.
L1 is regular, L2 context-free, L3 recursive and L4 recursively enumerable. Which are always true? I ¬L3∪L4 is RE; II ¬L2∪L3 is recursive; III L1*∩L2 is context-free; IV L1∪¬L2 is context-free. Complements use the common alphabet-star. A I only; B I,III; C I,IV; D I,II,III.
Your answer
Answer & solution
Official answer: D
The source complement bars matter. I: complement(L3) is recursive and its union with RE L4 is RE. II: every CFL is recursive, so complement(L2) and its union with recursive L3 are recursive. III: L1* is regular and its intersection with a CFL is CFL. IV is not guaranteed because taking L1 empty leaves complement(L2), and CFLs are not closed under complement. Thus I, II, III, D.
Do not confuse “not context-free” with “undecidable.” Every CFL has a terminating membership algorithm, so its complement is decidable even though it may cease to be context-free. For III, run a finite automaton for L1* alongside a pushdown automaton for L2. The finite control adds no second stack, preserving context-freeness.
Match P lexical analysis, Q top-down parsing, R semantic analysis, S runtime environments with i leftmost derivation, ii type checking, iii regular expressions, iv activation records. A P-i,Q-ii,R-iv,S-iii; B P-iii,Q-i,R-ii,S-iv; C P-ii,Q-iii,R-i,S-iv; D P-iv,Q-i,R-ii,S-iii.
Your answer
Answer & solution
Official answer: B
Lexical analysis uses regular expressions; top-down parsing constructs a leftmost derivation; semantic analysis checks types; runtime environments organize activation records. Hence P-iii, Q-i, R-ii, S-iv, B.
A lexer recognizes tokens such as identifiers and numbers from character patterns. A top-down parser expands the leftmost pending nonterminal toward the input. Semantic analysis rejects type-incompatible expressions even when their syntax parses. Activation records store each call’s parameters, locals and return information at runtime; this separates all four roles.
Which page-replacement policy can suffer a higher page-fault rate when more frames are allocated? A LRU; B OPT; C MRU; D FIFO.
Your answer
Answer & solution
Official answer: D
FIFO exhibits Belady’s anomaly. For reference string 1, 2, 3, 4, 1, 2, 5, 1, 2, 3, 4, 5, FIFO produces 9 faults with 3 frames but 10 with 4. LRU and OPT obey inclusion/optimality monotonicity; MRU is also an inclusion policy under consistent recency/tie handling. Thus D.
With three FIFO frames the example’s fault positions are 1,2,3,4,5,6,7,10,11. With four they are 1,2,3,4,7,8,9,10,11,12. More capacity changes eviction order, not merely how many pages fit at one instant. The inclusion property prevents this anomaly when every smaller resident set is contained in the larger one.
B+ trees are balanced because: A all root-to-leaf path lengths equal; B those lengths differ by at most 1; C child counts of nonleaf siblings differ by at most 1; D record counts of leaves differ by at most 1.
Your answer
Answer & solution
Official answer: A
Every B+ tree leaf is at the same level. Consequently every root-to-leaf path has the same length, A. Occupancy counts may differ much more than one while still meeting the minimum/maximum occupancy constraints.
Balanced here describes tree height, not identical node fill. A root-to-leaf search examines the same number of tree levels whichever key range it follows. Option B is a weaker consequence of equality, but A states the defining stronger invariant. The intended single-choice answer should not be read as making the weaker inequality mathematically false.
Build a schedule’s precedence graph with transactions as vertices and conflicts as directed edges. If the schedule is “serializable,” which vertex order guarantees a serial schedule? A topological; B depth-first; C breadth-first; D increasing transaction index. Explain the intended meaning of serializable.
Your answer
Answer & solution
Official answer: A
Our answer: A under conflict-serializability interpretation
An acyclic precedence graph admits a topological order, and placing transactions in that order respects every conflicting pair, yielding a conflict-equivalent serial schedule. Thus A. The word serializable must mean conflict-serializable here: view-serializable schedules can have cyclic conflict graphs (for example blind writes w1(X), w2(X), w1(X)), so a topological order need not exist under that broader meaning.
An edge Ti→Tj says a conflicting operation of Ti precedes one of Tj and that order must be preserved. A topological sort respects every such edge; ordinary traversal orders need not. For example an edge T2→T1 rules out increasing index order. Graph acyclicity is both necessary and sufficient for conflict serializability, not for every broader serializability notion.
Anarkali digitally signs a message and sends it to Salim. What key does Salim need to verify? A Anarkali’s public; B Salim’s public; C Salim’s private; D Anarkali’s private.
Your answer
Answer & solution
Official answer: A
A digital signature is verified using the signer’s public key. Since Anarkali signed, Salim uses Anarkali’s public key, A.
Signing and encryption serve different purposes. Anarkali signs with her private key; anyone holding an authentic copy of her public key can verify origin and integrity. Salim’s private key would be relevant to decrypting content encrypted for him, not verifying someone else’s signature. Verification also presupposes that the public key really belongs to Anarkali.
In an Ethernet LAN, which is true? A a station stops sensing once transmitting; B jam pads short frames; C transmission continues after detecting a collision; D exponential backoff reduces collision probability on retransmission.
Your answer
Answer & solution
Official answer: D
In shared half-duplex CSMA/CD Ethernet, random exponential backoff spreads retransmission times after a collision and reduces renewed collision probability. Stations monitor during transmission, abort the data frame on collision, and send a jam signal to make the collision detectable. Thus D.
After repeated collisions, the random waiting range grows, making identical retries less likely among contenders. A jam signal announces a collision so all participants abandon the damaged frame; it is not padding to reach minimum length. These statements concern collision-detecting shared Ethernet, not collision-free full-duplex switched operation.
A just-restarted host’s browser requests a remote webpage. Choose the order among the listed packets: A HTTP GET,DNS query,TCP SYN; B DNS query,HTTP GET,TCP SYN; C DNS query,TCP SYN,HTTP GET; D TCP SYN,DNS query,HTTP GET.
Your answer
Answer & solution
Official answer: C
In the conventional uncached HTTP-over-TCP scenario, resolve the server name by DNS, initiate the TCP connection with SYN, then send HTTP GET after connection establishment. This order is C. Other bootstrap traffic such as DHCP/ARP and modern alternative transports are outside the listed sequence.
DNS provides the destination IP address required before the TCP SYN can be directed to that server. TCP’s handshake establishes the byte stream carrying the HTTP request. The question asks relative order of three named messages, not a complete packet trace: SYN-ACK, ACK and link-layer address resolution may occur between them.
On N×N define (a,b)R(c,d) iff a≤c or b≤d. P: reflexive; Q: transitive. A both; B P only; C Q only; D neither.
Your answer
Answer & solution
Official answer: B
Reflexivity holds because a≤a. For nontransitivity choose x=(2, 2), y=(3, 1), z=(1, 1). xRy holds via 2≤3, yRz via 1≤1, but xRz fails both 2≤1 comparisons. Thus P true, Q false, B.
Transitivity requires one implication to hold for every triple; a single failed triple suffices to refute it. The OR permits one pair to be justified by its first coordinate and the next by its second coordinate. Those mixed justifications cannot be chained into either required inequality for the endpoints, unlike coordinatewise AND order.
Which predicate formula is not valid? A (∀x p(x)⇒∀x q(x))⇒(∃x ¬p(x)∨∀x q(x)); B (∃x p(x)∨∃x q(x))⇒∃x(p(x)∨q(x)); C ∃x(p(x)∧q(x))⇒(∃x p(x)∧∃x q(x)); D ∀x(p(x)∨q(x))⇒(∀x p(x)∨∀x q(x)).
Your answer
Answer & solution
Official answer: D
On domain{0, 1}, let p hold only at 0 and q only at 1. Then every element satisfies p∨q but neither predicate holds universally, refuting D. A is implication elimination/quantifier negation; B distributes existential over disjunction; C reuses the common witness for each existential. Thus D alone is invalid.
For D, let p(0)=true,p(1)=false,q(0)=false,q(1)=true. The antecedent is true at each point using different predicates, while both universal disjuncts are false. Existential witnesses can be chosen separately in B, and a common witness suffices in C; universal disjunction cannot generally be split this way.
U contains 23 distinct compounds; a subset S of 9 compounds has each member reacting with exactly 3 compounds of U. Treat reaction as mutual. Which is always true? I every member of U\S reacts with an odd number; II at least one does; III every member reacts with an even number. A I only; B II only; C III only; D none.
Your answer
Answer & solution
Official answer: B
Model mutual reactions as an undirected graph. The nine vertices in S have degree 3, hence are nine odd-degree vertices. The total number of odd-degree vertices must be even, so the remaining 14 vertices contain an odd, in particular nonzero, number of odd-degree vertices. At least one is necessary; all 14 being odd is impossible. Therefore only II, B.
The handshaking identity is Σdeg(v)=2|E|, an even number because every reaction contributes two endpoints. Nine degrees of three contribute 27, so the sum of remaining degrees must be odd. An odd sum contains an odd number of odd summands. This proves II without needing to know any individual reaction partner.
The powers cycle as 13,16,4,1 modulo 17. Write 99=4×24+3, then replace 134×24 by 1 and retain the third power. Working modulo after every multiplication avoids enormous integers. The intermediate −13 is a valid congruence but must be reported as 4 in the specified nonnegative range.
Functional units UF and UG compute F and G in 5 ns and 3 ns. Two instances of each are available. Find the minimum completion time for ten computations F(G(Xi)), i=1,…,10, ignoring other delays.
Answer & solution
Official answer: 28.0 : 28.0
Our answer: 28
Each of the two F units must perform at least five 5 ns operations to finish ten jobs. No F can begin before the first G output at 3 ns, so makespan≥3+25=28 ns. Two G units produce pairs at 3, 6, 9, 12, 15 ns. Feed the F units continuously in paired intervals 3–8, 8–13, 13–18, 18–23, 23–28. This attains 28 ns.
Think in five two-job batches. The G stage finishes each batch every 3 ns, whereas F needs 5 ns, so F is the bottleneck after startup. Waiting buffers hold early G outputs while F is busy. Multiplying ten jobs by 8 ns ignores parallelism; using just 25 ns forgets the unavoidable initial G latency.
A machine has 64 registers and 12 instructions. Each instruction has opcode, two source registers, one destination register, and a 12-bit immediate. Instructions must be individually byte aligned. Find bytes used by 100 instructions.
Answer & solution
Official answer: 500.0 : 500.0
Our answer: 500
Twelve opcodes need 4 bits; each of three register identifiers needs 6 bits for 64 registers; immediate uses 12. Total 34 bits per instruction. Byte alignment requires ceiling(34/8)=5 bytes per instruction, so 100 instructions occupy 500 bytes.
The bit fields require 4+6+6+6+12=34 bits. Individually byte-aligned storage rounds each instruction up to 40 bits, leaving six padding bits per instruction. Rounding only the aggregate 3400 bits would give 425 bytes but pack subsequent instructions at nonbyte boundaries, contrary to the stated alignment rule.
A machine’s physical addresses have 40 bits. Find tag width in a 512 KB, 8-way set-associative cache under the usual byte-addressed binary-capacity convention.
Answer & solution
Official answer: 24.0 : 24.0
Our answer: 24
Step through it (4 steps)
For byte-addressed memory and binary KB, cache capacity 512 KiB=219 bytes with 8 ways gives 216 bytes per way. Index plus block-offset bits total 16 regardless of block size, leaving 40−16=24 tag bits. The usual power-of-two cache and byte-address convention is assumed.
Let a block contain 2b bytes. The number of cache sets is 219/(2³×2b)=216−b. Therefore the address has b offset bits and 16−b index bits; their sum is fixed even though block size is unstated. The remaining high 24 bits distinguish memory blocks mapping to the same set.
A three-stage 3 GHz pipeline has τ1=3τ2/4=2τ3. Split the longest stage into two equal stages. Ignoring pipeline-register delay, find the new frequency in GHz.
Answer & solution
Official answer: 3.9 : 4.1
Our answer: 4 GHz
The relation gives tau2=4tau1/3 and tau3=tau1/2; tau2 is originally longest. A3GHz clock therefore has tau2=1/3 ns and tau1=1/4 ns. Splitting tau2 creates two 1/6 ns stages; the new bottleneck is tau1=1/4 ns, giving 4GHz.
The original stage times are τ1=1/4 ns, τ2=1/3 ns, τ3=1/8 ns. After splitting, the four stages are 1/4,1/6,1/6,1/8 ns. The clock period is their maximum, not their average or sum. Adding one stage does not automatically multiply the frequency by four-thirds; it does so here because of these particular delays.
A complete binary min-heap contains each integer 1,…,1023 exactly once. Root depth is 0. What is the greatest possible depth of key 9?
Answer & solution
Official answer: 8.0 : 8.0
Our answer: 8
A node at depth d has d strictly smaller ancestors in a heap of distinct keys. Key9 has only eight smaller values, so d≤8, also below the full tree’s maximum depth 9. Place1..9 along a root-to-depth 8 chain and assign remaining keys in a parent-before-child order; all heap inequalities can be satisfied. Thus depth 8 is attainable.
There are 1023=210−1 nodes, so levels 0 through 9 exist. Depth 9 would require nine ancestors smaller than 9, but only eight values qualify. A heap is not a BST: siblings need not be numerically ordered, so the remaining values can be assigned without imposing a search-tree constraint on the chosen chain.
Code for positive X,Y: int exp(int X,int Y){int res=1,a=X,b=Y; while(b!=0){if(b%2==0){a=a*a;b=b/2;}else{res=res*a;b=b-1;}}return res;}. Which invariant holds before every iteration? A X^Y=a^b; B (res*a)^Y=(res*X)^b; C X^Y=res*a^b; D X^Y=(res*a)^b.
Your answer
Answer & solution
Official answer: C
Our answer: C under no-overflow arithmetic
The invariant is X^Y=res·a^b, C. Initially res=1, a=X, b=Y. An even step replaces(a, b) by(a², b/2), preserving a^b. An odd step multiplies res by a and decreases b by 1, preserving the product. At termination b=0, res=X^Y. This mathematical proof assumes intermediates fit the C int type; arbitrary positive inputs can overflow signed int and then lack defined C behavior.
For example X=2,Y=3 gives states (res,a,b)=(1,2,3),(2,2,2),(2,4,1),(8,4,0). The invariant product is 8 at each state. Option A fails once a factor moves into res; option D incorrectly raises res to b. Initialization, preservation and termination are three distinct obligations in a loop-invariant proof.
New-order visits root, then right subtree, then left subtree recursively. For the expression tree of postfix “3 4 * 5 - 2 ^ 6 7 * 1 + -”, choose its New-order. A + - 1 6 7 * 2 ^ 5 - 3 4 *; B - + 1 * 6 7 ^ 2 - 5 * 3 4; C - + 1 * 7 6 ^ 2 - 5 * 4 3; D 1 7 6 * + 2 5 4 3 * - ^ -.
Your answer
Answer & solution
Official answer: C
Step through it (15 steps)
The postfix expression gives root subtraction with left subtree((3*4)−5)2 and right subtree(6*7)+1. Root-right-left order visits −, then + 1 * 7 6, then ^ 2 − 5 * 4 3. Thus − + 1 * 7 6 ^ 2 − 5 * 4 3, C.
Build the tree with a stack: push operands; for an operator pop the right child first, then the left child. The final minus combines the two large subexpressions. Reversing child visits does not exchange the operands in the original expression; it changes only traversal order. In particular the right multiplication is visited * 7 6, excluding B.
Code: int f(int*p,int n){if(n<=1)return 0; else return max(f(p+1,n-1),p[0]-p[1]);} int main(){int a[]={3,5,2,6,4};printf("%d",f(a,5));}. max returns the greater argument. Find the printed value.
Answer & solution
Official answer: 3.0 : 3.0
Our answer: 3
Step through it (13 steps)
The recurrence returns max(0, p[0]−p[1],..., p[n−2]−p[n−1]). For3, 5, 2, 6, 4 the adjacent differences are−2, 3,−4, 2; the maximum with 0 is 3.
Unwind from the end: the one-element suffix returns 0; suffix [6,4] returns max(0,2)=2; [2,6,4] returns max(2,−4)=2; [5,2,6,4] returns max(2,3)=3; the full array returns max(3,−2)=3. The function considers adjacent drops, not arbitrary pairs or absolute differences.
Matrices A1,A2,A3,A4 have dimensions 10×5,5×20,20×10,10×5. Find the minimum number of scalar multiplications using ordinary matrix multiplication to compute their product.
Answer & solution
Official answer: 1500.0 : 1500.0
Our answer: 1500
Step through it (8 steps)
Use A1((A2A3)A4): A2A3 costs 5·20·10=1000 and yields 5×10; multiplying A4 costs 5·10·5=250 and yields 5×5; multiplying A1 costs 10·5·5=250. Total 1500. The five full parenthesizations cost 1750, 1500, 3000, 2000, 3500, so 1500 is minimal.
Matrix-chain DP uses M(i,j)=min over k of M(i,k)+M(k+1,j)+di−1dk dj, with M(i,i)=0. For d=(10,5,20,10,5), two-matrix costs are 1000,1000,1000; three-matrix optima are M(1,3)=1500 and M(2,4)=1250. Splitting the full chain after A1 then costs 1250+250=1500.
A recursive flowchart starts with A(n/2), then branches. Left: call A(n/2), return. Right: call A(n/2) twice, then branch to return or call A(n/2) and branch again to return or one final A(n/2) then return. All other work is O(1); assume a constant-size base case and attainable recursive worst branches. Find the least α for worst-case O(n^α), to two decimals.
Answer & solution
Official answer: 2.2 : 2.4
Our answer: log₂5 ≈2.32
Assuming the displayed worst branch can recur and a constant-size base case, T(n)=5T(n/2)+O(1), yielding Theta(nlog₂5). The least exponent islog₂5≈2.32; the official accepted interval 2.2 : 2.4 is preserved.
Only calls on a single executed control-flow path are added. The two alternative exits must not both be counted. At recursion level j, the worst-case tree has 5j calls of size n/2j; after log₂n levels it has 5log₂n=nlog₂5 leaves. This yields the exponent without mistaking five sequential calls for five levels of recursion.
How many permutations of 1,…,7, inserted into an empty BST, produce height 6? Height counts edges, so a one-node tree has height 0.
Answer & solution
Official answer: 64.0 : 64.0
Our answer: 64
Height6 with seven nodes means every node lies on one chain. The first inserted value must be the smallest or largest remaining key; otherwise both subtrees would be nonempty and the tree could not be a chain. Recursively choose either endpoint for each of the first six insertions, with the last forced. This gives 26=64 distinct insertion orders.
For a chain, all remaining keys must fall on one side of each successive root. Thus the smallest or largest key is chosen repeatedly. This counts insertion permutations, not merely final shapes. For three keys the valid orders are 123,132,312,321, illustrating the recurrence C(k)=2C(k−1), C(1)=1.
An undirected simple graph with n vertices and m edges uses adjacency lists. Entries [v] in u’s list and [u] in v’s list are twins. With unrestricted auxiliary memory, find the best time to set all twin pointers. A Θ(n²); B Θ(n+m); C Θ(m²); D Θ(n⁴).
Your answer
Answer & solution
Official answer: B
Number vertices 0..n−1. Scan the adjacency lists and record each entry’s pointer together with the ordered endpoint pair(min(u, v), max(u, v)). Two stable counting-sort passes on the endpoint labels sort all 2m records in O(n+m) time. Consecutive equal pairs are twins, so link their pointers in O(m). Scanning the n list heads and writing the 2m pointers gives the matching linear input/output bound in the adjacency-list model. Thus Θ(n+m), B; the algorithm uses allowed auxiliary memory without initializing an n² matrix.
Give each adjacency entry a record (min endpoint,max endpoint,address). Integer vertex labels permit stable counting sorts instead of comparison sorting’s extra logarithm. Simplicity ensures exactly two records per undirected edge, so matching neighbors after sorting is unambiguous. A dense n-by-n matrix is unnecessary and initializing it would lose the linear bound for sparse graphs.
I: If all NFA states accept, its language is Σ*. II: There exists a regular language A for which A∩B is regular for every language B. A I only; B II only; C both; D neither.
Your answer
Answer & solution
Official answer: B
An NFA can have missing transitions. One accepting start state with no transitions accepts only epsilon, not Σ* for a nonempty alphabet, disproving I. For II choose the regular language A=empty set; its intersection with every B is empty and hence regular. Thus only II, B.
Acceptance by an NFA requires at least one complete run consuming the entire word. An accepting state alone cannot consume an unavailable transition; for the one-state counterexample any nonempty word has no run. II is existential in A but universal in B, so choosing a fixed empty A handles even nonregular or undecidable B at once.
L1={a^n b^m c^(n+m):m,n≥1}; L2={a^n b^n c^(2n):n≥1}. A both context-free; B only L1; C only L2; D neither.
Your answer
Answer & solution
Official answer: B
L1 is generated by S→aSc|aBc and B→bBc|bc: each a or b adds one trailing c, with positive counts of both. Thus L1 is context-free. If L2 were context-free, its inverse image under h(a)=a, h(b)=b, h(c)=cc would be {an bn cn: n≥1}, which is not context-free by the pumping lemma. CFL closure under inverse homomorphism therefore proves L2 non-context-free. Answer B.
A pushdown intuition for L1 pushes one marker per a or b and pops one per c, with finite control enforcing the a-then-b-then-c phases. L2 must enforce three linked quantities. Under h(c)=cc, an input an bn cn maps exactly to an bn c2n, transferring the known non-CFL obstruction through inverse homomorphism.
Let L1={⟨M⟩:M takes at least 2016 steps on some input}, L2={⟨M⟩:M takes at least 2016 steps on all inputs}, L3={⟨M⟩:M accepts ε}. Which are recursive? A only L1; B only L2; C L1 and L2 only; D all three.
Your answer
Answer & solution
Official answer: C
Whether a machine takes at least 2016 steps depends only on its first 2016-step computation prefix. In that time its input head can inspect only a bounded initial segment, so finitely many representative inputs suffice: all short inputs and one representative extension for each sufficiently long prefix. Simulate each for the fixed bound and test whether any (L1) or every (L2) representative survives that many steps. Both tests halt. Acceptance of epsilon (L3) is undecidable by the standard reduction that builds a machine ignoring its input and simulating an arbitrary machine/input pair. Hence C.
The constant 2016 is essential: this is bounded simulation, not the general halting problem. A machine cannot inspect arbitrarily far into its input in a fixed number of steps. For L3, given M,w, construct N that ignores its own input and simulates M on w, accepting iff M accepts w. Deciding whether N accepts ε would decide the undecidable acceptance problem.
Which grammar has no left recursion? A S→AB,A→Aa|b,B→c; B S→Ab|Bb|c,A→Bd|ε,B→e; C S→Aa|B,A→Bb|Sc|ε,B→d; D S→Aa|Bb|c,A→Bd|ε,B→Ae|ε.
Your answer
Answer & solution
Official answer: B
Grammar B has an acyclic nonterminal dependency chain S→A/B, A→B, with B deriving only terminal e; it cannot derive a sentential form beginning again with the same nonterminal. A has direct A→Aa. C has S⇒Aa⇒Sca. D has A⇒Bd⇒Aed. Thus B alone is free of left recursion.
Left recursion means a derivation A⇒+Aα, possibly passing through other nonterminals and nullable productions. It is not the same as any recursion anywhere on a right side. In B every chain beginning in a nonterminal descends from S to A to B, and B immediately produces terminal e, so no cycle can return to its starting nonterminal.
Two grammars describe C-like declarations with at least one array dimension, e.g. int a[10][3];. Terminals: int, ;, id, [, ], num. G1: D→int L;, L→id [E, E→num] | num][E. G2: D→int L;, L→id E, E→E[num] | [num]. Which correctly generate the declarations? A both; B G1 only; C G2 only; D neither.
Your answer
Answer & solution
Official answer: A
G1 emits the opening bracket with id, then its recursive E→num][E adds each completed dimension and the next opening bracket, ending with E→num]. G2 emits one or more bracketed num groups through left recursion E→E[num] with base[num]. Both generate int id[num]...[num]; with at least one dimension, including the example. Thus A.
For two dimensions, G1 derives L⇒id [E⇒id [num][E⇒id [num][num]. G2 derives L⇒id E⇒id E[num]⇒id [num][num]. Substituting id=a and the two num tokens by 10 and 3 yields the example in each. Left recursion may inconvenience a parser, but it does not make the generated language incorrect.
Preemptive shortest-remaining-time-first schedules P1(arrival 0,burst 10), P2(3,6), P3(7,1), P4(8,3), all times ms. Find average turnaround time.
Answer & solution
Official answer: 8.2 : 8.3
Our answer: 8.25
Step through it (7 steps)
SRTF executes P1: 0–3, P2: 3–7, P3: 7–8, P2: 8–10, P4: 10–13, P1: 13–20. Turnaround times are 20−0=20, 10−3=7, 8−7=1, 13−8=5. Average33/4=8.25ms, within the official 8.2–8.3 interval.
At time 3, P1 has 7 ms left, so arriving P2 with 6 preempts it. At time 7, P2 has 2 left, so P3 with 1 preempts. At time 8, P2’s remaining 2 beats P4’s 3 and P1’s 7. Turnaround includes all waiting after arrival; average waiting would instead subtract each burst and yield 3.25 ms.
Two processes share turn=0. Process 0 entry waits while turn==1, then executes its critical section and sets turn=1 on exit. Process 1 waits while turn==0, executes its critical section and sets turn=0 on exit. A correct solution; B violates mutual exclusion; C violates progress; D violates bounded waiting.
Your answer
Answer & solution
Official answer: C
This is strict alternation. If process 0 finishes its critical section and remains in its remainder section, turn becomes 1. Process1 may enter and leave, setting turn back 0. A further request by process 1 is then blocked even though process 0 is not competing. This violates progress. Mutual exclusion holds because turn cannot be both 0 and 1; the intended answer is C under the standard synchronization-property definitions.
An even simpler progress witness occurs initially: only process 1 requests entry while process 0 stays forever in its remainder section. turn remains 0, so the empty critical section is inaccessible to the sole interested process. Strict alternation limits overtaking but lets an uninterested process prevent entry, which is why mutual exclusion alone is insufficient.
A nonnegative counting semaphore S uses P to decrement when permitted and V to increment. Twenty P and twelve V operations are issued in some order. Find the greatest initial S for which at least one P remains blocked after the V operations are processed.
Answer & solution
Official answer: 7.0 : 7.0
Our answer: 7
After all 12 V operations have taken effect, the total number of permits available to satisfy the 20 P operations is S0+12. At least one remains blocked exactly when S0+12<20, giving the largest integer S0=7. This concerns operations remaining blocked after all issued V operations are processed, not a temporary block earlier in some ordering.
At S0=7 there are only 19 permits over the entire execution, so twenty P operations cannot all finish. At S0=8 there are twenty permits, enough eventually to release every issued P once all twelve V operations occur. A transient empty semaphore does not prove an operation will remain blocked after future signals.
A disk-block cache has 1 ms hit latency and 10 ms disk-read latency; cache checking is negligible. Sizes are multiples of 10 MB. Graph points (size MB,miss %): (10,80),(20,60),(30,40),(40,35),(50,30),(60,25),(70,20),(80,15). Find the smallest size with average latency strictly below 6 ms.
Answer & solution
Official answer: 30.0 : 30.0
Our answer: 30
With negligible lookup-check cost, average latency is(1−m)*1+m*10=1+9m milliseconds, requiring m<5/9. The graph gives miss rates 80% at 10MB, 60% at 20MB and 40% at 30MB. Thus20MB gives 6.4ms and 30MB gives 4.6ms; the smallest allowed size is 30MB.
At 10,20,30 MB the weighted delays are 8.2,6.4,4.6 ms. The target threshold is miss probability below 0.555…, not hit probability below that number. Since cache sizes are discrete multiples of 10 MB, interpolation to a value between 20 and 30 is not an allowed answer. The stipulated negligible lookup cost avoids charging a cache read again on each miss.
Schedule S=r2(X);r1(X);r2(Y);w1(X);r1(Y);w2(X);a1;a2, where r,w,a mean read,write,abort. A nonrecoverable; B recoverable but cascading abort; C no cascading abort; D strict.
Your answer
Answer & solution
Official answer: C
Step through it (10 steps)
Every read occurs before the other transaction has written the read item, so neither transaction reads uncommitted data from the other. There is therefore no read-dependency requiring a cascading abort, C. The two explicit aborts do not themselves establish a cascade. The schedule is recoverable (neither commits prematurely), but not strict because w2(X) overwrites uncommitted w1(X).
Dirty reads, dirty writes and recoverability are different conditions. Here r2(X),r1(X) occur before w1(X), and neither transaction writes Y, so all reads see previously committed values. But w2(X) occurs before T1 aborts, a dirty write, ruling out strictness. Two transactions aborting in the same schedule need not have a causal read-dependency cascade.
water_schemes(scheme_no,district_name,capacity) rows: (1,Ajmer,20),(1,Bikaner,10),(2,Bikaner,10),(3,Bikaner,20),(1,Churu,10),(2,Churu,20),(1,Dungargarh,10). Printed pseudocode: with total(name,capacity) as select district_name,sum(capacity) from water_schemes group by district_name; with total_avg(capacity) as select avg(capacity) from total; select name from total,total_avg where total.capacity≥total_avg.capacity. How many output tuples under the intended CTE interpretation? The printed text repeats WITH and omits required CTE parentheses.
Answer & solution
Official answer: 2.0 : 2.0
Our answer: 2 under intended corrected CTE syntax
Per-district totals are Ajmer20, Bikaner40, Churu30, Dungargarh10; their mean is 25. Bikaner and Churu meet the >=25 condition, so the intended result has 2 tuples. Literal standard SQL requires parenthesized CTE bodies and a comma separating total and total_avg under one WITH clause. The printed repeated WITH and missing parentheses are not executable standard CTE syntax; the official 2 assumes those syntax repairs.
GROUP BY first produces one row per district, so AVG operates over four totals, not the seven original scheme rows. The single average row is crossed with those four totals; filtering retains 40 and 30. A repaired standard SQL form uses WITH total AS (...), total_avg AS (...) SELECT ..., making the intended semantics executable without claiming the printed syntax is valid.
A 20×10^6 bit/s CSMA/CD network has maximum one-way propagation time 40 μs. Find the minimum collision-detecting frame size in bytes.
Answer & solution
Official answer: 200.0 : 200.0
Our answer: 200
To detect a worst-case collision, the sender must still be transmitting after the round-trip propagation interval 2*40microseconds. Minimum frame bits=20*106*80*10−6=1600, or 200 bytes. This is the theoretical CSMA/CD collision-detection bound from the supplied rate/delay, not a claim about a standard Ethernet minimum frame.
A far-end station may begin just before the first sender’s signal reaches it. Evidence of that collision then needs another propagation interval to travel back. Therefore transmission must last at least 80 μs; using 40 μs would incorrectly halve the answer. Divide the calculated bit count by eight only after multiplying bandwidth by round-trip time.
IEEE 802.11 statements: I at least three nonoverlapping channels are available; II RTS-CTS is for collision detection; III unicast frames are acknowledged. A I,II,III; B I,III; C II,III; D II only.
Your answer
Answer & solution
Official answer: B
Under the conventional legacy2.4GHz channel plan, channels1, 6, 11 provide three non-overlapping channels, making I the intended true statement. RTS/CTS reserves the medium and mitigates hidden-terminal collisions; it is collision avoidance, not detection, so II is false. Ordinary unicast data frames are acknowledged, so III is true and B follows. Channel availability depends on PHY/channel width/regulatory domain, and ACK policies have protocol exceptions; the answer uses the textbook ordinary-data-frame model.
A hidden terminal may hear the receiver’s CTS even when it cannot hear the sender, causing it to defer. This prevents many collisions before data transmission rather than detecting a collision while transmitting. An ACK gives the sender evidence of successful reception; lack of an ACK triggers retry behavior under the ordinary unicast model used here.
A 128×10^3 bit/s satellite link has 150 ms one-way propagation delay. Selective repeat sends 1-kilobyte frames; ACK serialization is negligible. Find minimum sequence-number bits needed for 100% utilization.
Answer & solution
Official answer: 4.0 : 4.0
Our answer: 4
Step through it (6 steps)
Using1 KiB=1024 bytes, frame serialization takes 8192/128000=0.064s. To keep the link busy for serialization plus 0.3s round-trip propagation requires W≥ceil(1+0.3/0.064)=6 frames. Selective repeat requires a sequence space of at least 2W=12, so ceil(log2 12)=4 bits. Decimal1KB gives W=ceil(1+0.3/0.0625)=6 as well, so the answer does not depend on that unit convention.
The first ACK can return only after one frame serialization plus a round trip, at 0.064+0.300=0.364 s. Six serializations span 0.384 s and avoid an idle gap; five span only 0.320 s. With m sequence bits, selective repeat requires W≤2^(m−1), so three bits allow only four outstanding frames, whereas four allow eight.