BPSC TRE · Topic-wise previous year questions

Computer Science Previous Year Questions (page 2)

313 Computer Science questions asked in BPSC TRE previous year papers, each with the correct answer and explanation. Read them free on UTpaper, or attempt the full papers as timed online tests.

  • 313 questions
  • 9 topics
  • Official answer key
  • Free

Practise by topic

Q51BPSC TRE 2.0 (2023) Computer Class 9-10
Which of the following is not a feature of DBMS?
  1. AMinimum duplication and redundancy of data
  2. BSingle-user access only
  3. CSupport ACID property
  4. DMore than one of the above
  5. ENone of the above
Show answerHide answer

Correct answer: (B) Single-user access only

Explanation

A DBMS supports many users at once, so 'single-user access only' is not a feature.

Q52BPSC TRE 2.0 (2023) Computer Class 9-10
Which of the following is not a function of the database?
  1. AManipulating data
  2. BSecurity for stored data
  3. CAnalysing code
  4. DMore than one of the above
  5. ENone of the above
Show answerHide answer

Correct answer: (C) Analysing code

Explanation

Databases manipulate and secure data; analysing code is not a database function.

Q53BPSC TRE 2.0 (2023) Computer Class 9-10
What is information about data called?
  1. ATeradata
  2. BMetadata
  3. CRelations
  4. DMore than one of the above
  5. ENone of the above
Show answerHide answer

Correct answer: (B) Metadata

Explanation

Data that describes other data is called metadata.

Q54BPSC TRE 2.0 (2023) Computer Class 9-10
The DBMS acts as an interface between _____ and _____ of an enterprise-class system.
  1. Adata, the DBMS
  2. Bdatabase application, the database
  3. Cthe user, the software
  4. DMore than one of the above
  5. ENone of the above
Show answerHide answer

Correct answer: (B) database application, the database

Explanation

A DBMS sits between the database applications (users' programs) and the stored database.

Q55BPSC TRE 2.0 (2023) Computer Class 9-10
_____ is a set of one or more attribute(s) taken collectively to uniquely identify a record.
  1. APrimary key
  2. BForeign key
  3. CSuperkey
  4. DMore than one of the above
  5. ENone of the above
Show answerHide answer

Correct answer: (C) Superkey

Explanation

A superkey is any set of attributes that together uniquely identify a record.

Q56BPSC TRE 2.0 (2023) Computer Class 9-10
Which of the following commands is correct to delete the values in the relation teaches?
  1. ADelete from teaches;
  2. BDelete from teaches where Id='Null';
  3. CRemove table teaches;
  4. DMore than one of the above
  5. ENone of the above
Show answerHide answer

Correct answer: (A) Delete from teaches;

Explanation

'DELETE FROM teaches;' removes all rows (values) of the relation; the other forms are wrong or remove different things.

Q57BPSC TRE 2.0 (2023) Computer Class 9-10
The top level of the hierarchy consists of _____ each of which can contain _____.
  1. Aschemas, catalogs
  2. Bschemas, environment
  3. Ccatalogs, schemas
  4. DMore than one of the above
  5. ENone of the above
Show answerHide answer

Correct answer: (C) catalogs, schemas

Explanation

In the SQL hierarchy, the top level is made of catalogs, each of which can contain schemas.

Q58BPSC TRE 2.0 (2023) Computer Class 9-10
The user IDs can be added or removed using which of the following fixed roles?
  1. Adb_sysadmin
  2. Bdb_accessadmin
  3. Cdb_securityadmin
  4. DMore than one of the above
  5. ENone of the above
Show answerHide answer

Correct answer: (B) db_accessadmin

Explanation

In SQL Server the db_accessadmin role can add or remove user IDs (access) for a database.

Q59BPSC TRE 2.0 (2023) Computer Class 9-10
The traditional storage of data organized by the customer, stored in separate folders in filing cabinets is an example of
  1. Arelational database management system
  2. Bnetwork database management system
  3. Chierarchical database management system
  4. DMore than one of the above
  5. ENone of the above
Show answerHide answer

Correct answer: (C) hierarchical database management system

Explanation

Folders inside filing cabinets form a tree of parent and child containers, which is the hierarchical model.

Q60BPSC TRE 2.0 (2023) Computer Class 9-10
After groups have been established, SQL applies predicates in the _____ clause, allowing aggregate functions to be used.
  1. AHAVING
  2. BGROUP BY
  3. CWITH
  4. DMore than one of the above
  5. ENone of the above
Show answerHide answer

Correct answer: (A) HAVING

Explanation

The HAVING clause filters groups after GROUP BY and may use aggregate functions.

Q61BPSC TRE 2.0 (2023) Computer Class 9-10
Which of the following is not the utility of DBMS? I. Backup II. Loading III. Process organization IV. File organization
  1. AI, II and IV only
  2. BI, II and III only
  3. CI, III and IV only
  4. DMore than one of the above
  5. ENone of the above
Show answerHide answer

Correct answer: (E) None of the above

Explanation

Only III (process organization) is not a DBMS utility, but none of the options A-C lists exactly that, so the answer is None of the above.

Q62BPSC TRE 2.0 (2023) Computer Class 9-10
For designing a normal RDBMS, which of the following normal forms is considered adequate?
  1. A4NF
  2. B3NF
  3. C2NF
  4. DMore than one of the above
  5. ENone of the above
Show answerHide answer

Correct answer: (B) 3NF

Explanation

Third normal form (3NF) is generally considered adequate for a normal relational design.

Q63BPSC TRE 2.0 (2023) Computer Class 9-10
What happens if a piece of data is stored in two places in the db?
  1. AStorage space is wasted and changing the data in one spot will cause data inconsistency
  2. BChanging the data in one spot will cause data inconsistency
  3. CStorage space is wasted
  4. DMore than one of the above
  5. ENone of the above
Show answerHide answer

Correct answer: (A) Storage space is wasted and changing the data in one spot will cause data inconsistency

Explanation

Duplicate storage wastes space and, if one copy is changed, makes the copies inconsistent; option A states both.

Q64BPSC TRE 2.0 (2023) Computer Class 9-10
Which data type can store unstructured data in a column?
  1. ARAW
  2. BNumeric
  3. CVARCHAR
  4. DMore than one of the above
  5. ENone of the above
Show answerHide answer

Correct answer: (A) RAW

Explanation

RAW stores unstructured binary data in a column; Numeric and VARCHAR hold structured numbers and text.

Q65BPSC TRE 2.0 (2023) Computer Class 9-10
The logic gate that provides high output for same input is
  1. ANOT
  2. BX-NOR
  3. CXOR
  4. DMore than one of the above
  5. ENone of the above
Show answerHide answer

Correct answer: (B) X-NOR

Explanation

XNOR gives output 1 when both inputs are equal.

Q66BPSC TRE 2.0 (2023) Computer Class 9-10
Communication between a computer and a keyboard involves _____ transmission.
  1. Asimplex
  2. Bhalf-duplex
  3. Cfull-duplex
  4. DMore than one of the above
  5. ENone of the above
Show answerHide answer

Correct answer: (A) simplex

Explanation

Data flows only from the keyboard to the computer, which is simplex transmission.

Q67BPSC TRE 2.0 (2023) Computer Class 9-10
The simplified form of the Boolean expression (X + Y + XY)(X + Z) is
  1. AXY + YZ
  2. BX + YZ
  3. CXZ + Y
  4. DMore than one of the above
  5. ENone of the above
Show answerHide answer

Correct answer: (B) X + YZ

Explanation

X + Y + XY = X + Y, and (X + Y)(X + Z) = X + YZ by the distributive law.

Q68BPSC TRE 2.0 (2023) Computer Class 9-10
The dual of a Boolean expression is obtained by
  1. Ainterchanging all 0s and 1s
  2. Binterchanging all 0s and 1s, all + and '.' signs
  3. Cinterchanging all 0s and 1s, all + and '.' signs and complementing all the variables
  4. DMore than one of the above
  5. ENone of the above
Show answerHide answer

Correct answer: (B) interchanging all 0s and 1s, all + and '.' signs

Explanation

The dual is formed by swapping 0 and 1 and also swapping + with '.', without complementing the variables.

Q69BPSC TRE 2.0 (2023) Computer Class 9-10
Wireless transmission of signals can be done via
  1. Aradio waves
  2. Bmicrowaves
  3. Cinfrared
  4. DMore than one of the above
  5. ENone of the above
Show answerHide answer

Correct answer: (D) More than one of the above

Explanation

Radio waves, microwaves and infrared are all wireless media, so more than one option is correct.

Q70BPSC TRE 2.0 (2023) Computer Class 9-10
Sniffers can be prevented by using
  1. Awired environment
  2. Bethernet LAN
  3. Cswitched network
  4. DMore than one of the above
  5. ENone of the above
Show answerHide answer

Correct answer: (C) switched network

Explanation

A switched network sends frames only to the intended port, which makes packet sniffing much harder than on a shared medium.

Q71BPSC TRE 2.0 (2023) Computer Class 9-10
In TDM, slots are further divided into
  1. Aframes
  2. Bpackets
  3. Cbits
  4. DMore than one of the above
  5. ENone of the above
Show answerHide answer

Correct answer: (A) frames

Explanation

In time-division multiplexing each slot is further divided into frames.

Q72BPSC TRE 2.0 (2023) Computer Class 9-10
Transmission control protocol
  1. Ais a connection-oriented protocol
  2. Buses a three-way handshake to establish a connection
  3. Creceives data from application as a single stream
  4. DMore than one of the above
  5. ENone of the above
Show answerHide answer

Correct answer: (D) More than one of the above

Explanation

TCP is connection-oriented, sets up a connection with a three-way handshake and takes data from the application as one stream, so A, B and C all hold.

Q73BPSC TRE 2.0 (2023) Computer Class 9-10
An endpoint of an inter-process communication flow across a computer network is called
  1. Asocket
  2. Bpipe
  3. Cport
  4. DMore than one of the above
  5. ENone of the above
Show answerHide answer

Correct answer: (A) socket

Explanation

The endpoint of a communication flow between processes over a network is a socket.

Q74BPSC TRE 2.0 (2023) Computer Class 9-10
Which transmission media provides the highest transmission speed in a network?
  1. ACoaxial cable
  2. BTwisted-pair cable
  3. COptical fiber
  4. DMore than one of the above
  5. ENone of the above
Show answerHide answer

Correct answer: (C) Optical fiber

Explanation

Optical fibre carries data as light and offers the highest speed and bandwidth of these media.

Q75BPSC TRE 3.0 (2024) Computer Science Class 11-12
Digital circuit can be made by the repeated use of the _________.
  1. ANAND gate
  2. BNOR gate
  3. CAND gate
  4. DMore than one of the above
  5. ENone of the above
Show answerHide answer

Correct answer: (D) More than one of the above

Explanation

NAND and NOR are both universal gates, so any digital circuit can be built by repeatedly using either one. AND alone is not universal.

Q76BPSC TRE 3.0 (2024) Computer Science Class 11-12
Which of the following is correct for Digital Circuits?
  1. AThey use analog signals for communication
  2. BThey process information using continuous voltage levels
  3. CThey are not suitable for high speed operations
  4. DMore than one of the above
  5. ENone of the above
Show answerHide answer

Correct answer: (E) None of the above

Explanation

None of the statements fit digital circuits: they use discrete (0/1) signals rather than analog or continuous voltage levels, and they are well suited to high-speed operation.

Q77BPSC TRE 3.0 (2024) Computer Science Class 11-12
Which of the following is an example of a digital Electronic?
  1. AComputers
  2. BMobile phones
  3. CDigital cameras
  4. DMore than one of the above
  5. ENone of the above
Show answerHide answer

Correct answer: (D) More than one of the above

Explanation

Computers, mobile phones and digital cameras all process information as digital (binary) signals, so more than one option is correct.

Q78BPSC TRE 3.0 (2024) Computer Science Class 11-12
An OR gate has 4 inputs. The number of words in truth table will be _______.
  1. A4
  2. B8
  3. C16
  4. DMore than one of the above
  5. ENone of the above
Show answerHide answer

Correct answer: (C) 16

Explanation

A truth table with n inputs has 2ⁿ rows, so 4 inputs give 2⁴ = 16 rows.

Q79BPSC TRE 3.0 (2024) Computer Science Class 11-12
When does a negative level triggered flip-flop in Digital Electronics changes its state?
  1. AWhen the clock is Negative
  2. BWhen the clock is Positive
  3. CWhen the inputs are all zero
  4. DMore than one of the above
  5. ENone of the above
Show answerHide answer

Correct answer: (A) When the clock is Negative

Explanation

A negative (low) level-triggered flip-flop responds to its inputs and can change state only while the clock is at its low (0) level.

Q80BPSC TRE 3.0 (2024) Computer Science Class 11-12
What is the result of the operation 1010 AND 1100 in binary?
  1. A1000
  2. B1110
  3. C100
  4. DMore than one of the above
  5. ENone of the above
Show answerHide answer

Correct answer: (A) 1000

Explanation

Bitwise AND gives 1 only where both bits are 1: 1010 AND 1100 = 1000.

Q81BPSC TRE 3.0 (2024) Computer Science Class 11-12
In a half-adder circuit, what are the outputs?
  1. ASum and Carry
  2. BDifference and Borrow
  3. CSum and Difference
  4. DMore than one of the above
  5. ENone of the above
Show answerHide answer

Correct answer: (A) Sum and Carry

Explanation

A half adder adds two bits and outputs a Sum (A XOR B) and a Carry (A AND B). Difference and Borrow are the outputs of a half subtractor.

Q82BPSC TRE 3.0 (2024) Computer Science Class 11-12
Which of the following is the type of Read Only Memory (ROM)?
  1. APROM
  2. BEPROM
  3. CMROM
  4. DMore than one of the above
  5. ENone of the above
Show answerHide answer

Correct answer: (D) More than one of the above

Explanation

PROM, EPROM and MROM (mask ROM) are all types of read-only memory, so more than one option is correct.

Q83BPSC TRE 3.0 (2024) Computer Science Class 11-12
What is a PLA?
  1. AProgrammable Logic Application
  2. BProgrammable Logic Array
  3. CProgrammable Logic Architecture
  4. DMore than one of the above
  5. ENone of the above
Show answerHide answer

Correct answer: (B) Programmable Logic Array

Explanation

PLA stands for Programmable Logic Array, a device with a programmable AND array followed by a programmable OR array.

Q84BPSC TRE 3.0 (2024) Computer Science Class 11-12
How many select lines are required for an 8-to-1 multiplexer?
  1. A2
  2. B3
  3. C4
  4. DMore than one of the above
  5. ENone of the above
Show answerHide answer

Correct answer: (B) 3

Explanation

An 8-to-1 multiplexer needs n select lines where 2ⁿ = 8, so n = 3.

Q85BPSC TRE 3.0 (2024) Computer Science Class 11-12
Convert the decimal number 1234 to binary, octal, and hexadecimal. Which of the following options correctly represents these conversions?
  1. ABinary: 10011010010, Octal: 2322, Hexadecimal: 4D2
  2. BBinary: 11001110010, Octal: 1712, Hexadecimal: 72A
  3. CBinary: 11100110010, Octal: 1642, Hexadecimal: 3CD
  4. DMore than one of the above
  5. ENone of the above
Show answerHide answer

Correct answer: (A) Binary: 10011010010, Octal: 2322, Hexadecimal: 4D2

Explanation

1234 = 4×256 + 13×16 + 2, so it is 4D2 in hex. In octal, 2×512 + 3×64 + 2×8 + 2 = 1234 gives 2322, and binary 100 1101 0010 is 10011010010.

Q86BPSC TRE 3.0 (2024) Computer Science Class 11-12
What is Booth’s algorithm used for?
  1. ABinary to decimal conversion
  2. BDecimal to binary conversion
  3. CBinary multiplication
  4. DMore than one of the above
  5. ENone of the above
Show answerHide answer

Correct answer: (C) Binary multiplication

Explanation

Booth's algorithm multiplies signed binary numbers in two's complement form.

Q87BPSC TRE 3.0 (2024) Computer Science Class 11-12
Which of the following is error detection code used in digital logic?
  1. AHamming code
  2. BCyclic redundancy check (CRC)
  3. CChecksum
  4. DMore than one of the above
  5. ENone of the above
Show answerHide answer

Correct answer: (D) More than one of the above

Explanation

Hamming code, CRC and checksum are all codes for detecting errors (Hamming can also correct them), so more than one option is correct.

Q88BPSC TRE 3.0 (2024) Computer Science Class 11-12
When performing BCD addition, what is the maximum value that can be represented in a single BCD digit?
  1. A2
  2. B10
  3. C15
  4. DMore than one of the above
  5. ENone of the above
Show answerHide answer

Correct answer: (E) None of the above

Explanation

A BCD digit uses 4 bits but only codes 0 to 9, so its maximum value is 9. That is not among the options; any sum above 9 needs +6 correction.

Q89BPSC TRE 3.0 (2024) Computer Science Class 11-12
Convert the binary number 1011.1101 to its decimal equivalent. Which of the following is the correct decimal value?
  1. A11.75
  2. B12.125
  3. C13.5
  4. DMore than one of the above
  5. ENone of the above
Show answerHide answer

Correct answer: (E) None of the above

Explanation

1011 = 11, and .1101 = 0.5 + 0.25 + 0 + 0.0625 = 0.8125, so the value is 11.8125. None of the listed values matches.

Q90BPSC TRE 3.0 (2024) Computer Science Class 11-12
What is De Morgan’s theorem used for in digital logic?
  1. ASimplifying Boolean expressions
  2. BImplementing NAND gates
  3. CPerforming binary addition
  4. DMore than one of the above
  5. ENone of the above
Show answerHide answer

Correct answer: (D) More than one of the above

Explanation

De Morgan's theorems, (AB)' = A' + B' and (A + B)' = A'B', are used to simplify Boolean expressions and to turn circuits into NAND/NOR-only forms, so both A and B are correct.

Q91BPSC TRE 3.0 (2024) Computer Science Class 11-12
What is the purpose of the “don’t care” condition in digital logic?
  1. ATo indicate that the value of a variable does not affect the output
  2. BTo prioritize certain inputs over others
  3. CTo ensure that all possible input combinations are covered in truth tables
  4. DMore than one of the above
  5. ENone of the above
Show answerHide answer

Correct answer: (A) To indicate that the value of a variable does not affect the output

Explanation

A don't-care condition marks an input combination whose output value does not matter, so it can be taken as 0 or 1 to simplify a K-map.

Q92BPSC TRE 3.0 (2024) Computer Science Class 11-12
Which of the following data structures stores elements in a non-linear relationship?
  1. AStack
  2. BQueue
  3. CArray
  4. DMore than one of the above
  5. ENone of the above
Show answerHide answer

Correct answer: (E) None of the above

Explanation

Stack, queue and array are all linear data structures. Trees and graphs are non-linear, and neither is listed.

Q93BPSC TRE 3.0 (2024) Computer Science Class 11-12
Which data structure is used for efficient searching, insertion, and deletion of elements?
  1. AStack
  2. BQueue
  3. CHash Table
  4. DMore than one of the above
  5. ENone of the above
Show answerHide answer

Correct answer: (C) Hash Table

Explanation

A hash table supports search, insertion and deletion in O(1) average time. A stack or queue only gives access at its ends.

Q94BPSC TRE 3.0 (2024) Computer Science Class 11-12
In a binary search tree, which subtree of a node contains elements that are greater than the node’s value?
  1. ALeft subtree
  2. BRight subtree
  3. CBoth subtrees
  4. DMore than one of the above
  5. ENone of the above
Show answerHide answer

Correct answer: (B) Right subtree

Explanation

In a BST, keys smaller than a node go in its left subtree and larger keys in its right subtree.

Q95BPSC TRE 3.0 (2024) Computer Science Class 11-12
The result of evaluating the postfix expression 10 5 + 60 6 / * 8 is
  1. A142
  2. B213
  3. C284
  4. DMore than one of the above
  5. ENone of the above
Show answerHide answer

Correct answer: (E) None of the above

Explanation

Official BPSC final answer key: (E). The expression leaves an unused operand “8”, so no listed value is correct.

Q96BPSC TRE 3.0 (2024) Computer Science Class 11-12
In a balanced binary tree, the height of two sub-trees of every node can not differ by more than
  1. A2
  2. B1
  3. C0
  4. DMore than one of the above
  5. ENone of the above
Show answerHide answer

Correct answer: (B) 1

Explanation

In a height-balanced (AVL) binary tree, the heights of the left and right subtrees of every node differ by at most 1.

Q97BPSC TRE 3.0 (2024) Computer Science Class 11-12
Write the output of the following program: int a[ ] = {1,2,3,} *p;
  1. AJunk value
  2. B3
  3. CRuntime error
  4. DMore than one of the above
  5. ENone of the above
Show answerHide answer

Correct answer: (E) None of the above

Explanation

The fragment int a[] = {1,2,3,} *p; is missing a separator before *p, so it will not compile. It gives neither a junk value, 3, nor a runtime error.

Q98BPSC TRE 3.0 (2024) Computer Science Class 11-12
A queue has configuration a, b, c, d. If you want to get the configuration d, c, b, a, you need a minimum of _______.
  1. A2 deletions and 3 additions
  2. B3 deletions and 3 additions
  3. C4 deletions and 4 additions
  4. DMore than one of the above
  5. ENone of the above
Show answerHide answer

Correct answer: (B) 3 deletions and 3 additions

Explanation

The front element d must stay in place. Delete a, b and c (3 deletions) and add them back as c, b, a (3 additions), giving d, c, b, a.

Q99BPSC TRE 3.0 (2024) Computer Science Class 11-12
The order of the binary search algorithm is _______.
  1. AN
  2. BN log n
  3. CN²
  4. DMore than one of the above
  5. ENone of the above
Show answerHide answer

Correct answer: (E) None of the above

Explanation

Binary search halves the search range at each step, so its order is O(log n). That is not among N, N log n or N².

Q100BPSC TRE 3.0 (2024) Computer Science Class 11-12
The preorder traversal of a binary search tree is 15, 10, 12, 11,20, 18, 16, 19. Which one of the following is the postorder traversal of the tree?
  1. A20, 19, 18, 16, 15, 12, 11,10
  2. B11, 12, 10, 16,19,18,20,15
  3. C19, 16, 18,20,11,12,10,15
  4. DMore than one of the above
  5. ENone of the above
Show answerHide answer

Correct answer: (B) 11, 12, 10, 16,19,18,20,15

Explanation

Root 15. The left subtree from 10, 12, 11 is 10 with right child 12, whose left child is 11. The right subtree is 20 with left child 18, whose children are 16 and 19. Postorder: 11, 12, 10, 16, 19, 18, 20, 15.

How to use these BPSC TRE Computer Science questions

Every question here was asked in a real BPSC TRE 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 BPSC TRE papers as timed tests to check your speed under exam conditions.

More BPSC TRE subjects