In technical interview round, I found it difficult. Basic sql questions and Linux questions. I was asked to find second highest salary from a table. Common utilities in Linux. Project related questions. Advanced c++ topics such as smart pointers, STL, etc
C Software Developer Interview Questions
3,502 c software developer interview questions shared by candidates
Cosa è il polimorfismo e l'ereditarietà
All core java concepts especially OOPS is a mandatory and only specific programming language is prefered.
What is a union in C
In a C++ Interview was asked questions from ANSI C related questions. Some questions were based on OOPS concept.
Does C# support multiple inheritance? Why not? what are they trying to avoid? What was is supported instead? What is an interface? Can you two interfaces which define methods or properties with the same signature, be implemented on one class? How? (Explicit interface implementation) What is the difference between an Interface and an Abstract class? An interface cannot contain implementation. Can only inherit from one Abstract class. An abstract class can contain access modifiers. Can you list C# access modifiers? Public / Protected / Internal / Private There is one addition additional access level, what is this? Internal protected What is the difference between Reference and Value types Where are they stored (ref: heap, val: stack) What is an Enum ? Is it a reference or value type? (it’s a value type) What is the System.FlagsAttribute used for? Used to allow an enumeration type to define bit flags, which enables an instance of the enumeration type to store any combination of the values that are defined in the enumerator list. You define the values appropriately so that AND, OR, NOT and XOR bitwise operations can be performed on them. Why was StringBuilder added to the framework? Strings are immutable so repeated concatenation uses lots of memory, and creates many value types. How do you mark a method deprecated? [Obsolete(“if you use this, there will be a compile error”,true)] You working on a global trading system, how would you compare two user entered strings to establish if they matched? String.Compare(first, second, StringComparison.CurrentCulture); String.Equals(first, second, StringComparison.CurrentCulture); How do you indicate on a method that the intention is to take advantage of subtype polymorphism in C#, why did Microsoft not mark all methods as virtual by default? Mark a method as virtual, performance; Virtual methods incur a performance hit as the correct override is established. How do you directly call a native function exported from a DLL? {declare the dll with a DllImport attribute} [DllImport("user32.dll")] How do you cause a thread to wait for a synchronisation event? {call one of the wait methods} WaitOne(), WaitAny(), WaitAll() Do you know of a tool which can convert from IL to source code? What is the difference between const and static read-only? A static readonly variable can be changed at runtime (by the containing class only) a const cannot change. Does Console.WriteLine() stop printing when it reaches a NULL character within a string? No, strings are not null terminated in the runtime What is a multicast delegate? An object wrapping references to multiple methods i.e a delegate that can have more than one element in its invocation list. What is the difference between delegate.Invoke and delegate.BeginInvoke? Delegate.invoke walks the list of function pointers before returning, delegate.BeginInvoke gets a thread from the thread pool and lets it calls the function pointers, so this call returns immediately. Would you please explain non-deterministic finalization? How do I get deterministic finalization in C#? Which language construct can be used to implement deterministic finalization for you and how does this work? How does garbage collection work in C#? Its mark-and-sweep engine rather than a reference-counter engine. This is to say that all objects are considered garbage until the GC walks the object graph from the roots marking objects as ‘in use’. What’s the difference between the System.Array.CopyTo() and System.Array.Clone()? The first one performs a deep copy of the array, the second one is shallow. What is the difference between a Struct and a Class? A struct is a value type. Depending upon their instance members Structs can have a lower memory overhead at initialisation. Structs can be instantiated without calling the new operator, the fields will remain unassigned. Whats is the implicit name of the parameter passed into a property’s set method? value If a base class has a overloaded constructors, and an inherited class also has overloaded constructors, can you enforce a call from an inherited constructor to an arbitrary base constructor Yes, just place a colon, and then keyword base (parameter list to invoke the appropriate constructor) in the overloaded constructor definition inside the inherited class.
Q: Questions about C++. Q: Questions about compilers.
Can virtual be static, can const be static, deep copy and shallow copy, multiple inheritance and diamond problem, factory vs abstract factory design pattern, mutable keyword, storage specifiers, multithreading, unit/integration testing tools, one linked list problem
[3rd interivew] Tell me more about your current or previous role?
[3rd interivew] Can you imagine working in a social environment where nobody tells you how to do something and only you know what should be done and you commit to doing something that can be done?
Viewing 2331 - 2340 interview questions