DSSSB TGT / PGT · Topic-wise previous year questions

Computer Science Previous Year Questions (page 45)

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

Q2201DSSSB TGT Computer Science, 7 Feb 2024, Shift 2 (12:30 PM)
In which of the following type of addressing mode, the instruction specifies a register in the CPU whose contents give the address of the operand in memory?
  1. ARegister indirect mode
  2. BIndirect address mode
  3. CImplied mode
  4. DImmediate mode
Show answerHide answer

Correct answer: (A) Register indirect mode

Explanation

In register indirect mode the chosen register holds the memory address of the operand, not the operand itself.

Q2202DSSSB TGT Computer Science, 7 Feb 2024, Shift 2 (12:30 PM)
In HTML body tag, which of the following attribute indicates the colour of the hyperlinks after the mouse is clicked on it?
  1. AVLINK
  2. BALINK
  3. CLINK
  4. DHLINK
Show answerHide answer

Correct answer: (A) VLINK

Explanation

VLINK sets the colour of visited links (those already clicked). LINK is for unvisited links and ALINK for the active link while it is being clicked.

Q2203DSSSB TGT Computer Science, 7 Feb 2024, Shift 2 (12:30 PM)
Which of the following statement(s) is/are correct regarding Assembly language? I. An assembler converts (or assembles) the symbolic program of an Assembly language into its equivalent machine program. II. A program written in an assembly language is machine dependent.
  1. ABoth I and II
  2. BOnly II
  3. COnly I
  4. DNeither I nor II
Show answerHide answer

Correct answer: (A) Both I and II

Explanation

An assembler translates assembly mnemonics into machine code, and because assembly instructions map to a specific processor's instruction set, the program is machine dependent. Both are true.

Q2204DSSSB TGT Computer Science, 7 Feb 2024, Shift 2 (12:30 PM)
Which of the following Instruction format use an implied accumulator (AC) register for all data manipulation?
  1. AOne-address instructions
  2. BT hree-address instructions
  3. CZero-address instructions
  4. DTwo-address instructions
Show answerHide answer

Correct answer: (A) One-address instructions

Explanation

One-address instructions use an implied accumulator (AC) for all data manipulation, e.g. ADD X means AC = AC + M[X].

Q2205DSSSB TGT Computer Science, 7 Feb 2024, Shift 2 (12:30 PM)
In context of the Digital Personal Data Protection Act, 2023, which of the given following is correct?
  1. A“Child” means an individual who has not completed the age of eighteen years
  2. B“Digital personal data” means personal data in physical form
  3. C“Chairperson” does not mean the chairperson of the board
  4. D“Data” means representation of facts only
Show answerHide answer

Correct answer: (A) “Child” means an individual who has not completed the age of eighteen years

Explanation

Under the DPDP Act, 2023, a "child" is a person who has not completed eighteen years. Digital personal data is data in digital form, so B is wrong.

Q2206DSSSB TGT Computer Science, 7 Feb 2024, Shift 2 (12:30 PM)
Which of the following File operation need not involve any actual I/O (Input/Output) and is also known as ‘File Seek’?
  1. ADeleting a file
  2. BRepositioning within a file
  3. CReading a file
  4. DTruncating a file
Show answerHide answer

Correct answer: (B) Repositioning within a file

Explanation

Repositioning within a file (file seek) only changes the current-file-position pointer, so it needs no actual I/O.

Q2207DSSSB TGT Computer Science, 7 Feb 2024, Shift 2 (12:30 PM)
In CPU, which of the following type of register is required by the control unit and contains the instruction currently being executed?
  1. AInstruction register
  2. BAccumulator
  3. CProgram register
  4. DMemory data register
Show answerHide answer

Correct answer: (A) Instruction register

Explanation

The Instruction Register (IR) holds the instruction currently being decoded and executed, for use by the control unit.

Q2208DSSSB TGT Computer Science, 7 Feb 2024, Shift 2 (12:30 PM)
The values in a dictionary can be ______ but the keys in the dictionary should be ______ in Python programming languages
  1. Arepeated, repeated
  2. Brepeated, unique
  3. Cunique, repeated
  4. Dunique, unique
Show answerHide answer

Correct answer: (B) repeated, unique

Explanation

Dictionary values may repeat, but keys must be unique; assigning to an existing key overwrites its value.

Q2209DSSSB TGT Computer Science, 7 Feb 2024, Shift 2 (12:30 PM)
Which of the following part of operating system allocates the CPU to next scheduled process in the system?
  1. AFile manager
  2. BDispatcher
  3. CScheduler
  4. DInput/output handler
Show answerHide answer

Correct answer: (B) Dispatcher

Explanation

The dispatcher gives control of the CPU to the process chosen by the short-term scheduler, doing the context switch and jump to user mode.

Q2210DSSSB TGT Computer Science, 7 Feb 2024, Shift 2 (12:30 PM)
Which of the following printer is type of impact printer?
  1. AInk-Jet
  2. BLaser
  3. CDot matrix
  4. DT hermal
Show answerHide answer

Correct answer: (C) Dot matrix

Explanation

A dot matrix printer strikes pins against an inked ribbon, so it is an impact printer. Inkjet, laser and thermal printers are non-impact.

Q2211DSSSB TGT Computer Science, 7 Feb 2024, Shift 2 (12:30 PM)
Which of the following statement is correct regarding point-to-point connection in the data communication? I. It provides a dedicated link between two devices. II. It is a timeshared connection.
  1. AOnly II
  2. BBoth I and II
  3. CNeither I nor II
  4. DOnly I
Show answerHide answer

Correct answer: (D) Only I

Explanation

A point-to-point connection gives a dedicated link between exactly two devices. A shared, timeshared link describes a multipoint connection, so only I is correct.

Q2212DSSSB TGT Computer Science, 7 Feb 2024, Shift 2 (12:30 PM)
In Direct Memory Access (DMA) ______, a block sequence consisting of a number of memory words is transferred in a continuous burst.
  1. ABus granting
  2. BBurst transfer
  3. CCycle stealing
  4. DController count
Show answerHide answer

Correct answer: (B) Burst transfer

Explanation

In DMA burst transfer, a block of several memory words is sent in one continuous burst while the DMA controller holds the bus. Cycle stealing transfers one word at a time.

Q2213DSSSB TGT Computer Science, 7 Feb 2024, Shift 2 (12:30 PM)
Which of the following normal form of normalization in relational model, disallows relations within relations or relations as attribute values within tuples?
  1. AFourth
  2. BFirst
  3. CSecond
  4. DThird
Show answerHide answer

Correct answer: (B) First

Explanation

First Normal Form requires atomic attribute values, so it disallows nested relations or relations as attribute values within tuples.

Q2214DSSSB TGT Computer Science, 7 Feb 2024, Shift 2 (12:30 PM)
Which of the following is NOT an attribute that included by the HR tag which puts a horizontal line on the page?
  1. ASHADE
  2. BSIZE
  3. CALIGN
  4. DWIDT H
Show answerHide answer

Correct answer: (A) SHADE

Explanation

The HR tag supports SIZE, WIDTH, ALIGN and NOSHADE. There is no SHADE attribute.

Q2215DSSSB TGT Computer Science, 7 Feb 2024, Shift 2 (12:30 PM)
______ enables the creator owner to earn recognition or financial benefit by using their creation or invention.
  1. APatent
  2. BCopyright
  3. CIntellectual property right
  4. DData protection
Show answerHide answer

Correct answer: (B) Copyright

Explanation

Copyright gives the creator legal rights over their original work, enabling them to earn recognition or financial benefit from its use.

Q2216DSSSB TGT Computer Science, 7 Feb 2024, Shift 2 (12:30 PM)
Over half of the e-waste generated in the developed world are exported to developing countries, mainly to ______, where metals like copper, iron, silicon, nickel and gold are recovered during recycling process.
  1. AAfghanistan
  2. BKazakistan
  3. CUAE
  4. DIndia
Show answerHide answer

Correct answer: (D) India

Explanation

Much e-waste from developed countries is shipped to developing countries such as India, where metals like copper, iron, silicon, nickel and gold are recovered in recycling.

Q2217DSSSB TGT Computer Science, 7 Feb 2024, Shift 2 (12:30 PM)
______ is a two-dimensional labelled data structure with columns of potentially different type, in data handling with pandas.
  1. ASeries
  2. BMissing data
  3. CIteration
  4. DData frames
Show answerHide answer

Correct answer: (D) Data frames

Explanation

A pandas DataFrame is a two-dimensional labelled data structure whose columns can hold different data types, like a table.

Q2218DSSSB TGT Computer Science, 7 Feb 2024, Shift 2 (12:30 PM)
A semaphore is an integer variable that, apart from initialization, is accessed only through which of the following standard atomic operation?
  1. Arelease ( )
  2. Block ( )
  3. Cacquire ( )
  4. Dsignal ( )
Show answerHide answer

Correct answer: (D) signal ( )

Explanation

A semaphore is accessed, apart from initialisation, only through the atomic operations wait() (P) and signal() (V).

Q2219DSSSB TGT Computer Science, 7 Feb 2024, Shift 2 (12:30 PM)
From the challenges given below, which of the challenge does IoT adoption include?
  1. ADeepfake
  2. BBlack box
  3. CSecurity
  4. DCloud storage
Show answerHide answer

Correct answer: (C) Security

Explanation

Security is a major challenge in IoT adoption, because many connected devices with weak protection can be hacked or leak data.

Q2220DSSSB TGT Computer Science, 7 Feb 2024, Shift 2 (12:30 PM)
Which of the following tag of HTML language is a container for the tags that contain information about the page?
  1. AQuestion content
  2. BQuestion content
  3. CQuestion content
  4. DQuestion content
Show answerHide answer

Correct answer: (C)

Explanation

The head element is a container for tags giving information about the page, such as title, meta, link and style. The body holds visible content.

Q2221DSSSB TGT Computer Science, 7 Feb 2024, Shift 2 (12:30 PM)
Irreparable computer and other electronic goods are known as ______ in tech world.
  1. AMan made waste
  2. BNatural waste
  3. CWaste
  4. DElectronic waste
Show answerHide answer

Correct answer: (D) Electronic waste

Explanation

Discarded, irreparable computers and electronic goods are called electronic waste (e-waste).

Q2222DSSSB TGT Computer Science, 7 Feb 2024, Shift 2 (12:30 PM)
Which of the following is a one-dimensional labelled array capable of holding any data type (integers, strings, floating point numbers, python objects, etc) in data handling with pandas?
  1. ASeries
  2. BMissing data
  3. CData frames
  4. DIteration
Show answerHide answer

Correct answer: (A) Series

Explanation

A pandas Series is a one-dimensional labelled array that can hold any data type. A DataFrame is two-dimensional.

Q2223DSSSB TGT Computer Science, 7 Feb 2024, Shift 2 (12:30 PM)
The E-waste (management) rules 2016 of India, recognizes two broad categories: IT and telecommunication equipment and consumer electrical and electronics including which of the following material? I. Fluorescent II. Mercury
  1. AOnly I
  2. BOnly II
  3. CBoth I and II
  4. DNeither I nor II
Show answerHide answer

Correct answer: (C) Both I and II

Explanation

The E-Waste (Management) Rules 2016 cover IT and telecom equipment and consumer electrical and electronics, and also include compact fluorescent lamps (CFL) and other mercury-containing lamps. So both apply.

Q2224DSSSB TGT Computer Science, 7 Feb 2024, Shift 2 (12:30 PM)
Which of the following form is correct to show a ‘comments’ in the HTML language?
  1. A< – – This is a comment – – >
  2. B< – – This is a comment – –! >
  3. C< !– – This is a comment – –! >
  4. D< !– – This is a comment – – >
Show answerHide answer

Correct answer: (D) < !– – This is a comment – – >

Explanation

An HTML comment starts with <!-- and ends with -->, as in option D.

Q2225DSSSB TGT Computer Science, 7 Feb 2024, Shift 2 (12:30 PM)
If you encounter an import Error, what does it mean? I. Python could find pandas in list of available libraries II. Pandas couldn’t find python in list of available libraries III. Python couldn’t find Pandas in list of available libraries
  1. AOnly III
  2. BI, II and III
  3. COnly I
  4. DOnly I and III
Show answerHide answer

Correct answer: (A) Only III

Explanation

An ImportError (here ModuleNotFoundError) means Python could not find the pandas module among installed libraries, so only III is correct.

Q2226DSSSB TGT Computer Science, 7 Feb 2024, Shift 2 (12:30 PM)
Data frame in Pandas has a method which takes a column name (for a regular index) or a list of column names to create a new, re-indexed data frame, which of the following is correct method?
  1. AdFb
  2. Bdata.index ( )
  3. Cset_index ( )
  4. DdFmi
Show answerHide answer

Correct answer: (C) set_index ( )

Explanation

set_index() takes a column name or list of column names and returns a new DataFrame indexed by those columns.

Q2227DSSSB TGT Computer Science, 7 Feb 2024, Shift 2 (12:30 PM)
Which of the following is correct for Identifiers name used in Python language?
  1. AAn identifier can have underscore (_) symbol
  2. BWe must use keywords as identifier
  3. CThhere is restriction the length of an identifier
  4. DAn identifier must start with a digit
Show answerHide answer

Correct answer: (A) An identifier can have underscore (_) symbol

Explanation

Python identifiers may contain letters, digits and underscores, so _ is allowed. They cannot start with a digit, cannot be keywords, and have no length limit.

Q2228DSSSB TGT Computer Science, 7 Feb 2024, Shift 2 (12:30 PM)
Which of the following rule is needed to be followed while declaring the XML (Extensible Markup Language) elements name?
  1. AName must start with a number
  2. BName can contain spaces
  3. CName must not start with the letter xml
  4. DName cannot contain letter, numbers and other characters
Show answerHide answer

Correct answer: (C) Name must not start with the letter xml

Explanation

XML element names must not start with "xml" (in any case), cannot start with a number or contain spaces, but can contain letters, digits and characters like hyphen and underscore.

Q2229DSSSB TGT Computer Science, 7 Feb 2024, Shift 2 (12:30 PM)
In digital realm, which refers to the legal rights to protect invention or creation in intellectual property, are given to whom?
  1. AEmployee
  2. BSeller
  3. CCreator/invertor
  4. DBuyers
Show answerHide answer

Correct answer: (C) Creator/invertor

Explanation

Intellectual property rights are given to the creator or inventor, giving legal protection over their creation or invention.

Q2230DSSSB TGT Computer Science, 7 Feb 2024, Shift 2 (12:30 PM)
Which of the following symbol is used to add comments in the Python language?
  1. A*
  2. B#
  3. C!
  4. D//
Show answerHide answer

Correct answer: (B) #

Explanation

In Python, # starts a single-line comment; everything after it on that line is ignored.

Q2231DSSSB TGT Computer Science, 7 Feb 2024, Shift 2 (12:30 PM)
Which operation is provided in Pandas, when multiple tables can be concatenated both column wise and row wise as database?
  1. ASUM
  2. BMERGE
  3. CGROUP BY
  4. DSELECT
Show answerHide answer

Correct answer: (B) MERGE

Explanation

pandas merge() joins DataFrames on common columns, like SQL joins, so tables can be combined as in a database.

Q2232DSSSB TGT Computer Science, 7 Feb 2024, Shift 2 (12:30 PM)
IPR (Intellectual Property Right) is given for how much time, in digital realm?
  1. ACertain period of time
  2. BUnlimited period of time
  3. CUncertain period of time
  4. DDepending on case to case basis
Show answerHide answer

Correct answer: (A) Certain period of time

Explanation

IPR such as patents and copyrights are granted for a certain, fixed period of time, after which the work enters the public domain.

Q2233DSSSB TGT Computer Science, 7 Feb 2024, Shift 2 (12:30 PM)
In E-waste management, from which factors, there comes the exposure variability in electronic waste?
  1. AType of E-waste
  2. BQuantity of the Pollutants in air
  3. CManagement processes of the air pollution
  4. DMedical waste
Show answerHide answer

Correct answer: (A) Type of E-waste

Explanation

Exposure variability depends mainly on the type of e-waste, since different devices contain different toxic substances such as lead, mercury and cadmium.

Q2234DSSSB TGT Computer Science, 7 Feb 2024, Shift 2 (12:30 PM)
Which of the following HTML tag is used to puts a line break in the text?
  1. AQuestion content
  2. BQuestion content
  3. CQuestion content
  4. DQuestion content
Show answerHide answer

Correct answer: (D)

Explanation

The <BR> tag inserts a line break. <B> makes text bold; <BL> and <L> are not standard tags.

Q2235DSSSB TGT Computer Science, 7 Feb 2024, Shift 2 (12:30 PM)
Which of the following maths function in SQL returns the smallest integer greater than, or equal to, the specified numeric expression?
  1. AROUND
  2. BCEILING
  3. CABS
  4. DFLOOR
Show answerHide answer

Correct answer: (B) CEILING

Explanation

CEILING returns the smallest integer greater than or equal to the value, e.g. CEILING(4.2) = 5. FLOOR returns the largest integer less than or equal to it.

Q2236DSSSB TGT Computer Science, 7 Feb 2024, Shift 2 (12:30 PM)
Which of the following page replacement algorithms(s) does not suffer from Belady’s anomaly in Operating System? I. Least-Recently Used (LRU) page replacement. II. First-In, First-Out (FIFO) page replacement.
  1. AOnly I
  2. BNeither I nor II
  3. COnly II
  4. DBoth I and II
Show answerHide answer

Correct answer: (A) Only I

Explanation

LRU is a stack algorithm and never suffers from Belady's anomaly. FIFO can give more page faults with more frames, so it does suffer from it.

Q2237DSSSB TGT Computer Science, 7 Feb 2024, Shift 2 (12:30 PM)
String is a collection of one or more character which consists of ______ in programming language. I. Letters II. Numbers III. Symbols
  1. AI, II and III
  2. BOnly I
  3. COnly I and III
  4. DOnly II
Show answerHide answer

Correct answer: (A) I, II and III

Explanation

A string is a sequence of characters, which can include letters, digits and symbols, e.g. "Ab12#@".

Q2238DSSSB TGT Computer Science, 7 Feb 2024, Shift 2 (12:30 PM)
Which of the following symbol is used with SELECT command of SQL, to retrieve all the attribute values of the selected tuples?
  1. A#
  2. B%
  3. C*
  4. D:
Show answerHide answer

Correct answer: (C) *

Explanation

SELECT * retrieves all attributes (columns) of the selected tuples.

Q2239DSSSB TGT Computer Science, 7 Feb 2024, Shift 2 (12:30 PM)
Which of the following is commonly used in UNICODE encoding schemes and number system in computer science?
  1. AUT F-17
  2. BUT F-61
  3. CUT F-8
  4. DUT F-35
Show answerHide answer

Correct answer: (C) UT F-8

Explanation

UTF-8 is the most widely used Unicode encoding; it uses 1 to 4 bytes per character and is ASCII-compatible. UTF-17, 61 and 35 do not exist.

Q2240DSSSB TGT Computer Science, 7 Feb 2024, Shift 2 (12:30 PM)
Extensions like .txt, .py, .CSV, etc in python language are example of ______.
  1. Atext files
  2. Btext editor
  3. CUNI CODE
  4. DASCII
Show answerHide answer

Correct answer: (A) text files

Explanation

Files like .txt, .py and .csv store plain human-readable characters, so they are text files.

Q2241DSSSB TGT Computer Science, 7 Feb 2024, Shift 2 (12:30 PM)
Which of the following logic gate is shown in the given Graphic Symbol? (where, A and B = inputs, x = output)
  1. AOR gate
  2. BNAND gate
  3. CNOR gate
  4. DExclusive – OR (XOR) gate
Show answerHide answer

Correct answer: (D) Exclusive – OR (XOR) gate

Explanation

The gate shown has an extra curved line at the input side of the OR shape, which is the symbol for the Exclusive-OR (XOR) gate.

Q2242DSSSB TGT Computer Science, 7 Feb 2024, Shift 2 (12:30 PM)
Which of the following phase of the compiler, gathers type information and saves it in either the syntax tree or the symbol table, for subsequent use during intermediate code generation?
  1. ASemantic Analyzer
  2. BCode Analyzer
  3. CSyntax Analyzer
  4. DLexical Analyzer
Show answerHide answer

Correct answer: (A) Semantic Analyzer

Explanation

The semantic analyzer checks meaning and gathers type information, storing it in the syntax tree or symbol table for intermediate code generation.

Q2243DSSSB TGT Computer Science, 7 Feb 2024, Shift 2 (12:30 PM)
Number with decimal points is called ______ in programming language.
  1. AFractional point numbers
  2. BComplex numbers
  3. CImaginary Numbers
  4. DInteger
Show answerHide answer

Correct answer: (A) Fractional point numbers

Explanation

Numbers with a decimal point (like 3.14) are fractional/floating point numbers, stored as float in Python. Integers have no decimal part.

Q2244DSSSB TGT Computer Science, 7 Feb 2024, Shift 2 (12:30 PM)
Which of the following operation includes all tuples that are in R-set but not in S-set?
  1. AR – S
  2. BR Ç S
  3. CR È S
  4. DR × S
Show answerHide answer

Correct answer: (A) R – S

Explanation

The set difference R − S contains tuples that are in R but not in S. ∩ gives common tuples, ∪ all tuples, × the Cartesian product.

Q2245DSSSB TGT Computer Science, 7 Feb 2024, Shift 2 (12:30 PM)
Which of the following is NOT an aggregate function in SQL?
  1. ACROSS PRODUCT
  2. BMAXIMUM
  3. CCOUNT
  4. DSUM
Show answerHide answer

Correct answer: (A) CROSS PRODUCT

Explanation

SQL aggregate functions include COUNT, SUM, AVG, MAX and MIN. Cross product is a relational join operation, not an aggregate.

Q2246DSSSB TGT Computer Science, 7 Feb 2024, Shift 2 (12:30 PM)
______ has been developed to incorporate all the character of every written language of the world. It provides a unique number for every character, irrespective of device [server, desktop, mob], OS [linux, win] or software application
  1. AUNICODE
  2. BBinary Code
  3. CISCII
  4. DASCII
Show answerHide answer

Correct answer: (A) UNICODE

Explanation

Unicode assigns a unique number (code point) to every character of every written language, regardless of platform, device or program.

Q2247DSSSB TGT Computer Science, 7 Feb 2024, Shift 2 (12:30 PM)
ASCII (American Standard Code for Information Interchange) can only handle ______ or at most ______ languages and that shows its limitation to handle all world languages.
  1. A2, 5
  2. B1, 2
  3. C1, 5
  4. D3, 4
Show answerHide answer

Correct answer: (B) 1, 2

Explanation

ASCII uses 7 bits (128 characters), enough mainly for English, so it can handle only one, or at most two, languages.

Q2248DSSSB TGT Computer Science, 7 Feb 2024, Shift 2 (12:30 PM)
In Database Management System (DBMS), which of the following term de fines a collection of entities that have the same attributes in the database?
  1. AEntity type
  2. BValue set
  3. CEntity set
  4. DValue type
Show answerHide answer

Correct answer: (A) Entity type

Explanation

Per Elmasri-Navathe, an entity type defines a collection of entities that have the same attributes; the actual set of entities at a moment is the entity set.

Q2249DSSSB TGT Computer Science, 7 Feb 2024, Shift 2 (12:30 PM)
Which symbol is used to add the comment in the code or program to make it more readable and understandable in Python programming language?
  1. A#
  2. B*
  3. C–
  4. D:
Show answerHide answer

Correct answer: (A) #

Explanation

Python uses # for comments, which make code more readable and are ignored by the interpreter.

Q2250DSSSB TGT Computer Science, 7 Feb 2024, Shift 2 (12:30 PM)
Which of the following statement(s) is/are correct for context switching in Operating System? I. When a context switch occurs, the kernel saves the context of the old process in its PCB (Process Control Block). II. Context-Switch time is pure overhead, because the system does no useful work while switching.
  1. ANeither I nor II
  2. BOnly I
  3. COnly II
  4. DBoth I and II
Show answerHide answer

Correct answer: (D) Both I and II

Explanation

During a context switch the kernel saves the old process state in its PCB and loads the new one's. This switching time is pure overhead, since no useful work is done. Both are correct.

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