Instructions:
● Total Time: 60 Minutes
● Total Questions: 60
● Sections: Section A (Aptitude - 30 Questions), Section B (Technical - 30 Questions)
● Marking: Each question carries 1 mark. There is no negative marking.
● Disclaimer: This is a model paper created based on previously reported patterns. The
actual test structure and questions may vary.
Section A: Aptitude (30 Questions)
1. If A can complete a task in 10 days and B can complete the same task in 15 days, how
many days will it take for both A and B to complete the task together? a) 5 days b) 6
days c) 8 days d) 25 days
2. A man buys a shirt for ₹800 and sells it for ₹1000. What is his profit percentage? a) 20%
b) 25% c) 15% d) 30%
3. Find the next number in the series: 5, 11, 23, 47, ? a) 95 b) 91 c) 97 d) 99
4. A train is moving at a speed of 180 km/hr. Its speed in meters per second is: a) 5 m/s b)
30 m/s c) 40 m/s d) 50 m/s
5. The average of the first 5 prime numbers is: a) 5.0 b) 5.6 c) 6.0 d) 7.2
6. In a certain code, MANGALURU is written as NBOHBMVSV. How is INDIA written in that
code? a) JOEJB b) JOEJA c) JNEJB d) JODJB
7. Pointing to a boy, Meena said, "He is the only grandson of my grandfather". How is the
boy related to Meena? a) Son b) Nephew c) Uncle d) Brother
8. Choose the synonym for "Zeal". a) Apathy b) Laziness c) Enthusiasm d) Fear
9. Find the simple interest on ₹5000 for 2 years at 10% per annum. a) ₹500 b) ₹1000 c)
₹1500 d) ₹2000
10.A person walks 10m North, then turns left and walks 20m. He again turns left and walks
10m. How far is he from his starting position? a) 10m b) 20m c) 30m d) 40m
11.Choose the antonym for "Obscure". a) Vague b) Unclear c) Hidden d) Clear
12.The ratio of boys to girls in a class is 7:3. If there are 30 girls, what is the total number of
students in the class? a) 70 b) 90 c) 100 d) 120
13.Which of the following is a leap year? a) 1900 b) 2100 c) 2000 d) 2025
14.How many 3-digit numbers can be formed from the digits 1, 2, 3 without repetition? a) 3
b) 6 c) 9 d) 12
15.Statement: All pens are pencils. No pencil is a marker. Conclusion I: No pen is a marker.
Conclusion II: Some markers are pencils. a) Only Conclusion I follows b) Only
Conclusion II follows c) Both follow d) Neither follows
16.I am not used to ______ on the left. a) drive b) driving c) drove d) be driving
17.Find the odd one out: Lion, Tiger, Leopard, Cow. a) Lion b) Tiger c) Leopard d) Cow
18.What is the value of 15% of 300? a) 15 b) 30 c) 45 d) 60
19.A father is twice as old as his son. 20 years ago, he was 12 times the age of his son.
What is the present age of the father? a) 22 years b) 33 years c) 44 years d) 55 years
20.A boat can travel with a speed of 13 km/hr in still water. If the speed of the stream is 4
km/hr, find the time taken by the boat to go 68 km downstream. a) 2 hours b) 3 hours c)
4 hours d) 5 hours
21.Doctor : Hospital :: Teacher : ? a) Student b) Book c) School d) Education
22.Find the missing letter: A, C, F, J, O, ? a) T b) U c) V d) W
23.Which word does NOT belong with the others? a) Guitar b) Flute c) Violin d) Cello
24.A bag contains 3 red, 5 yellow and 4 green balls. If one ball is picked at random, what is
the probability that it is NOT yellow? a) 5/12 b) 7/12 c) 1/3 d) 1/4
25.The cost price of 20 articles is the same as the selling price of x articles. If the profit is
25%, then the value of x is: a) 15 b) 16 c) 18 d) 25
26.Spot the error in the sentence: "The number of guests invited to the party are 100." a)
The number of guests b) invited to c) the party are d) No error
27.Find the next number in the series: 8, 27, 64, 125, ? a) 216 b) 225 c) 256 d) 343
28.If A+B means A is the father of B, A-B means A is the wife of B, A*B means A is the
brother of B, then what is the relation of P with R in P*Q-R? a) Brother-in-law b)
Father-in-law c) Brother d) Uncle
29.Choose the synonym for "Frugal". a) Extravagant b) Economical c) Wasteful d) Rich
30.Choose the antonym for "Brave". a) Bold b) Courageous c) Timid d) Strong
Section B: Technical (30 Questions)
31. What is the output of the following C code?
C
#include <stdio.h>
int main() {
int x = 5;
printf("%d %d %d", x, x++, ++x);
return 0;
}
a) 5 6 7 b) 7 6 5 c) 5 5 7 d) Undefined behaviour
32. Which of the following is not a valid storage class in C? a) static b) extern c) dynamic d) auto
What is the output of the following C code?
C
#include <stdio.h>
int main() {
printf("%d", sizeof(sizeof(int)));
return 0;
}
a) 2 b) 4 c) 8 d) Size of size_t type (usually 4 or 8)
33. A queue data structure operates on which principle? a) LIFO (Last-In, First-Out) b) FIFO
(First-In, First-Out) c) LILO (Last-In, Last-Out) d) Random Access
34. What does the volatile keyword signify in C? a) The variable cannot be modified. b) The
variable is stored in a register. c) The compiler should not optimize this variable as it can change
unexpectedly. d) The variable is local to the file.
35. What is the output of this C code snippet?
C
#include <stdio.h>
int main() {
char arr[] = "Novigo";
char *ptr = arr;
printf("%c", *(ptr+3));
return 0;
}
a) N b) i c) g d) o
36. Which of the following is the fastest sorting algorithm in the worst-case scenario? a) Quick
Sort b) Bubble Sort c) Merge Sort d) Selection Sort
37. A pointer that is not pointing to any valid memory location is called a: a) Null Pointer b) Void
Pointer c) Wild Pointer d) Constant Pointer
What is the output of this C code?
C
#include <stdio.h>
void test() {
static int count = 0;
count++;
printf("%d ", count);
}
int main() {
test();
test();
return 0;
}
a) 0 1 b) 1 1 c) 1 2 d) 0 0
38. Which of these is not a feature of Object-Oriented Programming? a) Inheritance b)
Procedural Abstraction c) Polymorphism d) Data Hiding
What is the value of x after this code executes?
C
int x = 10;
x = x >> 1;
a) 10 b) 20 c) 5 d) 2
39. In a circular linked list: a) The first node points to NULL. b) The last node points to NULL. c)
The last node points to the first node. d) The middle node points to the last node.
40. What is the output of this code?
C
#include <stdio.h>
int main() {
int a=3, b=5;
a = a ^ b;
b = a ^ b;
a = a ^ b;
printf("%d %d", a, b);
return 0;
}
a) 3 5 b) 5 3 c) 0 0 d) 3 3
41. Which function reallocates memory but may not preserve the content? a) malloc() b) calloc()
c) realloc() d) free()
42. What is a "dangling pointer"? a) A pointer pointing to a memory location that has been freed.
b) A pointer that has not been initialized. c) A pointer that points to NULL. d) A pointer to a
pointer.
43. Which data structure is used to implement recursion? a) Queue b) Stack c) Tree d) Graph
44. What is the time complexity of a binary search algorithm? a) O(n) b) O(n^2) c) O(log n) d)
O(1)
45. What is the output?
C
#include <stdio.h>
int main() {
for(int i=0; i<3; i++) {
switch(i) {
case 0: printf("A");
case 1: printf("B"); break;
case 2: printf("C");
}
}
return 0;
}
a) ABC b) ABBC c) ABBCC d) AB C
46. The difference between struct and union is: a) There is no difference. b) Struct members
share memory; Union members have separate memory. c) Union members share memory;
Struct members have separate memory. d) Structs are for integers, Unions are for characters.
47. What is the output of printf("%d", printf("Hello"));? a) Hello5 b) 5Hello c) Hello
d) Error
48. The keyword break cannot be simply used within: a) for b) while c) if-else d) switch
49. const int *p; declares: a) A constant pointer to an integer. b) A pointer to a constant
integer. c) A constant pointer to a constant integer. d) A null pointer.
50. What is the default return type of a function if not specified in C? a) void b) char c) int d)
float
51. Which header file is required for strlen()? a) <stdio.h> b) <stdlib.h> c)
<string.h> d) <conio.h>
52. What is the output?
C
#include <stdio.h>
int main(){
int a[5] = {1,2,3,4,5};
int *p = a;
printf("%d", *(p+2));
return 0;
}
a) 1 b) 2 c) 3 d) Address of the 3rd element
53. In C, what is the default value of a global variable if not initialized? a) Garbage value b) 0 c)
1 d) NULL
54. A function that calls itself is known as a: a) Looping function b) Recursive function c) Static
function d) Auto function
55. What is the purpose of the goto statement? a) To jump to a specific function. b) To
terminate the program. c) To jump to a labeled statement within the same function. d) To return
a value from a function.
56. What is the size of an empty struct in C? a) 0 b) 1 c) Depends on the compiler d) Throws an
error
57. int a = 1, b = 1, c; c = a++ + b; What are the values of a, b, and c? a) a=2,
b=1, c=2 b) a=2, b=1, c=3 c) a=1, b=1, c=2 d) a=1, b=2, c=2
Sample Technical Interview Coding Questions
This section simulates the questions asked during the Technical Interview (Round 2). You will
be expected to write the code and explain the logic.
Question 1: Check for Palindrome String
Problem: Write a C program to check if a given string is a palindrome (reads the same forwards
and backwards) without using any library functions like strrev().
Example:
● Input: "madam" -> Output: "Palindrome"
● Input: "hello" -> Output: "Not a Palindrome"
C
#include <stdio.h>
#include <string.h>
void isPalindrome(char str[]) {
int left = 0;
int right = strlen(str) - 1;
// Keep comparing characters while they are same
while (right > left) {
if (str[left++] != str[right--]) {
printf("%s is Not a Palindrome\n", str);
return; // exit the function
}
}
printf("%s is a Palindrome\n", str);
}
int main() {
isPalindrome("madam");
isPalindrome("novigo");
return 0;
}
Question 2: Find the Second Largest Element in an Array
Problem: Write a C program to find the second largest element in a given integer array.
Example:
● Input: [12, 35, 1, 10, 34, 1] -> Output: 34
C
#include <stdio.h>
#include <limits.h> // For INT_MIN
void findSecondLargest(int arr[], int size) {
int largest, second_largest;
if (size < 2) {
printf("Invalid Input. Array should have at least two elements.\n");
return;
}
largest = second_largest = INT_MIN;
// Traverse the array to find the largest element
for (int i = 0; i < size; i++) {
if (arr[i] > largest) {
largest = arr[i];
}
}
// Traverse the array again to find the second largest
for (int i = 0; i < size; i++) {
if (arr[i] > second_largest && arr[i] < largest) {
second_largest = arr[i];
}
}
if (second_largest == INT_MIN) {
printf("There is no second largest element.\n");
} else {
printf("The second largest element is %d\n", second_largest);
}
}
int main() {
int arr[] = {12, 35, 1, 10, 34, 1};
int n = sizeof(arr) / sizeof(arr[0]);
findSecondLargest(arr, n);
return 0;
}