DSSSB TGT / PGT · Computer Science

Algorithms Previous Year Questions

65 Algorithms (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 5
Which of the following is the correct order of Problem Solving steps? (A) Algorithm Development (B) Coding (C) Analysis of problem (D) Testing & Debugging
  1. A(A), (B), (C), (D)
  2. B(C), (A), (D), (B)
  3. C(A), (C), (B), (D)
  4. D(C), (A), (B), (D)
Show answerHide answer

Correct answer: (D) (C), (A), (B), (D)

Explanation

First analyse the problem, then develop an algorithm, code it, and finally test and debug it: (C), (A), (B), (D).

Q2From DSSSB TGT Computer Science Practice Set 4
Which of the following algorithms solves the all-pairs shortest path problem?
  1. ADijkstra's algorithm
  2. BFloyd's algorithm
  3. CPrim's algorithm
  4. DWarshall's algorithm
Show answerHide answer

Correct answer: (B) Floyd's algorithm

Explanation

Floyd's (Floyd-Warshall) algorithm finds shortest paths between every pair of vertices in O(V³). Dijkstra is single-source, Prim builds an MST, and Warshall finds transitive closure.

Q3From DSSSB TGT Computer Science Practice Set 4
Which of the following sorting algorithms has the worst time complexity of nlog(n)?
  1. AHeapsort
  2. BQuicksort
  3. CInsertion sort
  4. DSelection sort
Show answerHide answer

Correct answer: (A) Heapsort

Explanation

Heapsort is O(n log n) even in the worst case. Quicksort's worst case is O(n²), and insertion and selection sort are O(n²).

Q4From DSSSB TGT Computer Science Practice Set 2
Which of the following is the correct order of problem solving steps ?
  1. ATesting and Debugging, Coding, Analysing the problem, Developing an Algorithm
  2. BDeveloping an Algorithm, Coding, Testing and Debugging, Analysing the problem
  3. CAnalysing the problem, Developing an Algorithm, Coding, Testing and Debugging
  4. DDeveloping an Algorithm, Analysing the problem, Coding, Testing and Debugging
Show answerHide answer

Correct answer: (C) Analysing the problem, Developing an Algorithm, Coding, Testing and Debugging

Explanation

Corrected: the book's key says (b). The standard order is: analyse the problem, develop an algorithm, code, then test and debug.

Q5From DSSSB TGT Computer Science Practice Set 2
How many page faults occur in LRU page replacement algorithm for the given reference string, with four page frames. 7, 0, 1, 2, 0, 3, 0, 4, 2, 3, 0, 3, 2, 1, 2, 0, 1
  1. A6
  2. B8
  3. C7
  4. D9
Show answerHide answer

Correct answer: (C) 7

Explanation

With LRU and 4 frames: 7, 0, 1, 2 are 4 faults; 3 replaces 7; 4 replaces 1; then 1 replaces 4. All other references are hits, so there are 7 page faults.

Q6From DSSSB TGT Computer Science Practice Set 1
Consider the following statements about searching algorithms and choose the correct option.
  1. ASequential search requires the list to be ordered, while there is no such constraint for Binary search.
  2. BBinary search has time complexity of O(log₂ n), while sequential search has time complexity of O(n). Here, n is the number of elements in the list.
  3. CLink list is a suitable data structure for storing a list, and performing Binary search.
  4. DThe best case in Binary search is, when the key element exists in the begining of the list.
Show answerHide answer

Correct answer: (B) Binary search has time complexity of O(log₂ n), while sequential search has time complexity of O(n). Here, n is the number of elements in the list.

Explanation

Corrected: the book's key says (c), but (b) is the true statement. Binary search needs random access, so a linked list is unsuitable for it.

Q7From DSSSB TGT Computer Science Practice Set 1
The maximum number of comparisons for a particular record among 32 sorted records through Binary Search method will be :
  1. A2
  2. B16
  3. C8
  4. D5
Show answerHide answer

Correct answer: (D) 5

Explanation

Binary search halves the list at each step, and 32 = 2⁵, so it takes about log₂32 = 5 comparisons. Strictly, the worst case is ⌊log₂32⌋ + 1 = 6, but 6 is not an option, so the intended answer is 5.

Q8From DSSSB TGT Computer Science Practice Set 1
The complexity of linear search algorithm is :
  1. AO (n log n)
  2. BO (n)
  3. CO (log n)
  4. DO (n*n)
Show answerHide answer

Correct answer: (B) O (n)

Explanation

Linear search may have to check every one of the n elements in the worst case, so it takes O(n) time.

Q9From DSSSB TGT Computer Science Practice Set 1
The best suited hidden surface algorithm to deal with non-polygonal, non-planar surface patches is
  1. AZ-buffer algorithm
  2. BRay tracing algorithm
  3. CPainter's algorithm
  4. DScan line algorithm
Show answerHide answer

Correct answer: (A) Z-buffer algorithm

Explanation

The z-buffer method stores a depth value for every pixel, so it can handle any surface for which depth can be computed at each pixel, including non-polygonal and non-planar patches, with no sorting needed.

Q10DSSSB PGT Computer Science (Technical), 11 Jul 2021
What is the average number of comparisons required in sequential search to find an element?
  1. An²
  2. Bn(n + 1)/2
  3. Cn
  4. D(n + 1)/2
Show answerHide answer

Correct answer: (D) (n + 1)/2

Explanation

If the item is equally likely to be at any position, the average number of comparisons is (1 + 2 + ... + n)/n = (n + 1)/2.

Q11DSSSB PGT Computer Science (Technical), 11 Jul 2021
Arrange the following complexity of the algorithm in ascending order. O(2ⁿ), O(n), O(log₂n), O(n log₂n), O(n²)
  1. AO(log₂n), O(n), O(n log₂n), O(n²), O(2ⁿ)
  2. BO(n), O(log₂n), O(n log₂n), O(n²), O(2ⁿ)
  3. CO(n), O(n²), O(log₂n), O(n log₂n), O(2ⁿ)
  4. DO(log₂n), O(n log₂n), O(n), O(n²), O(2ⁿ)
Show answerHide answer

Correct answer: (A) O(log₂n), O(n), O(n log₂n), O(n²), O(2ⁿ)

Explanation

For large n the growth order is log n < n < n log n < n² < 2ⁿ.

Q12DSSSB PGT Computer Science (Technical), 11 Jul 2021
How many different binary search trees can be constructed with 6 different nodes?
  1. A64
  2. B128
  3. C32
  4. D132
Show answerHide answer

Correct answer: (D) 132

Explanation

The number of distinct BSTs on n keys is the Catalan number C(n) = (2n)!/((n+1)! n!). For n = 6 this is 132.

Q13DSSSB PGT Computer Science (Technical), 11 Jul 2021
Two way merge sort algorithm is used to sort the following elements in ascending order. 200, 470, 150, 80, 90, 40, 400, 300, 120, 70. What is the order of these elements after second pass of the merge sort algorithm?
  1. A40, 70, 80, 90, 120, 150, 200, 300, 400, 470
  2. B200, 470, 80, 150, 40, 90, 300, 400, 70, 120
  3. C80, 150, 200, 470, 40, 90, 300, 400, 70, 120
  4. D40, 80, 90, 150, 200, 300, 400, 470, 70, 120
Show answerHide answer

Correct answer: (C) 80, 150, 200, 470, 40, 90, 300, 400, 70, 120

Explanation

Pass 1 merges pairs: (200,470)(80,150)(40,90)(300,400)(70,120). Pass 2 merges runs of two into fours: 80,150,200,470 | 40,90,300,400 | 70,120.

Q14DSSSB PGT Computer Science (Technical), 11 Jul 2021
What is the complexity of selection sort algorithms?
  1. AO(n)
  2. BO(n log₂n)
  3. CO(n²)
  4. DO(2n)
Show answerHide answer

Correct answer: (C) O(n²)

Explanation

Selection sort always makes about n²/2 comparisons, scanning the unsorted part for the minimum on each of n passes, so it is O(n²) in every case.

Q15DSSSB PGT Computer Science (Technical), 11 Jul 2021
Which of the following statement(s) is/are correct regarding <title> tag in HTML? I. This tag always goes outside to the <head> tag. II. This tag is used to indicate the title of the webpage. III. It is also used by search engines.
  1. AI and II
  2. BII and III
  3. COnly II
  4. DI, II and III
Show answerHide answer

Correct answer: (B) II and III

Explanation

<title> must be placed inside <head>, not outside it. It sets the page title shown in the browser tab, and search engines use it.

Q16DSSSB PGT Computer Science (Technical), 11 Jul 2021
Quicksort algorithm is based on which algorithm design technique?
  1. AGreedy Algorithm
  2. BBrute -Force
  3. CDivide and Conquer
  4. DDynamic programing
Show answerHide answer

Correct answer: (C) Divide and Conquer

Explanation

Quicksort partitions the array around a pivot and recursively sorts the two parts, which is divide and conquer.

Q17DSSSB PGT Computer Science (Technical), 11 Jul 2021
Which of the following statement(s) is/are true regarding cryptography? I. Cipher text is encrypted text transformed from plain text using an encryption algorithm. II. According to Kerchoff's principle, all algorithms must be private and only the keys are secret.
  1. AOnly I
  2. BOnly II
  3. CBoth I and II
  4. DNeither I nor II
Show answerHide answer

Correct answer: (A) Only I

Explanation

Ciphertext is plaintext transformed by an encryption algorithm. Kerckhoffs's principle says the algorithm should be public and only the key secret, so II is false.

Q18DSSSB PGT Computer Science (Technical), 11 Jul 2021
Which of the following Pre – number concept(s) can be developed in children during the pre school years? I. Matching II. Sorting III. Comparing
  1. AI and III
  2. BI and II
  3. COnly I
  4. DI, II, and III
Show answerHide answer

Correct answer: (D) I, II, and III

Explanation

Matching, sorting/classifying, comparing and seriation are pre-number concepts developed in the preschool years.

Q19DSSSB TGT Computer Science (Technical), 8 Aug 2021, Shift 2
What is the worst case running time of quick sort algorithm?
  1. Aθ(x)
  2. Bθ(x²)
  3. Cθ(x log₂x)
  4. Dθ(x log₂x²)
Show answerHide answer

Correct answer: (B) θ(x²)

Explanation

Quick sort's worst case happens when the pivot is always the smallest or largest element, for example on already sorted input. Each partition then removes only one element, giving Θ(n²).

Q20DSSSB 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?
  1. A21, 37, 12, 9, 54, 57, 68, 85
  2. B37, 21, 54, 68, 12, 9, 57, 85
  3. C21, 37, 54, 12, 9, 57, 68, 85
  4. 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.

Q21DSSSB TGT Computer Science (Technical), 7 Aug 2021, Shift 3
Sort the following list using Radix sort algorithm. 329, 457, 839, 436, 720, 355, 657 What is the output of the algorithm after 2nd pass?
  1. A720, 355, 436, 457, 657, 329, 839
  2. B720, 329, 436, 839, 355, 457, 657
  3. C329, 355, 436, 457, 657, 720, 839
  4. D355, 329, 457, 436, 720, 657, 839
Show answerHide answer

Correct answer: (B) 720, 329, 436, 839, 355, 457, 657

Explanation

Pass 1 (units): 720, 355, 436, 457, 657, 329, 839. Pass 2 (tens, stable): 720, 329, 436, 839, 355, 457, 657.

Q22DSSSB TGT Computer Science (Technical), 7 Aug 2021, Shift 3
Sort the following list using selection sort algorithm H, V, A, T, L, N, K What is the output of the algorithm after 3rd pass?
  1. AA, V, H, T, L, N, K
  2. BA, H, K, T, L, N, V
  3. CA, V, T, H, L, N, K
  4. DA, T, H, K, L, N, V
Show answerHide answer

Correct answer: (B) A, H, K, T, L, N, V

Explanation

Pass 1 swaps A with H: A, V, H, T, L, N, K. Pass 2 swaps H with V: A, H, V, T, L, N, K. Pass 3 swaps K with V: A, H, K, T, L, N, V.

Q23DSSSB TGT Computer Science (Technical), 7 Aug 2021, Shift 3
Which of the following asymptotic notation is used to provide lower boundary constraints?
  1. AO
  2. Bθ
  3. CΩ
  4. D×
Show answerHide answer

Correct answer: (C) Ω

Explanation

Big-Omega (Ω) gives an asymptotic lower bound. Big-O gives an upper bound and Theta (θ) a tight bound.

Q24DSSSB TGT Computer Science (Technical), 7 Aug 2021, Shift 3
Pictorial representation of a program is known as ________.
  1. AFlowchart
  2. BPseudo code
  3. CCode
  4. DAlgorithm
Show answerHide answer

Correct answer: (A) Flowchart

Explanation

A flowchart is a pictorial representation of a program's logic. Pseudo code and algorithms are written in text.

Q25DSSSB TGT Computer Science (Technical), 7 Aug 2021, Shift 2
What is COHESION in software design?
  1. ACohesion is a measure of complexity of module of a software
  2. BCohesion is a measure of functional strength of a module of a software
  3. CCohesion is a measure of functional weakness of a module of a software
  4. DCohesion is a measure of efficiency of a module of a software
Show answerHide answer

Correct answer: (B) Cohesion is a measure of functional strength of a module of a software

Explanation

Cohesion measures the functional strength of a module, i.e. how closely the elements inside one module work toward a single task. High cohesion is desirable.

Q26DSSSB TGT Computer Science (Technical), 7 Aug 2021, Shift 2
Match the following. A. Longest common subsequence — i. Divide and conquer B. Huffman code — ii. Linear programming C. Quick sort — iii. Greedy algorithm D. Simplex algorithm — iv. Dynamic programming
  1. AA-iv, B-i, C-ii, D-iii
  2. BA-iii, B-ii, C-iv, D-i
  3. CA-iv, B-iii, C-i, D-ii
  4. DA-iii, B-iv, C-ii, D-i
Show answerHide answer

Correct answer: (C) A-iv, B-iii, C-i, D-ii

Explanation

LCS is solved by dynamic programming, Huffman coding by a greedy algorithm, quick sort by divide and conquer, and the simplex method is for linear programming.

Q27DSSSB TGT Computer Science (Technical), 7 Aug 2021, Shift 2
Efficiency of an algorithm is measured in terms of ________.
  1. AMemory and processor speed
  2. BTime and space
  3. CResponse time and completion time
  4. DData and space
Show answerHide answer

Correct answer: (B) Time and space

Explanation

Algorithm efficiency is measured by time complexity (running time) and space complexity (memory used).

Q28DSSSB TGT Computer Science (Technical), 7 Aug 2021, Shift 2
Which of the following statement(s) is/are true about Algorithm? I. It is step by step solution of problem II. It is difficult to debug III. It is not dependent on the programming language
  1. AI and II
  2. BII and III
  3. CI and III
  4. DI, II and III
Show answerHide answer

Correct answer: (C) I and III

Explanation

An algorithm is a step-by-step procedure that is independent of any programming language (I and III). It is actually easy to debug, so II is false.

Q29DSSSB TGT Computer Science (Technical), 1 Aug 2021, Shift 3
What is the maximum running time of binary search algorithm, when n = 12,000?
  1. A12
  2. B13
  3. C14
  4. 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.

Q30DSSSB TGT Computer Science (Technical), 1 Aug 2021, Shift 3
What is the worst case time complexity of bubble sort?
  1. AO(x)
  2. BO(log₂x)
  3. CO(x²)
  4. 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.

Q31DSSSB 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?
  1. A36
  2. B11
  3. C18
  4. 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.

Q32DSSSB TGT Computer Science (Technical), 1 Aug 2021, Shift 3
Which page replacement algorithm has Belady's anomaly?
  1. AOptimal page replacement
  2. BFIFO page replacement
  3. CLeast recent used page replacement
  4. DNot recently used page replacement
Show answerHide answer

Correct answer: (B) FIFO page replacement

Explanation

In FIFO, increasing the number of frames can increase page faults for some reference strings (Belady's anomaly). Optimal and LRU are stack algorithms and do not suffer from it.

Q33DSSSB TGT Computer Science (Technical), 1 Aug 2021, Shift 1
Arrange the following in ascending order of their average case complexity. Selection-sort, Quick-sort, Linear search, Binary search
  1. AQuick-Sort, Selection-sort, Binary search, Linear search
  2. BLinear search, Binary search, Selection-sort, Quick-sort
  3. CBinary search, Linear search, Quick-sort, Selection-sort
  4. DSelection-sort, Quick-sort, Linear search, Binary search
Show answerHide answer

Correct answer: (C) Binary search, Linear search, Quick-sort, Selection-sort

Explanation

Average cases: binary search O(log n) < linear search O(n) < quick sort O(n log n) < selection sort O(n²).

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

Q35DSSSB 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).

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

Q37DSSSB TGT Computer Science (Technical), 12 Sep 2025, Shift 3 (5:00 PM)
Consider the following pseudo code. exponentiate(int x, int n) { int m=n; power= 1; z= x; while(m>0) { while(m%2 ==0) { m= m/2; z= z*z ; } m=m-1; power = power*z; } return power; } What will the time complexity of function exponentiate() be?
  1. AΘ(n²)
  2. BΘ(log n)
  3. CΘ(n log n)
  4. DΘ(n)
Show answerHide answer

Correct answer: (B) Θ(log n)

Explanation

This is exponentiation by squaring: each inner step halves m, and each outer step subtracts 1 from an odd m, making it even. So m reaches 0 in about 2 log₂ n steps, giving Θ(log n).

Q38DSSSB TGT Computer Science (Technical), 12 Sep 2025, Shift 3 (5:00 PM)
A measure of amount of memory required to execute an algorithm is known as:
  1. ASpace complexity of an algorithm
  2. BTime complexity of an algorithm
  3. CTime efficiency of an algorithm
  4. DAccuracy of an algorithm
Show answerHide answer

Correct answer: (A) Space complexity of an algorithm

Explanation

Space complexity measures how much memory an algorithm needs to run, as a function of input size. Time complexity measures running time.

Q39DSSSB TGT Computer Science (Technical), 12 Sep 2025, Shift 3 (5:00 PM)
Which of the following options is INCORRECT about randomised algorithms?
  1. ARandomised algorithms that always produce the same(correct)output for the same input is known as Las Vegas Algorithms.
  2. BRandomised algorithms whose output differs from run to run for the same inputs is known as Monte Carlo Algorithms.
  3. CThe execution time of Las Vegas Algorithm does not depend on the output of the randomiser.
  4. DA randomised algorithm is an algorithm in which some of the decisions made in the algorithm depend on the output of the randomiser.
Show answerHide answer

Correct answer: (C) The execution time of Las Vegas Algorithm does not depend on the output of the randomiser.

Explanation

Statement C is incorrect: a Las Vegas algorithm always gives the correct answer, but its running time depends on the random choices. A Monte Carlo algorithm has bounded time, but its output may vary or be wrong.

Q40DSSSB TGT Computer Science (Technical), 12 Sep 2025, Shift 2 (1:00 PM)
Which of the following is NOT a property of any algorithms?
  1. ASome of the algorithms may not produce even single quantity as an output.
  2. BEvery algorithm must produce at least one quantity as an output.
  3. CEach instruction of the algorithm must be clear and unambiguous.
  4. DFor all cases, the algorithm must terminate after finite number of instructions.
Show answerHide answer

Correct answer: (A) Some of the algorithms may not produce even single quantity as an output.

Explanation

Every algorithm must produce at least one output, have clear and unambiguous steps and terminate after finitely many steps. So "may not produce any output" is not a property of an algorithm.

Q41DSSSB TGT Computer Science (Technical), 12 Sep 2025, Shift 1 (9:00 AM)
How does the Best Fit algorithm impact system performance?
  1. AIt improves system performance by reducing memory wastage.
  2. BIt may reduce system performance due to increased search time for free blocks.
  3. CIt always improves system performance.
  4. DIt improves system performance by reducing external fragmentation.
Show answerHide answer

Correct answer: (B) It may reduce system performance due to increased search time for free blocks.

Explanation

Best Fit must search the whole free list (or keep it sorted) to find the smallest hole that fits, so allocation takes longer. It also leaves many tiny unusable holes, so it does not guarantee less wastage or better performance.

Q42DSSSB TGT Computer Science (Technical), 12 Sep 2025, Shift 1 (9:00 AM)
Which of the following asymptotic notation gives asymptotically tight upper bound as well as asymptotically tight lower bound?
  1. AOmega (Ω)
  2. BBig Oh (O)
  3. CTheta (Θ)
  4. DSmall Omega (ω)
Show answerHide answer

Correct answer: (C) Theta (Θ)

Explanation

Theta notation bounds a function both from above and below by constant multiples of g(n), giving an asymptotically tight bound. Big O gives only an upper bound and Omega only a lower bound.

Q43DSSSB TGT Computer Science (Technical), 12 Sep 2025, Shift 1 (9:00 AM)
Which of the following cases DOES NOT exist when one computes the time complexity of an algorithm?
  1. AAverage case
  2. BWorst case
  3. CTest Case
  4. DBest Case
Show answerHide answer

Correct answer: (C) Test Case

Explanation

Time complexity is analysed for the best, average and worst cases. A "test case" is an input used in software testing, not a case of complexity analysis.

Q44DSSSB TGT Computer Science, 25 Jun 2023, Shift 1 (8:30 AM)
Which of the following is a graphical representation of an algorithm?
  1. AFlowchart
  2. BSource code
  3. CProgram
  4. DPseudo code
Show answerHide answer

Correct answer: (A) Flowchart

Explanation

A flowchart shows an algorithm graphically using standard symbols joined by arrows. Pseudocode is a text description.

Q45DSSSB TGT Computer Science, 25 Jun 2023, Shift 1 (8:30 AM)
In Cohen Sutherland Line clipping algorithm, if a line ______ the clipping window, then the line is required to clip as it is considered partially visible.
  1. Afalls inside
  2. Bfalls outside
  3. Cintersects
  4. Dfalls on
Show answerHide answer

Correct answer: (C) intersects

Explanation

In Cohen-Sutherland clipping, a line that crosses (intersects) the window boundary is partially visible and must be clipped. Lines fully inside are accepted and lines fully outside are rejected.

Q46DSSSB TGT Computer Science, 25 Jun 2023, Shift 1 (8:30 AM)
Which characteristic of business refers to 'various components of a business system are highly interacting and interdependent'?
  1. AInterdependence
  2. BComplexity
  3. CCreativity
  4. DGoal-orientation
Show answerHide answer

Correct answer: (A) Interdependence

Explanation

Interdependence means the parts of a business system are closely interacting and depend on each other.

Q47DSSSB TGT Computer Science, 25 Jun 2023, Shift 1 (8:30 AM)
Which characteristic of an algorithm refers to 'each instruction is clear and unambiguous'?
  1. ADefiniteness
  2. BFiniteness
  3. CEffectiveness
  4. DIndefiniteness
Show answerHide answer

Correct answer: (A) Definiteness

Explanation

Definiteness means every step of an algorithm is precisely and unambiguously defined.

Q48DSSSB TGT Computer Science, 25 Jun 2023, Shift 1 (8:30 AM)
Which of the following is a Microsoft ActiveX control that will sort through a data file, extrapolate the necessary information and produce that information in specified areas on the web page?
  1. ADialog Bars
  2. BTabular Data Control
  3. CControl Bars
  4. DDialog Boxes
Show answerHide answer

Correct answer: (B) Tabular Data Control

Explanation

The Tabular Data Control (TDC) is a Microsoft ActiveX control that reads a delimited data file and shows the data in chosen areas of a web page.

Q49DSSSB TGT Computer Science, 25 Jun 2023, Shift 1 (8:30 AM)
What is the key length for the Triple DES cryptography algorithm?
  1. A46 bits
  2. B32 bits
  3. C168 bits
  4. D56 bits
Show answerHide answer

Correct answer: (C) 168 bits

Explanation

Triple DES uses three 56-bit DES keys, so the full key length is 3 × 56 = 168 bits.

Q50DSSSB TGT Computer Science, 25 Jun 2023, Shift 1 (8:30 AM)
Which of the following refers to the kind of problems that require the identification of the best solution to a search problem from a given set of solutions?
  1. ATraining
  2. BOptimisation
  3. CCounting
  4. DDecision
Show answerHide answer

Correct answer: (B) Optimisation

Explanation

Optimisation problems ask for the best solution from a set of feasible solutions. Decision problems only need a yes/no answer.

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