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.

  • 2444 questions
  • 20 topics
  • Official answer key
  • Free

Practise by topic

Q2251DSSSB TGT Computer Science, 7 Feb 2024, Shift 2 (12:30 PM)
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.
  1. ANeither I nor II
  2. BOnly I
  3. CBoth I and II
  4. 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.

Q2252DSSSB TGT Computer Science, 7 Feb 2024, Shift 2 (12:30 PM)
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?
  1. AComposite attribute
  2. BEntity type
  3. C1 : 1 (one to one) or 1 : N (one to many) relationship type
  4. 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.

Q2253DSSSB TGT Computer Science, 7 Feb 2024, Shift 2 (12:30 PM)
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?
  1. AEntity integrity constraint
  2. BSemantic integrity constraint
  3. CFunctional integrity constraint
  4. DReferential integrity constraint
Show answerHide answer

Correct answer: (D) Referential integrity constraint

Explanation

Referential integrity is specified between two relations: a foreign key value must match an existing primary key in the referenced relation, keeping tuples consistent.

Q2254DSSSB TGT Computer Science, 7 Feb 2024, Shift 2 (12:30 PM)
Match the following Process states of Operating System with their de finitions.
  1. AI-3, II-1, III-2
  2. BI-1, II-3, III-2
  3. CI-1, II-2, III-3
  4. DI-3, II-2, III-1
Show answerHide answer

Correct answer: (D) I-3, II-2, III-1

Explanation

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.

Q2255DSSSB TGT Computer Science, 7 Feb 2024, Shift 2 (12:30 PM)
Which of the following operator is used as concatenation operator in SQL?
  1. A++
  2. B“ ”
  3. C# #
  4. D| |
Show answerHide answer

Correct answer: (D) | |

Explanation

|| is the standard SQL string concatenation operator, e.g. 'ab' || 'cd' gives 'abcd'.

Q2256DSSSB TGT Computer Science, 7 Feb 2024, Shift 2 (12:30 PM)
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.
  1. AOnly II
  2. BBoth I and II
  3. COnly I
  4. 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.

Q2257DSSSB TGT Computer Science, 7 Feb 2024, Shift 2 (12:30 PM)
Which of the following is correct formula for calculating wavelength (λ) of a signal in the data communication?
  1. Aλ = propagation speed + frequency
  2. Bλ = propagation speed × period
  3. Cλ = propagation speed + period
  4. Dλ = propagation speed × frequency
Show answerHide answer

Correct answer: (B) λ = propagation speed × period

Explanation

Wavelength = propagation speed × period, which equals propagation speed / frequency.

Q2258DSSSB TGT Computer Science, 7 Feb 2024, Shift 2 (12:30 PM)
In periodic analog signals, which of the following is NOT a parameter to describe a sine wave in data communication?
  1. AWavelength
  2. BPhase
  3. CFrequency
  4. DPeak amplitude
Show answerHide answer

Correct answer: (A) Wavelength

Explanation

A sine wave is described by peak amplitude, frequency and phase. Wavelength is a derived property, not one of the three basic parameters.

Q2259DSSSB TGT Computer Science, 7 Feb 2024, Shift 2 (12:30 PM)
Which of the following operator of SQL is used in WHERE clause for match a character pattern in database?
  1. ALIKE
  2. BIN
  3. CIS NULL
  4. DOR
Show answerHide answer

Correct answer: (A) LIKE

Explanation

LIKE is used in WHERE for pattern matching with wildcards % and _, e.g. WHERE name LIKE 'A%'.

Q2260DSSSB TGT Computer Science, 7 Feb 2024, Shift 2 (12:30 PM)
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?
  1. ADELET E
  2. BUPDAT E
  3. CALT ER
  4. 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.

Q2261DSSSB TGT Computer Science, 7 Feb 2024, Shift 2 (12:30 PM)
______ files are spreadsheet files in a text format of data when cell contents are separated by a character for example a comma or semi-colon.
  1. AComma-Separated- Values
  2. BSemi-colon Separated Values
  3. CColumn and Row Headers
  4. DCVS
Show answerHide answer

Correct answer: (A) Comma-Separated- Values

Explanation

CSV (Comma-Separated Values) files store spreadsheet data as plain text, with cell values separated by a delimiter such as a comma or semicolon.

Q2262DSSSB TGT Computer Science, 7 Feb 2024, Shift 2 (12:30 PM)
Unicode in the programming language can be represented using which of the bit format standards in computer science?
  1. A8-bit
  2. B17-bit
  3. C65-bit
  4. D9-bit
Show answerHide answer

Correct answer: (A) 8-bit

Explanation

Unicode can be encoded with 8-bit code units, as in UTF-8 (UTF-16 and UTF-32 also exist). 17, 65 and 9-bit formats are not standards.

Q2263DSSSB TGT Computer Science, 7 Feb 2024, Shift 2 (12:30 PM)
Which of the following type of guided transmission media are categorized by their Radio Government (RG) ratings in computer networking?
  1. AFiber-Optic Cable
  2. BCoaxial Cable
  3. CMetallic Cable
  4. DTwisted-Pair Cable
Show answerHide answer

Correct answer: (B) Coaxial Cable

Explanation

Coaxial cables are classified by Radio Government (RG) ratings such as RG-59 and RG-58, which define their physical specifications.

Q2264DSSSB TGT Computer Science, 7 Feb 2024, Shift 2 (12:30 PM)
Which of the following system call include ‘wait for time’ operation command in Operating System?
  1. AProcess Control
  2. BDevice Management
  3. CFile Management
  4. 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.

Q2265DSSSB TGT Computer Science, 25 Jun 2023, Shift 3 (4:30 PM)
______ are those customs and traditions which guide accountants while preparing the financial statements.
  1. AAccounting Schemes
  2. BAccounting Conventions
  3. CAccounting Policies
  4. DAccounting Regularities
Show answerHide answer

Correct answer: (B) Accounting Conventions

Explanation

Accounting conventions are customs and traditions followed by accountants, such as consistency, conservatism, materiality and full disclosure.

Q2266DSSSB TGT Computer Science, 25 Jun 2023, Shift 3 (4:30 PM)
Which service is NOT provided by web servers?
  1. AServing web pages
  2. BResource sharing
  3. CServer side scripting
  4. DRunning gateway programs
Show answerHide answer

Correct answer: (B) Resource sharing

Explanation

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.

Q2267DSSSB TGT Computer Science, 25 Jun 2023, Shift 3 (4:30 PM)
Which of the following is NOT a form of business organisation?
  1. APartnership
  2. BJoint Hindu family business
  3. CSole proprietorship
  4. 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.

Q2268DSSSB TGT Computer Science, 25 Jun 2023, Shift 3 (4:30 PM)
Which of the following refers to a character-for-character or bit-for-bit transformation without regard to the linguistic structure of the message?
  1. ABlock
  2. BCipher
  3. CStructure
  4. 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.

Q2269DSSSB TGT Computer Science, 25 Jun 2023, Shift 3 (4:30 PM)
Which of the following industries is engaged in supplying commodities that are extracted or raised from the earth, sea and air?
  1. AGenetic
  2. BManufacturing
  3. CConstruction
  4. DExtractive
Show answerHide answer

Correct answer: (D) Extractive

Explanation

Extractive industries take goods from nature, as in mining, fishing, hunting and lumbering.

Q2270DSSSB TGT Computer Science, 25 Jun 2023, Shift 3 (4:30 PM)
What is the difference between a 32-bit operating system and a 64-bit operating system?
  1. AA 64-bit operating system is faster than a 32-bit operating system.
  2. BA 64-bit operating system can only support up to 4 GB of RAM, while a 32-bit operating system can support more than 4 GB of RAM.
  3. CA 32-bit operating system is faster than a 64-bit operating system.
  4. DA 32-bit operating system can only support up to 4 GB of RAM, while a 64-bit operating system can support more than 4 GB of RAM.
Show answerHide answer

Correct answer: (D) A 32-bit operating system can only support up to 4 GB of RAM, while a 64-bit operating system can support more than 4 GB of RAM.

Explanation

A 32-bit OS can address at most 2³² bytes = 4 GB of RAM, while a 64-bit OS can address far more.

Q2271DSSSB TGT Computer Science, 25 Jun 2023, Shift 3 (4:30 PM)
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?
  1. AProduction
  2. BProcess
  3. CMatrix
  4. 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.

Q2272DSSSB TGT Computer Science, 25 Jun 2023, Shift 3 (4:30 PM)
Relative frequency distribution presents frequencies in terms of ______.
  1. Afractions, percentages and whole numbers
  2. Bdecimals
  3. Cpercentages
  4. 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.

Q2273DSSSB TGT Computer Science, 25 Jun 2023, Shift 3 (4:30 PM)
The ______ namespace defines classes and interfaces used in constructing and rendering elements on a web form.
  1. ASystem.Web.UI
  2. BSystem.Security
  3. CSystem.Activities
  4. DSystem.Data
Show answerHide answer

Correct answer: (A) System.Web.UI

Explanation

System.Web.UI holds the classes and interfaces (Page, Control and so on) used to build and render ASP.NET web form elements.

Q2274DSSSB TGT Computer Science, 25 Jun 2023, Shift 3 (4:30 PM)
The time complexity of a quick soft algorithm which makes use of a median, found by an O(n) algorithm, as pivot element is:
  1. AO(n³)
  2. BO(n log n)
  3. CO(n²)
  4. DO(n)
Show answerHide answer

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

Explanation

If the median is used as pivot, every split is exactly balanced: T(n) = 2T(n/2) + O(n), which gives O(n log n) even in the worst case.

Q2275DSSSB TGT Computer Science, 25 Jun 2023, Shift 3 (4:30 PM)
What is the purpose of a software prototype?
  1. ATo demonstrate the intended functionality of the software to stakeholders
  2. BAll of the given options
  3. CTo provide a working model of the software for user testing
  4. 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.

Q2276DSSSB TGT Computer Science, 25 Jun 2023, Shift 3 (4:30 PM)
Which of the following shell symbols matches a class of characters in filenames in a Linux shell command?
  1. A;
  2. B?
  3. C[]
  4. 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.

Q2277DSSSB TGT Computer Science, 25 Jun 2023, Shift 3 (4:30 PM)
What is the purpose of using a CSS framework in front-end development?
  1. ATo provide a set of pre-designed UI components and styles for faster and consistent development
  2. BTo add style and layout to a web page using CSS
  3. CTo simplify and extend the capabilities of CSS
  4. DTo add interactivity to a web page using JavaScript
Show answerHide answer

Correct answer: (A) To provide a set of pre-designed UI components and styles for faster and consistent development

Explanation

A CSS framework such as Bootstrap or Tailwind gives ready-made UI components, grids and styles, which makes development faster and more consistent.

Q2278DSSSB TGT Computer Science, 25 Jun 2023, Shift 3 (4:30 PM)
What is the main advantage of using linked lists over arrays in data structures?
  1. ALinked lists have faster access time than arrays for large data sets.
  2. BLinked lists use less memory than arrays.
  3. CLinked lists can be resized more easily than arrays.
  4. DLinked lists are more efficient for inserting and deleting elements at any position.
Show answerHide answer

Correct answer: (D) Linked lists are more efficient for inserting and deleting elements at any position.

Explanation

Inserting or deleting in a linked list only changes pointers (O(1) once the position is known). In an array, elements have to be shifted.

Q2279DSSSB TGT Computer Science, 25 Jun 2023, Shift 3 (4:30 PM)
The three main parts of central processing unit (CPU processor) are:
  1. Acache, ALU and RAM
  2. Bcontrol unit, RAM and cache
  3. CALU, control unit and registers
  4. 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.

Q2280DSSSB TGT Computer Science, 25 Jun 2023, Shift 3 (4:30 PM)
A surplus occurs when the consumer's willingness to pay for a product is ______ than its market price.
  1. ANone of the given options
  2. Bless than
  3. Cgreater than
  4. 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.

Q2281DSSSB TGT Computer Science, 25 Jun 2023, Shift 3 (4:30 PM)
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?
  1. ATraditional economy
  2. BKnowledge economy
  3. CKnowledge business
  4. 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.

Q2282DSSSB TGT Computer Science, 25 Jun 2023, Shift 3 (4:30 PM)
What is Agile software development?
  1. AA methodology for software development that emphasises creativity and innovation
  2. BA methodology for software development that emphasises flexibility and adaptability to change
  3. CA methodology for software development that emphasises strict planning and control
  4. DA methodology for software development that emphasises speed and efficiency
Show answerHide answer

Correct answer: (B) A methodology for software development that emphasises flexibility and adaptability to change

Explanation

Agile development works in short iterations with continuous feedback, so it emphasises flexibility and adapting to changing requirements.

Q2283DSSSB TGT Computer Science, 25 Jun 2023, Shift 3 (4:30 PM)
Which of the following is NOT a feature of object-oriented programming?
  1. AGlobal variables
  2. BFunction overloading
  3. CEncapsulation
  4. 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.

Q2284DSSSB TGT Computer Science, 25 Jun 2023, Shift 3 (4:30 PM)
What is the difference between a software and a firmware?
  1. 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.
  2. BFirmware is a program that runs on a computer, while software is a program that runs on a mobile device.
  3. 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.
  4. 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.

Q2285DSSSB TGT Computer Science, 25 Jun 2023, Shift 3 (4:30 PM)
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); } }
  1. ACompilation error
  2. BFalse
  3. CTrue
  4. 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).

Q2286DSSSB TGT Computer Science, 25 Jun 2023, Shift 3 (4:30 PM)
Which of the following is NOT effective managerial communication at a workplace?
  1. ABe reluctant to be a leader at a workplace.
  2. BPromote the concept of morning meetings at a workplace.
  3. CNo communication is complete unless the message is understood clearly by the recipients.
  4. 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.

Q2287DSSSB TGT Computer Science, 25 Jun 2023, Shift 3 (4:30 PM)
4 MB is equal to how much KB?
  1. A1024
  2. B2048
  3. C4096
  4. D8192
Show answerHide answer

Correct answer: (C) 4096

Explanation

1 MB = 1024 KB, so 4 MB = 4 × 1024 = 4096 KB.

Q2288DSSSB TGT Computer Science, 25 Jun 2023, Shift 3 (4:30 PM)
Which object in ASP.NET provides a global storage mechanism for state data that needs to be accessible to all pages in a given web application?
  1. ASession
  2. BView state
  3. CApplication
  4. DNone of the given options
Show answerHide answer

Correct answer: (C) Application

Explanation

The Application object stores state shared by all users and pages of an ASP.NET application. Session state is per user, and ViewState is per page.

Q2289DSSSB TGT Computer Science, 25 Jun 2023, Shift 3 (4:30 PM)
______ is a specialised set of techniques for modelling change over time and is a data reduction technique.
  1. ALoss analysis
  2. BGrowth curve analysis
  3. CLoss analysis and Speed analysis both
  4. DSpeed analysis
Show answerHide answer

Correct answer: (B) Growth curve analysis

Explanation

Growth curve analysis models how a variable changes over time, summarising many repeated observations with a few curve parameters (data reduction).

Q2290DSSSB TGT Computer Science, 25 Jun 2023, Shift 3 (4:30 PM)
Given n+l data pairs, a unique polynomial of degree passes through n +1 data points.
  1. An
  2. Bn+1 or less
  3. Cn+1
  4. 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.

Q2291DSSSB TGT Computer Science, 25 Jun 2023, Shift 3 (4:30 PM)
The excess of Revenue Income over expense is called ______, and it could be calculated for each transaction or for business as a whole.
  1. Atransaction
  2. Bprofit
  3. Casset
  4. Dgoods
Show answerHide answer

Correct answer: (B) profit

Explanation

Profit is the excess of revenue over expenses. It can be worked out for a single transaction or for the whole business over a period.

Q2292DSSSB TGT Computer Science, 25 Jun 2023, Shift 3 (4:30 PM)
In MIS design, the sources of information may be categorised as ______ and ______.
  1. Apersonal, organisational
  2. Binternal, external
  3. Cuseful, unuseful
  4. Dconstructive, destructive
Show answerHide answer

Correct answer: (B) internal, external

Explanation

In MIS design, information comes from internal sources (company records and operations) and external sources (market, government, competitors).

Q2293DSSSB TGT Computer Science, 25 Jun 2023, Shift 3 (4:30 PM)
Which of the following methods is NOT used for data transfer between peripherals and memory?
  1. AProgrammed I/O
  2. BPipelining
  3. CInterrupt Initiated I/O
  4. 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.

Q2294DSSSB TGT Computer Science, 25 Jun 2023, Shift 3 (4:30 PM)
______ mainly deals with buying and selling, especially on a large scale.
  1. AShopping
  2. BCommerce
  3. CMarketing
  4. DRetailing
Show answerHide answer

Correct answer: (B) Commerce

Explanation

Commerce covers buying and selling goods on a large scale, together with the activities that support it, such as transport, banking and insurance.

Q2295DSSSB TGT Computer Science, 25 Jun 2023, Shift 3 (4:30 PM)
______ contains the local system configuration files for the host computer.
  1. A/bin
  2. B/etc
  3. C/dev
  4. D/boot
Show answerHide answer

Correct answer: (B) /etc

Explanation

/etc holds the system-wide configuration files, for example /etc/passwd and /etc/fstab. /bin holds binaries, /dev device files and /boot boot files.

Q2296DSSSB TGT Computer Science, 25 Jun 2023, Shift 3 (4:30 PM)
Interpolation is carried out using data from:
  1. Alinear interpolation
  2. Bcurve fitting and regression analysis
  3. Ccurve fitting and linear analysis
  4. Dregression analysis
Show answerHide answer

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.

Q2297DSSSB TGT Computer Science, 25 Jun 2023, Shift 3 (4:30 PM)
What is the main difference between a stack and a queue data structure?
  1. 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.
  2. 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.
  3. CA stack follows a LIFO (last-in, first-out) order, while a queue follows a FIFO (first-in, first-out) order.
  4. 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.

Q2298DSSSB TGT Computer Science, 25 Jun 2023, Shift 3 (4:30 PM)
Which operators are known as ternary operator?
  1. A?,:
  2. BNone of the given options
  3. C?, ;;
  4. D::, ?.
Show answerHide answer

Correct answer: (A) ?,:

Explanation

The conditional operator ?: is the ternary operator because it takes three operands: condition ? expr1 : expr2.

Q2299DSSSB TGT Computer Science, 25 Jun 2023, Shift 3 (4:30 PM)
What is the difference between a primary key and a foreign key in a database?
  1. AA primary key is used to sort records in a table, while a foreign key is used to filter records in a table.
  2. 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.
  3. CThere is no difference between a primary key and a foreign key.
  4. 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.

Q2300DSSSB TGT Computer Science, 25 Jun 2023, Shift 3 (4:30 PM)
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 ______.
  1. Acapital profits/losses, revenue profit/losses
  2. Brevenue profits/losses, capital profits/losses
  3. Crevenue profits, revenue losses
  4. 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.

More DSSSB TGT / PGT subjects