ISRO Scientist/Engineer Computer Science 2023 paper: Part A, questions 21 to 40, solved
Questions 21 to 40 of the ISRO Scientist/Engineer 'SC' Computer Science written test of 7 Jan 2024 (Set A): 20 questions, each solved by Skill-Lync. ISRO never published an answer key for this test, so every answer was worked out three times independently and the disagreements were settled before publishing.
Question paper published by ISRO's Centralised Recruitment Board; answers and solutions by Skill-Lync (no official key exists) · Updated 19 Nov 2026 · 20 of 80 questions on this page
Name of an operation executed on data stored in registers
- (a)Macro-operation
- (b)Micro-operation
- (c)Bit-operation
- (d)Byte-operation
Answer: (b) Micro-operation Skill-Lync answer; ISRO published no key
A micro-operation is an elementary operation performed on data held in registers during one clock pulse, for example a register transfer , an addition into a register, a shift or a clear. A machine instruction is carried out as a sequence of such micro-operations.
Macro-operation, bit-operation and byte-operation are not the standard term for this idea, and a macro-operation would mean a larger task made from many steps.
Micro-operation
Micro-operations are what a control unit (hardwired or microprogrammed) actually sequences, so they matter when reasoning about instruction timing and CPU design.
Which method detects double-bit errors: parity, CRC or XOR checksum
- (a)Odd Parity
- (b)Even Parity
- (c)Checksum (CRC)
- (d)Checksum (XOR)
Answer: (c) Checksum (CRC) Skill-Lync answer; ISRO published no key
A single parity bit changes with every flipped bit, so two flips cancel out and the parity looks correct again. Odd parity and even parity therefore detect only an odd number of bit errors and miss every double error.
An XOR checksum (longitudinal redundancy check) fails when two flips fall in the same bit column of different bytes: they cancel in the XOR. A CRC treats the message as a polynomial and divides by a generator polynomial. With a good generator it detects every double-bit error up to a certain message length.
Test: on a 16-bit message with an 8-bit tail, flipping every pair of bits in 60 random codewords went undetected 8160 times for parity, 1440 times for the XOR checksum and 0 times for CRC-8.
Calling a CRC a checksum is loose wording, but among the four options only CRC reliably detects double errors.
Checksum (CRC)
Note on this question CRC is not literally a 'checksum' (it is a polynomial-division code); the option is read as the CRC check. Parity and XOR checksum demonstrably miss some double errors, so (c) is the only defensible choice.
CRCs protect Ethernet frames, storage blocks and spacecraft telemetry frames because they catch burst and multi-bit errors that simple parity cannot.
Evaluate the prefix string -+abc+d*ef for a=10, b=2, c=5, d=3, e=4, f=1
- (a)3
- (b)4
- (c)10
- (d)6
Answer: (c) 10 Skill-Lync answer; ISRO published no key
To evaluate prefix, scan from right to left with a stack: push a value for each operand, and for each operator pop two values (first popped is the left operand) and push the result.
Doing this literally on : , then , then push , then , then . The stack ends with two values, and , not one. So the string as printed is not a single valid prefix expression: it is one operator short. The value 7 on its own matches none of the options.
The question must have lost one symbol. Trying every single-operator insertion that makes the string valid, three results land on an option. Inserting a gives , that is . Inserting a gives , that is . Inserting a gives , that is . No repair gives 4. The extra operator that most naturally repeats the pattern of the string (another next to the first one) gives , option (c). This is a judgement call, not a certainty.
10
Note on this question The printed string -+abc+d*ef is not a well-formed prefix expression (a stack evaluation leaves two values, 7 and 7). Only a one-operator repair gives an option: an extra + gives 10, an extra - gives 6, an extra / gives 3. We choose 10, with low confidence; ISRO may have dropped this question.
Prefix and postfix forms are used in expression parsers and in Lisp-style languages because evaluation needs no precedence rules, but a stray or missing token makes them invalid, which parsers must report.
Increasing order of 2^n, n^(3/2), n log n and n^(log n)
Arrange them in increasing order of complexity
- (a)
- (b)
- (c)
- (d)
Answer: (c) Skill-Lync answer; ISRO published no key
Take of every function, because comparing logarithms is easier and keeps the order.
Now versus : dividing by gives against , and wins for large , so . Next versus : the exponent passes once , so . Finally is a polynomial in and is far larger, so : is quasi-polynomial, still below exponential.
Numbers at : , , . The order held at every from to in the check.
So the increasing order is .
Ranking growth rates like this tells an engineer which algorithm stays usable as input grows: scales to millions of items, while exponential time stops being practical around a few dozen.
Maximum comparisons to radix sort 6 three-digit decimal numbers
- (a)120
- (b)180
- (c)210
- (d)360
Answer: (b) 180 Skill-Lync answer; ISRO published no key
Radix sort is not a comparison sort: it never compares two numbers with each other. It makes one pass per digit, from the least significant to the most significant, and in each pass drops every number into one of 10 digit buckets (0 to 9) in a stable way.
If we count the digit tests of the simplest bucketing, each pass checks each of the items against each of the digit values. With digits:
Running this count on a sample of six numbers gave 180 digit tests. This is the only reading of the question that lands exactly on an option: 120, 210 and 360 do not come from , and in any natural way.
Strictly, radix sort does zero key comparisons and costs time with counting sort, which is here. The question is loose, so treat (b) as the intended count.
180
Note on this question Radix sort makes no key comparisons, so 'maximum comparisons' is ill-defined. 180 = 3 digits x 6 items x 10 digit values is the only natural count matching an option; low confidence, and ISRO may have dropped the question.
Radix sort on fixed-width keys (IDs, timestamps, IP addresses) is used when sorting very large arrays, because its cost grows linearly with the number of keys.
Inorder predecessor of 15 in the given binary search tree
- (a)18
- (b)7
- (c)9
- (d)13
Answer: (d) 13 Skill-Lync answer; ISRO published no key
The inorder predecessor of a node is the node that comes just before it in the sorted (inorder) order. When the node has a left subtree, it is the largest key in that left subtree, that is, the rightmost node.
Read the figure: the root has left child . From go right to , then right to . Node has only a left child, , and no right child, so the walk stops at .
Full inorder sequence: 2, 3, 4, 6, 7, 9, 13, 15, 17, 18, 20. The number just before is .
The tempting wrong answers: is only the left child of , and itself is bigger. is not the end of the right spine. is in the right subtree, so it is larger than and can only be a successor.
13
Predecessor and successor queries are how ordered indexes and maps answer 'the next smaller key' and range scans, and they are the core step when deleting a node from a binary search tree.
Value of p+3 for an integer pointer at address 200 with 2-byte integers
- (a)206
- (b)203
- (c)212
- (d)204
Answer: (a) 206 Skill-Lync answer; ISRO published no key
Pointer arithmetic in C is scaled by the size of the pointed-to type. Adding to a pointer moves it by bytes, so it points to the -th element after the current one.
Option (b), , forgets the scaling and adds bytes, which would point into the middle of an integer. Options (c) and (d) correspond to a wrong element size or a wrong count of elements ( and ).
206
Scaled pointer arithmetic is why array indexing is cheap in C, and getting the element size wrong is a classic source of memory-corruption bugs in flight and embedded software.
Where insertion and deletion can happen in a priority queue
- (a)Front
- (b)Back
- (c)Middle
- (d)Any position
Answer: (d) Any position Skill-Lync answer; ISRO published no key
An ordinary queue inserts only at the back and deletes only at the front. A priority queue breaks this rule: elements are served by priority, not by arrival order.
If the queue is kept sorted by priority, a new element is inserted at whatever position its priority dictates (front, back or between others). If it is kept unsorted, insertion is at the back but the highest-priority element to delete can be anywhere. In a heap the new element is placed at the end and then moved up, so its final position again depends on its priority. In the check, insertion into the sorted list landed at many different positions, and deletion from the unsorted list removed elements from many different positions.
No single fixed end such as the front, the back or the middle describes every implementation, so the only option that covers insertion and deletion generally is any position.
Any position
Note on this question Textbooks often say a priority queue deletes from the front (highest priority) and inserts by priority; the question lumps insertion and deletion together, and the position depends on implementation. 'Any position' is the best-defensible reading.
Priority queues drive task schedulers, event simulators and shortest-path searches such as Dijkstra, where the next item to handle is the most urgent one, not the oldest.
Worst-case time complexity of heap sort for n elements
- (a)
- (b)
- (c)
- (d)
Answer: (a) Skill-Lync answer; ISRO published no key
Heap sort has two phases. Building a max-heap takes . Then it repeats times: swap the root with the last element and sift down, which costs because a heap of nodes has height . Total: .
This holds in the best, average and worst cases, since the sift-down work does not depend on how the input was arranged. Counting comparisons on sorted, reversed, random and all-equal inputs from up to , the worst count at was about 1.81 times , while its ratio to fell to 0.0053.
and are below the lower bound for comparison sorting. is the worst case of quick sort, not of heap sort.
Heap sort's guaranteed with no extra memory is why it is used in embedded and real-time code where a worst-case time bound matters more than average speed.
Output of SELECT Y FROM T WHERE X=7 after 128 doubling inserts
SELECT Y FROM T WHERE X=7;- (a)127
- (b)15
- (c)129
- (d)257
Answer: (a) 127 Skill-Lync answer; ISRO published no key
Start with the row . Each new row has and , and the newest row always has the maximum of both columns, so the rows form a sequence:
The values are , one per row, and follows , so the row with has . For : . Exactly one row has , so the query returns the single value .
Option (b), , is the for . Options (c) and (d), and , are not of the form at all.
Side note: the last row would have , a 129-bit number that no ordinary integer column can hold, so a real database would fail at an overflow after about 31 inserts. The question ignores this, and the row for is inserted long before it matters.
127
This is the same pattern as a growing identifier or a doubling counter: exponential growth makes fixed-width integer columns overflow sooner than people expect.
SQL select * from R, S is equivalent to which join
select * from R, S is equivalent to- (a)Select * from R natural join S
- (b)Select * from R cross join S
- (c)Select * from R outer join S
- (d)Select * from R inner join S
Answer: (b) Select * from R cross join S Skill-Lync answer; ISRO published no key
Listing two tables in the FROM clause with a comma, and no WHERE condition, gives every row of paired with every row of : the Cartesian product. The explicit form of that is R cross join S.
Test with of 3 rows and of 3 rows: the comma form returned 9 rows and so did CROSS JOIN, while NATURAL JOIN returned only 2 rows (the ones whose common column matches).
Natural, inner and outer joins all need matching columns or an ON condition, so they filter the product (an outer join also adds unmatched rows). Only the cross join is the plain product.
Select * from R cross join S
An accidental comma join without a WHERE clause is a well-known cause of huge, slow queries, since the row count is the product of the table sizes.
SQL that deletes teachers belonging to departments in the CSE building
- (a)DELETE FROM teacher WHERE dept_name IN 'CSE';
- (b)DELETE FROM department WHERE building='CSE';
- (c)DELETE FROM teacher WHERE dept_name IN (SELECT dept_name FROM department WHERE building = 'CSE');
- (d)None of the above
Answer: (c) DELETE FROM teacher WHERE dept_name IN (SELECT dept_name FROM department WHERE building = 'CSE'); Skill-Lync answer; ISRO published no key
The teacher relation stores only the department name, while the building is stored in the department relation. So we must look up the department names in building CSE (a subquery) and delete the teachers whose department name is in that set.
Option (c) does exactly this. On a small test (5 teachers, 4 departments, two of them in CSE) it left 2 teachers and all 4 departments.
Option (a) compares a department name with the string 'CSE' directly, which confuses a building with a department and is not even valid syntax (IN needs a list or subquery in brackets). Option (b) deletes rows from the department relation instead of the teacher relation.
DELETE FROM teacher WHERE dept_name IN (SELECT dept_name FROM department WHERE building = 'CSE');
Deleting through a subquery on a related table is a routine way to keep dependent data consistent, usually wrapped in a transaction or replaced by ON DELETE CASCADE.
Durability property of a transaction in ACID
- (a)Except in case of an operating system crash
- (b)Except in case of a disk crash
- (c)Except in case of a power failure
- (d)Always, even if there is a failure of any kind
Answer: (d) Always, even if there is a failure of any kind Skill-Lync answer; ISRO published no key
Durability is the D of ACID. Once a transaction has committed, its changes must survive, and this guarantee is not limited to nice conditions.
Databases achieve this with a write-ahead log: the commit record is forced to stable storage before the user is told the transaction succeeded. After an operating system crash or a power cut, recovery replays the log (redo). Against a disk crash, the log and data are protected by mirroring, backups and replication.
So the exceptions in (a), (b) and (c) are not part of the definition. The property is stated without conditions, though in practice it holds only up to what the storage can guarantee.
Always, even if there is a failure of any kind
Flight and ground-segment databases that log commands and telemetry rely on write-ahead logging and replication so that an acknowledged record is never lost after a crash.
What Fifth Normal Form is concerned with
- (a)Join dependency
- (b)Domain-key
- (c)Multivalued dependency
- (d)Functional dependency
Answer: (a) Join dependency Skill-Lync answer; ISRO published no key
Each normal form removes one kind of redundancy:
- 2NF, 3NF and BCNF deal with functional dependencies.
- 4NF deals with multivalued dependencies.
- 5NF, also called project-join normal form (PJNF), deals with join dependencies: a relation is in 5NF if every join dependency in it is implied by its candidate keys, so it cannot be split further into smaller tables and rejoined without loss in a useful way.
- Domain-key normal form (DKNF) is a separate, stronger idea and is not the fifth normal form.
Join dependency
Join dependencies matter when designing many-to-many link tables, for example supplier, part and project triples in a bill-of-materials database, so that no row is stored redundantly.
True statements on multiplexer, 1-to-16 demultiplexer and octal encoder
- A digital multiplexer takes one input from many inputs and outputs the selected one
- Four select lines are required for 1-16 demultiplexer
- Eight OR gates are required to implement an octal to binary encoder
- (a)(i) and (ii)
- (b)(ii) and (iii)
- (c)(i) alone
- (d)none of the above
Answer: (a) (i) and (ii) Skill-Lync answer; ISRO published no key
Check the three statements one by one.
(i) A multiplexer picks one of many inputs, chosen by the select lines, and sends it to a single output. True.
(ii) A 1-to-16 demultiplexer has 16 outputs, so it needs select lines. True.
(iii) An octal-to-binary encoder has 8 inputs and 3 outputs. Each output bit is the OR of the inputs whose index has that bit set: , , . That is 3 four-input OR gates, not eight. False.
So exactly (i) and (ii) are true.
(i) and (ii)
Multiplexers and decoders are the building blocks of register-file read ports, memory address decoding and sensor-channel selection on data-acquisition boards.
Time delay of an 8-bit serial register with a 400 MHz clock
- (a)20 ns
- (b)2.5 µs
- (c)20 µs
- (d)2.5 ns
Answer: (a) 20 ns Skill-Lync answer; ISRO published no key
In a serial (shift) register, a bit moves one flip-flop per clock pulse. A bit entering the first stage appears at the output after 8 clock periods.
Option (d), , is only one clock period. The microsecond options are off by a factor of 1000.
Shift-register delays are used to line up serial data streams and to build deterministic delays in high-speed serial interfaces and test-pattern generators.
Number of inputs and outputs of a full adder
- (a)two inputs and two outputs
- (b)two inputs and three outputs
- (c)three inputs and two outputs
- (d)three inputs and one output
Answer: (c) three inputs and two outputs Skill-Lync answer; ISRO published no key
A full adder adds three bits: the two operand bits and and the carry-in . The largest total is , which needs two output bits: Sum and Carry-out.
A half adder is the one with two inputs and two outputs, which is the trap in option (a).
three inputs and two outputs
Chains of full adders form the ripple-carry and carry-lookahead adders inside every processor ALU, including radiation-tolerant flight computers.
Logical operation of a circuit of three NAND gates with tied inputs
- (a)XOR
- (b)NAND
- (c)AND
- (d)OR
Answer: (d) OR Skill-Lync answer; ISRO published no key
In the figure, the two inputs of the first gate are joined and driven by , and the two inputs of the second gate are joined and driven by . A NAND with both inputs tied is an inverter, since . So the first level gives and .
The third NAND combines them:
The last step is De Morgan's law. Truth table: , , , , which is OR.
This is the standard way to make an OR gate from NAND gates alone. Note this reading relies on the short links drawn at the inputs of the first level showing tied pins.
OR
NAND is a universal gate, so standard-cell libraries and gate-array ASICs build every other function, such as OR here, from NAND cells alone.
Gate giving LOW output when both inputs are equal
- (a)AND
- (b)NAND
- (c)XNOR
- (d)XOR
Answer: (d) XOR Skill-Lync answer; ISRO published no key
Write the required behaviour: output for inputs and , so the output is when the inputs differ. That is exactly the exclusive-OR, .
XNOR does the opposite, giving HIGH when the inputs are equal. AND is HIGH only for , and NAND is LOW only for (it is HIGH for ).
XOR
XOR is the core of parity generators, CRC checkers and adders, which protect telemetry frames and memory words against bit errors.
Logic circuit from NOR and NAND gates with both inputs tied together
- (a)AND
- (b)XOR
- (c)OR
- (d)NOT
Answer: (d) NOT Skill-Lync answer; ISRO published no key
Join both inputs of a NOR gate to : . Join both inputs of a NAND gate to : .
Either way the gate inverts its single input, so each becomes a NOT gate. This is one reason NAND and NOR are called universal gates: with the inverter, AND, OR and every other function can be built from them.
NOT
Gate-level netlists often turn a spare NAND or NOR into an inverter this way, which saves a cell and keeps a design on one gate type.