Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

nashi informatics solutions


{ City } chennai
< Country > india
* Profession *
User No # 125947
Total Questions Posted # 479
Total Answers Posted # 668

Total Answers Posted for My Questions # 836
Total Views for My Questions # 366850

Users Marked my Answers as Correct # 0
Users Marked my Answers as Wrong # 0
Answers / { nashi informatics solutions }

Question { 841 }

How is memory managed in C++?


Answer

C++ uses manual memory management with new and delete and also provides smart pointers like std::unique_ptr and std::shared_ptr.

Is This Answer Correct ?    0 Yes 0 No

Question { 734 }

What are the five types of inheritance in C++?


Answer

1. Single inheritance, in which only one base class passes on inheritance to the derived class
2. Multiple inheritance, in which two or more base classes pass on their inheritance to the derived class
3. The derived class inherits from another derived class through multilevel inheritance.

4. Hybrid inheritance, which combines two or more distinct inheritance models
5. Hierarchical inheritance, in which a single base class gives rise to two or more derived classes.

Is This Answer Correct ?    0 Yes 0 No


Question { 727 }

What are the different types of variables in C++?


Answer

The memory size and arrangement of a variable, the values that can be stored there, and the actions that can be performed on the variable are all determined by the kind of variable. In C++, /* 0some of the primary variable types are:
Char is used to hold single characters.• integers are stored int.
• float: holds values in floating-point format.
• double: doubles the precision of float by storing floating-point numbers.
• void: denotes the lack of a type.
The value stored in a bool is either "true" or "false."

Is This Answer Correct ?    0 Yes 0 No

Question { 705 }

What is the difference between stack and heap memory?


Answer

o Stack: Memory is allocated and deallocated automatically.
o Heap: Memory is allocated dynamically using new or malloc.

Is This Answer Correct ?    0 Yes 0 No

Question { 704 }

What is exception handling in C++?


Answer

Exception handling in C++ is implemented using try, catch, and throw blocks.

Is This Answer Correct ?    0 Yes 0 No

Question { 656 }

What is a custom exception?


Answer

A custom exception is a user-defined exception class derived from std::exception.

Is This Answer Correct ?    0 Yes 0 No

Question { 638 }

throw Can constructors exceptions?


Answer

Yes, constructors can throw exceptions, but the object won't be created.

Is This Answer Correct ?    0 Yes 0 No

Question { 655 }

What is the purpose of the noexcept keyword?


Answer

The noexcept keyword specifies that a function does not throw exceptions.

Is This Answer Correct ?    0 Yes 0 No

Question { 654 }

What is RAII (Resource Acquisition Is Initialization)?


Answer

RAII is a programming idiom where resource allocation is tied to the lifetime of an object.

Is This Answer Correct ?    0 Yes 0 No

Question { 664 }

What is the purpose of decltype?


Answer

decltype deduces the type of an expression at compile-time.

Is This Answer Correct ?    0 Yes 0 No

Question { 632 }

What is std::move?


Answer

std::move enables transfer of resources from one object to another, facilitating move semantics.

Is This Answer Correct ?    0 Yes 0 No

Question { 708 }

What is the difference between std::vector and std::list


Answer

o Vector: Uses contiguous memory and supports random access.
o List: Uses linked nodes and is better for frequent insertions/deletions.

Is This Answer Correct ?    0 Yes 0 No

Question { 636 }

What are friend functions?


Answer

Friend functions can access private and protected members of a class.

Is This Answer Correct ?    0 Yes 0 No

Question { 692 }

Friend functions can access private and protected members of a class.


Answer

Virtual destructors ensure proper cleanup of resources in derived classes when deleting through a base class pointer.

Is This Answer Correct ?    0 Yes 0 No

Question { 760 }

What are static variables, and where are they stored?


Answer

Static variables retain their value across multiple function calls. They are stored in the data segment of memory.

Is This Answer Correct ?    0 Yes 0 No

Prev    1   ... 4   ... 7   ... 10   ... 13   ... 16   ... 19   ... 22   ... 25   ... 28   ... 31    35   [36]    37  ... 40   ... 43    Next