DSSSB TGT / PGT · Topic-wise previous year questions
Computer Science Previous Year Questions (page 29)
2444 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.
Q1401DSSSB TGT Computer Science (Technical), 1 Aug 2021, Shift 3
Due to which property a computer can work for hours without creating any error and without grumbling?
ANo I.Q
BVersatility
CDiligence
DSpeed
Show answerHide answer
Correct answer: (C) Diligence
Explanation
Diligence means a computer can work for long hours with the same accuracy, without tiredness or loss of concentration.
Q1402DSSSB TGT Computer Science (Technical), 1 Aug 2021, Shift 3
1 picosecond = ________.
A10⁻⁹ seconds
B10⁻¹² seconds
C10⁻¹⁵ seconds
D10⁻¹⁸ seconds
Show answerHide answer
Correct answer: (B) 10⁻¹² seconds
Explanation
Pico means 10⁻¹², so 1 picosecond = 10⁻¹² s. 10⁻⁹ is nano and 10⁻¹⁵ is femto.
Q1403DSSSB TGT Computer Science (Technical), 1 Aug 2021, Shift 3
Which of the following statement is/are correct?
I. (1071)₁₀ = (2057)₈
II. (1AF)₁₆ = (413)₁₀
AOnly I
BOnly II
CBoth I and II
DNeither I nor II
Show answerHide answer
Correct answer: (A) Only I
Explanation
I: 1071 = 2×512 + 0×64 + 5×8 + 7 = (2057)₈, correct. II: (1AF)₁₆ = 256 + 160 + 15 = 431, not 413, so only I is correct.
Q1404DSSSB TGT Computer Science (Technical), 1 Aug 2021, Shift 3
Which of the following statement is/are correct?
I. The largest four digit number in base 7 is 7777.
II. The smallest four digit number in base 8 is 1111.
AOnly I
BOnly II
CBoth I and II
DNeither I nor II
Show answerHide answer
Correct answer: (D) Neither I nor II
Explanation
Base 7 uses digits 0-6, so the largest four-digit number is 6666 (7777 is invalid). The smallest four-digit base-8 number is 1000, not 1111. Neither statement is correct.
Q1405DSSSB TGT Computer Science (Technical), 1 Aug 2021, Shift 3
________ is a controlled electronic switch fabricated using a semiconductor.
ATransistor
BHard-disk
CMonitor
DCoupler
Show answerHide answer
Correct answer: (A) Transistor
Explanation
A transistor is a semiconductor device used as an electronically controlled switch or amplifier, and is the basic element of digital circuits.
Q1406DSSSB TGT Computer Science (Technical), 1 Aug 2021, Shift 3
________ is a system software package that converts a high language program to machine language.
ACompiler
BEmulator
CEditor
DDebugger
Show answerHide answer
Correct answer: (A) Compiler
Explanation
A compiler is system software that translates a high-level language program into machine language (object code) as a whole.
Q1407DSSSB TGT Computer Science (Technical), 1 Aug 2021, Shift 3
What is the maximum running time of binary search algorithm, when n = 12,000?
A12
B13
C14
D15
Show answerHide answer
Correct answer: (C) 14
Explanation
Binary search needs at most ⌊log₂n⌋ + 1 comparisons. 2¹³ = 8192 ≤ 12000 < 16384 = 2¹⁴, so ⌊log₂12000⌋ = 13 and the maximum is 14.
Q1408DSSSB TGT Computer Science (Technical), 1 Aug 2021, Shift 3
What is the worst case time complexity of bubble sort?
AO(x)
BO(log₂x)
CO(x²)
DO(x log₂x)
Show answerHide answer
Correct answer: (C) O(x²)
Explanation
In the worst case (reverse-sorted input) bubble sort makes n(n−1)/2 comparisons and swaps, so it is O(x²) with x elements.
Q1409DSSSB TGT Computer Science (Technical), 1 Aug 2021, Shift 3
Which statements is correct regarding main() function in C++?
I. It is a user defined function.
II. It is a pre-defined function.
AOnly I
BOnly II
CBoth I and II
DNeither I nor II
Show answerHide answer
Correct answer: (A) Only I
Explanation
main() is called by the system, but its body is written by the programmer, so it is treated as a user-defined function, not a library (pre-defined) function.
Q1410DSSSB TGT Computer Science (Technical), 1 Aug 2021, Shift 3
Which inbuilt function in C is used to read string from system console?
APuts()
BCgets()
CGetche()
DGetchar()
Show answerHide answer
Correct answer: (B) Cgets()
Explanation
cgets() (from conio.h) reads a string from the console. puts() writes a string, and getche()/getchar() read single characters.
Q1411DSSSB TGT Computer Science (Technical), 1 Aug 2021, Shift 3
What is the output of the following code written in C?
void main()
{
printf("%d%d%d", 62, 062, 0x62);
}
A506298
B629850
C625098
D986250
Show answerHide answer
Correct answer: (C) 625098
Explanation
62 is decimal, 062 is octal = 6×8 + 2 = 50, and 0x62 is hexadecimal = 6×16 + 2 = 98. With no separators, the output is 625098.
Q1412DSSSB TGT Computer Science (Technical), 1 Aug 2021, Shift 3
How many interchanges will happen when the sequence of letters of "SORTED" is sorted using bubble sort?
A36
B11
C18
D6
Show answerHide answer
Correct answer: (B) 11
Explanation
Bubble sort makes one swap per inversion. In S O R T E D (order D < E < O < R < S < T), the inversions are S:4, O:2, R:2, T:2, E:1, totalling 11 interchanges.
Q1413DSSSB TGT Computer Science (Technical), 1 Aug 2021, Shift 3
Consider the following New-order strategy for traversing a binary tree.
I. Visit the right subtree of node using new-order
II. Visit the left subtree of node using new-order
III. Visit the node
Tree: root A has left child B and right child E. B has right child C; C has left child D. E has left child F and right child I; F has children G (left) and H (right); I has right child J; J has right child K.
What is the new-order traversal of the given tree?
AK, J, I, H, G, F, E, D, C, B, A
BA, B, C, D, E, F, G, H, I, J, K
CB, D, C, A, G, F, H, E, I, J, K
DA, B, C, D, K, J, I, H, G, F, E
Show answerHide answer
Correct answer: (A) K, J, I, H, G, F, E, D, C, B, A
Explanation
Right-left-node is the exact reverse of preorder (node-left-right). The preorder is A, B, C, D, E, F, G, H, I, J, K, so the new-order is K, J, I, H, G, F, E, D, C, B, A.
Q1414DSSSB TGT Computer Science (Technical), 1 Aug 2021, Shift 3
Consider the following segment of C++ code.
int j, n;
for(j = 1; j <= n;)
j = j*2;
What is the number of comparisons made in the execution of the loop for any n > 0?
An + 1
B(n + 1)/2
Clog₂(n + 1)
Dlog₂n + 1
Show answerHide answer
Correct answer: (D) log₂n + 1
Explanation
j takes the values 1, 2, 4, ... while j ≤ n, so the loop condition is checked about log₂n + 1 times, which is the keyed answer. Strictly, the final failing test makes it ⌊log₂n⌋ + 2.
Q1415DSSSB TGT Computer Science (Technical), 1 Aug 2021, Shift 3
________ is used for management, maintenance and retrieval of the data stored in the database.
AOperating system
BDatabase Management System
CSystem Software
DProcessing Software
Show answerHide answer
Correct answer: (B) Database Management System
Explanation
A DBMS is software for creating, managing, maintaining and retrieving data stored in a database (e.g. MySQL, Oracle).
Q1416DSSSB TGT Computer Science (Technical), 1 Aug 2021, Shift 3
Which of the following statement(s) is/are correct?
I. Metropolitan area network is a collection of Local area network
II. Metropolitan area network support both data and voices transmission
AOnly I
BOnly II
CBoth I and II
DNeither I nor II
Show answerHide answer
Correct answer: (C) Both I and II
Explanation
A MAN covers a city by connecting many LANs, and it can carry both data and voice. Both statements are correct.
Q1417DSSSB TGT Computer Science (Technical), 1 Aug 2021, Shift 3
________ is a device that combines a large number of low speed transmission lines into a high speed line.
AMultiplexer
BDemultiplexer
CRepeater
DSwitch
Show answerHide answer
Correct answer: (A) Multiplexer
Explanation
A multiplexer combines many low-speed input lines into one high-speed line (shared channel). A demultiplexer does the reverse.
Q1418DSSSB TGT Computer Science (Technical), 1 Aug 2021, Shift 3
Which of the following is a type of network topology?
I. Star topology
II. Bus topology
III. Car topology
AI and II
BI and III
CII and III
DI, II and III
Show answerHide answer
Correct answer: (A) I and II
Explanation
Star and bus are network topologies (along with ring, mesh, tree). There is no "car topology", so only I and II are correct.
Q1419DSSSB TGT Computer Science (Technical), 1 Aug 2021, Shift 3
Which of the following is a type of transmission mode?
I. Simplex mode
II. Half simplex mode
III. Duplex mode
AI and II
BII and III
CI and III
DI, II and III
Show answerHide answer
Correct answer: (C) I and III
Explanation
The transmission modes are simplex, half duplex and full duplex. "Half simplex" does not exist, so I and III are correct.
Q1420DSSSB TGT Computer Science (Technical), 1 Aug 2021, Shift 3
Which one of the following is an impact printer?
AInkjet printer
BDot-matrix printer
CLaser printer
DThermal printer
Show answerHide answer
Correct answer: (B) Dot-matrix printer
Explanation
A dot-matrix printer forms characters by pins striking an inked ribbon against paper, so it is an impact printer. Inkjet, laser and thermal printers are non-impact.
Q1421DSSSB TGT Computer Science (Technical), 1 Aug 2021, Shift 3
The ability to input data directly into a computer system by speaking to it is known as ________.
ASpeech recognition
BSpeaker recognition
CSpeaker identification
DSpeech enhancement
Show answerHide answer
Correct answer: (A) Speech recognition
Explanation
Speech recognition converts spoken words into computer input or text. Speaker recognition only identifies who is speaking.
Q1422DSSSB TGT Computer Science (Technical), 1 Aug 2021, Shift 3
According to ________ law, the force between two charges is directly proportional to the product of their charges.
ACoulomb's
BGauss's
CKirchhoff's
DOhm's
Show answerHide answer
Correct answer: (A) Coulomb's
Explanation
Coulomb's law: F = k·q₁q₂/r², so the force is directly proportional to the product of the charges and inversely proportional to the square of the distance.
Q1423DSSSB TGT Computer Science (Technical), 1 Aug 2021, Shift 3
Simplify the following Boolean Expression?
(1 + A)·(A + B)·(A' + B)
AB
BAB
CA'B
DA + B
Show answerHide answer
Correct answer: (A) B
Explanation
1 + A = 1, and (A + B)(A' + B) = B + AA' = B. So the expression simplifies to B.
Q1424DSSSB TGT Computer Science (Technical), 1 Aug 2021, Shift 3
How many NOR gates are used to get AND gate from them?
A1
B3
C2
D4
Show answerHide answer
Correct answer: (B) 3
Explanation
NOR-ing each input with itself gives A' and B' (2 gates). A third NOR gives (A' + B')' = AB. So 3 NOR gates are needed.
Q1425DSSSB TGT Computer Science (Technical), 1 Aug 2021, Shift 3
A railway crossing has 4 railway tracks. If a train comes on at least 1 of the tracks, the crossing has to be closed. Which gate can be used to implement this?
ANAND
BNOR
COR
DAND
Show answerHide answer
Correct answer: (C) OR
Explanation
The crossing must close if any one or more of the 4 tracks has a train, i.e. output 1 when at least one input is 1, which is the OR function.
Q1426DSSSB TGT Computer Science (Technical), 1 Aug 2021, Shift 3
Minimize the three variable logic function using the following K-Map.
f(A, B, C) = Σm(0, 2, 5, 7)
AA'C + AB
BA'C' + AC
CAC + B
DA'C'B
Show answerHide answer
Correct answer: (B) A'C' + AC
Explanation
m0 (000) and m2 (010) group to A'C'. m5 (101) and m7 (111) group to AC. So f = A'C' + AC.
Q1427DSSSB TGT Computer Science (Technical), 1 Aug 2021, Shift 3
Which of the following pair is/are correct?
I. Astable multivibrator – Flip Flop
II. Bistable multivibrator – Free running
AOnly I
BOnly II
CBoth I and II
DNeither I nor II
Show answerHide answer
Correct answer: (D) Neither I nor II
Explanation
An astable multivibrator is free running (no stable state), and a bistable multivibrator is the flip-flop. Both pairs are swapped, so neither is correct.
Q1428DSSSB TGT Computer Science (Technical), 1 Aug 2021, Shift 3
Which of the following is an advantage of use of multiplexers?
I. Logic design is simplified
II. Minimizes IC package count
III. Simplification of logic expression is not required
AI and II
BII and III
CI and III
DI, II and III
Show answerHide answer
Correct answer: (D) I, II and III
Explanation
Multiplexers can implement any logic function directly, which simplifies design, reduces the IC package count and removes the need to minimise the expression. All three are advantages.
Q1429DSSSB TGT Computer Science (Technical), 1 Aug 2021, Shift 3
Simplify the following expression.
(A + B + 1)·(A' + B' + 1)·(A + B + C)·(A' + B' + C')
The first two factors are 1. (A + B + C)(A' + B' + C') is 0 only when A, B, C are all equal, which is what AB' + B'C + A'B + A'C + AC' + BC', i.e. option B, expresses.
Q1430DSSSB TGT Computer Science (Technical), 1 Aug 2021, Shift 3
Which of the following is not key attribute of information?
AAccuracy
BTimeliness
CRelevancy
DIsolation
Show answerHide answer
Correct answer: (D) Isolation
Explanation
Key attributes of good information include accuracy, timeliness, relevance, completeness. Isolation is not an attribute of information.
Q1431DSSSB TGT Computer Science (Technical), 1 Aug 2021, Shift 3
What is the full form of DASD in database management system?
ADirect Access Storage Device
BDynamic Access Storage Device
CDigital Access Storage Device
DDisk Access Storage Device
Show answerHide answer
Correct answer: (A) Direct Access Storage Device
Explanation
DASD stands for Direct Access Storage Device, such as a magnetic disk, where any record can be accessed directly.
Q1432DSSSB TGT Computer Science (Technical), 1 Aug 2021, Shift 3
Which of the following statement is/are correct regarding sequential file organization?
I. Entire file must be read for new record insertion and record deletion.
II. On an average, half of the records in the file must be processed to find the location of a record.
AOnly I
BOnly II
CBoth I and II
DNeither I nor II
Show answerHide answer
Correct answer: (C) Both I and II
Explanation
In a sequential file, inserting or deleting a record needs the whole file to be read and rewritten, and locating a record needs on average half the records to be scanned. Both are correct.
Q1433DSSSB TGT Computer Science (Technical), 1 Aug 2021, Shift 3
When data is frequently added to or deleted from a file, the volatility of the file is ________.
ALow
BModerate
CHigh
DZero
Show answerHide answer
Correct answer: (C) High
Explanation
Volatility measures how often records are added or deleted. Frequent additions and deletions mean high volatility.
Q1434DSSSB TGT Computer Science (Technical), 1 Aug 2021, Shift 3
The values of the attributes in a database describe a particular ________.
AEntity
BTuple
CField
DView
Show answerHide answer
Correct answer: (A) Entity
Explanation
An entity is described by its attribute values. For example, a student entity is described by values of roll number, name and class.
Q1435DSSSB TGT Computer Science (Technical), 1 Aug 2021, Shift 3
Which of the following is not a structured Query Language Data type?
AREAL
BINTERVAL
CTIME STAMP
DBASE
Show answerHide answer
Correct answer: (D) BASE
Explanation
REAL, INTERVAL and TIMESTAMP are SQL data types. BASE is not an SQL data type.
Q1436DSSSB TGT Computer Science (Technical), 1 Aug 2021, Shift 3
The input-output relationship of the binary variable for each gate can be represented in tabular form by a ________.
ASymbol table
BDecision table
CTruth table
DCharacteristic table
Show answerHide answer
Correct answer: (C) Truth table
Explanation
A truth table lists the output for every combination of binary inputs, giving the input-output relation of a gate in tabular form.
Q1437DSSSB TGT Computer Science (Technical), 1 Aug 2021, Shift 3
Which statement(s) is/are correct regarding the Boolean algebra?
I. It facilitate the analysis and design of digital circuits.
II. Expresses in algebraic form the input-output relationship of logic diagram.
AOnly I
BOnly II
CBoth I and II
DNeither I nor II
Show answerHide answer
Correct answer: (C) Both I and II
Explanation
Boolean algebra expresses the input-output relation of logic diagrams algebraically, which makes analysing and designing digital circuits easier. Both statements are correct.
Q1438DSSSB TGT Computer Science (Technical), 1 Aug 2021, Shift 3
What is equivalent of the following Boolean expression?
(x + y)' (complement of x + y)
Ax' + y'
Bxy
Cx'y'
Dx
Show answerHide answer
Correct answer: (C) x'y'
Explanation
By De Morgan's theorem (x + y)' = x'·y', i.e. x'y'.
Q1439DSSSB TGT Computer Science (Technical), 1 Aug 2021, Shift 3
Which of the following symbol represent the NOR gate?
I. The standard OR-shaped gate symbol with a small bubble (inversion circle) at the output.
II. The alternative 'distinctive shape' symbol: an AND-shaped (D-shaped) body with bubbles on both inputs.
AOnly I
BOnly II
CBoth I and II
DNeither I nor II
Show answerHide answer
Correct answer: (C) Both I and II
Explanation
A NOR gate can be drawn as an OR symbol with an output bubble, or, by De Morgan's law (A + B)' = A'B', as an AND symbol with bubbles on both inputs. Both represent NOR.
Q1440DSSSB TGT Computer Science (Technical), 1 Aug 2021, Shift 3
In JavaScript a ________ function can be defined as a function passed into another function as a parameter.
ACall front
BCall back
CRoll back
DRoll front
Show answerHide answer
Correct answer: (B) Call back
Explanation
A callback function is passed as an argument to another function and called back inside it, e.g. in setTimeout or event handlers.
Q1441DSSSB TGT Computer Science (Technical), 1 Aug 2021, Shift 3
What is AJAX in ASP.NET?
AAsynchronous JavaScript and XML
BAssociated JavaScript and XML
CAsynchronous java script and HTML
DAssociated JavaScript and HTML
Show answerHide answer
Correct answer: (A) Asynchronous JavaScript and XML
Explanation
AJAX stands for Asynchronous JavaScript and XML: it updates parts of a page by exchanging data with the server in the background.
Q1442DSSSB TGT Computer Science (Technical), 1 Aug 2021, Shift 3
Which of the following is/are correct regarding accounting process?
I. A provision is a charge against profit
II. Reserve is an approbation of profit
AOnly I
BOnly II
CBoth I and II
DNeither I nor II
Show answerHide answer
Correct answer: (C) Both I and II
Explanation
A provision is a charge against profit made for a known liability or loss, while a reserve is an appropriation of profit kept aside for future needs. Both statements are correct.
Q1443DSSSB TGT Computer Science (Technical), 1 Aug 2021, Shift 3
Which of the following is/are correct?
I. All permanent accounts are balanced and carried forward to the next accounting period.
II. The temporary accounts are closed at the end of the accounting period.
AOnly I
BOnly II
CBoth I and II
DNeither I nor II
Show answerHide answer
Correct answer: (C) Both I and II
Explanation
Permanent (real and personal) accounts are balanced and carried forward to the next period, while temporary (nominal) accounts are closed by transfer to the profit and loss account. Both are correct.
Q1444DSSSB TGT Computer Science (Technical), 1 Aug 2021, Shift 3
What is the other name of white-box testing?
ARed-box testing
BGlass-box testing
COpen-box testing
DClose-box testing
Show answerHide answer
Correct answer: (B) Glass-box testing
Explanation
White-box testing is also called glass-box (or clear-box) testing because the tester can see the internal code and logic.
Q1445DSSSB TGT Computer Science (Technical), 1 Aug 2021, Shift 3
What is the full form of SQA in software engineering?
ASoftware Quality Activity
BSystem Quality Assurance
CService Quality Activity
DSoftware Quality Assurance
Show answerHide answer
Correct answer: (D) Software Quality Assurance
Explanation
SQA stands for Software Quality Assurance: activities that make sure software processes and products meet quality standards.
Q1446DSSSB TGT Computer Science (Technical), 1 Aug 2021, Shift 3
In ________ model, software is developed in a series of incremental releases.
I. Spiral
II. Sequential
AOnly I
BOnly II
CBoth I and II
DNeither I nor II
Show answerHide answer
Correct answer: (A) Only I
Explanation
The spiral model develops software in a series of evolutionary releases, one per loop. A sequential (waterfall) model delivers the product only once at the end.
Q1447DSSSB TGT Computer Science (Technical), 1 Aug 2021, Shift 3
A module of a software is said to be logically cohesive if ________.
AAll the elements of the module perform similar operations like error handling, data input etc
BDifferent elements of the module cooperate to achieve a single function for example managing and employee's pay roll
CIf the set of functions of the module are all part of a procedure
DAll the elements of the module performs different operations alternatively
Show answerHide answer
Correct answer: (A) All the elements of the module perform similar operations like error handling, data input etc
Explanation
Logical cohesion groups elements that do logically similar operations, such as all error handling or all data input routines. B describes functional cohesion and C procedural cohesion.
Q1448DSSSB TGT Computer Science (Technical), 1 Aug 2021, Shift 3
Two modules are said to be common coupled in software design if ________.
AThey share their code
BThey share same global data areas
CThey communicate via a composite data
DThey communicate through an elementary data item
Show answerHide answer
Correct answer: (B) They share same global data areas
Explanation
Common coupling occurs when modules share the same global data area. Communicating through elementary data items is data coupling, and through composite data is stamp coupling.
Q1449DSSSB TGT Computer Science (Technical), 1 Aug 2021, Shift 3
Which of the following statement(s) is/are correct regarding software project management?
I. PERT charts can be derived automatically from Gantt charts.
II. Gantt charts cannot be automatically derived from PERT charts.
AOnly I
BOnly II
CBoth I and II
DNeither I nor II
Show answerHide answer
Correct answer: (D) Neither I nor II
Explanation
A Gantt chart can be derived automatically from a PERT chart, but a PERT chart cannot be derived from a Gantt chart because Gantt charts lack task dependencies. Both statements are false.
Q1450DSSSB TGT Computer Science (Technical), 1 Aug 2021, Shift 3
JAVA compiler translates source code into ________.
ASymbolic code
BAssembly code
CByte code
DHigh language code
Show answerHide answer
Correct answer: (C) Byte code
Explanation
The Java compiler (javac) translates source code into platform-independent bytecode (.class files), which the JVM then executes.
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.