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.
is the address of the current tunnel endpoint for MN that can be chosen via DHCP.
AFA
BCOA
CHA
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.
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.
Which of the following are the most essential components a computer system uses for communication over internet?
AApplications and mouse
BMonitor and keyboard
CNIC and TCP/IP
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.
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.
Which of the following accounts is/are prepared for net profit?
AProfit and loss account
BTrading account, profit and loss account and balance sheet
CTrading account
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.
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.
Communication between an application program and a database server occur via:
AODBC OR JDBC
BAPI
Cweb server
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.
In C, variable list arguments are denoted by the standard header:
A<unistd.h>
B<string.h>
C<stdio.h >
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).
Identify the generic probability density function that corresponds with discrete random variables.
ACumulative distribution
BGaussian distribution
CPoisson distribution
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.
The ______ interpolation method is used in probability theory and statistics, and the Gaussian process is one example.
Alinear
Bpolynomial
Cspline
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.
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.
Which of the following is NOT a network layer function?
AError control and flow control
BIntra-routing
CRouting
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.
Which of the following 4-byte IP addresses are used for internet protocol layer?
ANetwork address and port address
BNetwork address and MAC address
CNetwork address and host address
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.
Communication between end systems is encrypted using a key that is commonly referred to as a:
Asingle key
Bsession key
Cprivate key
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.
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.
Which of the following business structures has limited liability to its members?
APartnership
BCooperative society
CCompany
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.
According to business economics, the growth of an existing product is used to estimate the demand for a new product using:
Agrowth curve approach
Bvicarious approach
Csubstitute approach
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.
Identify the descending order of strict access protection.
APublic, protected, private, package
BPrivate, protected, package, public
CPublic, private, protected, package
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.
The process of verifying a user's identity is called:
Aintegrity
Bauthentication
Cvalidation
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.
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.
______ are a database applications' universal front end that connects to the back end via the internet.
AWeb browsers
BWeb server
CSoftware programs
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.
Which command is used to remove a directory in Linux?
ARm
BDelete
CErase
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.
Which layer is responsible for sending data as a bit stream?
APresentation layer
BNetwork layer
CPhysical layer
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.
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.
The construction of computer-generated simulations that simulate real-world activities using interactive graphics software and hardware is called:
Avirtual reality systems
Bhybrid systems
Cgenetic algorithms
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.
In building software, should preferably be lower and is preferred to be on the higher side.
Ainheritance from parent class, dependency with peer classes
Baggregation with peer components, composition among classes
Cnone of the given answer
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.
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.
Which storage media supports only sequential access?
AHard disk
BCD
CMagnetic tape
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.
What feature of OOP allows an instance of a class to take on many forms?
AOperator overriding
BMultiple inheritance
CNested class
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.
What is an endpoint of an inter-process communication?
ATunnel
BPut
CSocket
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.
Which access modifier can be used to access members in deriving class?
AVoid
BProtected
CPrivate
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.
What is the name of the .NET collection class that enables an element to be accessed using a unique key?
ALinked list
BHashtable
CDouble linked list
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.
Which of the following computer programs provides instructions for computer operations?
ASystem software
BSystem utility
CMagnetic card
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.