DSSSB TGT / PGT · Topic-wise previous year questions
Computer Science Previous Year Questions (page 36)
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.
Which of the following statements is true about JavaScript arrays?
AJavaScript arrays can store elements of multiple data types.
BJavaScript arrays are of fixed size.
CJavaScript arrays cannot be modified once created.
DJavaScript arrays can store elements of only one data type.
Show answerHide answer
Correct answer: (A) JavaScript arrays can store elements of multiple data types.
Explanation
JavaScript arrays are dynamic objects. One array can hold numbers, strings, objects and other types together, and it can grow, shrink or be changed after it is created.
What is the primary purpose of multimedia authoring software?
ATo manage file security
BTo play media files
CTo organise files on a computer
DTo create interactive multimedia presentations
Show answerHide answer
Correct answer: (D) To create interactive multimedia presentations
Explanation
Authoring software (such as Adobe Animate or Director) is used to combine text, images, audio and video into interactive multimedia presentations. Media players only play the files.
Which of the following options is true for a Hermitian matrix?
Aaᵢⱼ = conj(aⱼᵢ) (aᵢⱼ equals the complex conjugate of aⱼᵢ)
Baᵢⱼ = −aⱼᵢ
Caᵢⱼ = aⱼᵢ
Daᵢⱼ = −conj(aⱼᵢ)
Show answerHide answer
Correct answer: (A) aᵢⱼ = conj(aⱼᵢ) (aᵢⱼ equals the complex conjugate of aⱼᵢ)
Explanation
A Hermitian matrix equals its conjugate transpose, so aᵢⱼ = conj(aⱼᵢ). aᵢⱼ = aⱼᵢ is the rule for a symmetric matrix, and the minus forms are for skew types.
Cellular phones and televisions use the __________ regions of the electromagnetic spectrum
for signal transmission.
Aultraviolet and visible light
Bgamma rays and X-rays
Cradio waves and microwaves
Dinfrared and visible light
Show answerHide answer
Correct answer: (C) radio waves and microwaves
Explanation
Mobile phones and TV broadcasting send signals on radio waves and microwaves, the long-wavelength part of the spectrum, because these travel far and pass through the atmosphere.
Which of the following is a type of ROM that allows data to be written and erased electrically?
AEPROM
BEEPROM
CMask ROM
DFlash Memory
Show answerHide answer
Correct answer: (B) EEPROM
Explanation
EEPROM (Electrically Erasable Programmable ROM) can be written and erased with electrical signals. EPROM needs UV light to erase, and mask ROM is fixed at manufacture.
The control statement in C program that allows us to make a decision from multiple number
of choices simultaneously is called _______.
Aswitch
Bwhile
Cgoto
Dfor
Show answerHide answer
Correct answer: (A) switch
Explanation
A switch statement chooses one of many case labels by the value of a single expression. Loops repeat code and goto jumps; they do not choose among several cases.
Which document outlines the detailed description of a new business, including its goals,
target market, and financial projections?
AMemorandum of Association
BBusiness Plan
CCertificate of Incorporation
DArticles of Association
Show answerHide answer
Correct answer: (B) Business Plan
Explanation
A business plan sets out the new business's goals, strategy, target market, operations and financial projections. MoA, AoA and the Certificate of Incorporation are legal company documents.
Which of the following is INCORRECT about singly linked list data structure?
AIt is a linear data structure.
BThe elements of the linked list are sequentially accessible.
CThe list's head node is the first node, while the last node pointer field points to NULL to
denote the list's end.
DThe elements of the linked list are randomly accessible.
Show answerHide answer
Correct answer: (D) The elements of the linked list are randomly accessible.
Explanation
Option D is incorrect: a singly linked list has no index arithmetic, so you must walk from the head node by node to reach an element. It has sequential access, not random access.
The particular integral of the differential equation d²y/dx² + 2(dy/dx) + y = x² + 2x is _______.
Ax² + 2x − 2
Bx² + 2x + 2
Cx² − 2x + 2
Dx² − 2x − 2
Show answerHide answer
Correct answer: (C) x² − 2x + 2
Explanation
Try y = x² + bx + c. Then y'' + 2y' + y = x² + (4 + b)x + (2 + 2b + c). Matching with x² + 2x gives b = −2 and c = 2, so the particular integral is x² − 2x + 2.
Which of following accounting concept states that every accounting transaction has two
aspects?
AMatching concept
BConservatism concept
CDual aspect concept
DRealization concept
Show answerHide answer
Correct answer: (C) Dual aspect concept
Explanation
The dual aspect concept says every transaction has two equal effects, a debit and a credit, which is the basis of the equation Assets = Liabilities + Capital.
MK Ltd. has a policy of creating provisions for doubtful debts @ 5% on debtors. The balance
of provision for doubtful debts on 1 April 2023 and 31 March 2024 is ₹2,50,000 and
₹3,00,000, respectively. If the amount collected from debtors is ₹75,00,000, calculate the
credit sales during the year 2023-2024.
A₹69,50,000
B₹55,00,000
C₹85,00,000
D₹75,50,000
Show answerHide answer
Correct answer: (C) ₹85,00,000
Explanation
The provision is 5% of debtors, so opening debtors are 2,50,000/0.05 = 50,00,000 and closing debtors are 60,00,000. Credit sales = closing + collections − opening = 60L + 75L − 50L = ₹85,00,000.
What happens to the stack pointer (SP) when the CALL instruction is executed?
AIt remains unchanged.
BIt points to the next instruction in the subroutine.
CIt increases by 2 (or 4 in 32-bit systems)
DIt decreases by 2 (or 4 in 32-bit systems)
Show answerHide answer
Correct answer: (D) It decreases by 2 (or 4 in 32-bit systems)
Explanation
CALL pushes the return address onto the stack. The stack grows downward, so SP is decreased by 2 (or by 4 on 32-bit systems) before the address is stored.
If a particle moves with simple harmonic motion of period 16 seconds and travels 10 cm from
the position of rest in 4 seconds, then the amplitude is _______.
A8
B12
C24
D10
Show answerHide answer
Correct answer: (D) 10
Explanation
From the mean position, x = A sin(2πt/T). With T = 16 and t = 4, sin(π/2) = 1, so the particle is at an extreme and A = 10 cm.
Which of the following statements about do-while loop in C program is/are correct?
P: In do-while loop, first the condition is evaluated and then the statements are executed.
Q: In do-while loop, firstly the statements inside loop body are executed and then the
condition is evaluated.
R: The body of the do-while loop cannot contain a block of statements.
AOnly Q and R
BOnly Q
CP, Q and R
DOnly P
Show answerHide answer
Correct answer: (B) Only Q
Explanation
A do-while loop runs its body first and then tests the condition, so Q is true and P is false. R is false because the body can be a block in braces.
Process of Bank Reconciliation involves which of the following?
i. Identify the entries which are in the bank statement and do require changes in the cash
book.
ii. List out entries in the cash book not reflected in the bank statement to arrive at the
adjusted Bank Balance.
iii. Find out clerical mistakes, if any committed in the cash book.
AOnly (i) and (iii)
BOnly (ii) and (iii)
COnly (i) and (ii)
DAll (i), (ii) and (iii)
Show answerHide answer
Correct answer: (D) All (i), (ii) and (iii)
Explanation
In bank reconciliation you find bank-statement items that need entries in the cash book, list cash-book entries not yet in the bank statement, and correct clerical errors. All three steps are part of the process.
Calculate the worst-case time complexity of searching for an element in a singly linked list
with 'n' elements.
AO(log 1)
BO(n)
CO(1 log)
DO(1)
Show answerHide answer
Correct answer: (B) O(n)
Explanation
A linked list must be traversed node by node from the head. In the worst case the key is the last node or is missing, which needs n comparisons, so the time is O(n).
What does a high Debt-to-Equity ratio typically indicate about a business?
ALow profitability
BHigher financial risk due to excessive borrowing
CStrong liquidity position
DEfficient asset management
Show answerHide answer
Correct answer: (B) Higher financial risk due to excessive borrowing
Explanation
The debt-to-equity ratio compares borrowed funds with owners' funds. A high ratio means heavy borrowing, with more fixed interest burden and higher financial risk.
Which of the following is NOT affected by extreme observations?
AMedian
BHarmonic Mean
CMean
DRange
Show answerHide answer
Correct answer: (A) Median
Explanation
The median depends only on the middle position of the ordered data, so very large or very small values do not change it. The mean and range are directly affected.
Which of the following is an example of real-time communication through an online chat
application?
APosting on a blog
BExchanging messages in a live chat
CSending an email
DWriting a comment on a social media post
Show answerHide answer
Correct answer: (B) Exchanging messages in a live chat
Explanation
A live chat delivers messages instantly while both people are online, which is real-time (synchronous) communication. Blogs, emails and comments are asynchronous.
Which protocol enables presence detection, contact management, and real-time messaging
in instant messaging applications?
AIMAP (Internet Message Access Protocol)
BSIP (Session Initiation Protocol)
CXMPP (Extensible Messaging and Presence Protocol)
DIRC (Internet Relay Chat)
Show answerHide answer
Correct answer: (C) XMPP (Extensible Messaging and Presence Protocol)
Explanation
XMPP (Jabber) is an open XML-based protocol for instant messaging, presence (online status) and contact lists (rosters). IMAP is for email, and SIP sets up calls.
A teacher notices that a student consistently underperforms on tasks requiring spatial
reasoning. The teacher designs specific tasks to diagnose the cause of this difficulty. What
type of assessment is this?
ASummative assessment
BFormative assessment
CDiagnostic assessment
DNorm-referenced assessment
Show answerHide answer
Correct answer: (C) Diagnostic assessment
Explanation
Diagnostic assessment is used to find the specific causes of a learner's persistent difficulties, so that remedial teaching can be planned.
Identify the method which is NOT recognised as a scientific approach of acquiring
knowledge.
ASensorial
BAction
CReading fiction
DRationalisation
Show answerHide answer
Correct answer: (C) Reading fiction
Explanation
Scientific ways of gaining knowledge rely on sensory observation, action (experiment) and reasoning. Reading fiction is not a systematic method of verifying knowledge.
Which of the following best differentiates 'growth' from 'development'?
AGrowth is only physical, development is only emotional.
BGrowth continues forever, development stops after a certain age.
CGrowth is value-neutral, development is value-positive.
DGrowth is qualitative, development is quantitative.
Show answerHide answer
Correct answer: (C) Growth is value-neutral, development is value-positive.
Explanation
Growth is a quantitative change (size, height, weight) that is neutral in value. Development is a qualitative, progressive change toward maturity and is seen as positive in value.
Which of the following professionals typically diagnoses learning disabilities?
ALibrarian
BSpecial educator
CPhysical education teacher
DOphthalmologist
Show answerHide answer
Correct answer: (B) Special educator
Explanation
Learning disabilities are identified with special assessments carried out by trained professionals such as special educators, who then plan interventions.
Which synchronisation tool helps implement bounded waiting?
AInterrupts
BPaging
CContext switching
DSemaphores
Show answerHide answer
Correct answer: (D) Semaphores
Explanation
Semaphores (with a fair, e.g. FIFO, waiting queue) let processes wait in order to enter the critical section, so no process waits indefinitely. Interrupts, paging and context switching are not synchronisation tools.
Which is NOT a valid way to include a comment in SQL-99?
AMultiline Comments or Block Comments: Multiline comments start with /* and end with
*/
BSingle-line comments start with -- double hyphens
CInline Comments: Inline comments start with -- after the SQL statement on the same
line
D// This is used for giving a comment
Show answerHide answer
Correct answer: (D) // This is used for giving a comment
Explanation
Standard SQL supports -- for single-line (and end-of-line) comments and /* ... */ for block comments. // is a comment in C++/Java/JavaScript, not in SQL-99.
Standard SQL requires the keyword INTO in an INSERT statement: INSERT INTO table VALUES (...). Omitting INTO is only accepted by some vendors such as MySQL or SQL Server, so D is invalid in standard SQL.
If CloseHandle is NOT called after opening a file with CreateFile, which of the following
issues might occur?
AThe file will be corrupted.
BResources associated with the file may not be released.
CThe file may not be accessible.
DThe file will become read-only.
Show answerHide answer
Correct answer: (B) Resources associated with the file may not be released.
Explanation
CloseHandle releases the kernel object and the resources tied to the handle. If it is never called, those handles and resources stay allocated (a handle/resource leak) until the process ends.
What ensures the integrity of a digital signature?
AThe encryption algorithm used
BHash value of the original message
CThe Certificate Authority’s approval
DThe private key of the receiver
Show answerHide answer
Correct answer: (B) Hash value of the original message
Explanation
The sender signs a hash (message digest) of the message. The receiver recomputes the hash and compares it; any change to the message gives a different hash, so the hash value guarantees integrity.
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.