BPSC Computer Programmer Past Paper 2025 — 95 MCQs with Answers

BPSC Computer Programmer 95 questions

Practice the BPSC Computer Programmer Past Paper 2025 — 95 past paper MCQs with answers and full explanations from the real BPSC paper. Prepare with BPSC MCQs, then take a timed practice exam to check you are ready.

Questions show 20 per page. Choose a mode below — Read Answers to see the answer and explanation as you go, or Take the Test to test yourself against the clock with answers hidden.

Read Answers: tap an option to see the answer and explanation. Take the Test: answers stay hidden, a timer runs, and you get a score — tap "Show answers" when you're done.

Subjects in this paper

Computer ScienceComputer Networking BPSCID: BPP-852

Which protocol assigns IP address to the client connected in the internet?

  1. ADHPP
  2. BDHHP
  3. CDHCP ✓ Correct answer
  4. DNone of these
Computer ScienceOperating Systems BPSCID: BPP-875

Which scheduling algorithm is least prone to starvation?

  1. AFCFS ✓ Correct answer
  2. BRound Robin
  3. CShortest Job Next
  4. DNone of these
Computer ScienceOperating Systems BPSCID: BPP-876

Which scheduling algorithm is most prone to starvation?

  1. AFCFS
  2. BRound Robin
  3. CShortest Job Next ✓ Correct answer
  4. DNone of these
Computer ScienceOperating Systems BPSCID: BPP-877

Which of the following is necessary condition for deadlock?

  1. ACircular Wait
  2. BMutual Exclusion
  3. CHold and Wait
  4. DAll of them ✓ Correct answer
Computer ScienceOperating Systems BPSCID: BPP-878

Which is not a necessary condition for deadlock? Preemption, Mutual Exclusion, Hold and Wait, Circular Wait

  1. APreemption ✓ Correct answer
  2. BMutual Exclusion
  3. CHold and Wait
  4. DCircular Wait
Computer ScienceOperating Systems BPSCID: BPP-879

Which algorithm is used for deadlock detection?

  1. ALRU
  2. BBanker's Algorithm
  3. CFIFO
  4. DNone of these ✓ Correct answer
Computer ScienceOperating Systems BPSCID: BPP-880

Which method ensures mutual exclusion in concurrency control?

  1. ARAID
  2. BPaging
  3. CMutex ✓ Correct answer
  4. DNone of these
Computer ScienceOperating Systems BPSCID: BPP-881

Which scheduling policy gives each process a fixed time slot?

  1. ARound Robin ✓ Correct answer
  2. BFCFS
  3. CSJF
  4. DNone of these
Computer ScienceOperating Systems BPSCID: BPP-882

In which type of operating system is response time critical?

  1. AMulti tasking
  2. BReal time ✓ Correct answer
  3. CBatch processing
  4. DNone of these
Computer ScienceOperating Systems BPSCID: BPP-883

Which type of operating system has a very limited user interface?

  1. AMulti tasking
  2. BReal time
  3. CBatch processing
  4. DEmbedded ✓ Correct answer
Computer ScienceOperating Systems BPSCID: BPP-884

The software that contains the core components of the operating system is called _____?

  1. AMiddle
  2. BFunction
  3. CComponent
  4. DKernel ✓ Correct answer
Computer ScienceComputer Networking BPSCID: BPP-885

Which class of IP address provides the most host addresses per network?

  1. AClass D
  2. BClass A ✓ Correct answer
  3. CClass B
  4. DNone of these
Computer ScienceComputer Networking BPSCID: BPP-886

Which protocol is commonly used for secure remote access to a network device?

  1. AFTP
  2. BSSH ✓ Correct answer
  3. CTelnet
  4. DNone of these
Computer ScienceComputer Networking BPSCID: BPP-887

Which of the following is NOT a function of the Network Layer? Addressing, Routing, Error Detection, Packet Forwarding

  1. AAddressing
  2. BRouting
  3. CError Detection ✓ Correct answer
  4. DPacket Forwarding
Computer ScienceComputer Networking BPSCID: BPP-888

Which layer in the OSI model is responsible for end-to-end communication and error recovery?

  1. ASession
  2. BNetwork
  3. CTransport ✓ Correct answer
  4. DNone of these
Computer ScienceSoftware BPSCID: BPP-889

Which testing type ensures changes don't introduce new defects?

  1. ASystem
  2. BIntegration
  3. CRegression ✓ Correct answer
  4. DNone of these
Computer ScienceSoftware BPSCID: BPP-890

Which testing technique involves testing the internal structure of the code?

  1. ASystem
  2. BBlack box
  3. CWhite box ✓ Correct answer
  4. DNone of these
Computer ScienceSoftware BPSCID: BPP-891

Which of the following are common non functional requirements?

  1. AUsability
  2. BPerformance
  3. CSecurity
  4. DAll of them ✓ Correct answer
Computer ScienceSoftware BPSCID: BPP-892

Which software development practice involves continuous integration and continuous delivery?

  1. APrototyping
  2. BWaterfall
  3. CAgile/DevOps ✓ Correct answer
  4. DNone of these
Computer ScienceSoftware BPSCID: BPP-893

User stories are derived from which of the following diagrams?

  1. ASequence diagram
  2. BClass diagram
  3. CUse case diagram ✓ Correct answer
  4. DNone of these
Computer ScienceNumber Systems BPSCID: BPP-902

Most widely used method for representing signed integers in modern computers?

  1. AExcess 127
  2. B1's complement
  3. C2's complement ✓ Correct answer
  4. DNone of these
Computer ScienceDatabases & DBMS BPSCID: BPP-911

Which diagram is primarily used for designing database’s logical schema?

  1. AERD ✓ Correct answer
  2. BFlowchart
  3. CData flow
  4. DNone of these
Computer ScienceDatabases & DBMS BPSCID: BPP-912

Which of the following refers to virtual table based on a query?

  1. ATrigger
  2. BIndex
  3. CView ✓ Correct answer
  4. DNone of these
Computer ScienceDatabases & DBMS BPSCID: BPP-913

What term describes the logical structure of a database?

  1. ADatabase schema ✓ Correct answer
  2. BData instance
  3. CData file
  4. DNone of these
Computer ScienceDatabases & DBMS BPSCID: BPP-914

Which database object is automatically executed in response to specific events?

  1. AFunction
  2. BIndex
  3. CTrigger ✓ Correct answer
  4. DNone of these
Computer ScienceDatabases & DBMS BPSCID: BPP-915

Which of the following enhances query performance by dividing large tables into smaller ones?

  1. AReplication
  2. BPartitioning ✓ Correct answer
  3. CNormalization
  4. DNone of these
Computer ScienceSQL BPSCID: BPP-916

Which SQL aggregate function ignores NULL values?

  1. AMax()
  2. BSum()
  3. CAvg()
  4. DAll of them ✓ Correct answer
Computer ScienceDatabases & DBMS BPSCID: BPP-917

Which locking strategy is most effective at minimizing the occurrence of deadlocks?

  1. AExclusive
  2. BPessimistic
  3. COptimistic ✓ Correct answer
  4. DNone of these
Computer ScienceDatabases & DBMS BPSCID: BPP-918

Which of the following is an example of a column-oriented NoSQL database?

  1. ANeo4j
  2. BMongoDB
  3. CCassandra ✓ Correct answer
  4. DNone of these
Computer ScienceDatabases & DBMS BPSCID: BPP-919

A clustered index primarily affects _____?

  1. AData backups
  2. BQuery speed only
  3. CPhysical data order ✓ Correct answer
  4. DNone of these
Computer ScienceDatabases & DBMS BPSCID: BPP-920

Which normalization form addresses transitive dependencies?

  1. A1NF
  2. B2NF
  3. C3NF ✓ Correct answer
  4. DNone of these
Computer ScienceOperating Systems BPSCID: BPP-3699

Which of the following is an example of a real-time operating system?

  1. AVxWorks ✓ Correct answer
  2. BWindows 11
  3. CMS-DOS
  4. DUbuntu
Computer ScienceOperating Systems BPSCID: BPP-3700

The process of loading a program into memory for execution is called?

  1. AScheduling
  2. BLoading ✓ Correct answer
  3. CSwapping
  4. DPaging
Computer ScienceOperating Systems BPSCID: BPP-3701

Which CPU scheduling algorithm gives the minimum average waiting time?

  1. AFCFS
  2. BRound Robin
  3. CSJF ✓ Correct answer
  4. DPriority scheduling
Computer ScienceOperating Systems BPSCID: BPP-3702

A deadlock occurs when processes are blocked forever waiting for resources held by each other. Which condition is necessary for deadlock?

  1. APreemption
  2. BSingle process execution
  3. CResource sharing without limits
  4. DMutual exclusion ✓ Correct answer
Computer ScienceDatabases & DBMS BPSCID: BPP-3704

The process of organising data in a database to reduce redundancy is called?

  1. AIndexing
  2. BNormalisation ✓ Correct answer
  3. CQuerying
  4. DClustering
Computer ScienceDatabases & DBMS BPSCID: BPP-3705

Which normal form eliminates transitive dependencies?

  1. A3NF ✓ Correct answer
  2. B2NF
  3. C1NF
  4. DBCNF
Computer ScienceDatabases & DBMS BPSCID: BPP-3706

In a relational database, a row is also called?

  1. AAttribute
  2. BTuple ✓ Correct answer
  3. CSchema
  4. DDomain
Computer ScienceComputer Networking BPSCID: BPP-3707

Which device connects two different networks and routes data between them?

  1. ASwitch
  2. BRepeater
  3. CHub
  4. DRouter ✓ Correct answer
Computer ScienceComputer Networking BPSCID: BPP-3708

The IP address 192.168.1.1 belongs to which class of addresses?

  1. AClass A
  2. BClass B
  3. CClass D
  4. DClass C ✓ Correct answer
Computer ScienceSoftware BPSCID: BPP-3709

Which software development model follows a linear sequential approach?

  1. AAgile model
  2. BPrototype model
  3. CSpiral model
  4. DWaterfall model ✓ Correct answer
Computer ScienceSoftware BPSCID: BPP-3710

What is the name of the process of locating and correcting errors in a program?

  1. ACompiling
  2. BDebugging ✓ Correct answer
  3. CTesting
  4. DDocumenting
Computer ScienceNumber Systems BPSCID: BPP-3713

The binary equivalent of the decimal number 13 is?

  1. A1011
  2. B1101 ✓ Correct answer
  3. C1110
  4. D1001
ProgrammingData Structures & Algorithms BPSCID: BPP-851

Which data structure uses LIFO (Last In, First Out) principle?

  1. AStack ✓ Correct answer
  2. BQueue
  3. CLinked List
  4. DNone of these
ProgrammingData Structures & Algorithms BPSCID: BPP-853

Which sorting algorithm is the fastest in the average case?

  1. AQuick Sort ✓ Correct answer
  2. BMerge Sort
  3. CBubble Sort
  4. DNone of these
ProgrammingData Structures & Algorithms BPSCID: BPP-854

Which data structure is used for recursion?

  1. AGraph
  2. BQueue
  3. CStack ✓ Correct answer
  4. DNone of these
ProgrammingData Structures & Algorithms BPSCID: BPP-859

A connected graph with n vertices and n-1 edges is always a _____?

  1. AEulerian Graph
  2. BCycle
  3. CTree ✓ Correct answer
  4. DNone of these
ProgrammingData Structures & Algorithms BPSCID: BPP-860

A graph with no cycles is called a _____?

  1. AWeighted Graph
  2. BTree ✓ Correct answer
  3. CBipartite Graph
  4. DNone of these
ProgrammingC++ Programming BPSCID: BPP-865

Which term is used to write an object to disk?

  1. ATokenization
  2. BSerialization ✓ Correct answer
  3. CDe-serialization
  4. DNone of these
ProgrammingC++ Programming BPSCID: BPP-866

How is dynamically allocated memory de allocated in C++?

  1. AUsing erase()
  2. BAutomatically
  3. CUsing delete ✓ Correct answer
  4. DNone of these
ProgrammingC++ Programming BPSCID: BPP-867

Which catch block should be written first when handling multiple exceptions?

  1. AOrder Irrelevant
  2. BGeneral
  3. CSpecific ✓ Correct answer
  4. DNone of these
ProgrammingC++ Programming BPSCID: BPP-868

Which keyword is used to define an exception block?

  1. AFinally
  2. BCatch
  3. CTry ✓ Correct answer
  4. DThrow
ProgrammingC++ Programming BPSCID: BPP-869

When overriding function which of following should be the same in base and derived class?

  1. AFunction name
  2. BReturn type
  3. CBoth A and B ✓ Correct answer
  4. DParameter list
ProgrammingC++ Programming BPSCID: BPP-870

When overloading functions which of the following must be different?

  1. AFunction name
  2. BReturn type
  3. CBoth A and B
  4. DParameter list ✓ Correct answer
ProgrammingC++ Programming BPSCID: BPP-871

When overloading functions which of the following should be the same?

  1. AFunction name ✓ Correct answer
  2. BReturn type
  3. CBoth A and B
  4. DParameter list
ProgrammingC++ Programming BPSCID: BPP-872

Which feature simplifies complexity by emphasizing high-level design?

  1. APolymorphism
  2. BAbstraction ✓ Correct answer
  3. CInheritance
  4. DAll of them
ProgrammingC++ Programming BPSCID: BPP-873

Feature which enables objects of different classes to respond differently to the same message?

  1. APolymorphism ✓ Correct answer
  2. BAbstraction
  3. CInheritance
  4. DAll of them
ProgrammingC++ Programming BPSCID: BPP-874

Which of the following deals with protecting an object's internal data by controlling access?

  1. APolymorphism
  2. BEncapsulation ✓ Correct answer
  3. CInheritance
  4. DAll of them
ProgrammingC Programming BPSCID: BPP-894

Which type of pointer can store the address of any data type?

  1. Afloat*
  2. Bint*
  3. Cvoid* ✓ Correct answer
  4. DNone of these
ProgrammingC Programming BPSCID: BPP-895

Which operator is used to access the value at a pointer's address?

  1. A[]
  2. B* ✓ Correct answer
  3. C&
  4. DNone of these
ProgrammingC Programming BPSCID: BPP-896

Where is dynamically allocated memory stored?

  1. AArray
  2. BStack
  3. CHeap ✓ Correct answer
  4. DNone of these
ProgrammingC Programming BPSCID: BPP-897

Stack memory stores which of the following when a function is called _____?

  1. AReturn addresses
  2. BLocal variables
  3. CParameters
  4. DAll of them ✓ Correct answer
ProgrammingC Programming BPSCID: BPP-898

Most convenient loop to use when working with 2D arrays?

  1. ADo while
  2. BFor ✓ Correct answer
  3. CWhile
  4. DAll of them
ProgrammingC Programming BPSCID: BPP-899

When the number of iterations are not known in advance which loop is most suitable?

  1. ADo while
  2. BFor
  3. CWhile ✓ Correct answer
  4. DAll of them
ProgrammingC Programming BPSCID: BPP-900

Which branching statement can easily handle complicated nested decisions?

  1. ASwitch ✓ Correct answer
  2. BIf else
  3. CElse if
  4. DAll of them
ProgrammingC Programming BPSCID: BPP-901

Which of the following is not a standard builtin data type in C? Bool, Long, Int, Char

  1. ABool ✓ Correct answer
  2. BLong
  3. CInt
  4. DChar
ProgrammingC Programming BPSCID: BPP-903

Data type int occupies 4 bytes in memory, writing unsigned before int increases its ______?

  1. ARange ✓ Correct answer
  2. BSize
  3. CBoth A and B
  4. DNone of them
ProgrammingData Structures & Algorithms BPSCID: BPP-904

What is the time complexity of inserting an element in a binary heap?

  1. AO(n log n)
  2. BO(1)
  3. CO(log n) ✓ Correct answer
  4. DNone of these
ProgrammingData Structures & Algorithms BPSCID: BPP-905

Which algorithm is used to find the shortest path in a graph?

  1. ADecision Tree
  2. BDijkstra's Algorithm ✓ Correct answer
  3. CK-Nearest Neighbors
  4. DNone of these
ProgrammingData Structures & Algorithms BPSCID: BPP-906

Which of the following data structures does not allow duplicate elements?

  1. ALinked List
  2. BStack
  3. CHash Set ✓ Correct answer
  4. DNone of these
ProgrammingData Structures & Algorithms BPSCID: BPP-907

Which of the following is a self-balancing binary search tree?

  1. AAVL Tree ✓ Correct answer
  2. BBinary Heap
  3. CHash Table
  4. DNone of these
ProgrammingData Structures & Algorithms BPSCID: BPP-908

Which data structure is best for implementing a priority queue?

  1. AHash Table
  2. BHeap ✓ Correct answer
  3. CStack
  4. DNone of these
ProgrammingData Structures & Algorithms BPSCID: BPP-909

Which data structure provides constant-time lookup using keys?

  1. AHash Table ✓ Correct answer
  2. BArray
  3. CStack
  4. DNone of these
ProgrammingData Structures & Algorithms BPSCID: BPP-910

A Queue follows which of the following principle?

  1. AFIFO ✓ Correct answer
  2. BLIFO
  3. CSJF
  4. DNone of them
ProgrammingData Structures & Algorithms BPSCID: BPP-3688

In a binary tree, a node with no children is called?

  1. ARoot node
  2. BLeaf node ✓ Correct answer
  3. CParent node
  4. DInternal node
ProgrammingData Structures & Algorithms BPSCID: BPP-3689

Which sorting algorithm has an average-case time complexity of O(n log n)?

  1. ABubble sort
  2. BInsertion sort
  3. CQuick sort ✓ Correct answer
  4. DSelection sort
ProgrammingData Structures & Algorithms BPSCID: BPP-3690

A hash table resolves collisions by which technique?

  1. AChaining ✓ Correct answer
  2. BLinear search
  3. CBinary search
  4. DRecursion
ProgrammingC++ Programming BPSCID: BPP-3691

Which keyword is used to define a class in C++?

  1. Astruct
  2. Bobject
  3. Cclass ✓ Correct answer
  4. Ddefine
ProgrammingC++ Programming BPSCID: BPP-3692

In C++, the operator used to access a member through a pointer is?

  1. A.
  2. B&
  3. C::
  4. D-> ✓ Correct answer
ProgrammingC++ Programming BPSCID: BPP-3693

Which concept in C++ allows a function to have the same name with different parameters?

  1. AFunction overloading ✓ Correct answer
  2. BFunction overriding
  3. CInheritance
  4. DEncapsulation
ProgrammingC++ Programming BPSCID: BPP-3694

The destructor of a class in C++ is identified by which symbol before its name?

  1. A#
  2. B@
  3. C~ ✓ Correct answer
  4. D$
ProgrammingC Programming BPSCID: BPP-3696

The size of an int variable in C on a typical 32-bit system is?

  1. A2 bytes
  2. B4 bytes ✓ Correct answer
  3. C8 bytes
  4. D1 byte
ProgrammingC Programming BPSCID: BPP-3697

Which loop in C checks the condition after executing the body at least once?

  1. Ado-while loop ✓ Correct answer
  2. Bwhile loop
  3. Cfor loop
  4. Dnested for loop
ProgrammingC Programming BPSCID: BPP-3698

In C, the value of the expression 5 % 3 is?

  1. A2 ✓ Correct answer
  2. B1
  3. C0
  4. D3
MathematicsNumber System BPSCID: BPP-855

What is the result of (13 × 17) mod 5?

  1. A3
  2. B2
  3. C1 ✓ Correct answer
  4. DNone of these
MathematicsProgressions BPSCID: BPP-856

If a geometric sequence has first term 3 and common ratio 2, what is the 5th term?

  1. A12
  2. B24
  3. C48 ✓ Correct answer
  4. DNone of these
MathematicsPermutation and Combination BPSCID: BPP-857

How many ways can you choose 2 elements from a set of 5?

  1. A25
  2. B5
  3. C10 ✓ Correct answer
  4. DNone of these
MathematicsPermutation and Combination BPSCID: BPP-858

How many ways can you arrange 4 distinct books on a shelf?

  1. A256
  2. B16
  3. C24 ✓ Correct answer
  4. DNone of these
MathematicsAlgebra BPSCID: BPP-861

Which of the following is an equivalence relation? Transitive, Reflexive, Symmetric, All of them

  1. ATransitive
  2. BReflexive
  3. CSymmetric
  4. DAll of them ✓ Correct answer
MathematicsAlgebra BPSCID: BPP-862

Which of the following is a reflexive relation? (1,2), (2,3) (1,1), (2,2), (3,3) (1,2), (2,1) All of them

  1. A(1,2), (2,3)
  2. B(1,1), (2,2), (3,3) ✓ Correct answer
  3. C(1,2), (2,1)
  4. DAll of them
MathematicsSets & Logic BPSCID: BPP-863

Which logical operator represents "AND"?

  1. A~
  2. BV
  3. CA
  4. D& ✓ Correct answer
MathematicsSets & Logic BPSCID: BPP-864

Which of the following is a proposition? What time is it?, 2 + 2, X + 5 = 10, Today is Monday

  1. AWhat time is it?
  2. B2 + 2
  3. CX + 5 = 10
  4. DToday is Monday ✓ Correct answer
MathematicsAlgebra BPSCID: BPP-3711

If x + y = 10 and x − y = 4, what is the value of x?

  1. A3
  2. B6
  3. C5
  4. D7 ✓ Correct answer
MathematicsSimplification BPSCID: BPP-3712

Evaluate 2³ × 2².

  1. A32 ✓ Correct answer
  2. B16
  3. C64
  4. D10
MathematicsPermutation and Combination BPSCID: BPP-3715

In how many ways can 3 books be arranged on a shelf?

  1. A3
  2. B6 ✓ Correct answer
  3. C9
  4. D27

← Back to Computer Programmer