DSSSB TGT / PGT · Topic-wise previous year questions
Computer Science Previous Year Questions (page 46)
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 statement(s) is/are correct regarding AND logic gate?
I. The AND gate produces the output value 1 if input A and input B are both equal to 1.
II. The algebraic operation symbol of the AND function is the same as the
multiplication symbol of ordinary arithmetic.
ANeither I nor II
BOnly I
CBoth I and II
DOnly II
Show answerHide answer
Correct answer: (C) Both I and II
Explanation
AND outputs 1 only when both inputs are 1, and it is written with the multiplication symbol (A·B). Both are correct.
Which of the following term of ER model (Entity – Relationship) is corresponding to
the foreign key (or relationship relation) in the relational model of database?
AComposite attribute
BEntity type
C1 : 1 (one to one) or 1 : N (one to many) relationship type
DM : N (many to many) relationship type
Show answerHide answer
Correct answer: (C) 1 : 1 (one to one) or 1 : N (one to many) relationship type
Explanation
In ER-to-relational mapping, a 1:1 or 1:N relationship type corresponds to a foreign key (or a relationship relation) in the relational model.
In relational databases, which of the following integrity constraint is specified between
two relations and is used to maintain the consistency among tuples in the two
relations?
Referential integrity is specified between two relations: a foreign key value must match an existing primary key in the referenced relation, keeping tuples consistent.
New: the process is being created (3). Running: instructions are being executed (2). Ready: waiting to be assigned to a processor (1). So I-3, II-2, III-1.
Which of the following statement is correct regarding unguided media (wireless)?
I. Unguided media transport electromagnetic waves without using a physical
conductor.
II. Unguided signals can travel from the source to destination in ground propagation
way.
AOnly II
BBoth I and II
COnly I
DNeither I nor II
Show answerHide answer
Correct answer: (B) Both I and II
Explanation
Unguided (wireless) media carry electromagnetic waves without a physical conductor, and these signals can travel by ground, sky or line-of-sight propagation. Both are correct.
In SQL, which of the following is correct command for schema evolution, if the
RESTRICT option is chosen than the schema is dropped only if schema has no
element in it?
ADELET E
BUPDAT E
CALT ER
DDROP
Show answerHide answer
Correct answer: (D) DROP
Explanation
DROP SCHEMA name RESTRICT removes the schema only if it has no elements; CASCADE would drop it with all its contents.
Which of the following system call include ‘wait for time’ operation command in
Operating System?
AProcess Control
BDevice Management
CFile Management
DCommunications
Show answerHide answer
Correct answer: (A) Process Control
Explanation
Process control system calls include end/abort, load/execute, create/terminate process, get/set attributes, wait for time, wait/signal event and allocate/free memory.
Web servers serve pages, run server-side scripts and run gateway (CGI) programs. Sharing resources such as files and printers is the job of file or print servers.
Which of the following is NOT a form of business organisation?
APartnership
BJoint Hindu family business
CSole proprietorship
DContracts
Show answerHide answer
Correct answer: (D) Contracts
Explanation
Partnership, sole proprietorship and joint Hindu family business are forms of business organisation. A contract is a legal agreement, not a form of organisation.
Which of the following refers to a character-for-character or bit-for-bit transformation without regard to the linguistic structure of the message?
ABlock
BCipher
CStructure
DUnit
Show answerHide answer
Correct answer: (B) Cipher
Explanation
A cipher transforms the message character by character or bit by bit without regard to its meaning. A code, by contrast, replaces whole words or phrases.
Which of the following departmentalisations might be considered necessary in a business when the items are divided into various categories with vastly varied manufacturing processes for each categ01Y?
AProduction
BProcess
CMatrix
DCustomer
Show answerHide answer
Correct answer: (B) Process
Explanation
Process departmentalisation groups work by the manufacturing process. It suits products whose production steps differ widely.
Relative frequency distribution presents frequencies in terms of ______.
Afractions, percentages and whole numbers
Bdecimals
Cpercentages
Dfractions
Show answerHide answer
Correct answer: (A) fractions, percentages and whole numbers
Explanation
Relative frequency is a class's frequency divided by the total, so it can be shown as a fraction, a decimal or a percentage. The key accepts the broadest option.
ATo demonstrate the intended functionality of the software to stakeholders
BAll of the given options
CTo provide a working model of the software for user testing
DTo test the technical feasibility of the software
Show answerHide answer
Correct answer: (B) All of the given options
Explanation
A prototype demonstrates intended functionality to stakeholders, gives users a working model to test, and checks technical feasibility. So all the given options apply.
Which of the following shell symbols matches a class of characters in filenames in a Linux shell command?
A;
B?
C[]
D*
Show answerHide answer
Correct answer: (C) []
Explanation
Square brackets [ ] match any one character from a set or range, such as [abc] or [0-9]. * matches any string, ? matches any one character and ; separates commands.
The three main parts of central processing unit (CPU processor) are:
Acache, ALU and RAM
Bcontrol unit, RAM and cache
CALU, control unit and registers
DALU, control unit and RAM.
Show answerHide answer
Correct answer: (C) ALU, control unit and registers
Explanation
The CPU has the ALU (arithmetic and logic), the control unit (directs operations) and registers (fast internal storage). RAM and cache sit outside this core.
A surplus occurs when the consumer's willingness to pay for a product is ______ than its market price.
ANone of the given options
Bless than
Cgreater than
Dequal to
Show answerHide answer
Correct answer: (C) greater than
Explanation
Consumer surplus is the difference between what a consumer is willing to pay and what they actually pay. So it arises when willingness to pay is greater than the market price.
Which of the following refers to the economic development achieved essentially through the sustained use and creation of knowledge at the centre of the process?
ATraditional economy
BKnowledge economy
CKnowledge business
DInstitutional economy
Show answerHide answer
Correct answer: (B) Knowledge economy
Explanation
A knowledge economy is one whose growth is driven mainly by creating, spreading and using knowledge.
Which of the following is NOT a feature of object-oriented programming?
AGlobal variables
BFunction overloading
CEncapsulation
DAbstraction
Show answerHide answer
Correct answer: (A) Global variables
Explanation
Encapsulation, abstraction and polymorphism (such as function overloading) are OOP features. Global variables break encapsulation and are not an OOP feature.
What is the difference between a software and a firmware?
AFirmware is a collection of instructions that can be executed by a computer, while software is a type of firmware that is permanently stored on a piece of hardware.
BFirmware is a program that runs on a computer, while software is a program that runs on a mobile device.
CSoftware is a collection of instructions that can be executed by a computer, while firmware is a type of software that is permanently stored on a piece of hardware.
DSoftware is a program that runs on a computer, while firmware is a program that runs on a mobile device.
Show answerHide answer
Correct answer: (C) Software is a collection of instructions that can be executed by a computer, while firmware is a type of software that is permanently stored on a piece of hardware.
Explanation
Software is any set of executable instructions. Firmware is software stored permanently in hardware (ROM or flash) to control a device.
What will be the output of the following java program?
class Example
{
public static void main(String args[ ])
{
int a = 50;
double b = 50.1;
boolean x = (a == b);
System.out.println(x);
}
}
ACompilation error
BFalse
CTrue
D50
Show answerHide answer
Correct answer: (A) Compilation error
Explanation
Note: the answer key gives (A), but the code compiles. In a == b the int is widened to double, and 50.0 == 50.1 is false, so the program prints "false" (option B).
Which of the following is NOT effective managerial communication at a workplace?
ABe reluctant to be a leader at a workplace.
BPromote the concept of morning meetings at a workplace.
CNo communication is complete unless the message is understood clearly by the recipients.
DWorking in a team leads to effective managerial communication.
Show answerHide answer
Correct answer: (A) Be reluctant to be a leader at a workplace.
Explanation
Being reluctant to lead is not part of effective managerial communication. Clear understanding by the receiver, teamwork and regular meetings all support it.
Given n+l data pairs, a unique polynomial of degree passes through n +1 data points.
An
Bn+1 or less
Cn+1
Dn or less
Show answerHide answer
Correct answer: (C) n+1
Explanation
Note: the answer key gives (C), but n+1 distinct data points determine a unique interpolating polynomial of degree at most n, not n+1. So "n or less" is correct.
Which of the following methods is NOT used for data transfer between peripherals and memory?
AProgrammed I/O
BPipelining
CInterrupt Initiated I/O
DDirect Memory Access
Show answerHide answer
Correct answer: (B) Pipelining
Explanation
Pipelining speeds up the CPU by overlapping instruction stages. Programmed I/O, interrupt-initiated I/O and DMA are the three methods of transferring data between peripherals and memory.
Correct answer: (C) curve fitting and linear analysis
Explanation
Interpolation estimates values between known data points by fitting a curve or line to the data, which is why the key links it with curve fitting and linear analysis.
What is the main difference between a stack and a queue data structure?
AA queue is more efficient for inserting and deleting elements at any position, while a stack is more efficient for inserting and deleting elements at the front and back.
BA stack is more efficient for inserting and deleting elements at any position, while a queue is more efficient for inserting and deleting elements at the front and back.
CA stack follows a LIFO (last-in, first-out) order, while a queue follows a FIFO (first-in, first-out) order.
DA queue follows a LIFO (last-in, first-out) order, while a stack follows a FIFO (first-in, first-out) order.
Show answerHide answer
Correct answer: (C) A stack follows a LIFO (last-in, first-out) order, while a queue follows a FIFO (first-in, first-out) order.
Explanation
A stack is LIFO: the last element pushed is the first popped. A queue is FIFO: the first element enqueued is the first dequeued.
What is the difference between a primary key and a foreign key in a database?
AA primary key is used to sort records in a table, while a foreign key is used to filter records in a table.
BA primary key is a unique identifier for each record in a table, while a foreign key is used to link records in one table to records in another table.
CThere is no difference between a primary key and a foreign key.
DA primary key is used to link records in one table to records in another table, while a foreign key is a unique identifier for each record in a table.
Show answerHide answer
Correct answer: (B) A primary key is a unique identifier for each record in a table, while a foreign key is used to link records in one table to records in another table.
Explanation
A primary key uniquely identifies each row in its table. A foreign key refers to a primary key in another table, which links the tables.
For a holding company, all pre-acquisition profits/losses of the subsidiary company are ______, while all post-acquisition profits/losses of the subsidiary company are ______.
Acapital profits/losses, revenue profit/losses
Brevenue profits/losses, capital profits/losses
Crevenue profits, revenue losses
Dcapital profits, capital losses
Show answerHide answer
Correct answer: (A) capital profits/losses, revenue profit/losses
Explanation
The subsidiary's profits or losses earned before acquisition are capital profits/losses for the holding company. Those earned after acquisition are revenue profits/losses.
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.