Round 1: Test
The test was conducted on the HackerRank platform and lasted for 50 minutes. It comprised multiple-choice questions (MCQs) on aptitude, math, and C programming, as well as two simple data structures and algorithms (DSA) questions in C.
Please note that the MCQs had negative markings.
Out of 20-25 participants who took the test, only 5 were shortlisted for Round 2.
Round 2: Interview
The interview was held online and was conducted by three interviewers. It lasted for 1 hour. It began with my brief introduction, and during this time, a HackerRank link was shared with me. Each interviewer asked questions in separate windows.
1) Delete the k-th node from the end of a linked list (head was given).
2) What is the difference between a struct and a class?
3) Implement the memcpy function in C.
4) C question mixed with OS concepts:
Question: Given that every loop iteration takes 1 ms and the code runs for 100 iterations, would this program execute for exactly 100 ms?
5) Predict the next number in the series: 11, 13, 12, 14, 13, ...
6) Pointer manipulation questions with an array:
There was a pointer p pointing to the start of an array containing 10, 20, 30, 40.
I was asked about:
(*p)++
*p++
*++p
And so on.
7) How to turn on or off a particular bit in a 32-bit integer.
8) Puzzle question:
You are given a 5-liter full container and a 4-liter full container. The task is to measure out exactly 7 liters using only these two containers and a 10-liter container.
At the end of the interview, the interviewers asked if I had any questions for them. I inquired about their experiences, and the interview concluded on a positive note.
The results were announced that night. Out of the 5 candidates, 3 were shortlisted, and I was one of them.