NVIDIA Interview Report
- 0of 0 votes
AnswersWrite code for Strlen(char *). Write the test cases for this code.
- NVIDIA reject March 15, 2011| Report Duplicate | Flag | PURGE
NVIDIA Software Engineer / Developer C - 0of 0 votes
AnswersIs sizeof() a macro or a function? I said macro... asked why not a function (leave alone the inline advantage of a macro)
- NVIDIA reject March 15, 2011
Ans: In C there is no overloading. We send various 'Types' of parameters to sizeof. Macros dont do type checking. Hence Macros!| Report Duplicate | Flag | PURGE
NVIDIA Software Engineer / Developer C - 0of 0 votes
AnswersHow would you do benchmarking (compare the performance) in a device driver code? Apart from timing or time is there any other standard way? He basically meant comparing Programmed I/O and DMA. (Leave security etc. only performance comparison)
- NVIDIA reject March 15, 2011| Report Duplicate | Flag | PURGE
NVIDIA Software Engineer / Developer C Linux Kernel - 0of 0 votes
AnswersWhen would you use a hash table? Specific situations were asked
- NVIDIA reject March 15, 2011| Report Duplicate | Flag | PURGE
NVIDIA Software Engineer / Developer C Data Structures General Questions and Comments - 0of 0 votes
AnswersDo you have any experience with Multimedia or graphics or any codecs?
- NVIDIA reject March 15, 2011| Report Duplicate | Flag | PURGE
NVIDIA Software Engineer / Developer General Questions and Comments - 1of 1 vote
AnswersCount the no. of 1's in a 32 bit no. where there are mostly 0's in the number?
- NVIDIA reject March 15, 2011
Since the no. has less 1's. Dont itereate on any mask or temp. instead, do this,
if (num > 0)
{
if(num >> 2 & 1)
count ++;
number = number >> 2;
}
this would make the number diminish each time and give a optimal solution.| Report Duplicate | Flag | PURGE
NVIDIA Software Engineer / Developer Bit Manipulation C - 0of 0 votes
AnswersSay a function takes a pointer and allocates it some memory. How would the function 'Prototype' be?
- NVIDIA reject March 15, 2011
Ans: void memallocate (size_ size, void ** p)
they wanted to know the double pointer declaration. He also asked why we give double pointer in functions that take Linked List head etc.| Report Duplicate | Flag | PURGE
NVIDIA Software Engineer / Developer C Linked Lists - 1of 1 vote
AnswersHow would you debug kernel code.
- NVIDIA reject March 15, 2011| Report Duplicate | Flag | PURGE
NVIDIA Software Engineer / Developer C Debugging Linux Kernel - 0of 0 votes
AnswersSay there is an operation like a=b; Its the statement for which you want to avoid concurrency. (Say SMP or preemption or what ever)
- NVIDIA reject March 15, 2011
With out using locks(spin,semaphore,mutex etc. etc.) how would you make this statement protected?
Ans: atomic operations (atomic assign etc.)| Report Duplicate | Flag | PURGE
NVIDIA Software Engineer / Developer C Linux Kernel - 1of 1 vote
AnswersHow would you handle sleeping or blocking instructions in an Interrupt Service Routine(if unavoidable) or basically if the length of ISR is long?
- NVIDIA reject March 15, 2011
Ans: Tasklets and Workqueues. PLEASE LET ME KNOW IF THERE ARE ANY OTHER.| Report Duplicate | Flag | PURGE
NVIDIA Software Engineer / Developer C Linux Kernel - 0of 0 votes
AnswersHow would you turn a matrix (2D) by 180 degree...
- NVIDIA reject March 15, 2011
1 2 3
4 5 6 would be turning by 90 degrees if we do it as
1 4
2 5
3 6
we have to turn it 180 degrees - another 90 degrees ( I did not understand this question properly)| Report Duplicate | Flag | PURGE
NVIDIA Software Engineer / Developer C - -1of 1 vote
AnswersWrite code for page fault handler in Linux ( I have a project on this so may be I was asked)
- NVIDIA reject March 15, 2011| Report Duplicate | Flag | PURGE
NVIDIA Software Engineer / Developer C Linux Kernel