227 DBMS & SQL (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.
Q101DSSSB TGT Computer Science (Technical), 7 Aug 2021, Shift 3
Which of the following is oldest database model?
ADeductive
BRelational
CObject-Oriented
DHierarchical
Show answerHide answer
Correct answer: (D) Hierarchical
Explanation
The hierarchical model (e.g. IBM's IMS, 1960s) is the oldest of these. The relational model came in 1970, and the object-oriented and deductive models later.
Q102DSSSB TGT Computer Science (Technical), 7 Aug 2021, Shift 3
What is the full form of DDLC in database?
ADistributed Database Log Clearing
BDistributed Database Life Cycle
CDatabase Development LifeCycle
DDeductive Database LifeCycle
Show answerHide answer
Correct answer: (C) Database Development LifeCycle
Explanation
DDLC is the Database Development Life Cycle: the stages of planning, designing, building and maintaining a database.
Q103DSSSB TGT Computer Science (Technical), 7 Aug 2021, Shift 3
The left-hand side and the right-hand sides of a functional dependency are sometimes called ________ and ________ respectively.
ADomain; attributes
BDeterminant; dependent
CRange; table
DTuple; relation
Show answerHide answer
Correct answer: (B) Determinant; dependent
Explanation
In X → Y, X is the determinant and Y is the dependent, because X determines the value of Y.
Q104DSSSB TGT Computer Science (Technical), 7 Aug 2021, Shift 3
________ are some problems that may arise while creating the Entity relationship model.
AConnection traps
BTransition traps
CGroups traps
DData traps
Show answerHide answer
Correct answer: (A) Connection traps
Explanation
Connection traps (fan traps and chasm traps) are problems that can arise in an ER model, where the relationships do not give the intended paths between entities.
Q105DSSSB TGT Computer Science (Technical), 7 Aug 2021, Shift 3
Which of the following is a symbol of multivalued attribute in Entity relationship diagram?
ADouble oval (an ellipse inside an ellipse)
BDouble diamond (a diamond inside a diamond)
CDouble rectangle (a rectangle inside a rectangle)
DAn ellipse with a small rectangle inside
Show answerHide answer
Correct answer: (A) Double oval (an ellipse inside an ellipse)
Explanation
A multivalued attribute is drawn as a double oval. A double diamond is an identifying relationship and a double rectangle is a weak entity.
Q106DSSSB TGT Computer Science (Technical), 7 Aug 2021, Shift 3
________ is the point of synchronisation between the database and the transaction log file in database management system.
ACheckpoint
BShadow point
CMapping point
DKey point
Show answerHide answer
Correct answer: (A) Checkpoint
Explanation
A checkpoint is a point where all log records and modified buffers are written to disk, which synchronises the database with the log and limits how much must be redone during recovery.
Q107DSSSB TGT Computer Science (Technical), 7 Aug 2021, Shift 3
Given the following table of value of f(x) = log x, what is the value of f'(3)?
x | 1 | 2 | 3 | 4
f(x) | 0 | 0.301 | 0.477 | 0.602
A0.125
B0.225
C0.208
D0.278
Show answerHide answer
Correct answer: (A) 0.125
Explanation
Using the forward difference approximation, f'(3) ≈ [f(4) − f(3)]/h = (0.602 − 0.477)/1 = 0.125.
Q108DSSSB TGT Computer Science (Technical), 7 Aug 2021, Shift 3
Match the symbol used in DFD with their function.
A. Rectangle — I. Output
B. Two parallel horizontal lines — II. Process
C. A cylinder-like document/file shape — III. Data store
D. Circle — IV. External entity
AA-IV, B-III, C-I, D-II
BA-II, B-III, C-I, D-II
CA-IV, B-I, C-III, D-II
DA-I, B-III, C-IV, D-II
Show answerHide answer
Correct answer: (A) A-IV, B-III, C-I, D-II
Explanation
In a DFD, a rectangle is an external entity, two parallel lines are a data store, the document shape is output, and a circle (bubble) is a process.
Q109DSSSB TGT Computer Science (Technical), 7 Aug 2021, Shift 3
________ stores entries about files and their characteristics.
AFile application table
BFile access table
CFormat allocation table
DFile allocation table
Show answerHide answer
Correct answer: (D) File allocation table
Explanation
The File Allocation Table (FAT) keeps entries for the files on a disk, recording which clusters each file occupies.
Q110DSSSB TGT Computer Science (Technical), 7 Aug 2021, Shift 2
Which gate is represented by the following truth table?
A | B | Output
0 | 0 | 0
0 | 1 | 1
1 | 0 | 1
1 | 1 | 1
AOR
BAND
CXOR
DNOT
Show answerHide answer
Correct answer: (A) OR
Explanation
The output is 0 only when both inputs are 0 and 1 otherwise, which is the OR function (A + B).
Q111DSSSB TGT Computer Science (Technical), 7 Aug 2021, Shift 2
In a multiplexer, the number of input is 'n'and the number of select lines is 'm'. Which of the following is correct?
A2^m = n
B2^n = m
C2m = n
D2n = m
Show answerHide answer
Correct answer: (A) 2^m = n
Explanation
m select lines can choose one of 2^m inputs, so a multiplexer with n inputs needs 2^m = n (e.g. 8 inputs need 3 select lines).
Q112DSSSB TGT Computer Science (Technical), 7 Aug 2021, Shift 2
Which of the following is an alternative to the log-based recovery schemes in database recovery system?
AShadow paging
BDe fragmentation
CPre paging
DDemand paging
Show answerHide answer
Correct answer: (A) Shadow paging
Explanation
Shadow paging is a recovery technique that needs no log: it keeps a shadow page table unchanged and a current page table for updates, and commits by switching tables.
Q113DSSSB TGT Computer Science (Technical), 7 Aug 2021, Shift 2
Match the building blocks in Entity relationship diagram.
A. Ellipse symbol — i. Relationship
B. Line with a circle and a bar (─○|─) — ii. Attributes
C. Line with a double bar (─||─) — iii. Optional one
D. Diamond symbol — iv. Mandatory one
AA-ii, B-iii, C-i, D-iv
BA-ii, B-iii, C-iv, D-i
CA-iii, B-ii, C-iv, D-i
DA-ii, B-i, C-iv, D-iii
Show answerHide answer
Correct answer: (B) A-ii, B-iii, C-iv, D-i
Explanation
In an ER diagram an ellipse is an attribute and a diamond is a relationship. In crow's foot notation a circle with a bar means optional one, and a double bar means mandatory one.
Q114DSSSB TGT Computer Science (Technical), 7 Aug 2021, Shift 2
________ is a unique identifier created by database management system to identify the relative starting time of a transaction.
ATimestamp
BSpoofing
CShadow paging
DDeadlock
Show answerHide answer
Correct answer: (A) Timestamp
Explanation
A timestamp is a unique value the DBMS gives each transaction when it starts, used to order transactions in timestamp-based concurrency control.
Q115DSSSB TGT Computer Science (Technical), 7 Aug 2021, Shift 2
Which of the following is NOT a variant of time stamp-based method of concurrency control in database management system?
ATotal time stamp ordering
BPartial time stamp ordering
CMulti version time stamp ordering
DMulti level time stamp ordering
Show answerHide answer
Correct answer: (D) Multi level time stamp ordering
Explanation
The timestamp-ordering variants are total, partial and multiversion timestamp ordering. Multi-level timestamp ordering is not one of them.
Q116DSSSB TGT Computer Science (Technical), 7 Aug 2021, Shift 2
________ describes the process of deciding about putting data to different sites in distributed database system.
AData sharing
BData allocation
CData storing
DData mining
Show answerHide answer
Correct answer: (B) Data allocation
Explanation
Data allocation is the process of deciding which sites of a distributed database will store each fragment or copy of the data.
Q117DSSSB TGT Computer Science (Technical), 7 Aug 2021, Shift 2
________ is a technique of breaking up database into logical units, which may be assigned for storage at the various sites in distributed database system.
AData normalization
BData mining
CData binding
DData fragmentation
Show answerHide answer
Correct answer: (D) Data fragmentation
Explanation
Data fragmentation splits a database (horizontally, vertically or mixed) into logical units called fragments, which can be stored at different sites.
Q118DSSSB TGT Computer Science (Technical), 7 Aug 2021, Shift 2
Which of the following is a comparison operator in Structured Query Language?
A+
B=
C/
D>=
Show answerHide answer
Correct answer: (D) >=
Explanation
>= (greater than or equal to) is a comparison operator. + and / are arithmetic operators. = is also used for comparison in SQL, but the key takes >=.
Q119DSSSB TGT Computer Science (Technical), 7 Aug 2021, Shift 2
Which of the following statement(s) is/are correct regarding m-commerce?
I. Mobile security is one of the prominent impediments of m-commerce.
II. M-commerce reduce overall transaction cost through streamlined business processes.
III. Mobile coupons and mobile ticket delivery are m-commerce services.
AI and II
BII and III
CI, II and III
DOnly III
Show answerHide answer
Correct answer: (C) I, II and III
Explanation
Mobile security is a major barrier to m-commerce, m-commerce lowers transaction costs through streamlined processes, and mobile coupons and tickets are m-commerce services. All three are correct.
Q120DSSSB TGT Computer Science (Technical), 7 Aug 2021, Shift 2
Which of the following is a component of Management Information System (MIS)?
AExternal Database
BKnowledge Engine
CData Entry
DInquiry Processing
Show answerHide answer
Correct answer: (A) External Database
Explanation
An MIS draws on internal and external databases for its reports. Knowledge engines belong to expert systems, and data entry and inquiry processing are transaction processing tasks.
Q121DSSSB TGT Computer Science (Technical), 7 Aug 2021, Shift 2
Which of the following statement(s) is/are correct regarding On-Line Transaction Processing (OLTP)?
I. Responses to the user inquiry are immediate.
II. The associated cost is economical with efficient utilization of resources.
III. The database is always up-to date.
AOnly II
BI and II
COnly II
DI and II
Show answerHide answer
Correct answer: (B) I and II
Explanation
Note: the official paper printed options (a)/(c) and (b)/(d) identically; the official key marks (b) "I and II".
Q122DSSSB TGT Computer Science (Technical), 7 Aug 2021, Shift 2
If x = 5, then what is the value of y from the following table of values?
x | 2 | 6
y | 8 | 12
A10
B15
C11
D9.5
Show answerHide answer
Correct answer: (C) 11
Explanation
By linear interpolation, y rises by (12 − 8)/(6 − 2) = 1 per unit of x, so y(5) = 8 + 3 × 1 = 11.
Q123DSSSB TGT Computer Science (Technical), 1 Aug 2021, Shift 3
________ is used for management, maintenance and retrieval of the data stored in the database.
AOperating system
BDatabase Management System
CSystem Software
DProcessing Software
Show answerHide answer
Correct answer: (B) Database Management System
Explanation
A DBMS is software for creating, managing, maintaining and retrieving data stored in a database (e.g. MySQL, Oracle).
Q124DSSSB TGT Computer Science (Technical), 1 Aug 2021, Shift 3
Which of the following is not key attribute of information?
AAccuracy
BTimeliness
CRelevancy
DIsolation
Show answerHide answer
Correct answer: (D) Isolation
Explanation
Key attributes of good information include accuracy, timeliness, relevance, completeness. Isolation is not an attribute of information.
Q125DSSSB TGT Computer Science (Technical), 1 Aug 2021, Shift 3
What is the full form of DASD in database management system?
ADirect Access Storage Device
BDynamic Access Storage Device
CDigital Access Storage Device
DDisk Access Storage Device
Show answerHide answer
Correct answer: (A) Direct Access Storage Device
Explanation
DASD stands for Direct Access Storage Device, such as a magnetic disk, where any record can be accessed directly.
Q126DSSSB TGT Computer Science (Technical), 1 Aug 2021, Shift 3
The values of the attributes in a database describe a particular ________.
AEntity
BTuple
CField
DView
Show answerHide answer
Correct answer: (A) Entity
Explanation
An entity is described by its attribute values. For example, a student entity is described by values of roll number, name and class.
Q127DSSSB TGT Computer Science (Technical), 1 Aug 2021, Shift 3
Which of the following is not a structured Query Language Data type?
AREAL
BINTERVAL
CTIME STAMP
DBASE
Show answerHide answer
Correct answer: (D) BASE
Explanation
REAL, INTERVAL and TIMESTAMP are SQL data types. BASE is not an SQL data type.
Q128DSSSB TGT Computer Science (Technical), 1 Aug 2021, Shift 3
The input-output relationship of the binary variable for each gate can be represented in tabular form by a ________.
ASymbol table
BDecision table
CTruth table
DCharacteristic table
Show answerHide answer
Correct answer: (C) Truth table
Explanation
A truth table lists the output for every combination of binary inputs, giving the input-output relation of a gate in tabular form.
Q129DSSSB TGT Computer Science (Technical), 1 Aug 2021, Shift 3
Which of the following is a type of information system?
ATransaction Processing System
BOnline Processing System
CReal-time Processing System
DDistributed Processing System
Show answerHide answer
Correct answer: (A) Transaction Processing System
Explanation
A Transaction Processing System is a type of information system that records routine business transactions. The other options are modes of data processing.
Q130DSSSB TGT Computer Science (Technical), 1 Aug 2021, Shift 1
What is the length of an array when its first index is denoted by i and last index is denoted by j?
ALength of an array = i + j
BLength of an array = j − i
CLength of an array = j − i + 1
DLength of an array = j − i − 1
Show answerHide answer
Correct answer: (C) Length of an array = j − i + 1
Explanation
Indices i, i+1, ..., j contain j − i + 1 elements. For example, indices 0 to 9 give 10 elements.
Q131DSSSB TGT Computer Science (Technical), 1 Aug 2021, Shift 1
Which gate is represented by the following truth table?
A | B | Output
0 | 0 | 0
0 | 1 | 0
1 | 0 | 0
1 | 1 | 1
AOR
BAND
CNAND
DNOR
Show answerHide answer
Correct answer: (B) AND
Explanation
The output is 1 only when both inputs are 1, which is the AND function.
Q132DSSSB TGT Computer Science (Technical), 1 Aug 2021, Shift 1
In a demultiplexer,the number of output lines is n and the number of select lines is m. Which of the following is correct?
An = 2^m
Bm = 2^n
Cn = 2m
Dm = 2n
Show answerHide answer
Correct answer: (A) n = 2^m
Explanation
A demultiplexer with m select lines routes the input to one of 2^m outputs, so n = 2^m (e.g. 1-to-8 DEMUX has 3 select lines).
Q133DSSSB TGT Computer Science (Technical), 1 Aug 2021, Shift 1
What is the full form of ISAM in file organisation?
ISAM is Indexed Sequential Access Method: records are stored sequentially by key and an index allows direct access.
Q134DSSSB TGT Computer Science (Technical), 1 Aug 2021, Shift 1
Primary index in sequential order file organization is also known as ________.
ADense index
BClustering index
CNon-clustering index-
DSparse index
Show answerHide answer
Correct answer: (B) Clustering index
Explanation
Note from the source book: a primary index on a sequentially ordered file is in fact a sparse index (option d), but the official key (as per the Board) is (b) Clustering index.
Q135DSSSB TGT Computer Science (Technical), 1 Aug 2021, Shift 1
Deductive model of DBMS is also known as ________.
AObject-oriented model
BInference model
CInteractive model
DDifferential model
Show answerHide answer
Correct answer: (B) Inference model
Explanation
A deductive database model derives new facts from stored facts using rules (logical inference), so it is also called the inference model.
Q136DSSSB TGT Computer Science (Technical), 1 Aug 2021, Shift 1
________ is a system database that contains description of the data in the database.
AData Catalog
BInformation Catalog
CRecord Catalog
DFile Catalog
Show answerHide answer
Correct answer: (A) Data Catalog
Explanation
The data catalog (data dictionary) is a system database holding metadata, i.e. the description of tables, columns, constraints and other database objects.
Q137DSSSB TGT Computer Science (Technical), 1 Aug 2021, Shift 1
Which of the following statement(s) is/are correct regarding a relation in second normal form?
I. It is in first normal form
II. Every non-key attribute is fully and functionally independent on the primary key
AOnly I
BOnly II
CBoth I and II
DNeither I nor II
Show answerHide answer
Correct answer: (A) Only I
Explanation
A 2NF relation must be in 1NF (I is correct). Statement II says non-key attributes are "independent" of the primary key, but 2NF requires them to be fully functionally dependent on it, so II is wrong.
Q138DSSSB TGT Computer Science (Technical), 1 Aug 2021, Shift 1
Data structure maintained by the operating system to maintain information for each thread within a process is known as ________.
AProcess control block
BThread control block
CSymbol table
DScheduling queue
Show answerHide answer
Correct answer: (B) Thread control block
Explanation
The OS keeps a Thread Control Block (TCB) per thread, storing its thread ID, register set, stack pointer, state and priority. A PCB stores information for a whole process.
Q139DSSSB TGT Computer Science (Technical), 1 Aug 2021, Shift 1
Which of the following statement(s) is/are correct regarding batch transaction processing?
I. The database is updated when the transaction is processed.
II. The associated cost is very high.
III. Reports generated are required only at a scheduled interval.
AOnly II
BOnly III
CI and II
DI and III
Show answerHide answer
Correct answer: (B) Only III
Explanation
In batch processing, transactions are collected and the database is updated later (I false), it is relatively cheap (II false), and reports are produced at scheduled intervals (III true).
Q140DSSSB TGT Computer Science (Technical), 1 Aug 2021, Shift 1
________ is the person who runs our web servers.
AData analyst
BWeb master
CDatabase designer
DWeb Designer
Show answerHide answer
Correct answer: (B) Web master
Explanation
A webmaster manages and maintains web servers and websites. A web designer creates layout and look, not the server.
Which of the following statements correctly updates the Bill column in the Customer table by
applying a 10% discount only for customers who belong to the 'High privilege' account?
AMODIFY Customer SET Bill = Bill / 1.1 WHERE Account = 'High privilege';
BUPDATE Customer SET Bill = Bill / 1.1;
CUPDATE Customer SET Bill = Bill / 1.1 WHERE Account = 'High privilege';
Correct answer: (C) UPDATE Customer SET Bill = Bill / 1.1 WHERE Account = 'High privilege';
Explanation
UPDATE ... SET ... WHERE changes only the rows that match. Dividing by 1.1 gives the discounted bill, and the WHERE clause limits it to 'High privilege' accounts. MODIFY is not DML, and B has no WHERE.
What is the output of the following SQL command if the subquery returns no rows?
DELETE FROM Product WHERE ProductID IN (SELECT ProductID FROM ArchivedProduct
WHERE Status = 'Sell');
ANo rows are deleted
BAll rows in Product are deleted
CRows will be deleted from ArchivedProduct
DError
Show answerHide answer
Correct answer: (A) No rows are deleted
Explanation
If the subquery returns no rows, the IN list is empty and the condition is false for every row, so no rows are deleted from Product and no error occurs.
Which of the following statements is true about TRUNCATE in SQL (Structured Query
Language)?
ATRUNCATE removes table structure.
BTRUNCATE does not remove data from the table.
CTRUNCATE is a DML command.
DTRUNCATE is faster than DELETE.
Show answerHide answer
Correct answer: (D) TRUNCATE is faster than DELETE.
Explanation
TRUNCATE removes all rows at once with little logging and no row-by-row triggers, so it is faster than DELETE. It keeps the table structure and is a DDL command.
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.
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?
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.
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.
AOnly P, Q and S
BOnly P, R and S
CP, Q, R and S
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.
Study the given table and calculate the total Trial Balance amount.
Particulars | Amount (₹)
Cash | 54,750.00
Capital | 60,000.00
Purchases | 62,000.00
Sales | 42,250.00
Sales return | 1,600.00
Purchase returns | 1,300.00
Mr. X (Creditor) | 39,800.00
Mr. Y (Debtor) | 21,500.00
Mr. Z (Creditor) | 4,000.00
Furniture | 3,000.00
Wages and Salaries | 5,200.00
Commission received | 700.00
A₹1,15,070
B₹1,48,050
C₹1,25,000
D₹1,51,050
Show answerHide answer
Correct answer: (B) ₹1,48,050
Explanation
Debits: cash 54,750 + purchases 62,000 + sales return 1,600 + Y 21,500 + furniture 3,000 + wages 5,200 = 1,48,050. The credits also total 1,48,050.
Which type of join returns all records from both tables, including non-matching rows, and fills
in NULL for missing matches?
ALEFT JOIN
BRIGHT JOIN
CINNER JOIN
DFULL JOIN
Show answerHide answer
Correct answer: (D) FULL JOIN
Explanation
A FULL (OUTER) JOIN keeps every row from both tables and puts NULL where no match exists. LEFT or RIGHT JOIN keep unmatched rows from only one side, and INNER JOIN keeps only matching rows.
In the context of paging, what does the term 'page table mapping' refer to?
AThe process of mapping logical addresses to physical addresses
BThe mapping of physical memory to virtual memory
CThe mapping of files to memory pages
DThe process of swapping pages in and out of secondary storage
Show answerHide answer
Correct answer: (A) The process of mapping logical addresses to physical addresses
Explanation
Paging divides logical memory into pages, and the page table maps each page number to a physical frame number, which translates logical addresses into physical addresses.
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.