Software Developer C Interview Questions

1,023 software developer c interview questions shared by candidates

Round 1) - Given a string containing only the characters 'A' 'B' 'C' 'D', return the string when all adjacent "AB" / "BA" and "CD" / "DC" pairs have been removed. - Given a graph (represented as an array) where nodes have value either 'A' or 'B', find the longest path where no two adjacent nodes have the same value. Round 2) - Physical memory vs virtual memory. You have 4GB physical, but you allocate an 8Gb buffer. Is this possible? If so, how? How is the memory actually read as we traverse the memory? - Thread vs process, what's the difference? Talk about some common threading models. -What are some methods of inter-process communication. Between threads. Between processes. - Explain how a named pipe works (FIFO). - What does the inline keyword do in C++? What are the pros and cons? - How do virtual functions work in C++? Explain how vtable lookup works. - Map vs unordered_map in C++, how is each one implemented under the hood. What data structure is used.
avatar

C++ Software Developer

Interviewed at Hudson River Trading

4.2
May 10, 2022

Round 1) - Given a string containing only the characters 'A' 'B' 'C' 'D', return the string when all adjacent "AB" / "BA" and "CD" / "DC" pairs have been removed. - Given a graph (represented as an array) where nodes have value either 'A' or 'B', find the longest path where no two adjacent nodes have the same value. Round 2) - Physical memory vs virtual memory. You have 4GB physical, but you allocate an 8Gb buffer. Is this possible? If so, how? How is the memory actually read as we traverse the memory? - Thread vs process, what's the difference? Talk about some common threading models. -What are some methods of inter-process communication. Between threads. Between processes. - Explain how a named pipe works (FIFO). - What does the inline keyword do in C++? What are the pros and cons? - How do virtual functions work in C++? Explain how vtable lookup works. - Map vs unordered_map in C++, how is each one implemented under the hood. What data structure is used.

4 tasks in Codility. The first one was about C++ basics like dynamic_cast etc, 4-choice Second one classic parsing exercise in C++ using string, maps, arrays, however very badly specified so that correct solution was simply not feasible in given time, unless you neglect most possible inputs and "go straight to dumbest implementation" that might or might not pass Codility scoring test. Third question is about dynamic programming, in-depth search of cheapest route. Fourth was numerical exercise, relative calculation on angles maybe easy but certainly might be tricky.
avatar

C++ Software Development Engineer

Interviewed at TomTom

3.8
Aug 20, 2021

4 tasks in Codility. The first one was about C++ basics like dynamic_cast etc, 4-choice Second one classic parsing exercise in C++ using string, maps, arrays, however very badly specified so that correct solution was simply not feasible in given time, unless you neglect most possible inputs and "go straight to dumbest implementation" that might or might not pass Codility scoring test. Third question is about dynamic programming, in-depth search of cheapest route. Fourth was numerical exercise, relative calculation on angles maybe easy but certainly might be tricky.

Viewing 511 - 520 interview questions

Glassdoor has 1,023 interview questions and reports from Software developer c interviews. Prepare for your interview. Get hired. Love your job.