DSSSB TGT / PGT · Topic-wise previous year questions
Computer Science Previous Year Questions (page 16)
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.
Q751DSSSB TGT Computer Science (Technical), 8 Aug 2021, Shift 2
Which of the following statement(s) is/are correct about Regional art and craft?
I. Art originating among the people of region reflecting their traditional culture.
II. It does not have its own aesthetics but they are not governed by the principles of proportions and rhythms.
AOnly I
BOnly II
CBoth I and II
DNeither I nor II
Show answerHide answer
Correct answer: (C) Both I and II
Explanation
Regional art and craft comes from the people of a region and reflects their traditional culture. It has its own folk aesthetics and is not bound by classical rules of proportion and rhythm. Both statements are taken as correct.
Q752DSSSB TGT Computer Science (Technical), 8 Aug 2021, Shift 2
Which of the following things(s) a teacher should do consciously to avoid gender bias and to promote gender equality?
I. They must use gender-neutral language and encourage children also to do so.
II. Teacher may avoid assigning gendered jobs.
AOnly I
BOnly II
CBoth I and II
DNeither I nor II
Show answerHide answer
Correct answer: (C) Both I and II
Explanation
To promote gender equality, teachers should use gender-neutral language and avoid giving tasks based on gender stereotypes. Both practices help.
Q753DSSSB TGT Computer Science (Technical), 8 Aug 2021, Shift 2
Which of the following is/are the sources(s) of gender discrimination?
I. Educational opportunities
II. Government policies
III. Family and parents
AI and III
BI, II and III
COnly III
DI and II
Show answerHide answer
Correct answer: (B) I, II and III
Explanation
Gender discrimination can come from unequal educational opportunities, from government policies and from family and parents' attitudes, so all three are sources.
Q754DSSSB TGT Computer Science (Technical), 7 Aug 2021, Shift 3
If u = sin⁻¹((x + 2y) / (x⁸ + y⁸)), then what is the value of x(∂u/∂x) + y(∂u/∂y)?
A−7 cos(u)
B7 tan(u)
C7 sin(u)
D−7 tan(u)
Show answerHide answer
Correct answer: (D) −7 tan(u)
Explanation
u = sin⁻¹(f), where f = (x + 2y)/(x⁸ + y⁸) is homogeneous of degree 1 − 8 = −7. By the corollary of Euler's theorem, x(∂u/∂x) + y(∂u/∂y) = n·f(u)/f'(u) = −7 sin u/cos u = −7 tan u.
Q755DSSSB TGT Computer Science (Technical), 7 Aug 2021, Shift 3
The function(s) that is/are in play when writing a proposal is/are:
I. Persuading actions
II. Highlighting benefits
AOnly I
BOnly II
CBoth I and II
DNeither I nor II
Show answerHide answer
Correct answer: (C) Both I and II
Explanation
A proposal tries to persuade the reader to act and highlights the benefits of the proposed idea. Both functions are at play.
Q756DSSSB TGT Computer Science (Technical), 7 Aug 2021, Shift 3
Which of the following is a shortcut key to undo last action in Ms Word?
ACtrl + Z
BCtrl + J
CCtrl + I
DCtrl + K
Show answerHide answer
Correct answer: (A) Ctrl + Z
Explanation
Ctrl + Z undoes the last action in MS Word. Ctrl + J justifies, Ctrl + I is italic and Ctrl + K inserts a hyperlink.
Q757DSSSB TGT Computer Science (Technical), 7 Aug 2021, Shift 3
Which of the following is an input device?
APlotter
BPrinter
CJoystick
DSpeaker
Show answerHide answer
Correct answer: (C) Joystick
Explanation
A joystick sends user input to the computer. Plotters, printers and speakers are output devices.
Q758DSSSB TGT Computer Science (Technical), 7 Aug 2021, Shift 3
Which of the following is a type of subprogram?
I. Functions
II. Subroutines
AOnly I
BOnly II
CBoth I and II
DNeither I nor II
Show answerHide answer
Correct answer: (C) Both I and II
Explanation
Functions (which return a value) and subroutines (procedures) are both types of subprograms.
Q759DSSSB TGT Computer Science (Technical), 7 Aug 2021, Shift 3
Which of the following is a primary task of memory management system?
I. It keeps track of which parts of the memory are currently being used
II. When space is available, it allocates memory to the programs that are next to be loaded
AOnly I
BOnly II
CBoth I and II
DNeither I nor II
Show answerHide answer
Correct answer: (C) Both I and II
Explanation
Memory management keeps track of which parts of memory are in use and which are free, and it allocates free space to the processes to be loaded next. Both are primary tasks.
Q760DSSSB TGT Computer Science (Technical), 7 Aug 2021, Shift 3
The operator in C++, which is used to access a value referred by a pointer is known as ________.
AIndirect operator
BDirect operator
CIndirection operator
DInsertion operator
Show answerHide answer
Correct answer: (C) Indirection operator
Explanation
The unary * operator, which gives the value a pointer points to, is called the indirection (dereference) operator.
Q761DSSSB TGT Computer Science (Technical), 7 Aug 2021, Shift 3
Sort the following elements using Bubble sort in ascending order. What is the intermediate sequence of 37, 54, 21, 85, 68, 12, 9, 57 after second pass?
A21, 37, 12, 9, 54, 57, 68, 85
B37, 21, 54, 68, 12, 9, 57, 85
C21, 37, 54, 12, 9, 57, 68, 85
D21, 12, 9, 37, 54, 57, 68, 85
Show answerHide answer
Correct answer: (C) 21, 37, 54, 12, 9, 57, 68, 85
Explanation
Pass 1 moves 85 to the end: 37, 21, 54, 68, 12, 9, 57, 85. Pass 2 moves 68 to its place: 21, 37, 54, 12, 9, 57, 68, 85.
Q762DSSSB TGT Computer Science (Technical), 7 Aug 2021, Shift 3
What is the output of the code written in C?
void main()
{
int k, v;
k = (v=20, v+2);
printf("%d/n", k);
}
A2
B20
C22
DError
Show answerHide answer
Correct answer: (C) 22
Explanation
The comma operator evaluates v = 20, then v + 2, and returns the last value, so k = 22. (The "/n" is printed literally after it.)
Q763DSSSB TGT Computer Science (Technical), 7 Aug 2021, Shift 3
The following keys 22, 28, 23, 12 and 13 are inserted into initially empty hash table of length 9 using open addressing with hash function h(k) = k mod 9 and linear probing. At what index key 13 is inserted?
A4
B5
C6
D7
Show answerHide answer
Correct answer: (C) 6
Explanation
22→4, 28→1, 23→5, 12→3. 13 mod 9 = 4 is taken, so linear probing tries 5 (taken), then 6, which is free. So 13 goes to index 6.
Q764DSSSB TGT Computer Science (Technical), 7 Aug 2021, Shift 3
What is the file extension for Batch files?
ABAT
BBCH
CCTH
DBATCH
Show answerHide answer
Correct answer: (A) BAT
Explanation
Batch files on DOS/Windows use the .BAT extension (newer ones may also use .CMD).
Q765DSSSB TGT Computer Science (Technical), 7 Aug 2021, Shift 3
Which of the following is a type of Real time operating system?
I. Hard real time system
II. Soft real time system
AOnly I
BOnly II
CBoth I and II
DNeither I nor II
Show answerHide answer
Correct answer: (C) Both I and II
Explanation
Real-time operating systems are either hard (deadlines must always be met) or soft (occasional misses are tolerated). Both are types.
Q766DSSSB TGT Computer Science (Technical), 7 Aug 2021, Shift 3
If b is the base of the positional number system. What is the range of symbols it consists of?
A0 to b
B1 to b
C0 to (b - 1)
D1 to (b - 1)
Show answerHide answer
Correct answer: (C) 0 to (b - 1)
Explanation
A base-b system uses b symbols, from 0 to b − 1 (e.g. decimal uses 0-9 and binary uses 0-1).
Q767DSSSB TGT Computer Science (Technical), 7 Aug 2021, Shift 3
How many bits are required to represent any decimal number in the range from 0 to 2ⁿ − 1 in base 2?
An
Bn − 1
C2ⁿ − 1
Dn + 1
Show answerHide answer
Correct answer: (A) n
Explanation
With n bits there are 2ⁿ combinations, which cover 0 to 2ⁿ − 1, so n bits are enough.
Q768DSSSB TGT Computer Science (Technical), 7 Aug 2021, Shift 3
Assigned ordering among the characters used by the computer is known as ________.
ACharacter sequence
BLinear sequence
CCollating sequence
DData sequence
Show answerHide answer
Correct answer: (C) Collating sequence
Explanation
The collating sequence is the defined order of the characters in a character set (e.g. ASCII), used when comparing and sorting text.
Q769DSSSB TGT Computer Science (Technical), 7 Aug 2021, Shift 3
Which gate is represented by the following truth table?
A | B | C | Output
0 | 0 | 0 | 1
0 | 0 | 1 | 1
0 | 1 | 0 | 1
0 | 1 | 1 | 1
1 | 0 | 0 | 1
1 | 0 | 1 | 1
1 | 1 | 0 | 1
1 | 1 | 1 | 0
ANOR
BNAND
CXOR
DXNOR
Show answerHide answer
Correct answer: (B) NAND
Explanation
The output is 0 only when all inputs are 1 and 1 otherwise, which is (ABC)', the NAND function.
Q770DSSSB TGT Computer Science (Technical), 7 Aug 2021, Shift 3
Astable multivibrator has ________ quasi-stable states.
A0
B1
C2
D3
Show answerHide answer
Correct answer: (C) 2
Explanation
An astable multivibrator has no stable state; it keeps switching between its two quasi-stable states, which is how it works as an oscillator.
Q771DSSSB TGT Computer Science (Technical), 7 Aug 2021, Shift 3
Which of the following is correct regarding figure of merit of an IC?
APropagation delay time − power
BPropagation delay time ÷ power
CPropagation delay time × power
DPropagation delay time + power
Show answerHide answer
Correct answer: (C) Propagation delay time × power
Explanation
The figure of merit of a logic IC is the speed-power product: propagation delay × power dissipation. A lower value is better.
Q772DSSSB TGT Computer Science (Technical), 7 Aug 2021, Shift 3
Which of the following is correct regarding T type flip flop?
I. If T = 1, changes state for lining clock pulse
II. If T = 0, does not changes state
AOnly I
BOnly II
CBoth I and II
DNeither I nor II
Show answerHide answer
Correct answer: (C) Both I and II
Explanation
A T flip-flop toggles its state on each clock pulse when T = 1 and keeps its state when T = 0. Both statements are correct.
Q773DSSSB TGT Computer Science (Technical), 7 Aug 2021, Shift 3
Which of the following represents XNOR gate?
AY = A ⊕ B
BY = A ⊙ B
CY = (A + B)'
DY = (AB)'
Show answerHide answer
Correct answer: (B) Y = A ⊙ B
Explanation
XNOR is the equivalence function, written Y = A ⊙ B. A ⊕ B is XOR, (A + B)' is NOR and (AB)' is NAND.
Q774DSSSB TGT Computer Science (Technical), 7 Aug 2021, Shift 3
Which of the following is oldest database model?
ADeductive
BRelational
CObject-Oriented
DHierarchical
Show answerHide answer
Correct answer: (D) Hierarchical
Explanation
The hierarchical model (e.g. IBM's IMS, 1960s) is the oldest of these. The relational model came in 1970, and the object-oriented and deductive models later.
Q775DSSSB TGT Computer Science (Technical), 7 Aug 2021, Shift 3
What is the full form of DDLC in database?
ADistributed Database Log Clearing
BDistributed Database Life Cycle
CDatabase Development LifeCycle
DDeductive Database LifeCycle
Show answerHide answer
Correct answer: (C) Database Development LifeCycle
Explanation
DDLC is the Database Development Life Cycle: the stages of planning, designing, building and maintaining a database.
Q776DSSSB TGT Computer Science (Technical), 7 Aug 2021, Shift 3
The left-hand side and the right-hand sides of a functional dependency are sometimes called ________ and ________ respectively.
ADomain; attributes
BDeterminant; dependent
CRange; table
DTuple; relation
Show answerHide answer
Correct answer: (B) Determinant; dependent
Explanation
In X → Y, X is the determinant and Y is the dependent, because X determines the value of Y.
Q777DSSSB TGT Computer Science (Technical), 7 Aug 2021, Shift 3
________ are some problems that may arise while creating the Entity relationship model.
AConnection traps
BTransition traps
CGroups traps
DData traps
Show answerHide answer
Correct answer: (A) Connection traps
Explanation
Connection traps (fan traps and chasm traps) are problems that can arise in an ER model, where the relationships do not give the intended paths between entities.
Q778DSSSB TGT Computer Science (Technical), 7 Aug 2021, Shift 3
Which of the following is a symbol of multivalued attribute in Entity relationship diagram?
ADouble oval (an ellipse inside an ellipse)
BDouble diamond (a diamond inside a diamond)
CDouble rectangle (a rectangle inside a rectangle)
DAn ellipse with a small rectangle inside
Show answerHide answer
Correct answer: (A) Double oval (an ellipse inside an ellipse)
Explanation
A multivalued attribute is drawn as a double oval. A double diamond is an identifying relationship and a double rectangle is a weak entity.
Q779DSSSB TGT Computer Science (Technical), 7 Aug 2021, Shift 3
________ is the point of synchronisation between the database and the transaction log file in database management system.
ACheckpoint
BShadow point
CMapping point
DKey point
Show answerHide answer
Correct answer: (A) Checkpoint
Explanation
A checkpoint is a point where all log records and modified buffers are written to disk, which synchronises the database with the log and limits how much must be redone during recovery.
Q780DSSSB TGT Computer Science (Technical), 7 Aug 2021, Shift 3
How many address lines and input-output data lines are needed in 2k × 16 memory unit?
A10 address line, 16 data line
B10 address line, 4 data line
C11 address line, 4 data line
D11 address line, 16 data line
Show answerHide answer
Correct answer: (D) 11 address line, 16 data line
Explanation
2K = 2048 = 2¹¹ words, so 11 address lines are needed, and each word is 16 bits, so 16 data lines.
Q781DSSSB TGT Computer Science (Technical), 7 Aug 2021, Shift 3
How many full adders are required for n-bit binary adder?
A2 × n
Bn/2
Cn
Dn²
Show answerHide answer
Correct answer: (C) n
Explanation
An n-bit parallel (ripple-carry) adder chains n full adders, one per bit.
Q782DSSSB TGT Computer Science (Technical), 7 Aug 2021, Shift 3
By including which logical gate binary adder circuit is used for both binary addition and subtraction?
AEx - AND gate
BAND gate
CEx-OR gate
DOR gate
Show answerHide answer
Correct answer: (C) Ex-OR gate
Explanation
XOR gates on the B inputs pass B through when the control is 0 and invert it when the control is 1. With carry-in = 1, this gives 2's complement subtraction, so one circuit does both.
Q783DSSSB TGT Computer Science (Technical), 7 Aug 2021, Shift 3
The 8 bit register A and B initially have the following values.
A = 01110110
B = 10000101
What is the 8-bit value in each register after execution of the following micro-operation?
A ← A + B
B ← B + 1
AA = 01110110, B = 10000101
BA = 11111011, B = 10001110
CA = 11111011, B = 10000110
DA = 11111101, B = 10000101
Show answerHide answer
Correct answer: (C) A = 11111011, B = 10000110
Explanation
A + B = 01110110 (118) + 10000101 (133) = 11111011 (251), and B + 1 = 10000101 + 1 = 10000110.
Q784DSSSB TGT Computer Science (Technical), 7 Aug 2021, Shift 3
Pseudo instruction is given to ________.
ACompiler
BLinker
CAssembler
DLoader
Show answerHide answer
Correct answer: (C) Assembler
Explanation
Pseudo-instructions (assembler directives such as ORG, END, DEC) are commands to the assembler. They are not translated into machine instructions.
Q785DSSSB TGT Computer Science (Technical), 7 Aug 2021, Shift 3
Which property of CSS specifies the degree to which text should be emboldened?
AFont-style
BFont-family
CFont-weight
DFont-size
Show answerHide answer
Correct answer: (C) Font-weight
Explanation
font-weight sets how bold the text is (normal, bold, 100-900). font-style sets italic.
Q786DSSSB TGT Computer Science (Technical), 7 Aug 2021, Shift 3
Which property of CSS enables to set multiple list properties at once?
AList-style-type
BList-style-image
CList-style-position
DList-style
Show answerHide answer
Correct answer: (D) List-style
Explanation
list-style is the shorthand property that sets list-style-type, list-style-position and list-style-image in one declaration.
Q787DSSSB TGT Computer Science (Technical), 7 Aug 2021, Shift 3
Which of the following is correct?
I. Decrease in asset is credited
II. Increase in liabilities is credited
AOnly I
BOnly II
CBoth I and II
DNeither I nor II
Show answerHide answer
Correct answer: (C) Both I and II
Explanation
Under accounting rules, a decrease in an asset is credited and an increase in a liability is credited. Both are correct.
Q788DSSSB TGT Computer Science (Technical), 7 Aug 2021, Shift 3
Which of the following is a feature of depreciation?
I. It is decline in the book value of fixed assets
II. It is a continuing process
AOnly I
BOnly II
CBoth I and II
DNeither I nor II
Show answerHide answer
Correct answer: (C) Both I and II
Explanation
Depreciation is the decline in the book value of fixed assets, and it continues throughout the asset's useful life. Both are features.
Q789DSSSB TGT Computer Science (Technical), 7 Aug 2021, Shift 3
Given the following table of value of f(x) = log x, what is the value of f'(3)?
x | 1 | 2 | 3 | 4
f(x) | 0 | 0.301 | 0.477 | 0.602
A0.125
B0.225
C0.208
D0.278
Show answerHide answer
Correct answer: (A) 0.125
Explanation
Using the forward difference approximation, f'(3) ≈ [f(4) − f(3)]/h = (0.602 − 0.477)/1 = 0.125.
Q790DSSSB TGT Computer Science (Technical), 7 Aug 2021, Shift 3
What is the full form of ROCOF in software Reliability?
ARatio of occurrence of fault
BRate of occurrence of fault
CRate of occurrence of failure
DRatio of occurrence of failure
Show answerHide answer
Correct answer: (C) Rate of occurrence of failure
Explanation
ROCOF stands for Rate of Occurrence of Failure, the frequency of failures over time, used as a software reliability metric.
Q791DSSSB TGT Computer Science (Technical), 7 Aug 2021, Shift 3
Match the symbol used in DFD with their function.
A. Rectangle — I. Output
B. Two parallel horizontal lines — II. Process
C. A cylinder-like document/file shape — III. Data store
D. Circle — IV. External entity
AA-IV, B-III, C-I, D-II
BA-II, B-III, C-I, D-II
CA-IV, B-I, C-III, D-II
DA-I, B-III, C-IV, D-II
Show answerHide answer
Correct answer: (A) A-IV, B-III, C-I, D-II
Explanation
In a DFD, a rectangle is an external entity, two parallel lines are a data store, the document shape is output, and a circle (bubble) is a process.
Q792DSSSB TGT Computer Science (Technical), 7 Aug 2021, Shift 3
According to structured partitioning in software engineering a program ________.
AShould be partitioned both horizontally and diagonally
BShould be partitioned both vertically and diagonally
CShould be partitioned both horizontally and vertically
DShould be partitioned diagonally
Show answerHide answer
Correct answer: (C) Should be partitioned both horizontally and vertically
Explanation
Structured partitioning divides a program both horizontally (separate branches for major functions) and vertically (control at the top, work done at the bottom).
Q793DSSSB TGT Computer Science (Technical), 7 Aug 2021, Shift 3
What is another name of level 0-DFD?
AE-R Diagram
BContext diagram
CFlow diagram
DStructure chart
Show answerHide answer
Correct answer: (B) Context diagram
Explanation
A level-0 DFD is called the context diagram: it shows the whole system as one process with its external entities.
Q794DSSSB TGT Computer Science (Technical), 7 Aug 2021, Shift 3
What is COUPLING in software design?
ACoupling is measure of degree of functional interdependence between the two modules
BCoupling is measure of degree of functional non-dependence between the two modules
CCoupling is measure of degree of functional connected dependence between the two modules
DCoupling is measure of the functional strength of the module of the software
Show answerHide answer
Correct answer: (A) Coupling is measure of degree of functional interdependence between the two modules
Explanation
Coupling measures the degree of functional interdependence between two modules. Low coupling is desirable. Functional strength within one module is cohesion.
Q795DSSSB TGT Computer Science (Technical), 7 Aug 2021, Shift 3
Which of the following statement(s) is/are correct regarding code walk-through in software engineering?
I. It is an informal technique for analysis of the code.
II. It is undertaken just before the coding of the module.
AOnly I
BOnly II
CBoth I and II
DNeither I nor II
Show answerHide answer
Correct answer: (A) Only I
Explanation
A code walkthrough is an informal technique for analysing code, so I is true. It is done after the module has been coded and compiled, not before coding, so II is false.
Q796DSSSB TGT Computer Science (Technical), 7 Aug 2021, Shift 3
In boundary value analysis testing method, if we want to design a test case that computes the square root of integer values in the range from 1 to 4000, then the test case must include what values?
A[0, 1, 3999, 4000]
B[1, 2, 3999, 4000]
C[0, 1, 4000, 4001]
D[1, 2, 4000, 4001]
Show answerHide answer
Correct answer: (C) [0, 1, 4000, 4001]
Explanation
Boundary value analysis tests values just outside and at each boundary of the valid range 1-4000: 0, 1, 4000 and 4001.
Q797DSSSB TGT Computer Science (Technical), 7 Aug 2021, Shift 3
What is function of javap command?
AA command for running the java compiler
BA command that disassembles java class files
CA command for running a non-optimized version of java compiler
DA command that is used to generate API-style HTML documentation
Show answerHide answer
Correct answer: (B) A command that disassembles java class files
Explanation
javap is the Java class file disassembler. It shows the fields, methods and bytecode of a .class file. javac compiles and javadoc generates HTML docs.
Q798DSSSB TGT Computer Science (Technical), 7 Aug 2021, Shift 3
Which of the following statement is/are correct regarding JAVA programming?
I. A class marked as final cannot be inherited
II. A method marked final cannot be overridden
AOnly I
BOnly II
CBoth I and II
DNeither I nor II
Show answerHide answer
Correct answer: (C) Both I and II
Explanation
In Java, a final class cannot be subclassed and a final method cannot be overridden. Both are correct.
Q799DSSSB TGT Computer Science (Technical), 7 Aug 2021, Shift 3
What is the output of the following JAVA code?
String s = "exam" + 9 + 9 + 9;
System.out.println(s);
Aexam 27
Bexam: 27
Cexam: 9
Dexam: 999
Show answerHide answer
Correct answer: (D) exam: 999
Explanation
With a String on the left, each + is string concatenation: "exam" + 9 gives "exam9", and so on, giving "exam999". The 9s are not added to 27.
Q800DSSSB TGT Computer Science (Technical), 7 Aug 2021, Shift 3
Assume that the following jobs are to be executed on a single processor system. All jobs have arrived at 0 msec.
Job Id | CPU
a | 4
b | 1
c | 7
d | 2
If scheduling is round robin with time slice 1 msec, then what is the completion time for job 'a'?
A4
B10
C7
D11
Show answerHide answer
Correct answer: (B) 10
Explanation
With RR (q = 1), the order is a, b, c, d, a, c, d, a, c, a. b ends at 2 and d at 7, and a's fourth slice ends at time 10.
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.