Skip to content

Interview Sansar

Software jobs interview preparation source

  • Home
  • Interview Questions
    • C Interview Questions
    • C++ Advanced Interview Questions
    • C++ Basic Interview Questions
    • Core Java Interview Questions
    • Java Collections Interview Questions
    • Java Multithreading Interview Questions
    • C# Basic Interview Questions
    • C# Advanced Interview Questions
    • C# Multi-threading Interview Questions
  • MCQs
    • MCQ-C++
    • MCQ-Java
    • MCQ-SQL
    • MCQs Algorithms and Data Structure
  • Programming Examples
    • C Programming Examples
    • C++ Programming Examples
    • C# Programming Examples
    • SQL Examples
    • Oracle PL SQL Examples
    • Time Complexity
  • Blog
    • C++ interview questions
    • C# interview questions
    • Java Interview Questions
    • Short Interview Questions
    • Behavioural / HR Interview
  • You-Tube
  • About
    • Why Visit
    • Sitemap
    • Contact Us
    • e-author

Author: rsingh

C++ Basic Interview Questions

What is difference between constructor and member function | By Example

August 18, 2024January 29, 2023 rsingh

Below is the difference between constructor and member function in C++ programming. 1) Constructor name must be same as the class name, but functions cannot

Read More
C++ Advanced Interview Questions

How do you prevent heap allocation in C++ for a Class?

August 18, 2024January 29, 2023 rsingh

C++ Interview Question Description: Describe the concept to prevent heap allocation in C++ for a class i.e. object creation on heap. Means, dynamic memory allocation

Read More
C++ Basic Interview Questions

What is size of Empty Class in C++ with virtual function?

August 18, 2024January 29, 2023 rsingh

Answers contains the size of empty class in C++ with virtual function (4 or 8 bytes) and without virtual function (1 byte not 0 )

Read More
C++ Basic Interview Questions

Difference between new and malloc in C++ – Including Performance

August 18, 2024January 29, 2023 rsingh

Difference between new and malloc in C++  – The answer of  interview question C++ malloc vs new heap memory allocation includes advantages of new operator over

Read More
C++ Basic Interview Questions

Design Singleton class in C++ with example – Simple Steps

August 18, 2024January 29, 2023 rsingh

Answer: Singleton class in C++ is the class that is designed to provide only one unique instance across the system. So, whenever we create c++

Read More
C++ Basic Interview Questions

this pointer in C++ – how does it work internally?

August 18, 2024January 29, 2023 rsingh

Answer: The this pointer in C++ is a constant pointer that stores address of an object of a class. The type of this pointer is

Read More
C++ Advanced Interview Questions

Code for C++ delete singleton instance

August 18, 2024January 29, 2023 rsingh

Answer:To delete singleton instance or object in C++ programs, we need to follow a proper design to delete singleton object in the class . Especially,

Read More
C++ Advanced Interview Questions

What are issues if we mix new and free in C++?

August 18, 2024January 29, 2023 rsingh

Answer: new and free in c++ should never be mixed or else we may get memory leak issues and resource leak issues and may take

Read More
Networking General

What does bind() function do in TCP/UDP server?

August 18, 2024November 30, 2014 rsingh

Answer: Bind() function in socket programming is used to associate the socket with local address i.e. IP Address, port and address family. int bind(int sockfd,struct

Read More
Networking General

Where have you used UDP Socket Programming?

August 18, 2024November 30, 2014 rsingh

Answer: The answer is up to you if you have used UDP socket programming in your project. If you have not used in your project

Read More

Posts pagination

Previous 1 2 3 4 … 48 Next

My Unique Books for YOU

All Rights Reserved 2023: Interview Sansar.
Proudly powered by WordPress | Theme: Fairy Blog by Candid Themes.