Computer Architecture & Low Level Interview Questions
- 0of 0 votes
Answerwhat are the advantages and disadvantages of little endian vs big endian and vice versa?
- Anonymous October 20, 2009| Report Duplicate | Flag | PURGE
Expedia Software Engineer / Developer Computer Architecture & Low Level - 0of 0 votes
AnswersWhat is the size of a VPTR? where is it stored?
- Rohan October 08, 2009| Report Duplicate | Flag | PURGE
Bloomberg LP Financial Software Developer Computer Architecture & Low Level - 0of 0 votes
AnswersWill malloc work if RAM is 5MB , 1st two MBs are full and the 4th MB is full and it has to allocate 1.5 MB of data(basically there is fragmentation).
- Rohan October 08, 2009| Report Duplicate | Flag | PURGE
Bloomberg LP Financial Software Developer Computer Architecture & Low Level - 0of 0 votes
AnswersWhere are static variables stored?
- fuckubloomberg July 26, 2009| Report Duplicate | Flag | PURGE
Bloomberg LP Financial Software Developer Computer Architecture & Low Level - 0of 0 votes
AnswersWrite a function to check if a stack grows up or down
- fuckubloomberg July 26, 2009| Report Duplicate | Flag | PURGE
Bloomberg LP Financial Software Developer Computer Architecture & Low Level - 0of 0 votes
AnswersDifference between heap and stack? Write a function to figure out if stack grows up or down.
- DPS Prog May 17, 2009| Report Duplicate | Flag | PURGE
Bloomberg LP Software Engineer / Developer Computer Architecture & Low Level - 0of 0 votes
Answerswhat's the trade-off of choosing a bigger or smaller cache
- trade-off of choosing a bigger or smaller cache January 13, 2009| Report Duplicate | Flag | PURGE
Software Engineer / Developer Computer Architecture & Low Level - 1of 1 vote
AnswersExplain how memory allocation works in C++. Where is the stack vs the heap used?
- kashy October 16, 2008| Report Duplicate | Flag | PURGE
Bloomberg LP Software Engineer / Developer Computer Architecture & Low Level C - 0of 0 votes
AnswersOther than virtual-physical mapping, what is the other functionality of MMU?
- Sandeep Marathe October 12, 2008| Report Duplicate | Flag | PURGE
Qualcomm Software Engineer / Developer Computer Architecture & Low Level - 0of 0 votes
AnswerAsked abt Write-thru, write-back caches..when is a word evicted in write-back cache ?
- Sandeep Marathe October 12, 2008| Report Duplicate | Flag | PURGE
Qualcomm Software Engineer / Developer Computer Architecture & Low Level - 4of 0 votes
AnswersGive me the best way to multiply an integer by 3.5. There are many solutions to this but (x>>1)+x+(x<<1) is the best since it is least prone to overflowing.
- Anonymous September 25, 2008| Report Duplicate | Flag | PURGE
Microsoft Software Engineer in Test Computer Architecture & Low Level - 1of 0 votes
Answersfind number of 1's in particular number fastest way possible. (use hash table).
- newguy September 01, 2008| Report Duplicate | Flag | PURGE
NVIDIA Software Engineer / Developer Computer Architecture & Low Level - 1of 0 votes
Answerswrite a macro to give offset of particular field in structure.Like struct abc { int a,int b,char c}. Write a macro like offset(abc , c) to find offset of c from top.
- newguy September 01, 2008| Report Duplicate | Flag | PURGE
NVIDIA Software Engineer / Developer Computer Architecture & Low Level - 0of 0 votes
Answersreverse binary representation of number.
- newguy September 01, 2008| Report Duplicate | Flag | PURGE
NVIDIA Software Engineer / Developer Computer Architecture & Low Level Coding - 0of 0 votes
AnswersI have a number in float like 2.5. Store this number in int in such a way that store 2 in bits
- newguy September 01, 2008
31-16 and 5 in 15-0.write a function to do that to convert it and vice versa.| Report Duplicate | Flag | PURGE
NVIDIA Software Engineer / Developer Computer Architecture & Low Level - 0of 0 votes
AnswersLet suppose there is a FIFO. Data is written into the FIFO at the speed of 4 ns. A maximum
- AJ July 22, 2008
of 80 words /100 cycle are expected. The read port reads the data at the speed of 5ns. It
can read 80 words/ 80 cycles. What should be the depth of the FIFO so that we dont lose any
data. Hint: Consider the previous cycle as well| Report Duplicate | Flag | PURGE
NVIDIA Software Engineer / Developer Computer Architecture & Low Level - 1of 0 votes
AnswersIf you were to implement a garbage collector in C++ how will you do it?
- Amod July 22, 2008| Report Duplicate | Flag | PURGE
Bloomberg LP Software Engineer / Developer C++ Computer Architecture & Low Level - 0of 0 votes
AnswersDraw 2-level paging diagram.
- Hank Lee July 22, 2008| Report Duplicate | Flag | PURGE
NVIDIA Software Engineer / Developer Computer Architecture & Low Level - 2of 0 votes
AnswersWrite an aligned malloc & free function. Which takes number of bytes and aligned byte (which is always power of 2)
- NewGuy April 26, 2008
Ex. align_malloc (1000,128);
it will return memory address multiple of 128 of the size 1000.
aligned_free();
it will free memory allocated by align_malloc.| Report Duplicate | Flag | PURGE
NVIDIA Software Engineer / Developer Computer Architecture & Low Level Coding - 1of 1 vote
AnswersCan u have a floating point operation inside a interrupt handler?
- backbone April 01, 2008
He asked me this question after he asked me whether there can be a print message inside a interrupt handler.| Report Duplicate | Flag | PURGE
Qualcomm Software Engineer / Developer Linux Kernel Computer Architecture & Low Level - 0of 0 votes
Answers1. DMA controller.
- Backbone April 01, 2008
2. Cache coherency.- MESI /MSI protocol
3. Cache coherency mechanism.
4. Interrupt handler.
5. what happens when function1 calls function2 with it.(like where does the linkage register stuff get stored..and resume execution)
6.Can u have reentrant code inside interrupt handler. (NO)
7.What will happen/can u have printf/printk inside an interrrupt hancler (i think he wanted me to say no.. but I did not know the reason)
8.context switch.. when do u need it.
9.what does a interrupt handler take in as input... and what does it return.( it does not accept or return anything)
10. what is the difference between ISR and interrupt handler.(Both are the same)
11.how to search a book in one million books.
12.How to check whether a linked list is circular.| Report Duplicate | Flag | PURGE
Qualcomm Software Engineer / Developer Linux Kernel Computer Architecture & Low Level Linked Lists - -1of 1 vote
Answers1) Design a synchronous circuit which follows this pattern:
- AJ February 22, 2008
1000
1100
1110
1111
0111
0011
0001
0000
1000
Is it possible to design this circuit if there is no reset. If yes then how?
2) Design a circuit which generates the following pattern:
1000
0100
0010
0001
0010
0100
1000
3) In the above mentioned question how many FF's are least required? Justify your answer!
4)Generate the above mentioned pattern by using only combinational logic and D FF.| Report Duplicate | Flag | PURGE
NVIDIA Software Engineer / Developer Computer Architecture & Low Level