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

Category: C++ Basic Interview Questions

C++ Basic interview questions and answers with example asked in IT Industries. List of C++ interview questions or for freshers and experienced both | Only Real.

C++ Basic Interview Questions

What default functions provided by compiler in C++?

August 18, 2024October 4, 2014 rsingh

Below are default functions provided by compiler  in C++ language if not implemented  in a class by a software developer. Default constructor Copy constructor Assignment

Read More
C++ Basic Interview Questions

Why you do not initialize data members when you write a class?

August 18, 2024July 12, 2015 rsingh

Answer: When we declare/write a class, there is no memory allocation happens for data members of a class, so, we cannot store data into data

Read More
C++ Basic Interview Questions

Write simple program to overload new and delete operator in C++

August 18, 2024July 15, 2015 rsingh

Answer includes a simple program to overload new and delete operator in C++ class with important points about overloaded new and delete. Below is the

Read More
C++ Basic Interview Questions

Can Copy constructor accept object by value instead of reference?

August 18, 2024July 20, 2015 rsingh

Answer: No, in C++, a copy constructor doesn’t support pass by value but pass by reference only. It cannot accept object parameter by value and

Read More
C++ Basic Interview Questions

what is order of constructor call for composed objects in a class?

August 18, 2024July 23, 2015 rsingh

Answer: Order of constructor call for composed objects in a class would be as below. Consider an example of Mobile class, composed of Battery and

Read More
C++ Basic Interview Questions

What is order of calling constructor and destructor in C++?

August 18, 2024January 29, 2023 rsingh

Order of execution of constructors and destructors in C++ is frequently asked interview question. For this question, we have to answer c++ constructor call order and

Read More
C++ Basic Interview Questions

In what situations initialization list is must and assignment in constructor body does not help?

August 18, 2024August 6, 2015 rsingh

Answer: Here is the some of the scenarios where we must use initialization list in C++. Scenario-1: initialization of constant & reference data member of

Read More
C++ Basic Interview Questions

What is initialization list in Constructor in C++ Programming?

August 18, 2024August 6, 2015 rsingh

Answer: Initializer list or initialization list in constructor in C++ programming is used to initialize data members of a class. Constructor of a class can

Read More
C++ Basic Interview Questions

What is difference between pointer and reference in C++

August 18, 2024January 29, 2023 rsingh

Before listing the difference between pointer and reference in C++ , lets see the definition of pointer and reference. Pointer: A pointer is a simply

Read More
C++ Basic Interview Questions

C++ program to swap two numbers using pointers and references

August 18, 2024January 29, 2023 rsingh

C++ program to swap two numbers using pointers and references and functions. Swapping two number using pointers concept is applicable to both C and C++.

Read More

Posts pagination

Previous 1 … 3 4

My Unique Books for YOU

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