The Odisha CPET 2025 Computer Science question paper is now available with detailed solutions for free download. Odisha CPET 2025 was conducted by the Department of Higher Education, Government of Odisha (through SAMS Odisha) from May 5 to May 13, 2025, and the Computer Science paper carried 100 single-best-answer MCQs for 100 marks.
| Odisha CPET 2025 Computer Science Question Paper with Solutions | Download PDF | Check Solutions |
ODISHA CPET 2025 COMPUTER SCIENCE Questions with Solutions
The pointer that points to a memory location that has been already deallocated is known as:
What will be the output of the following C code?
# include <stdio.h>
int main()
{ int arr[5] = {1, 2, 3, 4, 5};
int *ptr = arr;
*(ptr + 2) = *(ptr + 4) + *(ptr + 1);
printf("%d\n", arr[2]);
return 0; }
What is the output of the following C code?
#include <stdio.h>
void func(int arr[]) {
sizeof(arr) == sizeof(int) * 5 ? printf("True\n") : printf("False\n");
}
int main() {
int arr[5] = {0};
func(arr);
return 0;
}
What will be the output of the following program?
#include <stdio.h>
void test() {
static int x;
printf("%d", x);
x++;
}
int main() {
test();
test();
test();
return 0;
}
What will happen if you do not call fclose(fp), after opening a file in C?
What will be the output of the following program?
#include <stdio.h>
int main() {
int i, j;
for (i = 0, j = 5; i < j; i++, j--) {
printf("%d %d |", i, j);
}
return 0;
}
An AND Gate has 7 inputs. How many input words are in its truth table?
According to De Morgan's first theorem a NOR Gate is equivalent to a __________ Gate.
In a 4-bit synchronous binary counter using JK flip-flops, what will be the state of the counter after 15 clock pulses, if it starts at 0000?
In a synchronous sequential circuit, which of the following conditions may cause a race condition?
What is the result of multiplying the two signed 8-bit binary numbers (using 2's complement representation) 01101010 and 11001100?
What is the 8-bit 2's complement representation of the decimal number -77?
Which of the following is a key reason for choosing DRAM over SRAM for main memory?
Which of the following components in an FPGA is responsible for implementing combinational and sequential logic?
What is the main purpose of declaring a base class as virtual in multiple inheritance?
What happens if a class contains at least one pure virtual function?
What happens if a derived class defines a function with the same name as a base class function, but with a different parameter list?
Given the following C++ code, what will be the order of constructor execution?
class A { public: A() { std::cout << "A" ; } };
class B : public A { public: B() { std::cout << "B" ; } };
class C : public B { public: C() { std::cout << "C" ; } };
int main() { C obj; return 0; }
What is the output of the following C++ code?
# include <iostream.h>
class Base {
public:
void show() {cout << "Base"; }
};
class Derived : public Base {
public:
void show() {cout << "Derived"; }
};
int main() {
Base* b = new Derived();
b->show();
}
Which of the following is the correct way to open a binary file for both reading and writing in C++?
What will the following C++ program do?
#include <iostream>
#include <fstream>
using namespace std;
int main() {
ofstream file("example.txt", ios::app);
file << "Hello ";
file.close();
return 0;
}
Which of the following is the correct way to declare a friend function in a class?
Which is the best data structure to represent a sparse matrix?
What is the maximum number of nodes in a binary tree of height h (where height is measured as the number of edges from the root to the deepest node)?
An M-way search tree is a generalization of which data structure?
The time complexity to perform an Enqueue operation on a Queue data structure is:
The Postorder traversal of a Binary Search tree which is created by presenting the values in the order 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 will be:
Which sorting algorithm performs best for nearly sorted data?
What is the postfix form of the infix expression A + B * C − D / E?
Which one of the following is the correct way to increment the rear end of a circular queue represented as an array of size M?
What happens during a context switch?
Which of the following synchronization mechanisms allows multiple processes to safely access a shared resource?
What is thrashing in virtual memory?
Which type of fragmentation occurs when allocated memory blocks are larger than the requested memory size?
Which of the following is not a valid file allocation method?
What is the average waiting time for the following CPU workload using Round Robin method with a time slice of 4 ms (assuming that all jobs arrived at the same time)?
| Process No. | Next CPU burst time in ms |
|---|---|
| A | 5 |
| B | 7 |
| C | 4 |
| D | 9 |
What is the number of page faults for the following memory reference sequence using LRU considering 3 frames per process?
1, 7, 2, 3, 2, 4, 5, 6, 1
What is a safe state in deadlock avoidance?
Which of the following problems can occur due to improper process synchronization?
What is the use of the final keyword in Java?
What will be the output of the following Java code?
public class Test {
public static void main(String[] args) {
int x = 5;
System.out.println(++x * 2);
}
}
What will be the output of the following Java code?
public class Check {
public static void main(String[] args) {
int a = 5;
System.out.println(a > 2 ? a < 5 ? 10 : 20 : 30);
}
}
What will happen if a return statement is present inside a try block and also in the finally block?
What will be the output of the following Java code?
public class Hello {
public static void main(String[] args) {
String str = "Hello";
str.concat(" World");
System.out.println(str);
}
}
What will be the output of the following Java code?
public class Test {
public static void main(String[] args) {
try {
int a = 5 / 0;
} catch (ArithmeticException e) {
System.out.println("Arithmetic Exception caught");
}
System.out.println("Code continues...");
}
}
Which method is used to pause the execution of a thread for a specific period?
What is a weak entity in an ER model?
A functional dependency X → Y is considered a transitive dependency if:
What is the result of a Cartesian Product (×) between two relations R(A, B) and S(C, D)?
Which concurrency control technique ensures that transactions are executed in a serial order?
What happens when a transaction is rolled back?
Which schedule ensures that transactions are executed in the same order as they appear without interleaving?
What will be the result of the following SQL query?
SELECT COUNT(*) FROM Employees;
What is the truth value of the proposition (P → Q) ∧ (¬Q) when P is true and Q is false?
According to the Principle of Inclusion-Exclusion, for two sets A and B, the formula for |A ∪ B| is:
In Boolean algebra, which of the following statements is true regarding SOP and POS forms?
In how many ways can a committee of 3 people be selected from a group of 7?
What is the general solution of the recurrence relation \( a_n = 2a_{n-1} \) with \( a_0 = 5 \)?
Which of the following is a necessary condition for a connected graph to have an Eulerian circuit?
Which of the following statements is TRUE about FSMs (Finite State Machines)?
In the Pumping Lemma, which condition must hold for the substring y in \( w = xyz \)?
Which of the following protocols operate at the Transport Layer of the OSI Model?
What is the main function of a Hub in a network?
Which of the following applications is best suited for circuit switching rather than packet switching?
Which error detection method involves dividing the data by a predetermined divisor and appending the remainder?
Which of the following is a major advantage of CDMA over FDMA and TDMA?
Which of the following is NOT a characteristic of IPv6?
What mechanism does TCP use to ensure reliable data delivery?
What is the main purpose of a private key in an asymmetric cryptographic system?
What is the main function of HTTP?
Which algorithm is used to generate an ellipse by taking advantage of its symmetry?
What is the main difference between Boundary-Fill and Flood-Fill algorithms?
Which transformation moves an object without changing its shape, size, or orientation?
In 3D transformations, what is the purpose of homogeneous coordinates?
Which of the following clipping algorithms uses a region code system to classify line segments?
In the 2D viewing pipeline, what is the purpose of the clipping stage?
Which tag is used to create a hyperlink in an HTML document?
Which of the following is the correct way to apply an external CSS file?
What does the z-index property in CSS control?
What does document.querySelector(".class") do?
Which JavaScript function is used to change the style of an HTML element dynamically?
How do you loop through a multidimensional array in PHP?
Which function is used to fetch a single row from a MySQL query result as an associative array?
Which software process model involves small, iterative cycles with continuous customer feedback?
What is the use of COCOMO model?
RMMM stands for:
Which of the following is a key component of Software Configuration Management?
What is the relationship between Cohesion and Coupling?
What is Black Box software testing?
In AI, a rational agent selects actions based on:
Which of the following search techniques uses heuristics to estimate the cost from the current state to the goal state?
What is the primary advantage of Alpha-Beta pruning over standard Minimax?
Which of the following is an example of a valid First-Order Predicate Logic expression?
Which of the following is a major limitation of Semantic Networks?
What is the primary goal of Probabilistic Reasoning in AI?
Which time complexity is considered the fastest (best) among the following?
Which of the following is the major disadvantage of Quadratic Probing?
Which of the following problems can be solved optimally using a Greedy approach?
What is the time complexity of solving the Longest Common Subsequence problem using Dynamic Programming?
What can the Bellman-Ford algorithm detect that Dijkstra's algorithm cannot?
Odisha CPET 2025 Computer Science Exam Pattern and Marking Scheme Explained
Odisha CPET 2025 was an offline (pen-and-paper) objective test conducted by the Department of Higher Education for admission to PG Computer Science and MCA seats across Odisha's public universities and colleges, as listed on the official portal (pg.samsodisha.gov.in). The Computer Science set in this download has 100 questions worth 100 marks.
- Total questions: 100 single-best-answer MCQs, four options each
- Total marks: 100
- Marking scheme: +1 for every correct answer
- Negative marking: none - a wrong or unanswered question simply scores 0, so attempt all 100
- Mode: offline OMR-based test at allotted centres across Odisha
- Question types: theory recall plus applied problems - output prediction, pointer tracing, and short numericals
High-Weightage Topics in Odisha CPET 2025 Computer Science to Focus On First
The 100 questions in this paper lean heavily on core programming and data structures, so start there before touching the smaller topics. Here is how the questions actually split across subjects in this set.
- Programming in C, C++ and Java: about 30 of the 100 questions - the single biggest block, with pointers, arrays, file handling, and output-prediction snippets
- Data Structures and Algorithms: around 12 questions on trees, linked lists, stacks, sorting, and hashing
- Digital Logic and Computer Arithmetic: about 10 questions on Boolean simplification, counters, and 2's complement
- DBMS: roughly 9 questions on normalization, SQL, and the relational model
- Computer Networks: about 8 questions on the OSI/TCP-IP stack, routing, and protocols
- Operating Systems: around 7 questions on process scheduling, deadlock, and memory management
- Software Engineering, Computer Organization, Web Technology and AI: the remaining 20-odd questions, useful for scoring the last few easy marks
Odisha CPET Computer Science Previous Year Question Paper Video
Source: OCS by Ranjan
How to Use the Odisha CPET Computer Science Question Paper for Practice
Because there is no negative marking, the smart play is to solve this paper as a full 100-question timed mock, then close every gap with the solution PDF. Do not leave any bubble blank.
- Solve all 100 questions in one sitting first, then check answers against the solution PDF above
- Clear the 30 programming questions early - they are the fastest marks and decide your rank
- Redo the Data Structures and DBMS sets until output-prediction and normalization questions feel automatic
- Since a correct answer is +1 with no penalty, make an educated guess on every question you are unsure about
Odisha CPET 2025 Computer Science Question Paper FAQs
Ques. Is there negative marking in the Odisha CPET 2025 Computer Science paper?
Ans. No. Each correct answer earns +1 mark and there is no deduction for a wrong answer, so you should attempt all 100 questions. An unanswered question scores 0, the same as a wrong one.
Ques. How many questions are there in the Odisha CPET Computer Science paper and what is the total mark?
Ans. This Computer Science set carries 100 single-best-answer MCQs for a total of 100 marks, with four options per question. It is an offline OMR-based test.
Ques. Which topics have the highest weightage in Odisha CPET Computer Science?
Ans. Programming in C, C++ and Java dominates with about 30 of the 100 questions, followed by Data Structures (12), Digital Logic and Computer Arithmetic (10), DBMS (9), Computer Networks (8), and Operating Systems (7).
Ques. Who conducts the Odisha CPET exam and where are the results published?
Ans. Odisha CPET is conducted by the Department of Higher Education, Government of Odisha, with the application and admission process handled through SAMS Odisha. Notifications, answer keys, and results are published on the official portal pg.samsodisha.gov.in.
Ques. When was Odisha CPET 2025 conducted?
Ans. Odisha CPET 2025 was held in offline mode across centres in Odisha between May 5 and May 13, 2025, with each subject paper scheduled on a fixed date within that window.
Ques. Where can I download the Odisha CPET 2025 Computer Science question paper with solutions PDF for free?
Ans. Use the download table at the top of this page to get the full Odisha CPET 2025 Computer Science question paper with detailed solutions for free. For the official answer key, check pg.samsodisha.gov.in.








Comments