I applied on the company website.
Got a mail stating they wanted a telephonic interview.
Its a code sharing tool by hackerrank ,”codepair”.
Where both you and interviewer share screen and you can type the code whatever he asks for
Interviewer showed up 40 min late and I was about to leave the site, when my phone rang.
Started with basics tell me about your current job, kind of work etc
que 1.
rate yourself in c++ on a scale of 10.
I rated 6 and said its complex and hard to master
questions on c++,
pointer and references , initializer list, static , const ( variables , function etc), copy constructor, assignment operator
performed averagely in those questions
good question:
const int p = 10;
change that value at p by hook or by crook.
gave a wrong answer saying,
int * test = &p;
test = 50 ;
// although this can be done by access memory adresses dirctly using strings and some magic
programming questions-
you are given an int e.g. 10 represented in binary as 1010 flip the bits (2s complement) to 0101.
first i tried using the not operator dirctly then realized that the total number of bits required is the to be considered here.
coded solution using bool bit[32] and loops , he said he can see what you are doing, and expected a efficient solution.
I was mostly impressed by thier devlopment enviroment they use vi , emacs and linux in development ( which i always wanted to in my job ) none of the MS garbage, that impressed me but sadly i couldn’t impress them.
Interview questions [1]
Question 1
how does the compiler interpret const keyword and how it can be fooled.