Flashcards on C++ Programming Language

Click on the flashcard to see the answer


What is the difference between C and C++?

C++ is an extension of C, with added features such as object-oriented programming and templates.

What is an IDE in C++?

IDE stands for Integrated Development Environment. It is a software application that provides comprehensive facilities to computer programmers for software development.

What is the use of 'cout' in C++?

'cout' is a predefined object of 'ostream' class. It is used to display output on the console.

What is 'namespace' in C++?

A namespace is a declarative region that provides a scope to identifiers. Namespaces are used to organize code into logical groups and to prevent naming conflicts.

What is a reference variable in C++?

A reference variable is an alias for another variable. It is a way to refer to the original variable by a different name.

What is an abstract class in C++?

An abstract class is a class that contains at least one pure virtual function. It is used as a base class for other classes that need to implement the pure virtual function.

What is a constructor in C++?

A constructor is a member function of a class that is called when an object of the class is created. It is used to initialize the object's data members.

What is a destructor in C++?

A destructor is a member function of a class that is called when an object of the class is destroyed. It is used to free up any resources that the object has acquired during its lifetime.

What is the difference between 'new' and 'malloc' in C++?

'new' is used to allocate memory for an object and call its constructor, while 'malloc' is used to allocate memory without calling any constructor.

What is operator overloading in C++?

Operator overloading is a feature in C++ that allows operators, such as '+', '-', '*' to be redefined for classes to perform specific operations.

What is a template in C++?

A template is a generic class or function that can work with different data types. It is used to write generic algorithms that can be used for multiple data types.

What is inheritance in C++?

Inheritance is a mechanism in C++ where one class acquires the properties and methods of another class. The class that inherits is called derived class and the class that is inherited is called base class.

What is a virtual function in C++?

A virtual function is a member function of a class that can be overridden in the derived class. The derived class can provide its own implementation of the virtual function.

What is a pointer in C++?

A pointer is a variable that stores the memory location of another variable. It is used for dynamic memory allocation and passing values by reference.

What is a function overloading in C++?

Function overloading is a feature in C++ where multiple functions can have the same name but different number or types of arguments. It is used to perform different tasks based on the type or number of arguments passed.

What is the difference between C and C++?

C++ is an extension of C, with added features such as object-oriented programming and templates.

What is an IDE in C++?

IDE stands for Integrated Development Environment. It is a software application that provides comprehensive facilities to computer programmers for software development.

What is the use of 'cout' in C++?

'cout' is a predefined object of 'ostream' class. It is used to display output on the console.

What is 'namespace' in C++?

A namespace is a declarative region that provides a scope to identifiers. Namespaces are used to organize code into logical groups and to prevent naming conflicts.

What is a reference variable in C++?

A reference variable is an alias for another variable. It is a way to refer to the original variable by a different name.

What is an abstract class in C++?

An abstract class is a class that contains at least one pure virtual function. It is used as a base class for other classes that need to implement the pure virtual function.

What is a constructor in C++?

A constructor is a member function of a class that is called when an object of the class is created. It is used to initialize the object's data members.

What is a destructor in C++?

A destructor is a member function of a class that is called when an object of the class is destroyed. It is used to free up any resources that the object has acquired during its lifetime.

What is the difference between 'new' and 'malloc' in C++?

'new' is used to allocate memory for an object and call its constructor, while 'malloc' is used to allocate memory without calling any constructor.

What is operator overloading in C++?

Operator overloading is a feature in C++ that allows operators, such as '+', '-', '*' to be redefined for classes to perform specific operations.

What is a template in C++?

A template is a generic class or function that can work with different data types. It is used to write generic algorithms that can be used for multiple data types.

What is inheritance in C++?

Inheritance is a mechanism in C++ where one class acquires the properties and methods of another class. The class that inherits is called derived class and the class that is inherited is called base class.

What is a virtual function in C++?

A virtual function is a member function of a class that can be overridden in the derived class. The derived class can provide its own implementation of the virtual function.

What is a pointer in C++?

A pointer is a variable that stores the memory location of another variable. It is used for dynamic memory allocation and passing values by reference.

What is a function overloading in C++?

Function overloading is a feature in C++ where multiple functions can have the same name but different number or types of arguments. It is used to perform different tasks based on the type or number of arguments passed.

Share


Login to Save


Share



Login to Save


Explore Other Decks


Made for Grade 7

Information Technology: Objects in Electronic Spreadsheets


View Deck
Made for Grade 8

The French Revolution


View Deck
Made for Grade 8

Thinking Outside the Box


View Deck

Explore More