DSSSB TGT / PGT · Topic-wise previous year questions
Computer Science Previous Year Questions (page 34)
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.
How does one prevent a form from submitting when using JavaScript?
Aevent.preventDefault()
Bform.submit()
Creturn false;
Devent.stopPropagation()
Show answerHide answer
Correct answer: (A) event.preventDefault()
Explanation
Calling event.preventDefault() in the submit handler cancels the browser's default action, the form submission. stopPropagation() only stops the event from bubbling.
Which of the following library file functions in C program is/are correct?
fwrite()- This function is used for writing an entire block to a given file.
fseek()- This function is used for setting the file position pointer at the specified byte.
ftell()- This function is used to move the file position pointer to the beginning of the file.
Afwrite(), ftell()
Bfwrite(), fseek()
Cfseek(), ftell()
Dfwrite(), fseek(), ftell()
Show answerHide answer
Correct answer: (B) fwrite(), fseek()
Explanation
fwrite() writes a block of data, and fseek() sets the file position pointer. ftell() only returns the current position; rewind() is the function that moves to the beginning.
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.
Given the following information of ABC Ltd. for the financial year 2024-25, calculate the total amount of credit sales for the year 2024-25.
Particulars | Amount (₹)
Opening Balance of Sundry Debtors | 50,000.00
Closing Balance of Sundry Debtors | 60,000.00
Cash Collected from Debtors | 6,00,000.00
Discount allowed to Debtors | 10,000.00
On 31st May 2024, the cash balance of AQ Ltd. is ₹5,50,000. The cash receipts and cash
payments during the month of June 2024 aggregated to ₹5,25,000 and ₹4,50,000,
respectively. The rent and salaries yet to be paid amounted to ₹25,000 and ₹36,000,
respectively. Calculate the amount of cash balance as on 30th June 2024 in the books of AQ
ltd.
A₹5,64,000
B₹6,86,000
C₹4,75,000
D₹6,25,000
Show answerHide answer
Correct answer: (D) ₹6,25,000
Explanation
Closing cash = 5,50,000 + 5,25,000 − 4,50,000 = ₹6,25,000. Unpaid rent and salaries are outstanding expenses and do not reduce the cash balance.
The order and degree of the differential equation (1 + dy/dx + cos(d²y/dx²))^(3/4) = d³y/dx³ is __________.
A3 and 1
B4 and 3
C3 and 4
D3 and 3
Show answerHide answer
Correct answer: (C) 3 and 4
Explanation
The highest derivative is d³y/dx³, so the order is 3. The key gets degree 4 by raising both sides to the 4th power. Strictly, the cos(d²y/dx²) term means the degree is not defined.
Which of the following is NOT true about a Histogram?
ARectangles have bases on vertical axis.
BIt consists of a set of rectangles.
CAreas of the rectangles are proportional to class frequencies
DThese rectangles represent the range of the data
Show answerHide answer
Correct answer: (A) Rectangles have bases on vertical axis.
Explanation
Statement A is false: the bases of a histogram's rectangles lie on the horizontal (x) axis, which shows the class intervals. Frequencies are on the vertical axis.
What is a key difference between system software and application software?
ASystem software includes programs like web browsers, while application software
includes operating systems.
BSystem software is designed for end-users, while application software is designed for
system administrators only.
CSystem software operates the computer hardware, whereas application software is
designed to perform specific user-oriented tasks.
DSystem software is optional for computer operation, while application software is
mandatory.
Show answerHide answer
Correct answer: (C) System software operates the computer hardware, whereas application software is
designed to perform specific user-oriented tasks.
Explanation
System software (OS, drivers, utilities) runs and manages the hardware. Application software (word processors, browsers) does specific tasks for users.
Which programme suggested textbook revision and gender sensitisation of educational
staff?
ANational Digital Literacy Mission
BProgramme of Action (POA) under NPE
CSarva Shiksha Abhiyan
DNational Education Mission
Show answerHide answer
Correct answer: (B) Programme of Action (POA) under NPE
Explanation
The Programme of Action (1992) under NPE 1986 asked for textbooks to be revised to remove gender bias and for teachers and staff to receive gender-sensitisation training.
Which of the following best exemplifies the 'Integrated' principle in curriculum development
for children with mental retardation?
ATeaching mathematical operations in isolation without real-life application
BEmphasising rote memorisation of isolated facts
CPreparing students for competitive exams
DOrganising activities that combine language, art, and daily living skills
Show answerHide answer
Correct answer: (D) Organising activities that combine language, art, and daily living skills
Explanation
The integrated principle links learning areas into meaningful activities, for example combining language, art and daily living skills, instead of teaching isolated facts.
Which of the following minimally influences individual differences in personality?
AGenetic predisposition
BSchool infrastructure
CParenting style
DSocioeconomic status
Show answerHide answer
Correct answer: (B) School infrastructure
Explanation
Personality differences come mainly from heredity and from family and social environment such as parenting and socioeconomic status. School infrastructure has the least influence.
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.
What critical information does a digital certificate contain?
APublic key, owner information and certificate validity
BPrivate key of the user
CEncryption algorithms supported by the server
DUsername and password of the certificate owner
Show answerHide answer
Correct answer: (A) Public key, owner information and certificate validity
Explanation
A digital certificate, signed by a Certificate Authority, binds the owner's identity to a public key and states the validity period. The private key is never put in a certificate.
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.
Which of the following is NOT a field in the UDP header?
AChecksum
BSequence Number
CSource Port
DLength
Show answerHide answer
Correct answer: (B) Sequence Number
Explanation
The UDP header has only four fields: source port, destination port, length and checksum. Sequence numbers belong to TCP, which needs them for reliable, ordered delivery.
What does an ICMP Destination Unreachable message indicate?
AThe packet’s checksum is invalid.
BThe destination host or network is unreachable.
CThe packet has reached its destination.
DThe destination IP address is incorrect.
Show answerHide answer
Correct answer: (B) The destination host or network is unreachable.
Explanation
ICMP Destination Unreachable (type 3) is sent by a router or host when a packet cannot be delivered to the destination network, host, protocol or port.
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.