DSSSB TGT / PGT · Topic-wise previous year questions

Computer Science Previous Year Questions (page 49)

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

Q2401DSSSB TGT Computer Science, 25 Jun 2023, Shift 2 (12:30 PM)
is the address of the current tunnel endpoint for MN that can be chosen via DHCP.
  1. AFA
  2. BCOA
  3. CHA
  4. DCN
Show answerHide answer

Correct answer: (A) FA

Explanation

Note: the answer key gives (A), but in Mobile IP the care-of address (COA) marks the current tunnel endpoint for the mobile node. A co-located COA can be obtained via DHCP (B). The FA is the foreign agent itself.

Q2402DSSSB TGT Computer Science, 25 Jun 2023, Shift 2 (12:30 PM)
Interpolation is carried out using data from:
  1. Aregression analysis
  2. Bcurve fitting and regression analysis
  3. Clinear interpolation
  4. Dcurve fitting and linear analysis
Show answerHide answer

Correct answer: (D) curve fitting and linear analysis

Explanation

Interpolation estimates values between known data points by fitting a curve (curve fitting) or a straight line (linear analysis) through the given data.

Q2403DSSSB TGT Computer Science, 25 Jun 2023, Shift 2 (12:30 PM)
Which of the following are the most essential components a computer system uses for communication over internet?
  1. AApplications and mouse
  2. BMonitor and keyboard
  3. CNIC and TCP/IP
  4. DCamera and microphone
Show answerHide answer

Correct answer: (C) NIC and TCP/IP

Explanation

To communicate over the Internet, a computer needs a Network Interface Card (the hardware connection) and the TCP/IP protocol suite (rules for addressing and transmitting data). The other items are peripherals.

Q2404DSSSB TGT Computer Science, 25 Jun 2023, Shift 2 (12:30 PM)
Who invented the probability definition?
  1. ASimon Laplace
  2. BEuclid
  3. CNone of the given answer
  4. DEinstein
Show answerHide answer

Correct answer: (A) Simon Laplace

Explanation

Pierre-Simon Laplace gave the classical definition of probability: the ratio of favourable outcomes to the total number of equally likely outcomes.

Q2405DSSSB TGT Computer Science, 25 Jun 2023, Shift 2 (12:30 PM)
A particular organisation or industry's most successful solutions or problem-solving methods are called ______.
  1. Aknowledge warehouse
  2. Bknowledge management
  3. Corganisational learning
  4. Dbest practices
Show answerHide answer

Correct answer: (B) knowledge management

Explanation

Note: the answer key gives (B), but an organisation's or industry's most successful solutions or problem-solving methods are called best practices (D). Knowledge management is the overall process of capturing and sharing such knowledge.

Q2406DSSSB TGT Computer Science, 25 Jun 2023, Shift 2 (12:30 PM)
Which of the following accounts is/are prepared for net profit?
  1. AProfit and loss account
  2. BTrading account, profit and loss account and balance sheet
  3. CTrading account
  4. DBalance sheet
Show answerHide answer

Correct answer: (A) Profit and loss account

Explanation

The profit and loss account records indirect expenses and incomes and shows the net profit or loss. The trading account gives only gross profit, and the balance sheet shows financial position.

Q2407DSSSB TGT Computer Science, 25 Jun 2023, Shift 2 (12:30 PM)
______ and ______ views cannot be framed together for rendering a computer visual appropriately.
  1. AOrthogonal projection, horizontal view
  2. BVertical view, rear projection
  3. CFront-side, rear-side
  4. DParallel projection, perspective projection
Show answerHide answer

Correct answer: (A) Orthogonal projection, horizontal view

Explanation

Note: the answer key gives (A), but an orthographic projection includes horizontal (top) views, so these two go together. The two that cannot be combined in one view are parallel and perspective projection (D), because projectors are either parallel or converge to a centre.

Q2408DSSSB TGT Computer Science, 25 Jun 2023, Shift 2 (12:30 PM)
Communication between an application program and a database server occur via:
  1. AODBC OR JDBC
  2. BAPI
  3. Cweb server
  4. DHTTP
Show answerHide answer

Correct answer: (A) ODBC OR JDBC

Explanation

Application programs talk to database servers through standard database APIs: ODBC (Open Database Connectivity) or JDBC for Java. These drivers send SQL queries and return results.

Q2409DSSSB TGT Computer Science, 25 Jun 2023, Shift 2 (12:30 PM)
In C, variable list arguments are denoted by the standard header:
  1. A<unistd.h>
  2. B<string.h>
  3. C<stdio.h >
  4. D<stdarg.h>
Show answerHide answer

Correct answer: (C) <stdio.h >

Explanation

Note: the answer key gives (C), but variable argument lists in C (va_list, va_start, va_arg, va_end) are defined in the standard header <stdarg.h> (D).

Q2410DSSSB TGT Computer Science, 25 Jun 2023, Shift 2 (12:30 PM)
Which of the following algorithm design techniques is used in the merge sort algorithm?
  1. AGreedy algorithm
  2. BBacktracking
  3. CDivide and conquer
  4. DDivide and conquer, backtracking and greedy algorithm
Show answerHide answer

Correct answer: (C) Divide and conquer

Explanation

Merge sort uses divide and conquer: it splits the array into halves, sorts each half recursively and then merges the two sorted halves.

Q2411DSSSB TGT Computer Science, 25 Jun 2023, Shift 2 (12:30 PM)
Identify the command that is used to delete files in Linux.
  1. Arm
  2. BRmdir
  3. CDelete
  4. DRdir
Show answerHide answer

Correct answer: (A) rm

Explanation

In Linux, the rm command deletes files (rm file.txt). rmdir removes only empty directories, and 'delete' and 'rdir' are not standard Linux commands.

Q2412DSSSB TGT Computer Science, 25 Jun 2023, Shift 2 (12:30 PM)
Identify the generic probability density function that corresponds with discrete random variables.
  1. ACumulative distribution
  2. BGaussian distribution
  3. CPoisson distribution
  4. DRayleigh distribution
Show answerHide answer

Correct answer: (C) Poisson distribution

Explanation

The Poisson distribution is a discrete distribution (given by a probability mass function) for counting events. Gaussian and Rayleigh are continuous distributions, and the CDF is not a density.

Q2413DSSSB TGT Computer Science, 25 Jun 2023, Shift 2 (12:30 PM)
The ______ interpolation method is used in probability theory and statistics, and the Gaussian process is one example.
  1. Alinear
  2. Bpolynomial
  3. Cspline
  4. Dnonlinear
Show answerHide answer

Correct answer: (D) nonlinear

Explanation

Gaussian process regression (kriging) is a non-linear interpolation method from probability and statistics. It treats the unknown function as a random process and predicts values between data points.

Q2414DSSSB TGT Computer Science, 25 Jun 2023, Shift 2 (12:30 PM)
______ and ______ are used in conjunction for making a complete process subroutine.
  1. Afork(), join()
  2. Bfork(), sleep()
  3. Csleep(), join()
  4. Djoin(), fork()
Show answerHide answer

Correct answer: (A) fork(), join()

Explanation

fork() splits a process into concurrent parts, and join() waits for them to finish and recombine. Together they form a complete concurrent subroutine; sleep() only suspends execution.

Q2415DSSSB TGT Computer Science, 25 Jun 2023, Shift 2 (12:30 PM)
Find a unit vector normal to the surface x³ + y³ + 3xyz = 3 at the point (1, 2, -1).
  1. AQuestion content
  2. BQuestion content
  3. CQuestion content
  4. DQuestion content
Show answerHide answer

Correct answer: (C)

Explanation

∇f = (3x² + 3yz, 3y² + 3xz, 3xy). At (1, 2, −1) this is (−3, 9, 6) = 3(−1, 3, 2). Its magnitude is 3√14, so the unit normal is (−î + 3ĵ + 2k̂)/√14.

Q2416DSSSB TGT Computer Science, 25 Jun 2023, Shift 2 (12:30 PM)
Which of the following is NOT a network layer function?
  1. AError control and flow control
  2. BIntra-routing
  3. CRouting
  4. DCongestion control
Show answerHide answer

Correct answer: (A) Error control and flow control

Explanation

Error control and flow control between adjacent nodes are data link layer functions, and end-to-end versions belong to the transport layer. Routing and congestion control are network layer functions.

Q2417DSSSB TGT Computer Science, 25 Jun 2023, Shift 2 (12:30 PM)
scanf() is a predefined function in which of the following header files?
  1. Actype.h
  2. Bstdio.h
  3. Cunistd.h
  4. Dstring.h
Show answerHide answer

Correct answer: (B) stdio.h

Explanation

scanf() and printf() are standard input/output functions declared in stdio.h.

Q2418DSSSB TGT Computer Science, 25 Jun 2023, Shift 2 (12:30 PM)
A public company must have at least members.
  1. A14
  2. B7
  3. C2
  4. D3
Show answerHide answer

Correct answer: (B) 7

Explanation

Under the Companies Act, 2013, a public company needs at least 7 members, while a private company needs at least 2.

Q2419DSSSB TGT Computer Science, 25 Jun 2023, Shift 2 (12:30 PM)
______ are a set of computer programs with necessary documentation.
  1. ARelative programs
  2. BSoftware packages
  3. CFile packages
  4. DApplication programs
Show answerHide answer

Correct answer: (B) Software packages

Explanation

A software package is a set of related programs supplied together with the necessary documentation, such as manuals and guides, for a particular task.

Q2420DSSSB TGT Computer Science, 25 Jun 2023, Shift 2 (12:30 PM)
Which of the following 4-byte IP addresses are used for internet protocol layer?
  1. ANetwork address and port address
  2. BNetwork address and MAC address
  3. CNetwork address and host address
  4. DHost address and port address
Show answerHide answer

Correct answer: (C) Network address and host address

Explanation

An IPv4 address (4 bytes) has two parts: a network address that identifies the network and a host address that identifies the device on it. Port and MAC addresses belong to other layers.

Q2421DSSSB TGT Computer Science, 25 Jun 2023, Shift 2 (12:30 PM)
Communication between end systems is encrypted using a key that is commonly referred to as a:
  1. Asingle key
  2. Bsession key
  3. Cprivate key
  4. Dpublic key
Show answerHide answer

Correct answer: (B) session key

Explanation

A session key is a temporary symmetric key generated for one communication session. It is used to encrypt the data exchanged between the end systems and is then discarded.

Q2422DSSSB TGT Computer Science, 25 Jun 2023, Shift 2 (12:30 PM)
A computer bus line is made up of which of the following components?
  1. ARegisters
  2. BSet of parallel lines
  3. CAccumulators
  4. DRAM and ROM
Show answerHide answer

Correct answer: (B) Set of parallel lines

Explanation

A bus is a set of parallel wires (lines) that carry data, address and control signals between computer components at the same time.

Q2423DSSSB TGT Computer Science, 25 Jun 2023, Shift 2 (12:30 PM)
Does polarisation vary with direction?
  1. APolarising axis
  2. BTransverse wave
  3. CPropagating axis
  4. DPass axis
Show answerHide answer

Correct answer: (B) Transverse wave

Explanation

Polarisation is possible only for transverse waves, because their vibrations are perpendicular to the direction of travel and so can be restricted to one direction. Longitudinal waves cannot be polarised.

Q2424DSSSB TGT Computer Science, 25 Jun 2023, Shift 2 (12:30 PM)
Which of the following business structures has limited liability to its members?
  1. APartnership
  2. BCooperative society
  3. CCompany
  4. DSole proprietorship
Show answerHide answer

Correct answer: (C) Company

Explanation

A company is a separate legal entity, so the liability of its members (shareholders) is limited to the unpaid amount on their shares. Sole proprietors and ordinary partners have unlimited liability.

Q2425DSSSB TGT Computer Science, 25 Jun 2023, Shift 2 (12:30 PM)
According to business economics, the growth of an existing product is used to estimate the demand for a new product using:
  1. Agrowth curve approach
  2. Bvicarious approach
  3. Csubstitute approach
  4. Dopinion polling approach
Show answerHide answer

Correct answer: (C) substitute approach

Explanation

Note: the answer key gives (C), but estimating a new product's demand from the growth pattern of an existing established product is the growth curve approach (A). The substitute approach treats the new product as a replacement for an existing one.

Q2426DSSSB TGT Computer Science, 25 Jun 2023, Shift 2 (12:30 PM)
Identify the descending order of strict access protection.
  1. APublic, protected, private, package
  2. BPrivate, protected, package, public
  3. CPublic, private, protected, package
  4. DPrivate, package, protected, public
Show answerHide answer

Correct answer: (B) Private, protected, package, public

Explanation

Note: the answer key gives (B), but in Java the order from most to least restrictive is private, package (default), protected, public (D). Protected is less strict than package access because it also allows subclasses in other packages.

Q2427DSSSB TGT Computer Science, 25 Jun 2023, Shift 2 (12:30 PM)
The process of verifying a user's identity is called:
  1. Aintegrity
  2. Bauthentication
  3. Cvalidation
  4. Dconfidentiality
Show answerHide answer

Correct answer: (B) authentication

Explanation

Authentication is the process of verifying a user's claimed identity, for example with passwords, OTPs or biometrics. Integrity and confidentiality are about protecting the data itself.

Q2428DSSSB TGT Computer Science, 25 Jun 2023, Shift 2 (12:30 PM)
Which method is used for demand forecasting of new products?
  1. AEvolutionary approach, opinion polling approach and vicarious approach
  2. BOpinion polling approach
  3. CEvolutionary approach
  4. DVicarious approach
Show answerHide answer

Correct answer: (A) Evolutionary approach, opinion polling approach and vicarious approach

Explanation

Joel Dean's methods for forecasting demand for new products include the evolutionary, substitute, growth curve, opinion polling, sales experience and vicarious approaches. All three listed are valid methods.

Q2429DSSSB TGT Computer Science, 25 Jun 2023, Shift 2 (12:30 PM)
______ are a database applications' universal front end that connects to the back end via the internet.
  1. AWeb browsers
  2. BWeb server
  3. CSoftware programs
  4. DWeb application
Show answerHide answer

Correct answer: (A) Web browsers

Explanation

Web browsers act as a universal client (front end) for web-based database applications. They send requests over the Internet to the web or application server that connects to the back-end database.

Q2430DSSSB TGT Computer Science, 25 Jun 2023, Shift 2 (12:30 PM)
Which command is used to remove a directory in Linux?
  1. ARm
  2. BDelete
  3. CErase
  4. DRm, Delete and Erase
Show answerHide answer

Correct answer: (A) Rm

Explanation

In Linux, directories are removed with rm -r (recursive), or with rmdir for empty ones. 'Delete' and 'Erase' are not Linux commands, so rm is the answer.

Q2431DSSSB TGT Computer Science, 25 Jun 2023, Shift 2 (12:30 PM)
Which layer is responsible for sending data as a bit stream?
  1. APresentation layer
  2. BNetwork layer
  3. CPhysical layer
  4. DData link layer
Show answerHide answer

Correct answer: (D) Data link layer

Explanation

Note: the answer key gives (D), but transmitting raw data as a bit stream over the physical medium is the job of the physical layer (C). The data link layer works with frames.

Q2432DSSSB TGT Computer Science, 25 Jun 2023, Shift 2 (12:30 PM)
What is the average case time complexity of merge sort?
  1. AO(n log n)
  2. BO(n)
  3. CO(1)
  4. DO(n² log n)
Show answerHide answer

Correct answer: (A) O(n log n)

Explanation

Merge sort always halves the array (log n levels) and does O(n) merging work at each level. So its best, average and worst case are all O(n log n).

Q2433DSSSB TGT Computer Science, 25 Jun 2023, Shift 2 (12:30 PM)
The information transformed during encryption is ______.
  1. Aencrypted message
  2. Bcoded message
  3. Ccipher text
  4. Dplain text
Show answerHide answer

Correct answer: (D) plain text

Explanation

Encryption converts readable plain text into unreadable cipher text using a key. Plain text is the information that gets transformed; cipher text is the result.

Q2434DSSSB TGT Computer Science, 25 Jun 2023, Shift 2 (12:30 PM)
The construction of computer-generated simulations that simulate real-world activities using interactive graphics software and hardware is called:
  1. Avirtual reality systems
  2. Bhybrid systems
  3. Cgenetic algorithms
  4. Dfuzzy neural networks
Show answerHide answer

Correct answer: (A) virtual reality systems

Explanation

Virtual reality systems use interactive graphics hardware and software to create computer-generated simulated environments that mimic real-world activities, such as flight simulators.

Q2435DSSSB TGT Computer Science, 25 Jun 2023, Shift 2 (12:30 PM)
In building software, should preferably be lower and is preferred to be on the higher side.
  1. Ainheritance from parent class, dependency with peer classes
  2. Baggregation with peer components, composition among classes
  3. Cnone of the given answer
  4. Dcoupling among components, cohesion in bonding components
Show answerHide answer

Correct answer: (D) coupling among components, cohesion in bonding components

Explanation

Good software design aims for low coupling (little dependency between components) and high cohesion (elements inside a component strongly related), which makes systems easier to maintain and reuse.

Q2436DSSSB TGT Computer Science, 25 Jun 2023, Shift 2 (12:30 PM)
What is a long-term asset in accounting?
  1. AIntangible assets
  2. BCurrent liabilities
  3. CFixed liabilities
  4. DFixed assets
Show answerHide answer

Correct answer: (D) Fixed assets

Explanation

Fixed assets (non-current assets such as land, buildings and machinery) are held for long-term use, more than one year, in the business rather than for resale.

Q2437DSSSB TGT Computer Science, 25 Jun 2023, Shift 2 (12:30 PM)
Which storage media supports only sequential access?
  1. AHard disk
  2. BCD
  3. CMagnetic tape
  4. DDVD
Show answerHide answer

Correct answer: (C) Magnetic tape

Explanation

Magnetic tape allows only sequential access: to reach a record, the tape must wind past everything before it. Hard disks, CDs and DVDs allow direct (random) access.

Q2438DSSSB TGT Computer Science, 25 Jun 2023, Shift 2 (12:30 PM)
What feature of OOP allows an instance of a class to take on many forms?
  1. AOperator overriding
  2. BMultiple inheritance
  3. CNested class
  4. DOperator overloading
Show answerHide answer

Correct answer: (D) Operator overloading

Explanation

The ability to take many forms is polymorphism. Operator overloading is a form of compile-time polymorphism, where one operator behaves differently for different types, which is why it is the keyed option.

Q2439DSSSB TGT Computer Science, 25 Jun 2023, Shift 2 (12:30 PM)
A register contains a 3's complement number 10100. If it is divided by 2, find the value of the register.
  1. A01100
  2. B00110
  3. C01010
  4. D11010
Show answerHide answer

Correct answer: (C) 01010

Explanation

Dividing by 2 is done by shifting the register one bit to the right: 10100 becomes 01010 (20 ÷ 2 = 10).

Q2440DSSSB TGT Computer Science, 25 Jun 2023, Shift 2 (12:30 PM)
What is an endpoint of an inter-process communication?
  1. ATunnel
  2. BPut
  3. CSocket
  4. DPipe
Show answerHide answer

Correct answer: (C) Socket

Explanation

A socket is one endpoint of a two-way inter-process communication link, identified by an IP address and port number. Two processes communicate through a pair of sockets.

Q2441DSSSB TGT Computer Science, 25 Jun 2023, Shift 2 (12:30 PM)
Which access modifier can be used to access members in deriving class?
  1. AVoid
  2. BProtected
  3. CPrivate
  4. DPublic
Show answerHide answer

Correct answer: (B) Protected

Explanation

Protected members are accessible inside the class and in classes derived from it, but not to unrelated outside code. Private members are not accessible in derived classes.

Q2442DSSSB TGT Computer Science, 25 Jun 2023, Shift 2 (12:30 PM)
What is the size of the computer accumulator register?
  1. A8 bytes
  2. B16 bytes
  3. C8 KB
  4. D4 bytes
Show answerHide answer

Correct answer: (D) 4 bytes

Explanation

The accumulator's size equals the processor's word length. For a 32-bit processor it is 32 bits = 4 bytes.

Q2443DSSSB TGT Computer Science, 25 Jun 2023, Shift 2 (12:30 PM)
What is the name of the .NET collection class that enables an element to be accessed using a unique key?
  1. ALinked list
  2. BHashtable
  3. CDouble linked list
  4. DArray list
Show answerHide answer

Correct answer: (B) Hashtable

Explanation

The .NET Hashtable class stores key/value pairs and lets each element be accessed by its unique key using hashing. ArrayList and linked lists are accessed by index or position.

Q2444DSSSB TGT Computer Science, 25 Jun 2023, Shift 2 (12:30 PM)
Which of the following computer programs provides instructions for computer operations?
  1. ASystem software
  2. BSystem utility
  3. CMagnetic card
  4. DSystem application
Show answerHide answer

Correct answer: (A) System software

Explanation

System software, such as the operating system, provides the instructions that control and manage the computer's basic operations and hardware.

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