DSSSB TGT / PGT · Computer Science

Discrete Mathematics Previous Year Questions

65 Discrete Mathematics (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.

  • 65 questions
  • Official answer key
  • Free

Other Computer Science topics

Q1From DSSSB TGT Computer Science Practice Set 4
What is the purpose of the legend() function in Matplotlib?
  1. ATo add a title to a plot
  2. BTo add annotations to a plot
  3. CTo label different lines or markers on a plot
  4. DTo label the x and y axes of a plot
Show answerHide answer

Correct answer: (C) To label different lines or markers on a plot

Explanation

legend() adds a legend box that labels each line or marker on the plot, using the label= values given when plotting.

Q2From DSSSB TGT Computer Science Practice Set 4
In Huffman's coding, if the symbol A has probability 0.3, B has probability 0.15, C has probability 0.1, D has probability 0.25 and E has probability 0.2, then the minimum number of bits required to represent all the symbols together is
  1. A14
  2. B11
  3. C12
  4. D15
Show answerHide answer

Correct answer: (C) 12

Explanation

Huffman merges: 0.1 + 0.15 = 0.25, then 0.2 + 0.25 = 0.45, then 0.25 + 0.3 = 0.55, then 1. The code lengths are A 2, D 2, E 2, B 3, C 3, totalling 2 + 2 + 2 + 3 + 3 = 12 bits.

Q3From DSSSB TGT Computer Science Practice Set 3
In unit testing of a model, it is found that for a set of test data, at the maximum 90% of the code alone were tested with the probability of success 0.9. Then the reliability of the model is
  1. AGreater than 0.9
  2. BEqual to 0.9
  3. CAt most 0.81
  4. DAt least 1/0.81
Show answerHide answer

Correct answer: (C) At most 0.81

Explanation

Only 90% of the code was tested, and the success probability is 0.9. So reliability is at most 0.9 × 0.9 = 0.81.

Q4From DSSSB TGT Computer Science Practice Set 3
The range of the function f(x) = x²/(1+x²) is
  1. A(−∞, +∞)
  2. B(0, ∞)
  3. C(−∞, 0]
  4. D[0, 1)
Show answerHide answer

Correct answer: (D) [0, 1)

Explanation

x²/(1+x²) is 0 at x = 0 and approaches 1 as x grows, but never reaches 1 because x² < 1 + x². So the range is [0, 1).

Q5From DSSSB TGT Computer Science Practice Set 3
The term ______ refers to the use of electronics and software within a product, as opposed to a general-purpose computer, such as a laptop or desktop system.
  1. AComplex system
  2. BSimple system
  3. CFuzzy logic
  4. DEmbedded system
Show answerHide answer

Correct answer: (D) Embedded system

Explanation

An embedded system is electronics and software built into a product for a dedicated function, such as a washing machine or microwave controller, rather than a general-purpose computer.

Q6From DSSSB TGT Computer Science Practice Set 3
Which of the following is not a determinant of curriculum?
  1. APersonal talent
  2. Bsocial aspect
  3. CGender role
  4. DBasic needs
Show answerHide answer

Correct answer: (C) Gender role

Explanation

Curriculum is shaped by learners' needs and abilities and by social aspects. Gender roles should not determine curriculum, which must be gender-neutral.

Q7From DSSSB TGT Computer Science Practice Set 2
What is the range of the following function? {(4, 8), (9, 2), (−3, −4)}
  1. A{4, 9, −3}
  2. B{8}
  3. C{(4, 8), (9, 2), (−3, −4)}
  4. D{8, 2, −4}
Show answerHide answer

Correct answer: (D) {8, 2, −4}

Explanation

The range is the set of second elements (outputs) of the ordered pairs: {8, 2, −4}.

Q8From DSSSB TGT Computer Science Practice Set 2
Based on the current technology, ______ is the fastest logic family.
  1. ACMOS
  2. BTTL
  3. CMOS
  4. DECL
Show answerHide answer

Correct answer: (D) ECL

Explanation

Emitter-Coupled Logic (ECL) is the fastest logic family, because its transistors never saturate, but it uses a lot of power.

Q9From DSSSB TGT Computer Science Practice Set 1
One of the disadvantages of pass by reference is that the called function may inadvertently corrupt the caller's data. This can be avoided by
  1. APassing pointers
  2. BDeclaring the formal parameters constant
  3. CDeclaring the actual parameters constant
  4. DAll of the above
Show answerHide answer

Correct answer: (B) Declaring the formal parameters constant

Explanation

Declaring the formal (reference) parameters as const lets the function read the caller's data without being able to modify it.

Q10DSSSB PGT Computer Science (Technical), 11 Jul 2021
What is the full form of DCTL in logic family?
  1. ADirect-coupled transistor logic
  2. BDiode-coupled transistor logic
  3. CDirect-circuit transistor logic
  4. DDirect -circuit threshold logic
Show answerHide answer

Correct answer: (A) Direct-coupled transistor logic

Explanation

DCTL stands for Direct-Coupled Transistor Logic, an early logic family in which transistors are connected directly without coupling resistors.

Q11DSSSB PGT Computer Science (Technical), 11 Jul 2021
A product of sum (POS) form of logic function consist of only ________ while a sum of product (SOP) form of logic function consist of only ________.
  1. AMaxterms; maxterms
  2. BMinterms; minterms
  3. CMinterms; maxterms
  4. DMaxterms; minterms
Show answerHide answer

Correct answer: (D) Maxterms; minterms

Explanation

A POS expression is a product of maxterms (OR terms), and an SOP expression is a sum of minterms (AND terms).

Q12DSSSB PGT Computer Science (Technical), 11 Jul 2021
An image may be defined as a 2-dimensional function f(x, y) where x and y are ________ and the amplitude of the function is called ________ of the image at the point (x, y)
  1. AIntensity; coordinates
  2. BIntensity; brightness
  3. CCoordinates; intensity
  4. DBrightness; coordinates
Show answerHide answer

Correct answer: (C) Coordinates; intensity

Explanation

In f(x, y), x and y are spatial coordinates, and the amplitude of f at any point is the intensity (grey level) of the image there.

Q13DSSSB TGT Computer Science (Technical), 8 Aug 2021, Shift 2
If the determinant of the matrix [ 1 3 0 ] [ 2 6 4 ] [ -1 0 2 ] is −p, then what is the value of the determinant of the matrix [ 2 6 0 ] [ 4 12 8 ] [ -2 0 4 ] ?
  1. A8P
  2. B-4P
  3. C4P
  4. D-8P
Show answerHide answer

Correct answer: (D) -8P

Explanation

Every row of the second matrix is 2 times the corresponding row of the first. Multiplying all three rows of a 3×3 matrix by 2 multiplies the determinant by 2³ = 8, so the new determinant is 8 × (−p) = −8p.

Q14DSSSB TGT Computer Science (Technical), 8 Aug 2021, Shift 2
An anti-air craft gun can take a maximum of 4 shots at an enemy plane moving away from it. The probabilities of hitting the plane at the first, second, third and fourth shot are 0.6, 0.5, 0.4 and 0.2 respectively. What is the probability that the gun hit the plane?
  1. A0.904
  2. B0.924
  3. C0.804
  4. D0.824
Show answerHide answer

Correct answer: (A) 0.904

Explanation

The chance that all four shots miss is 0.4 × 0.5 × 0.6 × 0.8 = 0.096. So P(at least one hit) = 1 − 0.096 = 0.904.

Q15DSSSB TGT Computer Science (Technical), 8 Aug 2021, Shift 2
Which of the following is a impact printer?
  1. AInkjet printer
  2. BDot-matrix printer
  3. CLaser printer
  4. 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 the paper, so it is an impact printer. Inkjet, laser and thermal printers are non-impact printers.

Q16DSSSB TGT Computer Science (Technical), 8 Aug 2021, Shift 2
Consider the following weighted digraph. What is the shortest distance between V1 to V5? Edges (from → to, weight): V1 → V2 (30), V2 → V3 (70), V3 → V5 (30), V1 → V4 (50), V4 → V3 (40), V4 → V5 (80), V1 → V5 (120)
  1. A140
  2. B120
  3. C130
  4. D110
Show answerHide answer

Correct answer: (B) 120

Explanation

Path costs: V1→V2→V3→V5 = 130, V1→V4→V3→V5 = 120, V1→V4→V5 = 130 and V1→V5 = 120. The minimum is 120.

Q17DSSSB TGT Computer Science (Technical), 8 Aug 2021, Shift 2
A bag L contains 2 white and 3 red balls and a bag M contains 4 white and 5 red balls. One ball is drawn at random from one of the bags and is found to be red. What is the probability that it was drawn from the bag M?
  1. A29/52
  2. B25/52
  3. C23/52
  4. D19/52
Show answerHide answer

Correct answer: (B) 25/52

Explanation

By Bayes' theorem, P(M | red) = (½ × 5/9) / (½ × 3/5 + ½ × 5/9) = (5/9) / (52/45) = 25/52.

Q18DSSSB TGT Computer Science (Technical), 8 Aug 2021, Shift 2
Which is Lagrange's interpolation polynomial for the following data? x | 2 | 4 f(x) | 3 | 5
  1. A2x + 6
  2. Bx + 5
  3. Cx + 1
  4. D2x + 5
Show answerHide answer

Correct answer: (C) x + 1

Explanation

With two points, Lagrange's formula gives f(x) = 3(x−4)/(2−4) + 5(x−2)/(4−2) = −1.5x + 6 + 2.5x − 5 = x + 1. Check: f(2) = 3 and f(4) = 5.

Q19DSSSB TGT Computer Science (Technical), 7 Aug 2021, Shift 3
A discrete random variable X has the following probability distribution. X | 1 | 2 | 3 | 4 | 5 | 6 | 7 P(X) | K | 2K | 2K | 3K | K² | 2K² | 7K² + K What is the value of K?
  1. A1/30
  2. B1/40
  3. C1/10
  4. D1/20
Show answerHide answer

Correct answer: (C) 1/10

Explanation

The probabilities must add to 1: 9K + 10K² = 1, so 10K² + 9K − 1 = 0, i.e. (10K − 1)(K + 1) = 0. Since K > 0, K = 1/10.

Q20DSSSB TGT Computer Science (Technical), 7 Aug 2021, Shift 3
Two balls are drawn at random with replacement from a box containing 10 blue and 8 pink balls. What is the probability that both the balls are pink?
  1. A4/9
  2. B16/81
  3. C64/81
  4. D8/81
Show answerHide answer

Correct answer: (B) 16/81

Explanation

With replacement the draws are independent: P = (8/18) × (8/18) = (4/9)² = 16/81.

Q21DSSSB TGT Computer Science (Technical), 7 Aug 2021, Shift 2
What is the function of Ctrl + T in MS-word?
  1. AUndo last action
  2. BHanging indent
  3. CRedo the last action
  4. DJustify paragraph alignment
Show answerHide answer

Correct answer: (B) Hanging indent

Explanation

Ctrl + T applies a hanging indent in MS Word (Ctrl + Shift + T removes it). Undo is Ctrl + Z, redo is Ctrl + Y and justify is Ctrl + J.

Q22DSSSB TGT Computer Science (Technical), 7 Aug 2021, Shift 2
If the probability of winning a match is 0.7 then what is the value of variance?
  1. A0.7
  2. B0.3
  3. C0.21
  4. D0.31
Show answerHide answer

Correct answer: (C) 0.21

Explanation

For a single trial (Bernoulli), variance = p × q = 0.7 × 0.3 = 0.21.

Q23DSSSB TGT Computer Science (Technical), 7 Aug 2021, Shift 2
20 percent of the pens produced in a factory are of red colour and 4 percent are red and defective. If one pen is picked up at random, then what is the probability of its being defective if it is red?
  1. A0.2
  2. B0.4
  3. C0.6
  4. D0.8
Show answerHide answer

Correct answer: (A) 0.2

Explanation

P(defective | red) = P(red and defective) / P(red) = 0.04 / 0.20 = 0.2.

Q24DSSSB TGT Computer Science (Technical), 7 Aug 2021, Shift 2
A bike manufacturing factory has two plants P and Q. Plant P manufactures 60 percent of bikes and plant Q manufacture 40 percent. 80 percent of the bikes at plant P and 90 percent of the bikes at plant Q are rated of standard quality. A bike is chosen at random and is found to be of standard quality. What is the probability that it has come from plant P?
  1. A3/7
  2. B6/7
  3. C5/7
  4. D4/7
Show answerHide answer

Correct answer: (D) 4/7

Explanation

By Bayes' theorem, P(P | standard) = (0.6 × 0.8) / (0.6 × 0.8 + 0.4 × 0.9) = 0.48 / 0.84 = 4/7.

Q25DSSSB TGT Computer Science (Technical), 1 Aug 2021, Shift 3
What is the minimum value of function y = x² in the interval [1, 6]?
  1. A2
  2. B1
  3. C3
  4. D4
Show answerHide answer

Correct answer: (B) 1

Explanation

y = x² is increasing on [1, 6], so its minimum is at x = 1: y = 1.

Q26DSSSB TGT Computer Science (Technical), 1 Aug 2021, Shift 3
Which one of the following is an impact printer?
  1. AInkjet printer
  2. BDot-matrix printer
  3. CLaser printer
  4. 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.

Q27DSSSB 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
  1. AI and II
  2. BII and III
  3. CI and III
  4. 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.

Q28DSSSB TGT Computer Science (Technical), 1 Aug 2021, Shift 3
A module of a software is said to be logically cohesive if ________.
  1. AAll the elements of the module perform similar operations like error handling, data input etc
  2. BDifferent elements of the module cooperate to achieve a single function for example managing and employee's pay roll
  3. CIf the set of functions of the module are all part of a procedure
  4. 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.

Q29DSSSB TGT Computer Science (Technical), 1 Aug 2021, Shift 3
A question in mathematics is given to three students P, Q and R whose chances of solving are 1/3, 1/4, 1/5 respectively. What is the probability that the problem will be solved?
  1. A0.4
  2. B0.6
  3. C0.8
  4. D0.7
Show answerHide answer

Correct answer: (B) 0.6

Explanation

P(no one solves) = (2/3)(3/4)(4/5) = 2/5. So P(solved) = 1 − 2/5 = 3/5 = 0.6.

Q30DSSSB TGT Computer Science (Technical), 1 Aug 2021, Shift 3
If f(1) = 4 and f(5) = 6, then what is the value of f(3) using Lagrange's interpolation?
  1. A5
  2. B6.5
  3. C4
  4. D3
Show answerHide answer

Correct answer: (A) 5

Explanation

Lagrange's formula with two points: f(3) = 4·(3−5)/(1−5) + 6·(3−1)/(5−1) = 4×0.5 + 6×0.5 = 5.

Q31DSSSB TGT Computer Science (Technical), 1 Aug 2021, Shift 1
In a bulb factory, machines P, Q and R manufacture respectively 25%, 35% and 40% of the total. Of their output 5, 4 and 2 percent respectively are defective bulbs. A bulb is drawn at random and it is found to be defective. What is the probability that it was manufactured by machine Q?
  1. A0.55
  2. B0.45
  3. C0.31
  4. D0.41
Show answerHide answer

Correct answer: (D) 0.41

Explanation

P(defective) = 0.25×0.05 + 0.35×0.04 + 0.40×0.02 = 0.0125 + 0.014 + 0.008 = 0.0345. By Bayes' theorem, P(Q | defective) = 0.014/0.0345 ≈ 0.41.

Q32DSSSB TGT Computer Science (Technical), 13 Sep 2025, Shift 3 (5:00 PM)
The matrix A consists of m rows and n columns. The matrix A is known as Sparse matrix if the:
  1. Atotal number of zero elements in the matrix A < m − n.
  2. Btotal number of zero elements in the matrix A > m*n.
  3. Ctotal number of zero elements in the matrix A > m*n/2.
  4. Dtotal number of zero elements in the matrix A < m + n.
Show answerHide answer

Correct answer: (C) total number of zero elements in the matrix A > m*n/2.

Explanation

A matrix is usually called sparse when most of its elements are zero, that is, when more than half of the m × n elements are zero.

Q33DSSSB TGT Computer Science (Technical), 13 Sep 2025, Shift 3 (5:00 PM)
What is the primary function of the World Wide Web (WWW)?
  1. ATo connect and access documents and resources over the internet
  2. BTo provide cloud storage services
  3. CTo store large databases
  4. DTo create mobile applications
Show answerHide answer

Correct answer: (A) To connect and access documents and resources over the internet

Explanation

The WWW is a system of linked hypertext documents and resources that are reached over the internet with HTTP through browsers.

Q34DSSSB TGT Computer Science (Technical), 13 Sep 2025, Shift 3 (5:00 PM)
What is the primary function of a scanner in digital imaging?
  1. AConvert printed images into digital format
  2. BConvert videos to still images
  3. CChange the image resolution
  4. DEnhance image quality
Show answerHide answer

Correct answer: (A) Convert printed images into digital format

Explanation

A scanner reads printed documents or photos and converts them into digital images.

Q35DSSSB TGT Computer Science (Technical), 13 Sep 2025, Shift 3 (5:00 PM)
Which of the following options is an example of skew symmetric matrix?
  1. A[ 3 1 2 ] [ −1 5 −4 ] [ 2 4 7 ]
  2. B[ 0 1 2 ] [ −1 0 −4 ] [ −2 4 0 ]
  3. C[ 0 1 −2 ] [ −1 0 4 ] [ 2 4 8 ]
  4. D[ 3 1 2 ] [ 1 0 4 ] [ 2 4 1 ]
Show answerHide answer

Correct answer: (B) [ 0 1 2 ] [ −1 0 −4 ] [ −2 4 0 ]

Explanation

In a skew-symmetric matrix aᵢⱼ = −aⱼᵢ, so the diagonal is all zeros. Option B has a12 = 1, a21 = −1; a13 = 2, a31 = −2; a23 = −4, a32 = 4.

Q36DSSSB TGT Computer Science (Technical), 13 Sep 2025, Shift 3 (5:00 PM)
If [ 1 ] [ 1 ] [ 0 ] is an eigenvector of the matrix [ 3 −1 1 ] [ 7 −5 1 ] [ 6 −6 2 ] then the eigenvalue is ________.
  1. A−4
  2. B2
  3. C1
  4. D4
Show answerHide answer

Correct answer: (B) 2

Explanation

Matrix × (1, 1, 0) = (3 − 1, 7 − 5, 6 − 6) = (2, 2, 0) = 2 × (1, 1, 0), so the eigenvalue is 2.

Q37DSSSB TGT Computer Science (Technical), 12 Sep 2025, Shift 3 (5:00 PM)
If A = [ 1 4 ] [ 3 5 ] and B = [ 3 2 ] [ 2 1 ] then the matrix for 2A − 3B is ________.
  1. A[ −7 2 ] [ 0 7 ]
  2. B[ 7 2 ] [ 2 7 ]
  3. C[ −7 2 ] [ 2 7 ]
  4. D[ 7 2 ] [ 0 7 ]
Show answerHide answer

Correct answer: (A) [ −7 2 ] [ 0 7 ]

Explanation

2A = [2 8; 6 10] and 3B = [9 6; 6 3], so 2A − 3B = [2−9 8−6; 6−6 10−3] = [−7 2; 0 7].

Q38DSSSB TGT Computer Science (Technical), 12 Sep 2025, Shift 3 (5:00 PM)
Which of the following options is true for a Hermitian matrix?
  1. Aaᵢⱼ = conj(aⱼᵢ) (aᵢⱼ equals the complex conjugate of aⱼᵢ)
  2. Baᵢⱼ = −aⱼᵢ
  3. Caᵢⱼ = aⱼᵢ
  4. Daᵢⱼ = −conj(aⱼᵢ)
Show answerHide answer

Correct answer: (A) aᵢⱼ = conj(aⱼᵢ) (aᵢⱼ equals the complex conjugate of aⱼᵢ)

Explanation

A Hermitian matrix equals its conjugate transpose, so aᵢⱼ = conj(aⱼᵢ). aᵢⱼ = aⱼᵢ is the rule for a symmetric matrix, and the minus forms are for skew types.

Q39DSSSB TGT Computer Science (Technical), 12 Sep 2025, Shift 3 (5:00 PM)
The product of the matrices [ 1 1 2 ] [ 1 2 2 ] [ 2 3 3 ] and [ 1 2 1 ] [ −1 0 3 ] [ 2 3 1 ] is _______.
  1. A[ 4 8 6 ] [ 3 8 9 ] [ 5 13 11 ]
  2. B[ 4 8 6 ] [ 3 8 9 ] [ 5 13 14 ]
  3. C[ 6 8 4 ] [ 3 8 9 ] [ 11 13 14 ]
  4. D[ 6 8 4 ] [ 3 8 9 ] [ 5 13 14 ]
Show answerHide answer

Correct answer: (B) [ 4 8 6 ] [ 3 8 9 ] [ 5 13 14 ]

Explanation

Row 1 × columns: 1−1+4 = 4, 2+0+6 = 8, 1+3+2 = 6. Row 2: 3, 8, 9. Row 3: 2−3+6 = 5, 4+0+9 = 13, 2+9+3 = 14. This matches option B.

Q40DSSSB TGT Computer Science (Technical), 12 Sep 2025, Shift 2 (1:00 PM)
The conjugate of the matrix [ i 1+i 3−2i ] [ 4 2−i −3i ] [ 1−i 2i 5 ] is ________.
  1. A[ i −1−i 3−2i ] [ 4 2−i −3i ] [ 1−i −2i 5 ]
  2. B[ i 1−i 3−2i ] [ 4 2−i 3i ] [ 1−i −2i 5 ]
  3. C[ −i 1−i 3+2i ] [ 4 2+i 3i ] [ 1+i −2i 5 ]
  4. D[ −i 1−i 3−2i ] [ 4 2−i 3i ] [ 1−i 2i 5 ]
Show answerHide answer

Correct answer: (C) [ −i 1−i 3+2i ] [ 4 2+i 3i ] [ 1+i −2i 5 ]

Explanation

The conjugate replaces every i by -i in each element: i becomes -i, 1+i becomes 1-i, 3-2i becomes 3+2i, 2-i becomes 2+i, -3i becomes 3i, 1-i becomes 1+i and 2i becomes -2i. Real entries 4 and 5 stay the same.

Q41DSSSB TGT Computer Science (Technical), 12 Sep 2025, Shift 2 (1:00 PM)
If the rows are interchanged into columns, then which of the following options is true?
  1. ADeterminant values will be different.
  2. BDeterminant value remains unaltered.
  3. CDeterminant values will have opposite sign.
  4. DDeterminant values will be unity.
Show answerHide answer

Correct answer: (B) Determinant value remains unaltered.

Explanation

Interchanging rows and columns gives the transpose, and det(Aᵀ) = det(A), so the determinant value is unchanged.

Q42DSSSB TGT Computer Science (Technical), 12 Sep 2025, Shift 2 (1:00 PM)
Which of the following options is a Hermitian matrix?
  1. AA = [ 1 2+3i ] [ 2−3i 5 ]
  2. BA = [ 1 2+3i ] [ −2+3i −1 ]
  3. CA = [ 1 2+3i ] [ −2−3i 5 ]
  4. DA = [ 1 2+3i ] [ 2+3i 1 ]
Show answerHide answer

Correct answer: (A) A = [ 1 2+3i ] [ 2−3i 5 ]

Explanation

A Hermitian matrix equals its conjugate transpose: diagonal entries are real and a_ji is the conjugate of a_ij. In A the diagonal is 1 and 5 and the off-diagonal entries 2+3i and 2-3i are conjugates.

Q43DSSSB TGT Computer Science (Technical), 12 Sep 2025, Shift 2 (1:00 PM)
Suppose that a biased coin is tossed such that P(H) = 2/3 and P(T) = 1/3. If head (H) appears, a number between is selected between 1 through 9. If tail (T) appears, then a number is selected between 1 through 5. The probability that an even number is selected is approximately equal to:
  1. A0.92
  2. B0.87
  3. C0.56
  4. D0.43
Show answerHide answer

Correct answer: (D) 0.43

Explanation

P(even) = P(H) x 4/9 + P(T) x 2/5 = (2/3)(4/9) + (1/3)(2/5) = 8/27 + 2/15 ≈ 0.296 + 0.133 = 0.43.

Q44DSSSB TGT Computer Science (Technical), 12 Sep 2025, Shift 1 (9:00 AM)
Which of the following techniques can be used to modify the actual variable passed to a function?
  1. AUse a local variable instead of passing any parameters.
  2. BPass a copy of the actual parameter to function.
  3. CStandard C has no options for modifying actual variables passed to a function.
  4. DPass the address of the actual parameters to function.
Show answerHide answer

Correct answer: (D) Pass the address of the actual parameters to function.

Explanation

C passes arguments by value, so to change the caller's variable you pass its address (a pointer) and modify it through *ptr inside the function.

Q45DSSSB TGT Computer Science (Technical), 12 Sep 2025, Shift 1 (9:00 AM)
What is the main function of the 'cutting' tool in image editing?
  1. ATo remove parts of the image
  2. BTo change the image resolution
  3. CTo apply color effects
  4. DTo resize the image
Show answerHide answer

Correct answer: (A) To remove parts of the image

Explanation

The cut tool removes the selected part of an image (placing it on the clipboard). Resolution, resizing and colour effects are done with other tools.

Q46DSSSB TGT Computer Science (Technical), 12 Sep 2025, Shift 1 (9:00 AM)
If A = [ 1 0 0 ] [ 0 -1 0 ] [ 1 0 1 ] then the matrix for A⁶ is __________.
  1. A[ 6 0 0 ] [ 0 6 0 ] [ 6 0 6 ]
  2. B[ 1 0 0 ] [ 0 -1 0 ] [ 6 0 1 ]
  3. C[ 1 0 0 ] [ 0 -1 0 ] [ 1 0 1 ]
  4. D[ 1 0 0 ] [ 0 1 0 ] [ 6 0 1 ]
Show answerHide answer

Correct answer: (D) [ 1 0 0 ] [ 0 1 0 ] [ 6 0 1 ]

Explanation

Squaring gives row 3 = [2, 0, 1] and the middle entry (-1)² = 1. In general A^n has row 3 = [n, 0, 1] and middle entry (-1)^n, so A⁶ has row 3 = [6, 0, 1] and middle entry 1.

Q47DSSSB TGT Computer Science (Technical), 12 Sep 2025, Shift 1 (9:00 AM)
The characteristic equation of matrix A = [ 1 4 ] [ 3 5 ] is __________.
  1. Aλ² + 6λ − 7 = 0
  2. Bλ² − 6λ + 7 = 0
  3. Cλ² − 6λ − 7 = 0
  4. Dλ² + 6λ + 7 = 0
Show answerHide answer

Correct answer: (C) λ² − 6λ − 7 = 0

Explanation

For a 2x2 matrix the characteristic equation is λ² - (trace)λ + det = 0. Trace = 1 + 5 = 6 and det = 5 - 12 = -7, so λ² - 6λ - 7 = 0.

Q48DSSSB TGT Computer Science (Technical), 12 Sep 2025, Shift 1 (9:00 AM)
Suppose a six faced die is thrown. Then the probability that the number appearing on the top is even is equal to:
  1. A1/4
  2. B1/6
  3. C1/2
  4. D1/9
Show answerHide answer

Correct answer: (C) 1/2

Explanation

A die has 3 even faces (2, 4, 6) out of 6, so the probability is 3/6 = 1/2.

Q49DSSSB TGT Computer Science, 25 Jun 2023, Shift 1 (8:30 AM)
Which of the following is a type of Discrete Probability Distribution?
  1. ALog-Normal Distribution
  2. BExponential Distribution
  3. CNormal Distribution
  4. DPoisson Distribution
Show answerHide answer

Correct answer: (D) Poisson Distribution

Explanation

The Poisson distribution is discrete; it counts events in a fixed interval. Normal, log-normal and exponential distributions are continuous.

Q50DSSSB TGT Computer Science, 25 Jun 2023, Shift 1 (8:30 AM)
Which of the following methods is used for the function y = f(x), with the given discrete set of points (xᵢ, yᵢ), i = 0, 1, 2, 3, ..., n where xᵢ's are NOT equispaced?
  1. ANewton's backward interpolation formula
  2. BNewton's divided difference formula
  3. CNewton's forward interpolation formula
  4. DGauss's forward difference formula
Show answerHide answer

Correct answer: (B) Newton's divided difference formula

Explanation

Newton's divided difference formula works for unequally spaced xᵢ. Newton's forward/backward and Gauss formulas need equally spaced points.

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.

More DSSSB TGT / PGT subjects