NVIDIA Interview Questions
- 0of 0 votes
AnswersGiven a char array find possible soln like :
- hk588853 August 30, 2012 in India
eg for "abc"
ans: {a,ab,abc.b,bc,c}
char[] function(char[])| Report Duplicate | Flag | PURGE
NVIDIA - 0of 0 votes
AnswersGiven an integer array find the longest subarray cantaining consequitive nos.
- hk588853 August 30, 2012 in India
eg {4,5,34,33,32,11,10,31}
ans is {31,32,33,34}
int[] function(int[])| Report Duplicate | Flag | PURGE
NVIDIA - 1of 1 vote
AnswersGiven a 2D matrix of characters we have to check whether the given word exist in it or not.
- hk588853 August 30, 2012 in India
eg
bool function(char[][],char[])
s f t
d a h
r y o
we can find "rat in it
(top down , straight ,diagonal).. even in reverse order. with least complexiety.| Report Duplicate | Flag | PURGE
NVIDIA Arrays - 0of 0 votes
AnswersGive output for the following code
#include<stdio.h> void main() { int i = 5; printf("%d\n",i++ + ++i); printf("%d\n",i++ + ++i + i++ + i++); printf("%d\n",++i + i++ + ++i + i++); }
Please give the output with os and compiler u used with proper explanation. Getting unexpected answers..... help !!!
- saj1919 June 21, 2012 in United States
This is old question posed by senior student.| Report Duplicate | Flag | PURGE
NVIDIA Software Engineer in Test C - 0of 0 votes
Answersswap every two bits in an unsigned char .. eg swap bits at 0 and 1st position, swap 2nd and 3rd position, swap 4th and 5th position etc ..
- dvyas May 16, 2012 in United States| Report Duplicate | Flag | PURGE
NVIDIA Software Engineer / Developer Bit Manipulation - 1of 1 vote
AnswersGiven two numbers "a" and "b" and an average formula (a+b)/2. Find one condition where it wont work. Also, give solution to it
- dvyas May 16, 2012 in United States| Report Duplicate | Flag | PURGE
NVIDIA Software Engineer / Developer Bit Manipulation C - 0of 0 votes
AnswersIn a multi-threaded process,If one thread is busy on I/O will the entire process be blocked?
- chandan.jc May 10, 2012 in United States for System Software| Report Duplicate | Flag | PURGE
NVIDIA Intern Operating System - 1of 1 vote
AnswersAssuming there's no Array data structure in C, how would you implement it.
- chandan.jc May 10, 2012 in United States for System Software| Report Duplicate | Flag | PURGE
NVIDIA Intern C - 2of 2 votes
Answersgiven two integers and two bit positions. Set the first integer between the two bit positions to be that of the second integer.
- Lively May 06, 2012 in United States| Report Duplicate | Flag | PURGE
NVIDIA Software Engineer / Developer Bit Manipulation - 0of 0 votes
Answersimplement sqrt(x)
- Lively May 06, 2012 in United States| Report Duplicate | Flag | PURGE
NVIDIA Software Engineer / Developer Math & Computation - 0of 0 votes
AnswersDifference between constant char pointer and constant pointer to a char.
- dareyouspam May 06, 2012 in United States| Report Duplicate | Flag | PURGE
NVIDIA Software Engineer / Developer C - 0of 0 votes
AnswersCode to find endianness of a machine.
- dareyouspam May 06, 2012 in United States| Report Duplicate | Flag | PURGE
NVIDIA Software Engineer / Developer C Coding - 1of 1 vote
Answers* You are given 2 eggs.
- dareyouspam May 06, 2012 in United States
* You have access to a 100-storey building.
* Eggs can be very hard or very fragile means it may break if dropped from the first floor or may not even break if dropped from 100 th floor.Both eggs are identical.
* You need to figure out the highest floor of a 100-storey building an egg can be dropped without breaking.
* Now the question is how many drops you need to make. You are allowed to break 2 eggs in the process.| Report Duplicate | Flag | PURGE
NVIDIA Morgan Stanley Software Engineer / Developer Brain Teasers Algorithm - 1of 1 vote
AnswersDifference between array and linked list
- DJ March 31, 2012 in United States| Report Duplicate | Flag | PURGE
NVIDIA Intern Arrays - 0of 0 votes
Answersint error()
- y so serious? January 25, 2012 in United States
{
char *buf=(char *) malloc(10,sizeof(char));
return buf;
}
whats the error....?
warm up question| Report Duplicate | Flag | PURGE
NVIDIA - 0of 0 votes
Answerswhy do we use circular link list in place of any balanced binary search tree in storage allocator? One draw back is that to free() a chunk of memory allocator has to search the link list and then if found that address then release , so why not tree to reduce this search and merge?
- anon July 12, 2011| Report Duplicate | Flag | PURGE
NVIDIA Software Engineer / Developer - 0of 0 votes
Answershe drew a diagram on the white board, asked me this synchronization problem abt 2 processes trying to communicate with the hardware. there was 1 bit register on the hardware u can use as extra memory if u want. there were several approaches i tried, some which wouldnt work, the rest im not sure if they were right. in the end he said now give me a solution if it were a multi processor system. i didnt really say much after that. was pretty stuck.
- Abhi April 15, 2011| Report Duplicate | Flag | PURGE
NVIDIA Software Engineer / Developer Computer Architecture & Low Level - 0of 0 votes
Answersexample of volatile usage.
- Abhi April 15, 2011| Report Duplicate | Flag | PURGE
NVIDIA Software Engineer / Developer C - 0of 0 votes
Answersos concepts involving deadlocks, semaphores, spinlocks, sleeping in the kernel ( process and interrupt context ), softirq's
- Abhi April 15, 2011
interrupts, interrupt handling, few virtual memory questions| Report Duplicate | Flag | PURGE
NVIDIA Software Engineer / Developer Networking / Web / Internet - 1of 1 vote
Answersfind if 2 strings are anagrams of each other
- Abhi April 15, 2011| Report Duplicate | Flag | PURGE
NVIDIA Software Engineer / Developer String Manipulation - 0of 0 votes
Answersimplement c subtring function. write the code, along with error checks and some basic testing
- Abhi April 15, 2011| Report Duplicate | Flag | PURGE
NVIDIA Software Engineer / Developer C - 0of 0 votes
Answersrotate a matrix by 180 degrees. mxn matrix
- Abhi April 15, 2011| Report Duplicate | Flag | PURGE
NVIDIA Software Engineer / Developer Arrays - 0of 0 votes
Answersangle between hands of the clock.. the interviewer was expecting me to have a formula memorized. i told him i dont know any formula so i derived an equation which worked. he was still very skeptical abt it, until i did some testing n showed him it works.
- Abhi April 15, 2011| Report Duplicate | Flag | PURGE
NVIDIA Software Engineer / Developer Math & Computation - 0of 0 votes
Answersdelete a particular node in a linked list given a pointer to that node, what if it was the last node
- Abhi April 15, 2011| Report Duplicate | Flag | PURGE
NVIDIA Software Engineer / Developer Linked Lists - 1of 1 vote
AnswersRotation of a 32 bit number
- abcTemp March 18, 2011| Report Duplicate | Flag | PURGE
NVIDIA Software Engineer / Developer Bit Manipulation