DSSSB TGT / PGT · Topic-wise previous year questions

Computer Science Previous Year Questions (page 33)

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.

  • 2444 questions
  • 20 topics
  • Official answer key
  • Free

Practise by topic

Q1601DSSSB TGT Computer Science (Technical), 13 Sep 2025, Shift 3 (5:00 PM)
Which of the following is NOT a benefit of using threads in an operating system?
  1. AImproved application responsiveness
  2. BIncreased system resource utilisation
  3. CSimplified programming model
  4. DFaster execution of tasks in single-core processors
Show answerHide answer

Correct answer: (D) Faster execution of tasks in single-core processors

Explanation

On a single-core CPU, threads only take turns (concurrency), so they do not make tasks run faster in parallel. They do improve responsiveness and resource use.

Q1602DSSSB TGT Computer Science (Technical), 13 Sep 2025, Shift 3 (5:00 PM)
Which TCP timer is responsible for retransmitting a packet if its acknowledgment is NOT received within a specific time?
  1. APersistence Timer
  2. BTIME-WAIT Timer
  3. CRetransmission Timer
  4. DKeepalive Timer
Show answerHide answer

Correct answer: (C) Retransmission Timer

Explanation

The retransmission timer starts when a segment is sent. If its ACK does not arrive before the timeout (RTO), the segment is sent again.

Q1603DSSSB TGT Computer Science (Technical), 13 Sep 2025, Shift 3 (5:00 PM)
What is the advantage of using a sliding window over a stop-and-wait protocol?
  1. ASliding window is simpler to implement.
  2. BSliding window uses larger packet sizes.
  3. CSliding window increases throughput by allowing multiple packets to be sent before acknowledgment.
  4. DSliding window requires no acknowledgments.
Show answerHide answer

Correct answer: (C) Sliding window increases throughput by allowing multiple packets to be sent before acknowledgment.

Explanation

Stop-and-wait sends one frame and waits for its ACK. A sliding window allows several frames in flight before acknowledgment, which uses the link better and gives higher throughput.

Q1604DSSSB TGT Computer Science (Technical), 13 Sep 2025, Shift 3 (5:00 PM)
In which scenario would the ReadConsole system call be used over ReadFile?
  1. AWhen reading input from a network socket
  2. BWhen reading from a database
  3. CWhen reading from the console or terminal window
  4. DWhen reading from a disk file
Show answerHide answer

Correct answer: (C) When reading from the console or terminal window

Explanation

In the Windows API, ReadConsole reads characters from the console input buffer (the terminal window). ReadFile is the general call for files, pipes and devices.

Q1605DSSSB TGT Computer Science (Technical), 13 Sep 2025, Shift 3 (5:00 PM)
What is the size of the TCP header without any options?
  1. A32 bytes
  2. B16 bytes
  3. C24 bytes
  4. D20 bytes
Show answerHide answer

Correct answer: (D) 20 bytes

Explanation

The fixed part of a TCP header is 20 bytes (five 32-bit words). Options can extend it up to 60 bytes.

Q1606DSSSB TGT Computer Science (Technical), 13 Sep 2025, Shift 3 (5:00 PM)
What is the role of a checksum in ensuring message integrity?
  1. ATo authenticate the sender
  2. BTo validate the size of the message
  3. CTo detect errors or alterations in the transmitted message
  4. DTo encrypt the message during transmission
Show answerHide answer

Correct answer: (C) To detect errors or alterations in the transmitted message

Explanation

The sender computes a checksum over the data, and the receiver recomputes it. If the two differ, the message was corrupted or altered in transit.

Q1607DSSSB TGT Computer Science (Technical), 13 Sep 2025, Shift 3 (5:00 PM)
__________ is NOT a valid SQL:1999 data type.
  1. ASTRING
  2. BDATE
  3. CENUM
  4. DBOOLEAN
Show answerHide answer

Correct answer: (C) ENUM

Explanation

ENUM is a MySQL-specific type and is not in the SQL:1999 standard, which has DATE, BOOLEAN, CHAR and VARCHAR. Strictly, STRING is not a standard SQL type either.

Q1608DSSSB TGT Computer Science (Technical), 13 Sep 2025, Shift 3 (5:00 PM)
Which of the following describes a blocked (or waiting) process queue?
  1. AIt holds processes that are in the running state.
  2. BIt holds terminated processes.
  3. CIt holds processes that are waiting for the CPU to become available.
  4. DIt holds processes that are waiting for some event or resource, like I/O.
Show answerHide answer

Correct answer: (D) It holds processes that are waiting for some event or resource, like I/O.

Explanation

The blocked (waiting) queue holds processes waiting for an event such as I/O completion. Processes waiting only for the CPU are in the ready queue.

Q1609DSSSB TGT Computer Science (Technical), 13 Sep 2025, Shift 3 (5:00 PM)
What type of communication does TCP support?
  1. ABroadcast
  2. BConnectionless
  3. CStateless
  4. DFull-duplex
Show answerHide answer

Correct answer: (D) Full-duplex

Explanation

TCP is full-duplex: once connected, data can flow in both directions at the same time. TCP is connection-oriented and stateful, and does not broadcast.

Q1610DSSSB TGT Computer Science (Technical), 13 Sep 2025, Shift 3 (5:00 PM)
Consider the following statements. P. The output of the four inputs AND gate is 1 when all the four inputs values are 1’s. Q. The output of the four inputs AND gate is 0 when at least one input value is 0. R. Three AND gates are used in the implement given three variable Boolean function F (A, B, C) = AB +BC +AC using basic logic gates. Which of the given statements are correct in a digital logic system?
  1. AOnly P and Q
  2. BP, Q, and R
  3. COnly Q and R
  4. DOnly P and R
Show answerHide answer

Correct answer: (B) P, Q, and R

Explanation

P and Q describe the AND gate correctly. For AB + BC + AC you need three AND gates (AB, BC, AC) plus OR gates, so R is also true.

Q1611DSSSB TGT Computer Science (Technical), 13 Sep 2025, Shift 3 (5:00 PM)
Which of the following systems typically DO NOT use contiguous allocation?
  1. ACD-ROM systems
  2. BVideo streaming systems
  3. CGeneral-purpose operating systems with dynamic file sizes
  4. DReal-time systems
Show answerHide answer

Correct answer: (C) General-purpose operating systems with dynamic file sizes

Explanation

General-purpose OSs have files that grow and shrink, which causes external fragmentation with contiguous allocation. So they use linked or indexed allocation instead.

Q1612DSSSB TGT Computer Science (Technical), 13 Sep 2025, Shift 3 (5:00 PM)
Contiguous allocation is most suitable for which type of systems?
  1. ASystems with dynamic file sizes
  2. BMulti-user systems with high I/O demands
  3. CReal-time systems requiring fast access
  4. DSystems with limited storage
Show answerHide answer

Correct answer: (C) Real-time systems requiring fast access

Explanation

Contiguous allocation stores a file in consecutive blocks, which gives fast sequential and direct access. This suits real-time systems, and also read-only media such as CD-ROMs.

Q1613DSSSB TGT Computer Science (Technical), 13 Sep 2025, Shift 3 (5:00 PM)
In distributed systems, what mechanism is used to maintain consistency across nodes?
  1. AReplication and synchronization
  2. BContext switching
  3. CMultithreading
  4. DKernel scheduling
Show answerHide answer

Correct answer: (A) Replication and synchronization

Explanation

Distributed systems keep copies (replicas) of data on several nodes and use synchronisation or consistency protocols to keep those copies the same.

Q1614DSSSB TGT Computer Science (Technical), 13 Sep 2025, Shift 3 (5:00 PM)
What is the Boolean expression for a 2-input NOR gate?
  1. AA·B
  2. B(A·B)' (complement of A·B)
  3. C(A + B)' (complement of A + B)
  4. DA + B
Show answerHide answer

Correct answer: (C) (A + B)' (complement of A + B)

Explanation

NOR is the complement of OR: Y = (A + B)'. The output is 1 only when both inputs are 0.

Q1615DSSSB TGT Computer Science (Technical), 13 Sep 2025, Shift 3 (5:00 PM)
Which of the following is NOT an arithmetic operator in C?
  1. A%
  2. B+
  3. C&&
  4. D−
Show answerHide answer

Correct answer: (C) &&

Explanation

&& is the logical AND operator. +, − and % are arithmetic operators.

Q1616DSSSB TGT Computer Science (Technical), 13 Sep 2025, Shift 3 (5:00 PM)
Which of the following is a wrapper class in Java?
  1. AInteger
  2. Bchar
  3. Cboolean
  4. Dfloat
Show answerHide answer

Correct answer: (A) Integer

Explanation

Integer is the wrapper class for the primitive int. char, boolean and float are primitive types, whose wrappers are Character, Boolean and Float.

Q1617DSSSB TGT Computer Science (Technical), 13 Sep 2025, Shift 3 (5:00 PM)
What will be the output of the following code? #include <stdio.h> int main() { int arr[] = {1, 2, 3, 4, 5}; printf("%d %d \n", arr[2], *(arr + 2)); return 0; }
  1. A3 3
  2. B2 2
  3. CCompilation Error
  4. DUndefined Behavior
Show answerHide answer

Correct answer: (A) 3 3

Explanation

arr[2] and *(arr + 2) both mean the third element, 3, so "3 3" is printed.

Q1618DSSSB TGT Computer Science (Technical), 13 Sep 2025, Shift 3 (5:00 PM)
Which of the following is NOT a type of loop in C?
  1. Ado-while loop
  2. Bfor loop
  3. Cforeach loop
  4. Dwhile loop
Show answerHide answer

Correct answer: (C) foreach loop

Explanation

C has three loops: for, while and do-while. There is no foreach loop in C.

Q1619DSSSB TGT Computer Science (Technical), 13 Sep 2025, Shift 3 (5:00 PM)
What is the output of the following code? #include <stdio.h> void func(int *p) { int q = 10; p = &q; } int main() { int x = 20, *ptr = &x; func(ptr); printf("%d\n", *ptr); return 0; }
  1. ACompile time error
  2. B20
  3. C10
  4. DGarbage value
Show answerHide answer

Correct answer: (B) 20

Explanation

C passes the pointer by value, so p = &q changes only the local copy in func. ptr still points to x, and 20 is printed.

Q1620DSSSB TGT Computer Science (Technical), 13 Sep 2025, Shift 3 (5:00 PM)
A company wants to develop a software tool that identifies duplicate entries in a large database while ensuring scalability and accuracy. Which computational thinking steps should be prioritised, and in what order, to achieve an efficient solution?
  1. ADecomposition->Algorithm Design->Pattern Recognition->Abstraction
  2. BPattern Recognition → Algorithm Design->Abstraction → Decomposition
  3. CAlgorithm Design->Abstraction → Decomposition->Pattern Recognition
  4. DAbstraction → Decomposition → Pattern Recognition → Algorithm Design
Show answerHide answer

Correct answer: (D) Abstraction → Decomposition → Pattern Recognition → Algorithm Design

Explanation

For this task the key's order is abstraction first: keep only the important features of an entry. Then decompose the task, recognise duplicate patterns, and finally design the algorithm.

Q1621DSSSB TGT Computer Science (Technical), 13 Sep 2025, Shift 3 (5:00 PM)
What is the result of the expression: ! (5 > 3) && (8 < 10)?
  1. Aundefined behavior
  2. BFALSE
  3. CTRUE
  4. Dcompile error
Show answerHide answer

Correct answer: (B) FALSE

Explanation

!(5 > 3) is !1 = 0 (false), and false && anything is false. So the expression is false (0).

Q1622DSSSB TGT Computer Science (Technical), 13 Sep 2025, Shift 3 (5:00 PM)
What will be the output of the following expression? #include<stdio.h> int main() { printf("%d",7>=7); return 0; }
  1. A1
  2. BTRUE
  3. Cfalse
  4. D0
Show answerHide answer

Correct answer: (A) 1

Explanation

7 >= 7 is true, and in C a true relational expression has the value 1, so printf prints 1.

Q1623DSSSB TGT Computer Science (Technical), 13 Sep 2025, Shift 3 (5:00 PM)
When solving a Sudoku puzzle using computational thinking, which step is the most critical for ensuring efficiency?
  1. AProblem decomposition
  2. BAbstraction
  3. CBrute force approach
  4. DPattern recognition
Show answerHide answer

Correct answer: (D) Pattern recognition

Explanation

Sudoku is solved efficiently by recognising patterns, such as which numbers are missing in rows, columns and boxes. This cuts down the possibilities far more than brute force.

Q1624DSSSB TGT Computer Science (Technical), 13 Sep 2025, Shift 3 (5:00 PM)
Which among the following is the primary purpose of using interfaces in Java?
  1. ATo avoid creating objects
  2. BTo achieve multiple inheritance
  3. CTo improve user experience
  4. DTo reduce memory usage
Show answerHide answer

Correct answer: (B) To achieve multiple inheritance

Explanation

A Java class can extend only one class but can implement many interfaces. Interfaces are therefore Java's way of achieving multiple inheritance of type.

Q1625DSSSB TGT Computer Science (Technical), 13 Sep 2025, Shift 3 (5:00 PM)
What will happen if we DO NOT use the break statement in a switch case?
  1. AThe program will throw a compilation error.
  2. BThe control will continue executing the following cases until the end of the switch block is encountered.
  3. CThe control will break out of the switch automatically after the first matching case.
  4. DThe program will throw a runtime error.
Show answerHide answer

Correct answer: (B) The control will continue executing the following cases until the end of the switch block is encountered.

Explanation

Without break, execution falls through: after the matching case, the statements of all the following cases run until a break or the end of the switch.

Q1626DSSSB TGT Computer Science (Technical), 13 Sep 2025, Shift 3 (5:00 PM)
What will be the output of the following code? class Test { Test(int x) { System.out.println("Parameterized Constructor"); } Test() { this(10); System.out.println("Default Constructor"); } public static void main(String[] args) { Test obj = new Test(); } }
  1. AParameterized Constructor followed by Default Constructor
  2. BCompilation Error
  3. CDefault Constructor
  4. DParameterized Constructor
Show answerHide answer

Correct answer: (A) Parameterized Constructor followed by Default Constructor

Explanation

new Test() calls the no-argument constructor. Its first statement, this(10), runs the parameterized constructor first, so "Parameterized Constructor" is printed and then "Default Constructor".

Q1627DSSSB TGT Computer Science (Technical), 13 Sep 2025, Shift 3 (5:00 PM)
Which declaration is valid for a 2D array in C?
  1. Aint arr[2][2] = {1,2,3,4};
  2. Bint arr[2,2] = {{1,2}, {3,4}};
  3. Cint arr[][] = {{1,2}, {3,4}};
  4. Dint arr[][] = {1,2,3,4};
Show answerHide answer

Correct answer: (A) int arr[2][2] = {1,2,3,4};

Explanation

A 2D array can be initialised with a flat list when both sizes are given: {1,2,3,4} fills row by row. [2,2] is not C syntax, and only the first dimension may be left empty.

Q1628DSSSB TGT Computer Science (Technical), 13 Sep 2025, Shift 3 (5:00 PM)
Given a 3-dimensional array C[3][4][5] stored in row-major order, with each element occupying 1 byte, and the base address 3000, what is the address of C[2][3][4]?
  1. A3057
  2. B3059
  3. C3124
  4. D3171
Show answerHide answer

Correct answer: (B) 3059

Explanation

Offset = i × (4 × 5) + j × 5 + k = 2 × 20 + 3 × 5 + 4 = 59, so the address is 3000 + 59 = 3059.

Q1629DSSSB TGT Computer Science (Technical), 13 Sep 2025, Shift 3 (5:00 PM)
Consider the following statements regarding digital logic systems and and select the correct statements. P. The output of the n inputs NAND gate is 0 when all the n inputs values are 1’s. Q. The output of the n inputs NAND gate is 1 when all the n inputs values are 0’s. R. The output of the n inputs NAND gate is 1 when all the n inputs values are 1’s. S. Minimum three NAND gates are used to implement the given three variable Boolean function F (A, B, C) = AB +BC using only NAND logic gates.
  1. AOnly P, Q and S
  2. BOnly P, R and S
  3. CP, Q, R and S
  4. DOnly P, Q and R
Show answerHide answer

Correct answer: (A) Only P, Q and S

Explanation

A NAND gate gives 0 only when all inputs are 1, so P and Q are true and R is false. AB + BC = ((AB)'·(BC)')' needs three NAND gates, so S is true.

Q1630DSSSB TGT Computer Science (Technical), 13 Sep 2025, Shift 3 (5:00 PM)
In a signed 8-bit system, how is −8 represented in 2’s complement?
  1. A1000
  2. B11111000
  3. C10001000
  4. D11111111
Show answerHide answer

Correct answer: (B) 11111000

Explanation

+8 = 00001000. Inverting gives 11110111, and adding 1 gives 11111000, which is −8 in 8-bit 2's complement.

Q1631DSSSB TGT Computer Science (Technical), 13 Sep 2025, Shift 3 (5:00 PM)
Which of the following is NOT a valid identifier in Java?
  1. Amyvar123
  2. B_myvar
  3. Cstatic
  4. Dmy_var123
Show answerHide answer

Correct answer: (C) static

Explanation

static is a reserved keyword in Java and cannot be an identifier. Letters, digits (not first), _ and $ are allowed.

Q1632DSSSB TGT Computer Science (Technical), 13 Sep 2025, Shift 3 (5:00 PM)
What is required to write a recursive function?
  1. AOnly a recursive call
  2. BA loop and a return statement
  3. CA pointer variable
  4. DA base condition and a recursive call
Show answerHide answer

Correct answer: (D) A base condition and a recursive call

Explanation

A recursive function needs a base condition to stop and a recursive call that moves toward that base case. Without a base case the recursion never ends.

Q1633DSSSB TGT Computer Science (Technical), 13 Sep 2025, Shift 3 (5:00 PM)
What will be the output of the following code? public class ExceptionDemo { public static void main(String[] args) { try { int[] numbers = {1, 2, 3}; System.out.println(numbers[5]); } catch (Exception e) { System.out.println("Exception caught: " + e.getClass().getName()); } finally { System.out.println("Execution completed."); } } }
  1. AException caught: java.lang.Exception . Execution completed.
  2. BException caught: java.lang.ArrayIndexOutOfBoundsException. Execution completed.
  3. CCompilation error
  4. DException caught: java.lang.IndexOutOfBoundsException . Execution completed.
Show answerHide answer

Correct answer: (B) Exception caught: java.lang.ArrayIndexOutOfBoundsException. Execution completed.

Explanation

numbers[5] is past the end of the array, so an ArrayIndexOutOfBoundsException is thrown. getClass().getName() gives its full name, and finally always runs.

Q1634DSSSB TGT Computer Science (Technical), 13 Sep 2025, Shift 3 (5:00 PM)
What will happen if the following declaration is used in C? int a, b, c = 10;
  1. AOnly c is initialized to 10; a and b are uninitialized.
  2. BSyntax error due to missing initialization of a and b.
  3. Ca, b, and c are all initialized to 10.
  4. DRuntime error
Show answerHide answer

Correct answer: (A) Only c is initialized to 10; a and b are uninitialized.

Explanation

In int a, b, c = 10; the initialiser belongs only to c. a and b are declared but left uninitialised (garbage if local).

Q1635DSSSB TGT Computer Science (Technical), 13 Sep 2025, Shift 3 (5:00 PM)
Which of the following is used to include JavaScript code within an HTML document?
  1. A<js>
  2. B<script>
  3. C<javascript>
  4. D<java>
Show answerHide answer

Correct answer: (B) <script>

Explanation

JavaScript is placed in HTML inside <script> ... </script> tags, either inline or with the src attribute.

Q1636DSSSB TGT Computer Science (Technical), 13 Sep 2025, Shift 3 (5:00 PM)
Suppose there are n elements in an array A[ ]. If we want to insert a new element at position i in array A[ ], 1 ≤ i ≤ n, causing elements numbered i, i+1, …, n to become numbered:
  1. Ai−1, i, i+1, i+2, i+3, …, n+1
  2. Bi+1, i+2, i+3, …, n+1
  3. Ci−1, i+1, i+2, i+3, …, n+1
  4. Di+2, i+3, …, n+1
Show answerHide answer

Correct answer: (B) i+1, i+2, i+3, …, n+1

Explanation

To insert at position i, elements i to n each move one place to the right, so they become i+1, i+2, ..., n+1.

Q1637DSSSB 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.

Q1638DSSSB TGT Computer Science (Technical), 13 Sep 2025, Shift 3 (5:00 PM)
If the recursive approach of linear search is used to search a key in a linked list of n elements, then what are the time and space complexity to search an element in a linked list?
  1. ATime Complexity = O(n), Space Complexity = O(1)
  2. BTime Complexity = O(1), Space Complexity = O(1)
  3. CTime Complexity = O(1), Space Complexity = O(n)
  4. DTime Complexity = O(n), Space Complexity = O(n)
Show answerHide answer

Correct answer: (D) Time Complexity = O(n), Space Complexity = O(n)

Explanation

Recursive search makes up to n calls, so the time is O(n). Each pending call uses a stack frame, so the space is also O(n).

Q1639DSSSB TGT Computer Science (Technical), 13 Sep 2025, Shift 3 (5:00 PM)
What is the output of the following JavaScript code? const obj = { name: "Alice" }; Object.defineProperty(obj, "age", { value: 25, writable: false }); obj.age = 30; console.log(obj.age);
  1. Aundefined
  2. BError: Cannot modify property
  3. C25
  4. D30
Show answerHide answer

Correct answer: (C) 25

Explanation

writable: false makes the age property read-only. In non-strict mode, obj.age = 30 is silently ignored, so 25 is printed. Strict mode would throw a TypeError.

Q1640DSSSB TGT Computer Science (Technical), 13 Sep 2025, Shift 3 (5:00 PM)
A sorting algorithm in which the two or more elements with equal key values appear in the same order in sorted output as they appear in the input data set is known as a/an:
  1. Ainternal sorting algorithm
  2. Bexternal sorting algorithm
  3. Cstable sorting algorithm
  4. Dunstable sorting algorithm
Show answerHide answer

Correct answer: (C) stable sorting algorithm

Explanation

A stable sort keeps records with equal keys in their original relative order. Insertion sort and merge sort are stable.

Q1641DSSSB TGT Computer Science (Technical), 13 Sep 2025, Shift 3 (5:00 PM)
What is the purpose of kerning in typography?
  1. ATo adjust the space between lines
  2. BTo adjust the space between words
  3. CTo change font size
  4. DTo adjust the space between characters
Show answerHide answer

Correct answer: (D) To adjust the space between characters

Explanation

Kerning adjusts the space between particular pairs of characters (such as "AV"). Leading is the space between lines.

Q1642DSSSB TGT Computer Science (Technical), 13 Sep 2025, Shift 3 (5:00 PM)
Consider the pseudocode of the function given below. abc(int n) { int i, j, k = 0; for (i = n/2; i <= n; i++) for (j = 2; j <= n; j = j * 2) k = k + n/2; return k; } what will the time complexity of the function abc() be?
  1. AO(n²)
  2. BO(n)
  3. CO(n log n)
  4. DO(log n)
Show answerHide answer

Correct answer: (C) O(n log n)

Explanation

The outer loop runs about n/2 times, and the inner loop doubles j, so it runs about log₂ n times. That gives O(n log n).

Q1643DSSSB TGT Computer Science (Technical), 13 Sep 2025, Shift 3 (5:00 PM)
In a 2D array, how are elements stored in memory?
  1. AIn separate blocks for each row
  2. BIn separate blocks for each column
  3. CContiguously in a single block
  4. DNot stored in memory
Show answerHide answer

Correct answer: (C) Contiguously in a single block

Explanation

C stores 2D arrays contiguously in one block, row after row (row-major order).

Q1644DSSSB TGT Computer Science (Technical), 13 Sep 2025, Shift 3 (5:00 PM)
What is the maximum number of swaps that can be performed in the Selection Sort algorithm?
  1. A1
  2. Bn - 1
  3. Cn - 2
  4. Dn
Show answerHide answer

Correct answer: (B) n - 1

Explanation

Selection sort does at most one swap per pass, and there are n − 1 passes, so at most n − 1 swaps.

Q1645DSSSB TGT Computer Science (Technical), 13 Sep 2025, Shift 3 (5:00 PM)
What is the purpose of a web browser's developer tools?
  1. ATo inspect and debug web pages
  2. BTo increase the internet speed
  3. CTo host web pages on the web server
  4. DTo install new web browsers
Show answerHide answer

Correct answer: (A) To inspect and debug web pages

Explanation

Browser developer tools (Elements, Console, Network and so on) let developers inspect HTML/CSS, debug JavaScript and analyse page loading.

Q1646DSSSB 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.

Q1647DSSSB TGT Computer Science (Technical), 13 Sep 2025, Shift 3 (5:00 PM)
Which of the following is an advantage of the linked list over an array?
  1. ALinked list takes less storage to store the n elements as compared to array.
  2. BLinked list takes less time to access the ith element as compared to array.
  3. CInserting an element at beginning of the linked list takes less time as compared to array.
  4. DInserting an element as last element of the linked list takes less time as compared to array.
Show answerHide answer

Correct answer: (C) Inserting an element at beginning of the linked list takes less time as compared to array.

Explanation

Inserting at the beginning of a linked list only changes the head pointer, which is O(1). An array must shift every element, which is O(n). Array access by index is faster.

Q1648DSSSB TGT Computer Science (Technical), 13 Sep 2025, Shift 3 (5:00 PM)
Which phase of the design and analysis process involves selecting an efficient data structure?
  1. AProblem definition
  2. BAlgorithm analysis
  3. CImplementation
  4. DAlgorithm design
Show answerHide answer

Correct answer: (D) Algorithm design

Explanation

In the algorithm design phase, the designer chooses the approach and the data structures that make the algorithm efficient.

Q1649DSSSB 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.

Q1650DSSSB TGT Computer Science (Technical), 13 Sep 2025, Shift 3 (5:00 PM)
Consider the expression given below: x = a + b * (c − d) / e + f % g; The variables have the following values: a = 8, b = 5, c = 10, d = 3, e = 2, f = 7, g = 3; If the variables x, a, b, c, d, e, f, g are of integer data type, then what will be the value of x after evaluating the above expression?
  1. A24
  2. B26
  3. C20
  4. D21
Show answerHide answer

Correct answer: (B) 26

Explanation

b * (c − d) = 5 × 7 = 35, and 35 / 2 = 17 in integer division. f % g = 7 % 3 = 1. So x = 8 + 17 + 1 = 26.

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