NVIDIA Interview Questions
- 0of 0 votes
AnswersDFS of a m-arry in non-recursive manner without using extra memory.
- abcTemp March 18, 2011| Report Duplicate | Flag | PURGE
NVIDIA Software Engineer / Developer C - 0of 0 votes
Answerswrite a code to find the endianness of the system
- rakesh March 15, 2011| Report Duplicate | Flag | PURGE
NVIDIA Software Engineer / Developer C - 0of 0 votes
Answers8 ball problem. if given 8 balls with only one ball being a lighter weight and all other 7 being the same weight and given a scale, how will you find the light weight ball. do this in minimum number of steps
- rakesh March 15, 2011| Report Duplicate | Flag | PURGE
NVIDIA Software Engineer / Developer Brain Teasers - 0of 0 votes
Answersgiven a pointer to a single node of singly linked list, with no other details ( dont know where the head is) and its not a circular list, how would you remove only that node from the list
- rakesh March 15, 2011| Report Duplicate | Flag | PURGE
NVIDIA Software Engineer / Developer Algorithm - -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 - 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 - 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 debug kernel code.
- NVIDIA reject March 15, 2011| Report Duplicate | Flag | PURGE
NVIDIA Software Engineer / Developer C Debugging Linux Kernel - 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
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
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 - 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
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
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 - 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
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
AnswersWhen would you use a hash table? Specific situations were asked
- SK March 09, 2011| Report Duplicate | Flag | PURGE
NVIDIA Software Engineer / Developer C Hash Table - 0of 0 votes
AnswersWrite code for any pointer function.
- SK March 09, 2011| Report Duplicate | Flag | PURGE
NVIDIA Software Engineer / Developer C - 0of 0 votes
AnswersDo you have any experience with graphics?
- SK March 09, 2011| Report Duplicate | Flag | PURGE
NVIDIA Software Engineer / Developer C - 0of 0 votes
AnswerHow do you debug?
- SK March 09, 2011| Report Duplicate | Flag | PURGE
NVIDIA Software Engineer / Developer Linux Kernel - 0of 0 votes
AnswersExplain about what you cannot do in a ISR.
- SK March 09, 2011| Report Duplicate | Flag | PURGE
NVIDIA Software Engineer / Developer - 0of 0 votes
AnswersHow would sleep in a kernel?
- SK March 09, 2011| Report Duplicate | Flag | PURGE
NVIDIA Software Engineer / Developer C Linux Kernel - 0of 0 votes
AnswersDifference between semaphore and mutex.
- SK March 09, 2011| Report Duplicate | Flag | PURGE
NVIDIA Software Engineer / Developer C Linux Kernel - 0of 0 votes
AnswerWrite a pseudo code for page fault handler.
- SK March 09, 2011| Report Duplicate | Flag | PURGE
NVIDIA Software Engineer / Developer Linux Kernel - 0of 0 votes
AnswersWhat is an ISR? What are the basic operations there?
- SK March 09, 2011| Report Duplicate | Flag | PURGE
NVIDIA Software Engineer / Developer C Linux Kernel - 0of 0 votes
AnswerHow do you improve performance of kernel code.
- SK March 09, 2011| Report Duplicate | Flag | PURGE
NVIDIA Software Engineer / Developer Linux Kernel - 0of 0 votes
AnswerVarious locking mechanisms
- SK March 09, 2011| Report Duplicate | Flag | PURGE
NVIDIA Software Engineer / Developer C