No comments
Posted at 22:00 |  by
Pritam
Grabbed Knowledge : Make Money From Your Skills
| 16. | What are the few advantages of Inline function? |
|---|---|
|
| 17. | What is copy constructor? |
|---|---|
| Copy constructor is a constructor function with the same name as the class and used to make deep copy of objects. |
| 18. | What is default constructor? |
|---|---|
| A default constructor is a constructor that either has no parameters, or if it has parameters, all the parameters have default values. |
| 19. | What is a scope resolution operator? |
|---|---|
| The scope resolution operator permits a program to reference an identifier in the global scope that has been hidden by another identifier with the same name in the local scope. |
| 20. | What is the difference between Object and Instance? |
|---|---|
|
| 16. | What are the few advantages of Inline function? |
|---|---|
|
| 17. | What is copy constructor? |
|---|---|
| Copy constructor is a constructor function with the same name as the class and used to make deep copy of objects. |
| 18. | What is default constructor? |
|---|---|
| A default constructor is a constructor that either has no parameters, or if it has parameters, all the parameters have default values. |
| 19. | What is a scope resolution operator? |
|---|---|
| The scope resolution operator permits a program to reference an identifier in the global scope that has been hidden by another identifier with the same name in the local scope. |
| 20. | What is the difference between Object and Instance? |
|---|---|
|
| 11. | Define Constructors? |
|---|---|
| A constructor is a member function with the same name as its class. The constructor is invoked whenever an object of its associated class is created.It is called constructor because it constructs the values of data members of the class. |
| 12. | How variable declaration in c++ differs that in c? |
|---|---|
| C requires all the variables to be declared at the beginning of a scope but in c++ we can declare variables anywhere in the scope. This makes the programmer easier to understand because the variables are declared in the context of their use. |
| 13. | Define destuctors? |
|---|---|
|
| 14. | What is a class? |
|---|---|
| A class is a collection of objects. |
| 15. | what is the difference between c & c++? |
|---|---|
|
| 11. | Define Constructors? |
|---|---|
| A constructor is a member function with the same name as its class. The constructor is invoked whenever an object of its associated class is created.It is called constructor because it constructs the values of data members of the class. |
| 12. | How variable declaration in c++ differs that in c? |
|---|---|
| C requires all the variables to be declared at the beginning of a scope but in c++ we can declare variables anywhere in the scope. This makes the programmer easier to understand because the variables are declared in the context of their use. |
| 13. | Define destuctors? |
|---|---|
|
| 14. | What is a class? |
|---|---|
| A class is a collection of objects. |
| 15. | what is the difference between c & c++? |
|---|---|
|
| 6. | What is encapsulation? |
|---|---|
| The wrapping up of data and functions into a single unit (called class) is known as encapsulation. Encapsulation containing and hiding information about an object, such as internal data structures and code. |
| 7. | What is message passing? |
|---|---|
| An object oriented program consists of a set of objects that communicate with each other. Message passing involves specifying the name of the object, the name of the function and the information to be sent. |
| 8. | What are tokens in C++? |
|---|---|
|
| 9. | What is the use of enumerated data type? |
|---|---|
| An enumerated data type is another user defined type which provides a way for attaching names to numbers thereby increasing comprehensibility of the code. The enum keyword automatically enumerates a list of words by assigning them values 0,1,2, and so on. |
| 10. | What is the use of default constructor? |
|---|---|
| A constructors that accepts no parameters is called the default constructor.If no user-defined constructor exists for a class A and one is needed, the compiler implicitly declares a default parameterless constructor A::A(). This constructor is an inline public member of its class. The compiler will implicitly define A::A() when the compiler uses this constructor to create an object of type A. The constructor will have no constructor initializer and a null body. |
| 6. | What is encapsulation? |
|---|---|
| The wrapping up of data and functions into a single unit (called class) is known as encapsulation. Encapsulation containing and hiding information about an object, such as internal data structures and code. |
| 7. | What is message passing? |
|---|---|
| An object oriented program consists of a set of objects that communicate with each other. Message passing involves specifying the name of the object, the name of the function and the information to be sent. |
| 8. | What are tokens in C++? |
|---|---|
|
| 9. | What is the use of enumerated data type? |
|---|---|
| An enumerated data type is another user defined type which provides a way for attaching names to numbers thereby increasing comprehensibility of the code. The enum keyword automatically enumerates a list of words by assigning them values 0,1,2, and so on. |
| 10. | What is the use of default constructor? |
|---|---|
| A constructors that accepts no parameters is called the default constructor.If no user-defined constructor exists for a class A and one is needed, the compiler implicitly declares a default parameterless constructor A::A(). This constructor is an inline public member of its class. The compiler will implicitly define A::A() when the compiler uses this constructor to create an object of type A. The constructor will have no constructor initializer and a null body. |
| Ingredient Name | Quantity | Unit |
|---|---|---|
| Chocolate Cake Sheets | 1 | Numbers |
| Cream | 1 | Numbers |
| Sugar | 1 | Cup |
| Ingredient Name | Quantity | Unit |
|---|---|---|
| Chocolate Cake Sheets | 1 | Numbers |
| Cream | 1 | Numbers |
| Sugar | 1 | Cup |
| Ingredient Name | Quantity | Unit |
|---|---|---|
| Salt | 1-2 | Teaspoons |
| Tomato | 1 | Numbers |
| Ginger | 50 | Grams |
| Garlic | 3-4 | Clove |
| Onions | 2 | Numbers |
| Cinnamon | 2-3 | Piece |
| Red Chilli Powder | 1/2 | Teaspoons |
| Cumin Powder | 3 | Teaspoons |
| Chicken Drumsticks Or Thighs | 10 | Numbers |
| Cardamom | 3-4 | oz |
| Tumeric Powder | 3/4 | Teaspoons |
| Ingredient Name | Quantity | Unit |
|---|---|---|
| Salt | 1-2 | Teaspoons |
| Tomato | 1 | Numbers |
| Ginger | 50 | Grams |
| Garlic | 3-4 | Clove |
| Onions | 2 | Numbers |
| Cinnamon | 2-3 | Piece |
| Red Chilli Powder | 1/2 | Teaspoons |
| Cumin Powder | 3 | Teaspoons |
| Chicken Drumsticks Or Thighs | 10 | Numbers |
| Cardamom | 3-4 | oz |
| Tumeric Powder | 3/4 | Teaspoons |
| 1. | What is C++ |
|---|---|
| C++ is created by Bjarne Stroustrup of AT&T Bell Labs as an extension of C, C++ is an object-oriented computer language used in the development of enterprise and commercial applications. Microsoft’s Visual C++ became the premier language of choice among developers and programmers. |
| 2. | What are the basic concepts of object oriented programming? |
|---|---|
|
| 3. | Define inheritance? |
|---|---|
| The mechanism of deriving a new class (derived) from an old class (base class) is called inheritance. It allows the extension and reuse of existing code without having to rewrite the code from scratch. Inheritance is the process by which objects of one class acquire properties of objects of another class. |
| 4. | Define polymorphism? |
|---|---|
| Polymorphism means one name, multiple forms. It allows us to have more than one function with the same name in a program.It allows us to have overloading of operators so that an operation can exhibit different behaviours in different instances. |
| 5. | What is encapsulation? |
|---|---|
| The wrapping up of data and functions into a single unit (called class) is known as encapsulation. Encapsulation containing and hiding information about an object, such as internal data structures and code. NEXT>>> |
| 1. | What is C++ |
|---|---|
| C++ is created by Bjarne Stroustrup of AT&T Bell Labs as an extension of C, C++ is an object-oriented computer language used in the development of enterprise and commercial applications. Microsoft’s Visual C++ became the premier language of choice among developers and programmers. |
| 2. | What are the basic concepts of object oriented programming? |
|---|---|
|
| 3. | Define inheritance? |
|---|---|
| The mechanism of deriving a new class (derived) from an old class (base class) is called inheritance. It allows the extension and reuse of existing code without having to rewrite the code from scratch. Inheritance is the process by which objects of one class acquire properties of objects of another class. |
| 4. | Define polymorphism? |
|---|---|
| Polymorphism means one name, multiple forms. It allows us to have more than one function with the same name in a program.It allows us to have overloading of operators so that an operation can exhibit different behaviours in different instances. |
| 5. | What is encapsulation? |
|---|---|
| The wrapping up of data and functions into a single unit (called class) is known as encapsulation. Encapsulation containing and hiding information about an object, such as internal data structures and code. NEXT>>> |
| Ingredient Name | Unit | Quantity |
| Coriander leaves, for garnish | 0 | |
| Ginger garlic paste | tsp | 1 |
| Green peas, fresh | tbsp | 1 |
| Chilli powder | tsp | 1 |
| Coriander leaves | tbsp | 1 |
| Coriander powder | tsp | 1/2 |
| Cumin seeds | tsp | 1 |
| Eggs, boiled | number | 5 |
| Garam masala powder | tsp | 1 |
| Garlic, chopped | clove | 2-3 |
| Green chillies, finely chopped | tsp | 1/2 |
| Oil for frying | 0 | |
| Onion paste | tbsp | 1 |
| Salt | to taste | |
| Tomato puree | cup | 1/2 |
| Turmeric powder | tsp | 1/2 |
| Water as required | 0 | |
| Directions | How to make Tari Wali Andey | ||
| Boil the Eggs and keep aside. In a kadai, add some oil and when the oil gets hot, add cumin seeds, coriander leaves, green chillies, garlic, and onion paste. Sauté well until they are nicely coloured. Add turmeric powder, ginger garlic paste, coriander powder, chilli powder, salt and tomato puree. Stir well. Add garam masala and then add some water, mix and cover with a lid and cook for about 7-8 minutes. Once the gravy becomes thick, add some more water and mix well. Allow it to cook to thin gravy. Now add the boiled eggs into this silky gravy and allow it to cook for few minutes and then switch off the flame. Garnish with coriander leaves. Serve with roti, chapatti, naan or rice. | ||
| Ingredient Name | Unit | Quantity |
| Coriander leaves, for garnish | 0 | |
| Ginger garlic paste | tsp | 1 |
| Green peas, fresh | tbsp | 1 |
| Chilli powder | tsp | 1 |
| Coriander leaves | tbsp | 1 |
| Coriander powder | tsp | 1/2 |
| Cumin seeds | tsp | 1 |
| Eggs, boiled | number | 5 |
| Garam masala powder | tsp | 1 |
| Garlic, chopped | clove | 2-3 |
| Green chillies, finely chopped | tsp | 1/2 |
| Oil for frying | 0 | |
| Onion paste | tbsp | 1 |
| Salt | to taste | |
| Tomato puree | cup | 1/2 |
| Turmeric powder | tsp | 1/2 |
| Water as required | 0 | |
| Directions | How to make Tari Wali Andey | ||
| Boil the Eggs and keep aside. In a kadai, add some oil and when the oil gets hot, add cumin seeds, coriander leaves, green chillies, garlic, and onion paste. Sauté well until they are nicely coloured. Add turmeric powder, ginger garlic paste, coriander powder, chilli powder, salt and tomato puree. Stir well. Add garam masala and then add some water, mix and cover with a lid and cook for about 7-8 minutes. Once the gravy becomes thick, add some more water and mix well. Allow it to cook to thin gravy. Now add the boiled eggs into this silky gravy and allow it to cook for few minutes and then switch off the flame. Garnish with coriander leaves. Serve with roti, chapatti, naan or rice. | ||
| 21. | What are the differences between structures and union? |
|---|---|
| A structure variable contains each of the named members, and its size is large enough to hold all the members. Structure elements are of same size. A Union contains one of the named members at a given time and is large enough to hold the largest member. Union element can be of different sizes. |
| 22. | What is the difference between arrays and pointers? |
|---|---|
| Array is collection of similar datatype. it is a static memory allocation means we can not increment and decrement the arry size once we allocated. and we can not increment the base address, reassign address. Pointer is a dynamic memory allocation. we can allocate the size as we want, assigning into another variable and base address incrementation is allowed. |
| 23. | What is dynamic binding? |
|---|---|
| Dynamic binding (also known as late binding) means that the code associated with a given procedure call is not known until the time of the call at run time.It is associated with polymorphism and inheritance. |
| 24. | what is an abstract base class? |
|---|---|
| An abstract class is a class that is designed to be specifically used as a base class. An abstract class contains at least one pure virtual function. |
| 25. | What is the difference between class and structure? |
|---|---|
<<<PREV NEXT>>>
|
| 21. | What are the differences between structures and union? |
|---|---|
| A structure variable contains each of the named members, and its size is large enough to hold all the members. Structure elements are of same size. A Union contains one of the named members at a given time and is large enough to hold the largest member. Union element can be of different sizes. |
| 22. | What is the difference between arrays and pointers? |
|---|---|
| Array is collection of similar datatype. it is a static memory allocation means we can not increment and decrement the arry size once we allocated. and we can not increment the base address, reassign address. Pointer is a dynamic memory allocation. we can allocate the size as we want, assigning into another variable and base address incrementation is allowed. |
| 23. | What is dynamic binding? |
|---|---|
| Dynamic binding (also known as late binding) means that the code associated with a given procedure call is not known until the time of the call at run time.It is associated with polymorphism and inheritance. |
| 24. | what is an abstract base class? |
|---|---|
| An abstract class is a class that is designed to be specifically used as a base class. An abstract class contains at least one pure virtual function. |
| 25. | What is the difference between class and structure? |
|---|---|
<<<PREV NEXT>>>
|
| 16. | What is a macro? |
|---|---|
| Macros are the identifiers that represent statements or expressions. To associate meaningful identifiers with constants, keywords, and statements or expressions. |
| 17. | What is arrays? |
|---|---|
| Array is a variable that hold multiple elements which has the same data type. |
| 18. | What is the difference between #include‹ › and #include “ ”? |
|---|---|
| #include‹ › ----> Specifically used for built in header files. #include “ ” ----> Specifically used for used for user defined/created n header file. |
| 19. | What are the advantages of the functions? |
|---|---|
|
| 20. | How do declare an array? |
|---|---|
| We can declare an array by specify its data type, name and the number of elements the array holds between square brackets immediately following the array name. syntax : data_type array_name[size]; <<<PREV NEXT>>> |
| 16. | What is a macro? |
|---|---|
| Macros are the identifiers that represent statements or expressions. To associate meaningful identifiers with constants, keywords, and statements or expressions. |
| 17. | What is arrays? |
|---|---|
| Array is a variable that hold multiple elements which has the same data type. |
| 18. | What is the difference between #include‹ › and #include “ ”? |
|---|---|
| #include‹ › ----> Specifically used for built in header files. #include “ ” ----> Specifically used for used for user defined/created n header file. |
| 19. | What are the advantages of the functions? |
|---|---|
|
| 20. | How do declare an array? |
|---|---|
| We can declare an array by specify its data type, name and the number of elements the array holds between square brackets immediately following the array name. syntax : data_type array_name[size]; <<<PREV NEXT>>> |
| 11. | Define destuctors? |
|---|---|
| A destructor is called for a class object when that object passes out of scope or is explicitly deleted.A destructors as the name implies is used to destroy the objects that have been created by a constructors.Like a constructor , the destructor is a member function whose name is the same as the class name but is precided by a tilde. |
| 12. | What is a structure? |
|---|---|
| Structure constitutes a super data type which represents several different data types in a single unit. A structure can be initialized if it is static or global. |
| 13. | What is message passing? |
|---|---|
| An object oriented program consists of a set of objects that communicate with each other. Message passing involves specifying the name of the object, the name of the function and the information to be sent. |
| 14. | Define Constructors? |
|---|---|
| A constructor is a member function with the same name as its class. The constructor is invoked whenever an object of its associated class is created.It is called constructor because it constructs the values of data members of the class. |
| 15. | What is the use of default constructor? |
|---|---|
| A constructors that accepts no parameters is called the default constructor.If no user-defined constructor exists for a class A and one is needed, the compiler implicitly declares a default parameterless constructor A::A(). This constructor is an inline public member of its class. The compiler will implicitly define A::A() when the compiler uses this constructor to create an object of type A. The constructor will have no constructor initializer and a null body. <<<PREV NEXT>>> |
| 11. | Define destuctors? |
|---|---|
| A destructor is called for a class object when that object passes out of scope or is explicitly deleted.A destructors as the name implies is used to destroy the objects that have been created by a constructors.Like a constructor , the destructor is a member function whose name is the same as the class name but is precided by a tilde. |
| 12. | What is a structure? |
|---|---|
| Structure constitutes a super data type which represents several different data types in a single unit. A structure can be initialized if it is static or global. |
| 13. | What is message passing? |
|---|---|
| An object oriented program consists of a set of objects that communicate with each other. Message passing involves specifying the name of the object, the name of the function and the information to be sent. |
| 14. | Define Constructors? |
|---|---|
| A constructor is a member function with the same name as its class. The constructor is invoked whenever an object of its associated class is created.It is called constructor because it constructs the values of data members of the class. |
| 15. | What is the use of default constructor? |
|---|---|
| A constructors that accepts no parameters is called the default constructor.If no user-defined constructor exists for a class A and one is needed, the compiler implicitly declares a default parameterless constructor A::A(). This constructor is an inline public member of its class. The compiler will implicitly define A::A() when the compiler uses this constructor to create an object of type A. The constructor will have no constructor initializer and a null body. <<<PREV NEXT>>> |