Bihar STET · Topic-wise previous year questions

Computer Science Previous Year Questions (page 5)

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

  • 723 questions
  • 15 topics
  • Official answer key
  • Free

Practise by topic

Q201Bihar STET Paper 2 Computer Science (Class 11-12), 12 Sep 2023, Shift 2
The Floyd-Warshall algorithm is a popular method for solving the All-Pair Shortest Paths problem. What is the time complexity of the Floyd-Warshall algorithm for a graph with "n" vertices?
  1. AO(n)
  2. BO(n log n)
  3. CO(n^2)
  4. DO(n^3)
Show answerHide answer

Correct answer: (D) O(n^3)

Explanation

Floyd-Warshall runs three nested loops over k, i and j, each from 1 to n, so it takes O(n³) time.

Q202Bihar STET Paper 2 Computer Science (Class 11-12), 12 Sep 2023, Shift 2
What is the time complexity of the Divide and Conquer algorithm for finding the maximum and minimum elements in an array of size "n"?
  1. AO(n)
  2. BO(log n)
  3. CO(n log n)
  4. DO(n^2)
Show answerHide answer

Correct answer: (A) O(n)

Explanation

The divide-and-conquer MaxMin algorithm makes about 3n/2 - 2 comparisons; T(n) = 2T(n/2) + 2 solves to O(n).

Q203Bihar STET Paper 2 Computer Science (Class 11-12), 12 Sep 2023, Shift 2
In multistage graphs, what is the property of optimality?
  1. AThe shortest path between any two stages is the one with the fewest edges
  2. BThe shortest path between any two stages is the one with the lowest total cost
  3. CThe shortest path between any two stages is the one with the highest total cost
  4. DThe shortest path between any two stages is the one with the most vertices
Show answerHide answer

Correct answer: (B) The shortest path between any two stages is the one with the lowest total cost

Explanation

By the principle of optimality, a minimum-cost path through a multistage graph is built from minimum-cost sub-paths, so the shortest path is the one with the lowest total cost.

Q204Bihar STET Paper 2 Computer Science (Class 11-12), 12 Sep 2023, Shift 2
Which of the following is not a common example of an abstract data type?
  1. AStack
  2. BInteger
  3. CQueue
  4. DList
Show answerHide answer

Correct answer: (B) Integer

Explanation

Integer is a primitive (built-in) data type, while stack, queue and list are abstract data types defined by their operations, independent of implementation.

Q205Bihar STET Paper 2 Computer Science (Class 11-12), 12 Sep 2023, Shift 2
In pointer implementation of linked lists, which operation can be performed in constant time (O(1)) when inserting or deleting nodes?
  1. AInserting at the beginning
  2. BInserting at the end
  3. CInserting at a specific position
  4. DDeleting a specific node
Show answerHide answer

Correct answer: (A) Inserting at the beginning

Explanation

Inserting at the beginning needs only to set newnode->next = head and head = newnode, which is O(1); inserting at the end or at a position requires traversal.

Q206Bihar STET Paper 2 Computer Science (Class 11-12), 12 Sep 2023, Shift 2
Which representation is best suited for matrices with a small number of non-zero elements in each row and column?
  1. ATriplet representation
  2. BCompressed sparse row (CSR) format
  3. CCompressed sparse column (CSC) format
  4. DArray representation
Show answerHide answer

Correct answer: (C) Compressed sparse column (CSC) format

Explanation

Compressed sparse formats store only non-zero values with their indices; CSC compresses the data column by column, so it suits sparse matrices and column-wise access. CSR is the row-wise counterpart.

Q207Bihar STET Paper 2 Computer Science (Class 11-12), 12 Sep 2023, Shift 2
Which of the following representations is most suitable for efficient row-wise traversal of a sparse matrix?
  1. ATriplet representation
  2. BCompressed sparse row (CSR) format
  3. CCompressed sparse column (CSC) format
  4. DArray representation
Show answerHide answer

Correct answer: (B) Compressed sparse row (CSR) format

Explanation

CSR stores the non-zeros row by row with a row-pointer array, so all elements of a row are contiguous and can be traversed efficiently.

Q208Bihar STET Paper 2 Computer Science (Class 11-12), 12 Sep 2023, Shift 2
In computer graphics, arrays can be used to store pixel values for images. Which type of array would be suitable for this purpose?
  1. A1-D array
  2. B2-D array
  3. C3-D array
  4. D4-D array
Show answerHide answer

Correct answer: (B) 2-D array

Explanation

An image is a grid of pixels addressed by row and column, so a 2-D array (one value per pixel, e.g. grayscale) is the natural structure.

Q209Bihar STET Paper 2 Computer Science (Class 11-12), 12 Sep 2023, Shift 2
For a 2-D array represented in row-major order, the index formula to access the element at row "i" and column "j" using the base address "B" is:
  1. AIndex = B + (i * n + j)
  2. BIndex = B + (j * n + i)
  3. CIndex = B + (i + j)
  4. DIndex = B + (i * m + j)
Show answerHide answer

Correct answer: (A) Index = B + (i * n + j)

Explanation

In row-major order the rows are stored one after another, so element (i, j) is at B + (i × n + j) for n columns (times the element size, taken as 1 here).

Q210Bihar STET Paper 2 Computer Science (Class 11-12), 12 Sep 2023, Shift 2
The Banker's algorithm is an example of a deadlock:
  1. AAvoidance algorithm
  2. BDetection algorithm
  3. CPrevention algorithm
  4. DTermination algorithm
Show answerHide answer

Correct answer: (A) Avoidance algorithm

Explanation

The Banker's algorithm checks before each allocation whether the system stays in a safe state, so it avoids deadlock rather than detecting or preventing it.

Q211Bihar STET Paper 2 Computer Science (Class 11-12), 12 Sep 2023, Shift 2
Priority Scheduling involves assigning a priority value to each process. Which scheduling algorithm is closely related to this concept?
  1. AFCFS
  2. BSJN
  3. CMultilevel Queue Scheduling
  4. DFirst-Come, First-Served (FCFS)
Show answerHide answer

Correct answer: (C) Multilevel Queue Scheduling

Explanation

Multilevel queue scheduling places processes in separate queues by priority class and serves higher-priority queues first, so it is built directly on priority scheduling.

Q212Bihar STET Paper 2 Computer Science (Class 11-12), 12 Sep 2023, Shift 2
The resource matrix is a data structure used in deadlock detection algorithms to:
  1. ARepresent resource allocation
  2. BRepresent the execution order of processes
  3. CRepresent the execution history of processes
  4. DRepresent the priority of processes
Show answerHide answer

Correct answer: (A) Represent resource allocation

Explanation

In deadlock detection, allocation and request matrices record which resources each process holds and requests, i.e. they represent resource allocation.

Q213Bihar STET Paper 2 Computer Science (Class 11-12), 12 Sep 2023, Shift 2
The term "race condition" in parallel programming refers to:
  1. AA competition between processes to terminate first
  2. BA competition between processes to access shared resources
  3. CA situation where a process is stuck in a loop
  4. DA situation where processes are running sequentially
Show answerHide answer

Correct answer: (B) A competition between processes to access shared resources

Explanation

A race condition occurs when processes access shared data concurrently and the result depends on the order of access, i.e. they compete for shared resources.

Q214Bihar STET Paper 2 Computer Science (Class 11-12), 12 Sep 2023, Shift 2
The need for a command interpreter arises because:
  1. AHardware cannot execute programs directly
  2. BAll programming languages require an interpreter
  3. CSoftware cannot run on hardware
  4. DUsers prefer typing commands over using GUIs
Show answerHide answer

Correct answer: (A) Hardware cannot execute programs directly

Explanation

Users' typed commands cannot be executed by the hardware as they are; the command interpreter (shell) reads each command and translates it into system calls and programs the machine can run.

Q215Bihar STET Paper 2 Computer Science (Class 11-12), 12 Sep 2023, Shift 2
What do you mean by one to many relationships?
  1. AMany teachers may have many classes
  2. BOne class may have many teachers
  3. COne teacher can have many classes
  4. DMany classes may have many teachers
Show answerHide answer

Correct answer: (C) One teacher can have many classes

Explanation

One-to-many means one entity instance is linked to many instances of another, e.g. one teacher teaching many classes.

Q216Bihar STET Paper 2 Computer Science (Class 11-12), 12 Sep 2023, Shift 2
Which of the following refers to the number of attributes in a relation?
  1. ARow
  2. BDegree
  3. CColumn
  4. DAll of the above
Show answerHide answer

Correct answer: (A) Row

Explanation

Note: the answer key gives (A), but the number of attributes (columns) in a relation is its degree; the number of rows (tuples) is its cardinality.

Q217Bihar STET Paper 2 Computer Science (Class 11-12), 12 Sep 2023, Shift 2
A report generator is used to
  1. AUpdate file
  2. BPrint file on paper
  3. CBoth of the above
  4. DNone of the above
Show answerHide answer

Correct answer: (B) Print file on paper

Explanation

A report generator takes data from files or databases and formats it into printed reports; it does not update files.

Q218Bihar STET Paper 2 Computer Science (Class 11-12), 12 Sep 2023, Shift 2
A large computer information system maintains many different computer files. Which amongst them is called a perpetual file?
  1. ASpecialized File
  2. BMaster File
  3. CLog File
  4. DUpdate File
Show answerHide answer

Correct answer: (B) Master File

Explanation

A master file holds relatively permanent core data (e.g. customer or employee records) that is kept and updated over time, so it is called a perpetual file.

Q219Bihar STET Paper 2 Computer Science (Class 11-12), 12 Sep 2023, Shift 2
The HTTP protocol is used for:
  1. AEmail communication
  2. BFile transfers
  3. CWeb browsing
  4. DRemote terminal access
Show answerHide answer

Correct answer: (C) Web browsing

Explanation

HTTP is the application-layer protocol for transferring web pages between browsers and web servers, i.e. web browsing; email uses SMTP and file transfer FTP.

Q220Bihar STET Paper 2 Computer Science (Class 11-12), 12 Sep 2023, Shift 2
ISO 9000 and SEI CMM are both frameworks related to:
  1. ASoftware testing
  2. BSoftware documentation
  3. CSoftware quality assurance and process improvement
  4. DSoftware design principles
Show answerHide answer

Correct answer: (C) Software quality assurance and process improvement

Explanation

ISO 9000 and SEI CMM are quality frameworks: ISO 9000 sets quality management standards, and CMM rates and improves the maturity of software processes.

Q221Bihar STET Paper 2 Computer Science (Class 11-12), 12 Sep 2023, Shift 2
Which type of maintenance involves adding new features to existing software?
  1. ACorrective Maintenance
  2. BPerfective Maintenance
  3. CAdaptive Maintenance
  4. DPreventive Maintenance
Show answerHide answer

Correct answer: (B) Perfective Maintenance

Explanation

Perfective maintenance adds new features or improves performance in response to user needs; corrective fixes bugs and adaptive suits a new environment.

Q222Bihar STET Paper 2 Computer Science (Class 11-12), 12 Sep 2023, Shift 2
The framework that provides guidelines for achieving consistent and high-quality software is:
  1. ACOCOMO
  2. BISO 9000
  3. CDelphi Method
  4. DAgile Manifesto
Show answerHide answer

Correct answer: (B) ISO 9000

Explanation

ISO 9000 is a family of quality management standards that gives guidelines for producing software of consistent, high quality.

Q223Bihar STET Paper 2 Computer Science (Class 11-12), 12 Sep 2023, Shift 2
Which maintenance process involves documenting the software's structure and functionality?
  1. AReverse Engineering
  2. BPreventive Maintenance
  3. CPerfective Maintenance
  4. DAdaptive Maintenance
Show answerHide answer

Correct answer: (A) Reverse Engineering

Explanation

Reverse engineering analyses existing software to recover and document its design, structure and functionality, often when documentation is missing.

Q224Bihar STET Paper 2 Computer Science (Class 11-12), 12 Sep 2023, Shift 2
What is the term for defining multiple methods in a class with the same name but different parameters?
  1. AOverriding
  2. BOverloading
  3. CInheriting
  4. DInheritance
Show answerHide answer

Correct answer: (B) Overloading

Explanation

Overloading means several methods in the same class share a name but have different parameter lists; overriding redefines an inherited method with the same signature.

Q225Bihar STET Paper 2 Computer Science (Class 11-12), 12 Sep 2023, Shift 2
What is the main purpose of using namespaces in programming?
  1. ATo provide data encapsulation
  2. BTo organize code into logical groups
  3. CTo define abstract classes
  4. DTo handle exceptions
Show answerHide answer

Correct answer: (B) To organize code into logical groups

Explanation

Namespaces group related classes and functions under a name, organising code logically and avoiding name clashes.

Q226Bihar STET Paper 2 Computer Science (Class 11-12), 12 Sep 2023, Shift 2
What is the term for creating a new class that inherits properties and behaviors from an existing class?
  1. APolymorphism
  2. BEncapsulation
  3. CAbstraction
  4. DDerivation
Show answerHide answer

Correct answer: (D) Derivation

Explanation

Creating a new class from an existing one is derivation (inheritance); the new class is a derived class or subclass.

Q227Bihar STET Paper 2 Computer Science (Class 11-12), 12 Sep 2023, Shift 2
What is the term for a condition that occurs during program execution that disrupts the normal flow of instructions?
  1. AAbstraction
  2. BInheritance
  3. CException
  4. DEncapsulation
Show answerHide answer

Correct answer: (C) Exception

Explanation

An exception is a runtime event (e.g. divide by zero) that disrupts the normal flow of instructions and can be caught and handled.

Q228Bihar STET Paper 2 Computer Science (Class 11-12), 12 Sep 2023, Shift 2
What is the role of a Document Type Definition (DTD) in XML?
  1. AIt defines the structure and data types of XML documents.
  2. BIt provides a list of external resources for an XML document.
  3. CIt specifies the styling rules for XML elements.
  4. DIt encrypts the content of an XML document
Show answerHide answer

Correct answer: (A) It defines the structure and data types of XML documents.

Explanation

A DTD defines the legal structure of an XML document: which elements and attributes are allowed, their order and nesting, so the document can be validated.

Q229Bihar STET Paper 2 Computer Science (Class 11-12), 12 Sep 2023, Shift 2
What does PHP stand for?
  1. APersonal Home Page
  2. BProfessional Hypertext Processor
  3. CPreprocessed Hypertext Pages
  4. DPHP: Hypertext Preprocessor
Show answerHide answer

Correct answer: (D) PHP: Hypertext Preprocessor

Explanation

PHP is a recursive acronym for "PHP: Hypertext Preprocessor" (originally "Personal Home Page").

Q230Bihar STET Paper 2 Computer Science (Class 11-12), 12 Sep 2023, Shift 2
How do you comment a single line in PHP?
  1. A// This is a comment
  2. B/* This is a comment */
  3. C<!-- This is a comment -->
  4. D** This is a comment **
Show answerHide answer

Correct answer: (A) // This is a comment

Explanation

In PHP a single-line comment starts with // (or #); /* */ is a multi-line comment and <!-- --> is HTML.

Q231Bihar STET Paper 2 Computer Science (Class 11-12), 12 Sep 2023, Shift 2
Which SQL command is used to remove a table from a database?
  1. ADELETE TABLE
  2. BDROP TABLE
  3. CREMOVE TABLE
  4. DERASE TABLE
Show answerHide answer

Correct answer: (B) DROP TABLE

Explanation

DROP TABLE removes the table structure and its data from the database; DELETE removes only rows.

Q232Bihar STET Paper 2 Computer Science (Class 11-12), 12 Sep 2023, Shift 2
A context free grammar G is in Chomsky normal form if every production is of the form
  1. AA → BC or A → A
  2. BA → BC or A → a
  3. CA → BCa or B → b
  4. DNone of these
Show answerHide answer

Correct answer: (B) A → BC or A → a

Explanation

In Chomsky normal form every production is A → BC (two variables) or A → a (a single terminal).

Q233Bihar STET Paper 2 Computer Science (Class 11-12), 12 Sep 2023, Shift 2
The context free grammar S → SS | 0S1 | 1S0 | ɛ generates
  1. AEqual number of 0’s and 1’s
  2. BUnequal number of 0’s and 1’s
  3. CAny number of 0’s followed by any number of 1’s
  4. DNone of these
Show answerHide answer

Correct answer: (A) Equal number of 0’s and 1’s

Explanation

Every rule adds one 0 and one 1 together (0S1, 1S0) or concatenates such strings (SS), so all generated strings have equal numbers of 0s and 1s.

Q234Bihar STET Paper 2 Computer Science (Class 11-12), 12 Sep 2023, Shift 2
According to Chomsky hierarchy, which of the following is recognized by Recursively Enumerable language?
  1. AType 0
  2. BType 1
  3. CType 2
  4. DType 3
Show answerHide answer

Correct answer: (A) Type 0

Explanation

Recursively enumerable languages are Type 0 in the Chomsky hierarchy, generated by unrestricted grammars and recognised by Turing machines.

Q235Bihar STET Paper 2 Computer Science (Class 11-12), 12 Sep 2023, Shift 2
A universal Turing machine is a
  1. ASingle tape Turing machine
  2. BTwo-tape Turing machine
  3. CReprogrammable Truing machine
  4. DAll of the above
Show answerHide answer

Correct answer: (C) Reprogrammable Truing machine

Explanation

A universal Turing machine takes the description of any other TM and its input and simulates it, so it is a reprogrammable (stored-program) Turing machine.

Q236Bihar STET Paper 2 Computer Science (Class 11-12), 12 Sep 2023, Shift 2
The Internet of Things (IoT), access to real-time data, and the introduction of cyber-physical systems mark the big changes for this era.
  1. AIndustrial Revolution
  2. B3rd Industrial Revolution
  3. CIndustry 4.0
  4. DManufacturing automation
Show answerHide answer

Correct answer: (C) Industry 4.0

Explanation

Industry 4.0, the fourth industrial revolution, is defined by IoT, real-time data and cyber-physical systems in manufacturing.

Q237Bihar STET Paper 2 Computer Science (Class 11-12), 12 Sep 2023, Shift 2
The default baud rate of Modbus RTU is?
  1. A9600
  2. B19200
  3. C38400
  4. D57600
Show answerHide answer

Correct answer: (B) 19200

Explanation

The Modbus serial line specification makes 19200 bps the required default baud rate for Modbus RTU devices (9600 is also commonly supported).

Q238Bihar STET Paper 2 Computer Science (Class 11-12), 12 Sep 2023, Shift 2
__________ is an online storage drive which can be browsed and from which items can be shared?
  1. AFind my iPhone
  2. BiWeb Publish
  3. CMobileMe Gallery
  4. DiDesk
Show answerHide answer

Correct answer: (D) iDesk

Explanation

iDisk was the online storage drive in Apple's MobileMe, where files could be browsed and shared; "iDesk" in the option refers to it.

Q239Bihar STET Paper 2 Computer Science (Class 11-12), 12 Sep 2023, Shift 2
What is the frame?
  1. AData type
  2. BData Structure
  3. CA way of representing knowledge
  4. DNone of the above
Show answerHide answer

Correct answer: (C) A way of representing knowledge

Explanation

A frame (Minsky) is a structure of slots and values describing a stereotyped object or situation, a method of knowledge representation in AI.

Q240Bihar STET Paper 2 Computer Science (Class 11-12), 12 Sep 2023, Shift 2
What is hyponymy relation?
  1. AA is part of B
  2. BB has A as a part of itself
  3. CA is subordinate of B
  4. DA is superordinate of B
Show answerHide answer

Correct answer: (C) A is subordinate of B

Explanation

Hyponymy is the "is-a-kind-of" relation: A is a hyponym of B when A is subordinate to B (rose is a hyponym of flower). Part-whole is meronymy.

Q241Bihar STET Paper 2 Computer Science (Class 11-12), 12 Sep 2023, Shift 2
Which among the following is/are the best example of semantic networks?
  1. AWordnet
  2. BHuman Food Chain
  3. CMYSIN
  4. DAutonomous car driver
Show answerHide answer

Correct answer: (A) Wordnet

Explanation

WordNet is a lexical database linking words by relations such as synonymy and hyponymy, a classic large semantic network.

Q242Bihar STET Paper 2 Computer Science (Class 11-12), 12 Sep 2023, Shift 2
The “Turing Machine” showed that you could use a/an _____ system to program any algorithmic task.
  1. Abinary
  2. Belectro-chemical
  3. Crecursive
  4. Dsemantic
Show answerHide answer

Correct answer: (A) binary

Explanation

Turing showed that a simple machine manipulating symbols (such as 0 and 1, a binary system) can carry out any algorithmic task.

Q243Bihar STET Paper 2 Computer Science (Class 11-12), 12 Sep 2023, Shift 2
Which of the following is not a Characteristics of Expert Systems?
  1. AUnderstandable
  2. BHighly responsive
  3. CUnreliable
  4. DHigh performance
Show answerHide answer

Correct answer: (C) Unreliable

Explanation

Expert systems are expected to be reliable, understandable, highly responsive and high-performing, so "unreliable" is not a characteristic.

Q244Bihar STET Paper 2 Computer Science (Class 11-12), 12 Sep 2023, Shift 2
which of the following is Capabilities of Expert Systems?
  1. APossessing human capabilities
  2. BSuggesting alternative options to a problem
  3. CRefining their own knowledge
  4. DSubstituting human decision makers
Show answerHide answer

Correct answer: (B) Suggesting alternative options to a problem

Explanation

Expert systems can advise, explain and suggest alternative solutions, but they cannot possess human abilities, refine their own knowledge or replace human decision makers.

Q245Bihar STET Paper 2 Computer Science (Class 11-12), 12 Sep 2023, Shift 2
What is the full form of JESS in Expert System Technology?
  1. AJava Expert System Shell
  2. BJavascript Expert System Shell
  3. CJava Expert Sub System
  4. DJavascript Expert Sub System
Show answerHide answer

Correct answer: (A) Java Expert System Shell

Explanation

JESS is the Java Expert System Shell, a rule engine and expert-system shell written in Java.

Q246Bihar STET Paper 2 Computer Science (Class 11-12), 12 Sep 2023, Shift 2
During E‐commerce transaction we should ensure‐
  1. AIntegrity
  2. BConfidentiality
  3. CSecurity
  4. DAll of the above
Show answerHide answer

Correct answer: (D) All of the above

Explanation

Secure e-commerce transactions need integrity (data not altered), confidentiality (data not disclosed) and overall security such as authentication, so all apply.

Q247Bihar STET Paper 2 Computer Science (Class 11-12), 12 Sep 2023, Shift 2
Public key cryptography is also known as ‐ cryptography.
  1. APrivate key
  2. BSymetric
  3. CAsymetric
  4. DNone of the above
Show answerHide answer

Correct answer: (C) Asymetric

Explanation

Public key cryptography uses a pair of different keys (public and private), so it is asymmetric; symmetric cryptography uses one shared key.

Q248Bihar STET Paper 2 Computer Science (Class 11-12), 12 Sep 2023, Shift 2
Which one is used toidentify mobile money
  1. AMCID
  2. BMMID
  3. CRSID
  4. DNone of the above
Show answerHide answer

Correct answer: (B) MMID

Explanation

MMID (Mobile Money Identifier) is a 7-digit number issued by banks for IMPS mobile money transfers.

Q249Bihar STET Paper 2 Computer Science (Class 11-12), 12 Sep 2023, Shift 2
Unclassified email is called?
  1. AExtra mail
  2. BSpam
  3. Cjunk mail
  4. DNone of the above
Show answerHide answer

Correct answer: (C) junk mail

Explanation

Unwanted, unsolicited or unclassified email is called junk mail (also commonly called spam); the key uses "junk mail".

Q250Bihar STET Paper 2 Computer Science (Class 11-12), 12 Sep 2023, Shift 2
_____ refers to simulated motion pictures showing movement of drawn objects.
  1. AMotion
  2. BAnimation
  3. CVR
  4. DSMD
Show answerHide answer

Correct answer: (B) Animation

Explanation

Animation is a sequence of drawn images shown in quick succession to simulate motion of objects.

How to use these Bihar STET Computer Science questions

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

More Bihar STET subjects