- What is a Garbage Collector in C# (what does it do).
- Are the objects automatically GC-ed in C#? If not, why/how?
- Are the structs automatically GC-ed in C#?
- Tell me the difference between stack and heap (memory management)
- What is a virtual destructor in C++?
- How do you run two methods in parallel in C#?
- If two methods both increment a variable, is there a problem (is the value higher or lower) and how to fix it?
- How do you implement a function that takes a byte value and return true if its most-significant-bit is set?
- What is the difference between as and is in C#?
Some Answers
You can use Parallel.Invoke or Task.Factory.StartNew and Task.WaitAll to run two methods in parallel.
structs are value-types so they are automatically GC-ed in C#.
Primitive data types like int live in stack while objects are normally in heap.
inline bool check(byte v) {
return v & 0b10000000;
}
You need to lock the variables when multiple threads write to them at the same time – race conditions.
Software Engineer Interview Experience
- NVIDIA, I'm Coming Again! This Time I'm Tougher!
- Jane Street First Round Interview Experience (Software Engineer at London)
- Four Facebook (Meta) Interview Experiences
- Three Attempts at Google: My Software Engineer Interview Journey (Is There Only Three Chances in a Lifetime?)
- Two Interview Experience with ByteDance Tiktok London
Interview Tips
- Difference Between Product Design Interview and System Design Interview
- Onsite Interview Tips for Facebook / Google / Microsoft / Amazon / Apple
- 45 Minute Mock Interview (Coding, System Design) + Career Development Advices
- Facebook Interview Tips and Guidance
- Coding Interview Tips for Software Engineers
- What are Big4 Tech Companies looking for in the technical interviews (Phone Screening)?
- How to use the Leetcode's Mock Interview Overview to Nail Your Interview?
- Facebook Onsite Interview Preparation Part 3: How to Ace a Design Interview?
- The Facebook Initial Coding Interview Experience
- Facebook Onsite Interview Preparation Part 2: Coding Questions
- Facebook Onsite Interview Preparation Part 1: Motivation/Bahavior Questions
- A Microsoft Coding Interview Screening for Position Principal Software Engineer
- How to Prepare for an Amazon Interview? My Amazon Interview Experience
- Go to an Interview even if you are not changing your job.
- Last Minute Tips before Phone Interview
Interview Questions
- Interview Coding Exercise - Nested String (Python)
- Some Telephone Interview Questions for C++/C# Software Enginners
- Microsoft Interview Question - Get the Area of the Triangle
- Google Interview Question: Print Messages
–EOF (The Ultimate Computing & Technology Blog) —
310 wordsLast Post: Steem Witness Update: Witness Feed Now Published Every Hour!
Next Post: Tips To Pass The CompTIA Linux+ LX0-103 Certification Exam
