TPSC Prelims previous year questions questions with answers
772 multiple-choice questions. Open any question for its answer and explanation.
- In a linked list, each node containsAsked in TPSC Senior Technical Assistant 2026
- Which sorting algorithm has worst-case time complexity of O(n²) ?Asked in TPSC Senior Technical Assistant 2026
- A complete binary tree with 4 levels has a maximum of how many nodes ?Asked in TPSC Senior Technical Assistant 2026
- Which file organization allows fastest direct access ?Asked in TPSC Senior Technical Assistant 2026
- In a directed graph with n vertices and no self-loops, maximum number of edgesAsked in TPSC Senior Technical Assistant 2026
- What is the postfix (Reverse Polish Notation) form of A+B*C ?Asked in TPSC Senior Technical Assistant 2026
- Recursion must have a ______ to stop infinite calls.Asked in TPSC Senior Technical Assistant 2026
- Which symbol is used for single-line comments in C ?Asked in TPSC Senior Technical Assistant 2026
- What is the output of printf ("%d", 5 > 3 + 2) ?Asked in TPSC Senior Technical Assistant 2026
- What will happen if a value is returned from a function declared with void return type in C ?Asked in TPSC Senior Technical Assistant 2026
- What is the correct way to declare an integer variable in C ?Asked in TPSC Senior Technical Assistant 2026
- Which loop is guaranteed to execute at least once ?Asked in TPSC Senior Technical Assistant 2026
- In scanf, what is the primary role of format specifiers like %d and %f ?Asked in TPSC Senior Technical Assistant 2026
- Which operator is used to access a structure member through a pointer ?Asked in TPSC Senior Technical Assistant 2026
- What is the size of int in C on a 32-bit system ?Asked in TPSC Senior Technical Assistant 2026
- What will be the output of int x=5; printf("%d", x++);Asked in TPSC Senior Technical Assistant 2026
- If int *p points to arr[2], then (p+1) points toAsked in TPSC Senior Technical Assistant 2026
- Which statement about Polymorphism is FALSE ?Asked in TPSC Senior Technical Assistant 2026
- In C++, what happens if a base class destructor is NOT declared virtual and a derived object is deleted via base pointer ?Asked in TPSC Senior Technical Assistant 2026
- In C++, which function has the same name as the class and is called automatically when an object is created ?Asked in TPSC Senior Technical Assistant 2026
- Which keyword is used to create an object in Java ?Asked in TPSC Senior Technical Assistant 2026
- Which OOP concept hides internal data from outside access ?Asked in TPSC Senior Technical Assistant 2026
- Which access specifier in C++ allows access only within the class ?Asked in TPSC Senior Technical Assistant 2026
- Which of the following would successfully overload the method void calculate(int a, double b) ?Asked in TPSC Senior Technical Assistant 2026
- In Java, which keyword prevents a class from being inherited ?Asked in TPSC Senior Technical Assistant 2026