Describe to me some bad code you've read or inherited lately.
Answer / Purnima Tiwari
Recently, I encountered a piece of code written in C where functions were defined without prototypes at the top of the file, causing numerous linker errors and complicating maintenance. Another example is spaghetti code—an overly complex and hard-to-follow sequence of statements with no clear structure or organization, making it difficult to understand, debug, and modify.nBad code can lead to inefficiencies, errors, and security vulnerabilities, emphasizing the importance of clean, well-documented, and modular programming practices.
| Is This Answer Correct ? | 0 Yes | 0 No |
Tell me what is difference between binary semaphore and mutex?
Explain what is semaphore?
Please explain what is interrupt latency? How can you reduce it?
Explain what are the differences between analytical and computational modeling?
Tell me why is it better to use multi-threading polling then single threading model?
Tell me whether we can use semaphore or mutex or spinlock in interrupt context in linux kernel?
Have you developed software testing procedures for new systems and performed qa, quality assurance, or audits?
Do you know what is priority inheritance?
What are the languages used in embedded system?
Explain what is size of character, integer, integer pointer, character pointer?
What is loop unrolling?
Tell me what is interrupt latency?