DSSSB TGT / PGT · Topic-wise previous year questions
Computer Science Previous Year Questions (page 18)
1995 Computer Science questions asked in DSSSB TGT / PGT previous year papers, each with the correct answer and explanation. Read them free on UTpaper, or attempt the full papers as timed online tests.
Q851DSSSB TGT Computer Science (Technical), 7 Aug 2021, Shift 2
Perverse Software is also known as
AUtility software
BApplications of ware
CDiagnostic software
DMalicious software
Show answerHide answer
Correct answer: (D) Malicious software
Explanation
Perverse software is software written to cause harm, i.e. malicious software (malware) such as viruses, worms and trojans.
Q852DSSSB TGT Computer Science (Technical), 7 Aug 2021, Shift 2
Which of the following is the feature(s) of High level programming languages?
I. Portability
II. Easy debugging
AOnly I
BOnly II
CBoth I and II
DNeither I nor II
Show answerHide answer
Correct answer: (C) Both I and II
Explanation
High-level languages are machine-independent, so programs are portable, and their readable English-like syntax makes errors easier to find and debug. Both are features.
Q853DSSSB TGT Computer Science (Technical), 7 Aug 2021, Shift 2
Which of the following are the key feature(s) of cloud computing?
I. Scalability
II. Self service
III. Pay-per-use
AI and II
BII and III
CI and III
DI, II and III
Show answerHide answer
Correct answer: (D) I, II and III
Explanation
Cloud computing offers on-demand self-service, rapid scalability (elasticity) and a pay-per-use (measured service) billing model, so all three are key features.
Q854DSSSB TGT Computer Science (Technical), 7 Aug 2021, Shift 2
Which of the following is/are the open-source software(s)?
I. PHP
II. Apache
AOnly I
BOnly II
CBoth I and II
DNeither I nor II
Show answerHide answer
Correct answer: (B) Only II
Explanation
Apache HTTP Server is open-source software. PHP is also free and open source, but the official key accepts only Apache (Only II).
Q855DSSSB TGT Computer Science (Technical), 7 Aug 2021, Shift 2
Which of the following statement(s) is/are true about binary search algorithm?
I. It is implemented on sorted array.
II. One must have direct access to the middle element in any sub-list.
III. It is implemented on sorted linked list.
AII and III
BI and III
CI and II
DI, II and III
Show answerHide answer
Correct answer: (C) I and II
Explanation
Binary search needs a sorted list with direct (random) access to the middle element, which an array provides. A linked list has no direct access to the middle, so III is false.
Q856DSSSB TGT Computer Science (Technical), 7 Aug 2021, Shift 2
2 Dimensional array (Matrices) with relatively high proportion of zero entries are called ________ while with low proportion of zero entries are called ________.
ARegular matrix; Non-Regular matrix
BSparse Matrix; Dense matrix
CTranspose Matrix; Inverse Matrix
DSquare Matrix; Dense Matrix
Show answerHide answer
Correct answer: (B) Sparse Matrix; Dense matrix
Explanation
A matrix with a high proportion of zero entries is a sparse matrix; one with few zeros is a dense matrix.
Q857DSSSB TGT Computer Science (Technical), 7 Aug 2021, Shift 2
Which one is the reserved word in C language?
AAutomatic
BInteger
CConstant
DVolatile
Show answerHide answer
Correct answer: (D) Volatile
Explanation
volatile is a C keyword (type qualifier). Automatic, Integer and Constant are not keywords; the C keywords are auto, int and const.
Q858DSSSB TGT Computer Science (Technical), 7 Aug 2021, Shift 2
What is the output of the code written in C?
void main()
{
int k, val = 1;
k = ++val * ++val;
printf("%d", k);
}
A1
B4
C9
D16
Show answerHide answer
Correct answer: (C) 9
Explanation
Modifying val twice in one expression is undefined behaviour in C, but common compilers (e.g. GCC) apply both increments first, making val = 3, and then compute 3 * 3 = 9.
Q859DSSSB TGT Computer Science (Technical), 7 Aug 2021, Shift 2
The height of a tree is the length of the longest path from root to leaf. What is the maximum and minimum number of nodes in a binary tree of height 'n'?
A2ⁿ⁺¹ − 1, n + 1
B2ⁿ − 1, n
C2ⁿ, n + 1
D2ⁿ⁻¹ − 1, n
Show answerHide answer
Correct answer: (A) 2ⁿ⁺¹ − 1, n + 1
Explanation
A binary tree of height n has at most 1 + 2 + ... + 2ⁿ = 2ⁿ⁺¹ − 1 nodes (completely full) and at least n + 1 nodes (one node per level, a chain).
Q860DSSSB TGT Computer Science (Technical), 7 Aug 2021, Shift 2
Assume two binary operators '^' and 'v'. '^' has higher precedence than 'v'. Operator '^' is right associative while operator 'v' is left associative. Which of the following represents the expression tree for the given expression?
(9 v 3 ^ 4 v 2)
ARoot v with left child ^ and right child 2; the ^ node has left child 9 and right child v, whose children are 3 and 4.
BRoot v with left child v and right child 2; the inner v has left child 9 and right child ^, whose children are 3 and 4.
CRoot v with left child v and right child 2; the inner v has left child ^ (children 3 and 4) and right child 9.
DRoot v with left child 2 and right child v; the inner v has left child 9 and right child ^, whose children are 3 and 4.
Show answerHide answer
Correct answer: (B) Root v with left child v and right child 2; the inner v has left child 9 and right child ^, whose children are 3 and 4.
Explanation
^ binds tighter, so 3 ^ 4 is grouped first: 9 v (3 ^ 4) v 2. v is left associative, so it is (9 v (3 ^ 4)) v 2: root v with left child the inner v and right child 2.
Q861DSSSB TGT Computer Science (Technical), 7 Aug 2021, Shift 2
________ mode allows transmission in both directions simultaneously.
ADuplex
BHalf duplex
CSimplex
DHalf simplex
Show answerHide answer
Correct answer: (A) Duplex
Explanation
Full-duplex (duplex) mode lets both stations transmit at the same time. Half duplex allows both directions but only one at a time, and simplex is one direction only.
Q862DSSSB TGT Computer Science (Technical), 7 Aug 2021, Shift 2
How many bits are required to represent (1000)10 in BCD code?
A16 bits
B10 bits
C32 bits
D4 bits
Show answerHide answer
Correct answer: (A) 16 bits
Explanation
BCD codes each decimal digit in 4 bits. 1000 has 4 digits, so 4 × 4 = 16 bits are needed.
Q863DSSSB TGT Computer Science (Technical), 7 Aug 2021, Shift 2
What will be the quotient when (100001)₂ is divided by (110)₂?
DThe electronic digital variable automatic calculator
Show answerHide answer
Correct answer: (A) The electronic discrete variable automatic computer
Explanation
EDVAC stands for Electronic Discrete Variable Automatic Computer, a stored-program machine designed by Eckert, Mauchly and von Neumann.
Q865DSSSB TGT Computer Science (Technical), 7 Aug 2021, Shift 2
Which generation of computer used transistor?
AFirst
BSecond
CThird
DFourth
Show answerHide answer
Correct answer: (B) Second
Explanation
Second-generation computers (about 1956-1963) used transistors in place of the vacuum tubes of the first generation. The third generation used ICs.
Q866DSSSB TGT Computer Science (Technical), 7 Aug 2021, Shift 2
Which of the following statement(s) is/are true about control unit?
I. It manages and coordinate the entire computer system.
II. It does not perform any actual processing on data
AOnly I
BOnly II
CBoth I and II
DNeither I nor II
Show answerHide answer
Correct answer: (C) Both I and II
Explanation
The control unit directs and coordinates all parts of the computer, but it does no actual data processing itself; arithmetic and logic are done by the ALU. Both statements are true.
Q867DSSSB TGT Computer Science (Technical), 7 Aug 2021, Shift 2
Which of the following is a non-positional number system?
ADecimal
BRoman
COctal
DBinary
Show answerHide answer
Correct answer: (B) Roman
Explanation
In the Roman system a symbol has the same value wherever it appears (X is always 10), so it is non-positional. Decimal, octal and binary are positional.
Q868DSSSB TGT Computer Science (Technical), 7 Aug 2021, Shift 2
2 resistors of 4 ohm each are connected in series. What is their equivalent resistance?
A2 ohm
B15 ohm
C8 ohm
D4 ohm
Show answerHide answer
Correct answer: (C) 8 ohm
Explanation
In series, resistances add: 4 + 4 = 8 ohm.
Q869DSSSB TGT Computer Science (Technical), 7 Aug 2021, Shift 2
Which gate is represented by the following truth table?
A | B | Output
0 | 0 | 0
0 | 1 | 1
1 | 0 | 1
1 | 1 | 1
AOR
BAND
CXOR
DNOT
Show answerHide answer
Correct answer: (A) OR
Explanation
The output is 0 only when both inputs are 0 and 1 otherwise, which is the OR function (A + B).
Q870DSSSB TGT Computer Science (Technical), 7 Aug 2021, Shift 2
Which of the following represents carry in half adder?
AAB
BA'B' (A-bar B-bar)
CA'B (A-bar B)
DAB' (A B-bar)
Show answerHide answer
Correct answer: (A) AB
Explanation
In a half adder, sum = A ⊕ B and carry = A·B (AB), because a carry is produced only when both inputs are 1.
Q871DSSSB TGT Computer Science (Technical), 7 Aug 2021, Shift 2
Which of the following pair is correct?
I. RTL – Saturated bipolar logic family.
II. ECL – Non-Saturated bipolar logic family
AOnly I
BOnly II
CBoth I and II
DNeither I nor II
Show answerHide answer
Correct answer: (C) Both I and II
Explanation
In RTL the transistors are driven into saturation, so it is a saturated logic family. ECL keeps the transistors out of saturation, so it is non-saturated (and very fast). Both pairs are correct.
Q872DSSSB TGT Computer Science (Technical), 7 Aug 2021, Shift 2
In a multiplexer, the number of input is 'n'and the number of select lines is 'm'. Which of the following is correct?
A2^m = n
B2^n = m
C2m = n
D2n = m
Show answerHide answer
Correct answer: (A) 2^m = n
Explanation
m select lines can choose one of 2^m inputs, so a multiplexer with n inputs needs 2^m = n (e.g. 8 inputs need 3 select lines).
Q873DSSSB TGT Computer Science (Technical), 7 Aug 2021, Shift 2
In a JK flip flop, if J = K, then resulting flip flop is ________.
ASR
BClocked SR
CT
DD
Show answerHide answer
Correct answer: (C) T
Explanation
With J and K tied together (J = K = T), the JK flip-flop holds when T = 0 and toggles when T = 1, which is a T flip-flop.
Q874DSSSB TGT Computer Science (Technical), 7 Aug 2021, Shift 2
Both the inputs of NAND gate are connected to A. What will be the output?
A0
B1
CA
DA' (complement of A)
Show answerHide answer
Correct answer: (D) A' (complement of A)
Explanation
A NAND gate with both inputs at A gives (A·A)' = A', so it acts as a NOT gate.
Q875DSSSB TGT Computer Science (Technical), 7 Aug 2021, Shift 2
Which of the following is an alternative to the log-based recovery schemes in database recovery system?
AShadow paging
BDe fragmentation
CPre paging
DDemand paging
Show answerHide answer
Correct answer: (A) Shadow paging
Explanation
Shadow paging is a recovery technique that needs no log: it keeps a shadow page table unchanged and a current page table for updates, and commits by switching tables.
Q876DSSSB TGT Computer Science (Technical), 7 Aug 2021, Shift 2
Match the building blocks in Entity relationship diagram.
A. Ellipse symbol — i. Relationship
B. Line with a circle and a bar (─○|─) — ii. Attributes
C. Line with a double bar (─||─) — iii. Optional one
D. Diamond symbol — iv. Mandatory one
AA-ii, B-iii, C-i, D-iv
BA-ii, B-iii, C-iv, D-i
CA-iii, B-ii, C-iv, D-i
DA-ii, B-i, C-iv, D-iii
Show answerHide answer
Correct answer: (B) A-ii, B-iii, C-iv, D-i
Explanation
In an ER diagram an ellipse is an attribute and a diamond is a relationship. In crow's foot notation a circle with a bar means optional one, and a double bar means mandatory one.
Q877DSSSB TGT Computer Science (Technical), 7 Aug 2021, Shift 2
________ is a unique identifier created by database management system to identify the relative starting time of a transaction.
ATimestamp
BSpoofing
CShadow paging
DDeadlock
Show answerHide answer
Correct answer: (A) Timestamp
Explanation
A timestamp is a unique value the DBMS gives each transaction when it starts, used to order transactions in timestamp-based concurrency control.
Q878DSSSB TGT Computer Science (Technical), 7 Aug 2021, Shift 2
Which of the following is NOT a variant of time stamp-based method of concurrency control in database management system?
ATotal time stamp ordering
BPartial time stamp ordering
CMulti version time stamp ordering
DMulti level time stamp ordering
Show answerHide answer
Correct answer: (D) Multi level time stamp ordering
Explanation
The timestamp-ordering variants are total, partial and multiversion timestamp ordering. Multi-level timestamp ordering is not one of them.
Q879DSSSB TGT Computer Science (Technical), 7 Aug 2021, Shift 2
________ describes the process of deciding about putting data to different sites in distributed database system.
AData sharing
BData allocation
CData storing
DData mining
Show answerHide answer
Correct answer: (B) Data allocation
Explanation
Data allocation is the process of deciding which sites of a distributed database will store each fragment or copy of the data.
Q880DSSSB TGT Computer Science (Technical), 7 Aug 2021, Shift 2
________ is a technique of breaking up database into logical units, which may be assigned for storage at the various sites in distributed database system.
AData normalization
BData mining
CData binding
DData fragmentation
Show answerHide answer
Correct answer: (D) Data fragmentation
Explanation
Data fragmentation splits a database (horizontally, vertically or mixed) into logical units called fragments, which can be stored at different sites.
Q881DSSSB TGT Computer Science (Technical), 7 Aug 2021, Shift 2
Which of the following is a comparison operator in Structured Query Language?
A+
B=
C/
D>=
Show answerHide answer
Correct answer: (D) >=
Explanation
>= (greater than or equal to) is a comparison operator. + and / are arithmetic operators. = is also used for comparison in SQL, but the key takes >=.
Q882DSSSB TGT Computer Science (Technical), 7 Aug 2021, Shift 2
Which logical gate is used to represent product of sum expression?
AEX-OR gate
BAND gate
COR gate
DNOR gate
Show answerHide answer
Correct answer: (D) NOR gate
Explanation
A POS expression is an AND of OR terms, which maps to a two-level NOR-NOR circuit. NOR is a universal gate, so POS is implemented with NOR gates.
Q883DSSSB TGT Computer Science (Technical), 7 Aug 2021, Shift 2
In D flip-flop, if D = 1, then the output of the D flip-flop is ________, but if D = 0, then the output of D flip-flop goes to ________ state.
A0; 1
B1; 0
C0; 0
D1; 1
Show answerHide answer
Correct answer: (B) 1; 0
Explanation
A D flip-flop copies its input on the clock edge: Q becomes 1 when D = 1 and goes to the 0 (reset) state when D = 0.
Q884DSSSB TGT Computer Science (Technical), 7 Aug 2021, Shift 2
What is the meaning of this arithmetic micro-operation? R3 ← R1 + R2' + 1 (R2' is the complement of R2)
AContent of R1 plus R2 transferred to R3
BContent of R1 plus the 2's complement of R2 transferred to R3
CContent of R1 plus the 1's complement of R2 transferred to R3
DContent of R1 plus R2 after increments transferred to R3
Show answerHide answer
Correct answer: (B) Content of R1 plus the 2's complement of R2 transferred to R3
Explanation
R2' + 1 is the 2's complement of R2, so R1 + R2' + 1 adds R1 to the 2's complement of R2, which is R1 − R2, and stores it in R3.
Q885DSSSB TGT Computer Science (Technical), 7 Aug 2021, Shift 2
By how many different ways micro-operation encountered in digital computers are classified?
AOne
BTwo
CThree
DFour
Show answerHide answer
Correct answer: (D) Four
Explanation
Micro-operations are classified into four types: register transfer, arithmetic, logic and shift micro-operations.
Q886DSSSB TGT Computer Science (Technical), 7 Aug 2021, Shift 2
How many bits are required to distinguish between a direct and indirect address?
A1
B2
C3
D4
Show answerHide answer
Correct answer: (A) 1
Explanation
One mode bit (the I bit) is enough: I = 0 for a direct address and I = 1 for an indirect address.
Q887DSSSB TGT Computer Science (Technical), 7 Aug 2021, Shift 2
Which of the following statement(s) is/are true about wire framing of website?
I. Showing which content will appear on which page
II. Showing navigator between pages
AOnly I
BOnly II
CBoth I and II
DNeither I nor II
Show answerHide answer
Correct answer: (C) Both I and II
Explanation
A wireframe is a basic layout of a website that shows what content goes on each page and how the pages link (navigation between them). Both are true.
Q888DSSSB TGT Computer Science (Technical), 7 Aug 2021, Shift 2
What is the full form of MTTF in software reliability?
AMinimum time to failure
BMaximum time to failure
CMean time to failure
DMedian time to failure
Show answerHide answer
Correct answer: (C) Mean time to failure
Explanation
MTTF means Mean Time To Failure, the average time a system runs before it fails. It is a common software reliability metric.
Q889DSSSB TGT Computer Science (Technical), 7 Aug 2021, Shift 2
What is the other name of Linear Sequential model in software engineering?
ASpiral model
BWaterfall model
CPrototype model
DRAD model
Show answerHide answer
Correct answer: (B) Waterfall model
Explanation
The waterfall model is also called the linear sequential model (or classic life-cycle model) because its phases follow one after another.
Q890DSSSB TGT Computer Science (Technical), 7 Aug 2021, Shift 2
________ model is a "high speed" adaption of the linear sequential model in software engineering.
APrototype model
BRapid Application development model
CSpiral model
DWaterfall model
Show answerHide answer
Correct answer: (B) Rapid Application development model
Explanation
RAD (Rapid Application Development) is a high-speed version of the linear sequential model that gets fast delivery through component-based construction.
Q891DSSSB TGT Computer Science (Technical), 7 Aug 2021, Shift 2
Which of the following is not a project estimation technique in software engineering?
AEmpirical Techniques
BHeuristic Techniques
CAnalytical Techniques
DPrototyping Techniques
Show answerHide answer
Correct answer: (D) Prototyping Techniques
Explanation
Project estimation techniques are empirical, heuristic and analytical. Prototyping is a development model, not an estimation technique.
Q892DSSSB TGT Computer Science (Technical), 7 Aug 2021, Shift 2
Which of the following statement(s) is/are true regarding PERT chart in software project management?
I. PERT charts consists of a network of boxes and arrows.
II. In PERT chart, the boxes represent activities and the arrow represents task dependencies.
AOnly I
BOnly II
CBoth I and II
DNeither I nor II
Show answerHide answer
Correct answer: (C) Both I and II
Explanation
A PERT chart is a network of boxes (or nodes) and arrows. The boxes are activities and the arrows show the dependencies between them, so both statements are true.
Q893DSSSB TGT Computer Science (Technical), 7 Aug 2021, Shift 2
Match the following operators with their definition in data definition language.
1. { }: — i. Optional Data
2. ( ): — ii. Selection
3. [ , ]: — iii. Iterative
A1-iii, 2-i, 3-ii
B1-i, 2-ii, 3-iii
C1-ii, 2-iii, 3-i
D1-iii, 2-ii, 3-i
Show answerHide answer
Correct answer: (A) 1-iii, 2-i, 3-ii
Explanation
In data dictionary notation, { } means iteration (repetition), ( ) means optional data and [ , ] means selection of one of the alternatives.
Q894DSSSB TGT Computer Science (Technical), 7 Aug 2021, Shift 2
What is COHESION in software design?
ACohesion is a measure of complexity of module of a software
BCohesion is a measure of functional strength of a module of a software
CCohesion is a measure of functional weakness of a module of a software
DCohesion is a measure of efficiency of a module of a software
Show answerHide answer
Correct answer: (B) Cohesion is a measure of functional strength of a module of a software
Explanation
Cohesion measures the functional strength of a module, i.e. how closely the elements inside one module work toward a single task. High cohesion is desirable.
Q895DSSSB TGT Computer Science (Technical), 7 Aug 2021, Shift 2
Which of the following is/are correct about java programming?
I. All functions in java must be members of some class
II. Member functions are called methods in java
AOnly I
BOnly II
CBoth I and II
DNeither I nor II
Show answerHide answer
Correct answer: (C) Both I and II
Explanation
Java has no free-standing functions: every method must belong to a class, and member functions are called methods. Both are correct.
Q896DSSSB TGT Computer Science (Technical), 7 Aug 2021, Shift 2
What is the output of the following java code?
int m = 1000;
int k = 3000;
while (++m < --k);
System.out.println(m);
AError
B1000
C2000
D4000
Show answerHide answer
Correct answer: (C) 2000
Explanation
Each test increments m and decrements k. The loop stops when m >= k, which first happens at m = 2000, k = 2000 (1000 iterations). So 2000 is printed.
Q897DSSSB TGT Computer Science (Technical), 7 Aug 2021, Shift 2
The time required to wait read/write head under a desired sector is known as ________.
ASeek time
BExecution time
CWait time
DRotational delay
Show answerHide answer
Correct answer: (D) Rotational delay
Explanation
Rotational delay (latency) is the time spent waiting for the desired sector to rotate under the read/write head. Seek time is moving the head to the right track.
Q898DSSSB TGT Computer Science (Technical), 7 Aug 2021, Shift 2
________ is used to transfer the data directly to main memory without using CPU.
ADevice drive
BInput/output interface
CDMA controller
DMemory address Register
Show answerHide answer
Correct answer: (C) DMA controller
Explanation
A DMA controller moves data directly between I/O devices and main memory without passing each word through the CPU.
Q899DSSSB TGT Computer Science (Technical), 7 Aug 2021, Shift 2
A computer system has 7 tape drives. There 'n' processes competing for them. Each process may need 2 tape drives. What is the maximum value of 'n' for which the system is guaranteed to be deadlock free?
A2
B3
C4
D1
Show answerHide answer
Correct answer: (B) 3
Explanation
The key fits a need of 3 drives per process: deadlock is impossible if n(3 − 1) + 1 ≤ 7, so n = 3. (If each needed only 2 drives as written, up to 6 processes would be safe.)
Q900DSSSB TGT Computer Science (Technical), 7 Aug 2021, Shift 2
A 500 kbyte memory is managed using variable memory partitions and are allowed for compaction. It is currently 2 partitions of sizes 100 kbytes and 130 kbytes respectively. The smallest allocation request in Kbytes that could be denied is for ________.
A250
B270
C271
D170
Show answerHide answer
Correct answer: (C) 271
Explanation
Free memory = 500 − (100 + 130) = 270 KB. With compaction, all of it can be joined into one block, so any request up to 270 KB succeeds and the smallest request that can be denied is 271 KB.
How to use these DSSSB TGT / PGT Computer Science questions
Every question here was asked in a real DSSSB TGT / PGT paper; the paper and shift are shown on the card, and the number opens the question on its own page. Try each one before tapping Show answer, then attempt the full DSSSB TGT / PGT papers as timed tests to check your speed under exam conditions.