C++
Topics
01. Programming Paradigms
02. Introduction to the object-oriented
03. OOP's approach towards Programming By discussing Traditional methodology
04. OOP's approach towards Programming By discussing Structure methodology
05. Object Definition
06. Instance of Object
07. Encapsulation
08. Data Hiding
09. Abstraction
10. Inheritance
11. Messages
12. Method
13. Polymorphism
14. Classes'Candidate & Abstract Classes to be Example of the Design Process
15. Characteristics of OOPs
16. Overview of C++
17. I/O using cout and cin
18. Object & Classes
19. Member Function & Data
20. Private & Public
21. Constructor & Destructor
22. Constructor overloading
23. Types of Constructors
24. Function Overloading
25. Default Arguments
26. Ambiguity in Function Overloading
27. Operator Overloading
28. Overloading Unary operator
29. Overloading Binary Operator
30. Type conversion using Operator overloading
31. Concept Of Inheritance
32. Base & Derived Classes
33. Access Specifier
34. Class Hierarchies
35. Types of inheritance with examples
36. virtual Functions
37. Friend Functions
38. Static Functions
39. This Pointer
40. Polymorphism
41. Type of Polymorphism with example
42. Template/ Function Template
43. Class Template
Questions With Answers
[Object Oriented Programming C++ ]
2 Mark Questions
01. What is polymorphism? What are its types?
02. Define multiple inheritance.
03. What do you mean by a pointer?
04. List out the operators that cannot be overloaded.
05. What is the difference between class and object?
06. Define Garbage collection?
07. What is a constructor?
09. What is data abstraction?
10. What are manipulators?
11. What do you mean by Dynamic Memory Management?
12. What is Encapsulation?
13. What is Polymorphism?
14. What is Message Passing?
15. What is the use of sizeof() Operator?
16. What are abstract classes?
17. What do you mean by Prototyping?
18. What is Pointer?
19. What do you mean by Return type?
20. What is Abstraction?
21. What are the benefits of OOP?
22. In control structure switch-case what is the purpose of default case?
23. Do inline functions improve performance?
24. What are Friend Functions?
25. What is the difference between call by value and call by reference?
26. Name various types of Inheritance?
27. Which operators are not allowed to be overloaded?
28. What is the difference between protected and private members?
29. How does pointer variable differ from simple variable?
30. What is the difference between while and do-while loop?
31. What is polymorphism in Object Oriented Programming?
32. What is a reference variable?
33. Explain the use of default arguments.
34. What is the need of constructor and destructor?
35. What are the advantages of inheritance?
36. What is a friend function?
37. What is the benefit of inline functions?
38. What is “this” pointer used for?
39. What are different modes of opening a file?
40. Write syntax for defining data members and member functions outside a class.
41. What is OOP?
42. What is reference variable?
43. What do you mean by access specifiers in c++?
44. What are different loop control statements?
45. What is a destructor?
46. What is a pointer?
47. Define function.
48. What is a class?
49. What do you mean by default arguments?
50. How we can open a file in c++?
51. Explain the idea of Classes, polymorpism and encapsulation.
52. What is an abstract class?
53. What is a copy constructor?
54. What are the different types of operators available in C++?
55. What are the rules to be followed in function overloading?
56. Explain the need for Static member Function??
57. What is inheritance?
58. Write the prototype for a typical pure virtual function.
59. What are the file stream classes used for creating input and output files?
60. What are manipulators?
61. What are abstract classes?
62. What is this pointer?
63. What is the purpose of scope resolution operator?
64. Define inline functions.
65. What are reference variables?
66. Define command line argument.
67. What are pointers?
68. What do you mean by copy constructor?
69. Define polymorphism.
70. What are manipulators?
71. List all kinds of user defined data types.
73. Explain the role of precedence of operators with proper example.
74. Explain the nested class with proper example.
75. Explain the role of protected access specifier.
76. Explain the dynamic constructor with proper example.
78. Define virtual function with proper example.
79. Define pointer to function with proper example.
80. List the different kinds of file-modes with their proper programming syntax.
81. Make distinctions between data abstraction and data encapsulation. Give examples
82. How can inline functions help with the tradeoff of safety vs. speed?
83. Can a method directly access the non-public members of another instance of its class?
84. What is a token?
85. Difference between variable and constant.
86. What are the operators that cannot be overloaded?
87. What is the difference between virtual and non-virtual member functions?
88. How does pointer variable differ from simple variable?
89. What are the file stream classes used for creating input and output files?
90. List down the rules for operator overloading.
91. Outline the essential steps involved in carrying out a object-oriented programming study.
92. What are the rules to be followed in function overloading?
93. What is the difference between protected and private members?
94. Explain the need for Static member Function.
95. Does return-by-value mean extra copies and extra overhead?
96. What is type –conversion?
97. Discuss a situation in which the private derivation will be more appropriate as compared to public derivation.
98. How can we avoid syntax errors when creating pointers to members?
99. What are nested classes?
100. What is the purpose of fstream.h ?
10Marks Questions
01. What is OOP? Briefly explain the concepts of OOP. Also give the Comparison between procedural programming paradigm and object-oriented paradigm
02. What is operator overloading? Write a C++ program to overload any unary operator?
03. What are the different types of inheritance? Explain any one with the help of C++ program.
04. Define dynamic constructor. Write a C++ program to demonstrate the use of a dynamic constructor.
05. Define inline function. Write a program illustrating the usage of inline function.
06.What do you mean by friend function? Explain with the help of C++ program.
07. What are the different types of operators available in C++? Explain.
08. Write a C++ program to show how a late binding or run time binding can be carried out with the help of a virtual function.
09. Write a note on polymorphism. Differentiate between compile time and run time polymorphism.
10. What is Inheritance? What are various types of inheritance? Write an example of multiple inheritance?
11. What do you mean by function? How a regular function is different from the inline function? What is the use of the inline function?
12. What are default arguments? Write a program to illustrate the use of default arguments.
13. What do you mean by constructors? What is the default constructor? Why we need the copy constructors? Write an example to demonstrate the use of copy constructor.
14. . How the operator overloading helps in extending the language capabilities? Write an example to clear the use of operator overloading?
15. What is class? How the implementation of classes helps in better management of the user data
16. Why the file handling is important? Write the various file handling functions to open and read from the files?
17. What is virtual function? How the virtual function is different from the regular function? What is the use of virtual function in implementation of the polymorphism?
18. A developer has implemented a class A, and then publically derived two classes B and C from class A. Further a class D is derived from class B and C, developer gets an error
when s/he tries to access the methods of class A, through object of class D. You need to identify the problem of above implementation, and write the code for the solution of problem you have identified.
19. “The main advantage of using a static member is to declare the global data which should be updated while the program lives in memory”. Justify your statement.
20. If a member of a class is public, it can be accessed by an external function including a derived class. Explain with an example.
21. Discuss why a friend function is used for accessing the non-public members of a class.
22. How is a copy constructor different from a constructor? Illustrate with suitable examples.
23. Write a C++ program to read and display information about employees and managers. Employee is a class that contains employee number, name, address and department.
Manager class and a list of employees working under a manager.
24. What is the purpose of a virtual function? Illustrate with a suitable example.
25. Describe various file operations in file handling?
26. What is polymorphism? Explain with the help of example?
27. Explain various types of constructors?
28. What are different types of operators? Explain any five categories with example.
29. Explain the different access specifiers used in Object Oriented Programming along with examples.
30. Explain the concept of Overloading binary operators with the help of an example.
31. Explicit type conversions between objects of different types lead, at best, to code that is difficult to read. Discuss.
32. Discuss the concept of ambiguity in Multipath Inheritance. How can it be removed?
33. Explain any five functions used in file handing along with their syntax. Discuss with example code.
34. Create a class including definitions for member functions to represent a bank account. It should include
the following:
Data Members:
Name of account holder
Account number
Balance account
Member Functions:
To initialize the data members with appropriate data
To deposit an account
To withdraw an amount after checking the balance
To display details of account holder
35. Write a program that dynamically allocates memory for an array of size n, reads elements of array and sorts them in ascending order.
36. Explain five manipulators along with examples that you can use for managing output.
37. Discuss the following basic concept of OOP: Data encapsulation, Inheritance, Polymorphism, Dynamic binding?
38. How you can specify a class along with member functions? With the help of example explain how we can access the data and member function of a class.
39. What is a constructor? How we can use dynamic constructor?
40. What do you mean by operator overloading? Discuss the different rules for the overloading operator.
41. What is a virtual base class. Explain the concept of overriding member function.
42. What is pointer to a function? Discuss the dynamic memory management in c++?
43. Discuss the hierarchy of console stream classes.
44. What is a file? How we can open a file in read mode? Explain with example.
45. Discuss with example the relational, logical and bitwise operators in C++.
46.. Explain run time polymorphism with example program in C++.
47. (a) Explain the different types of streams and various formatted I/O in C++.
(b) Explain working of size of () operator and conditional operator in C++.
48. (a) List the operators that cannot be overloaded.
(b) When will the destructors be called? Is it implicit or explicit?
49. What are the various in built string operations? Explain with a program.
50. What are the visibility modes in inheritance? Explain with an example.
51. (a) Describe few area of application of oops.
(b) Describe how data is shared between function in C++.
52. Explain the difference between C and CPP. [10]
53. Elaborate the concept of function overloading in CPP with an example.
54. Define Constructors and Destructors in CPP using an programming example.
55.Compare and contrast the following:
(i) Procedural and object-oriented programming.
(ii) Constructor and destructor.
56. What do you mean by function overloading? Discuss with the help of an example.
57. How can you implement the concept of operator overloading? Discuss with the help of an example.
58. What are classes? Discuss with the help of an example. Compare and contrast various access specifiers used in a class.
59. Compare and contrast the following:
(i) Virtual and pure virtual function.
(ii) New and Delete operator.
60. What do you mean by inheritance? Discuss its various forms with the help of an example.
61. What do you mean by pointer to a function? Discuss with the help of an example.
62. What are virtual functions? Discuss the concept of pure virtual function with the help of an example.
63. Discuss the various operations that can be performed on files. Elaborate with the help of an example
64. Explain inline function and default argument function with proper examples.
65. Write a program to create a class ‘student’ which is having name, id, percentage and mobile number as the data members. Define all type of constructors and destructor (except dynamic constructor) into the same class.
66. Explain the advantage of friend function using proper example with the help of appropriate program
67. Write a program to explain the overloading of unary + operator as member function.
68. Explain the Hybrid inheritance with the help of proper programs. Also discuss the ambiguity situation of Hybrid Inheritance.
69. Write a program to find out the average of float elements with the use of dynamic memory management. Total number of float elements is given at run time.
70. Write a program to copy content of one file into another file using file handling operations.
71. Discuss the 4 functions of iostream-class with their proper purpose. Also design the program to use the same functions.
72. Write a program to define a class ‘time’ which is having hour component, minute component, second component as data members. Define getdata() and putdata() for the class as non inline member functions.
73. List out some of the differences between C and C++.
74. How is a copy constructor different from a parameterized constructor? Illustrate with suitable examples.
75. What is a friend function? Explain it with a program example.
76. What are classes? Discuss with the help of an example. Compare and contrast various access specifiers used in a class.
77. What is a virtual function? Explain by taking a suitable programming example.
78. Write a program to overload a binary operator plus (+) for adding two object values.
79. What are the various file stream modes available in C++. Explain by taking a suitable example.
80. What is polymorphism? Explain by taking a suitable example.
81. Write a short note on inheritance.
82. Explain run time polymorphism with example program in C++.
83. Define dynamic Constructors in CPP using a programming example.
84. Write a program to add two numbers defining a member getdata () and display () inside a class named sum and displaying the result.
85. What is inheritance? What are its advantages? Explain different types of inheritance.
86.What is pointer to pointer? Explain by taking a suitable programming example.
87. What are the various operators available in C++. Explain by taking a suitable example.
88. What is empty class? Explain by taking a suitable example. Also discuss local classes.
89. Explain the difference between procedural programming language and object oriented programming language.
90. What is inline function? Explain by taking an example.
91. What is an object with respect to class in C++? Explain by taking a suitable examp
[Foundation of Computer Programming ]
01. List the different types of constants used in C?
02. Give any four-string manipulation library functions, with an example each.
03. Mention different primitive data types and memory required for them
04. Distinguish between variables and keywords with example.
05. What are Logical operators and Relational operators in C?06. What are bitwise operators available in C?07. What is a conditional operator?08. Write the syntax of the switch statement with an example.09. What is the difference between while and do-while loop?10. Write a program to check whether the given number is prime or not.
Topics
01. Programming Paradigms
02. Introduction to the object-oriented
03. OOP's approach towards Programming By discussing Traditional methodology
04. OOP's approach towards Programming By discussing Structure methodology
05. Object Definition
06. Instance of Object
07. Encapsulation
08. Data Hiding
09. Abstraction
10. Inheritance
11. Messages
12. Method
13. Polymorphism
14. Classes'Candidate & Abstract Classes to be Example of the Design Process
15. Characteristics of OOPs
16. Overview of C++
17. I/O using cout and cin
18. Object & Classes
19. Member Function & Data
20. Private & Public
21. Constructor & Destructor
22. Constructor overloading
23. Types of Constructors
24. Function Overloading
25. Default Arguments
26. Ambiguity in Function Overloading
27. Operator Overloading
28. Overloading Unary operator
29. Overloading Binary Operator
30. Type conversion using Operator overloading
31. Concept Of Inheritance
32. Base & Derived Classes
33. Access Specifier
34. Class Hierarchies
35. Types of inheritance with examples
36. virtual Functions
37. Friend Functions
38. Static Functions
39. This Pointer
40. Polymorphism
41. Type of Polymorphism with example
42. Template/ Function Template
43. Class Template
Questions With Answers
[Object Oriented Programming C++ ]
2 Mark Questions
01. What is polymorphism? What are its types?
02. Define multiple inheritance.
03. What do you mean by a pointer?
04. List out the operators that cannot be overloaded.
05. What is the difference between class and object?
06. Define Garbage collection?
07. What is a constructor?
09. What is data abstraction?
10. What are manipulators?
11. What do you mean by Dynamic Memory Management?
12. What is Encapsulation?
13. What is Polymorphism?
14. What is Message Passing?
15. What is the use of sizeof() Operator?
16. What are abstract classes?
17. What do you mean by Prototyping?
18. What is Pointer?
19. What do you mean by Return type?
20. What is Abstraction?
21. What are the benefits of OOP?
22. In control structure switch-case what is the purpose of default case?
23. Do inline functions improve performance?
24. What are Friend Functions?
25. What is the difference between call by value and call by reference?
26. Name various types of Inheritance?
27. Which operators are not allowed to be overloaded?
28. What is the difference between protected and private members?
29. How does pointer variable differ from simple variable?
30. What is the difference between while and do-while loop?
31. What is polymorphism in Object Oriented Programming?
32. What is a reference variable?
33. Explain the use of default arguments.
34. What is the need of constructor and destructor?
35. What are the advantages of inheritance?
36. What is a friend function?
37. What is the benefit of inline functions?
38. What is “this” pointer used for?
39. What are different modes of opening a file?
40. Write syntax for defining data members and member functions outside a class.
41. What is OOP?
42. What is reference variable?
43. What do you mean by access specifiers in c++?
44. What are different loop control statements?
45. What is a destructor?
46. What is a pointer?
47. Define function.
48. What is a class?
49. What do you mean by default arguments?
50. How we can open a file in c++?
51. Explain the idea of Classes, polymorpism and encapsulation.
52. What is an abstract class?
53. What is a copy constructor?
54. What are the different types of operators available in C++?
55. What are the rules to be followed in function overloading?
56. Explain the need for Static member Function??
57. What is inheritance?
58. Write the prototype for a typical pure virtual function.
59. What are the file stream classes used for creating input and output files?
60. What are manipulators?
61. What are abstract classes?
62. What is this pointer?
63. What is the purpose of scope resolution operator?
64. Define inline functions.
65. What are reference variables?
66. Define command line argument.
67. What are pointers?
68. What do you mean by copy constructor?
69. Define polymorphism.
70. What are manipulators?
71. List all kinds of user defined data types.
73. Explain the role of precedence of operators with proper example.
74. Explain the nested class with proper example.
75. Explain the role of protected access specifier.
76. Explain the dynamic constructor with proper example.
78. Define virtual function with proper example.
79. Define pointer to function with proper example.
80. List the different kinds of file-modes with their proper programming syntax.
81. Make distinctions between data abstraction and data encapsulation. Give examples
82. How can inline functions help with the tradeoff of safety vs. speed?
83. Can a method directly access the non-public members of another instance of its class?
84. What is a token?
85. Difference between variable and constant.
86. What are the operators that cannot be overloaded?
87. What is the difference between virtual and non-virtual member functions?
88. How does pointer variable differ from simple variable?
89. What are the file stream classes used for creating input and output files?
90. List down the rules for operator overloading.
91. Outline the essential steps involved in carrying out a object-oriented programming study.
92. What are the rules to be followed in function overloading?
93. What is the difference between protected and private members?
94. Explain the need for Static member Function.
95. Does return-by-value mean extra copies and extra overhead?
96. What is type –conversion?
97. Discuss a situation in which the private derivation will be more appropriate as compared to public derivation.
98. How can we avoid syntax errors when creating pointers to members?
99. What are nested classes?
100. What is the purpose of fstream.h ?
10Marks Questions
01. What is OOP? Briefly explain the concepts of OOP. Also give the Comparison between procedural programming paradigm and object-oriented paradigm
02. What is operator overloading? Write a C++ program to overload any unary operator?
03. What are the different types of inheritance? Explain any one with the help of C++ program.
04. Define dynamic constructor. Write a C++ program to demonstrate the use of a dynamic constructor.
05. Define inline function. Write a program illustrating the usage of inline function.
06.What do you mean by friend function? Explain with the help of C++ program.
07. What are the different types of operators available in C++? Explain.
08. Write a C++ program to show how a late binding or run time binding can be carried out with the help of a virtual function.
09. Write a note on polymorphism. Differentiate between compile time and run time polymorphism.
10. What is Inheritance? What are various types of inheritance? Write an example of multiple inheritance?
11. What do you mean by function? How a regular function is different from the inline function? What is the use of the inline function?
12. What are default arguments? Write a program to illustrate the use of default arguments.
13. What do you mean by constructors? What is the default constructor? Why we need the copy constructors? Write an example to demonstrate the use of copy constructor.
14. . How the operator overloading helps in extending the language capabilities? Write an example to clear the use of operator overloading?
15. What is class? How the implementation of classes helps in better management of the user data
16. Why the file handling is important? Write the various file handling functions to open and read from the files?
17. What is virtual function? How the virtual function is different from the regular function? What is the use of virtual function in implementation of the polymorphism?
18. A developer has implemented a class A, and then publically derived two classes B and C from class A. Further a class D is derived from class B and C, developer gets an error
when s/he tries to access the methods of class A, through object of class D. You need to identify the problem of above implementation, and write the code for the solution of problem you have identified.
19. “The main advantage of using a static member is to declare the global data which should be updated while the program lives in memory”. Justify your statement.
20. If a member of a class is public, it can be accessed by an external function including a derived class. Explain with an example.
21. Discuss why a friend function is used for accessing the non-public members of a class.
22. How is a copy constructor different from a constructor? Illustrate with suitable examples.
23. Write a C++ program to read and display information about employees and managers. Employee is a class that contains employee number, name, address and department.
Manager class and a list of employees working under a manager.
24. What is the purpose of a virtual function? Illustrate with a suitable example.
25. Describe various file operations in file handling?
26. What is polymorphism? Explain with the help of example?
27. Explain various types of constructors?
28. What are different types of operators? Explain any five categories with example.
29. Explain the different access specifiers used in Object Oriented Programming along with examples.
30. Explain the concept of Overloading binary operators with the help of an example.
31. Explicit type conversions between objects of different types lead, at best, to code that is difficult to read. Discuss.
32. Discuss the concept of ambiguity in Multipath Inheritance. How can it be removed?
33. Explain any five functions used in file handing along with their syntax. Discuss with example code.
34. Create a class including definitions for member functions to represent a bank account. It should include
the following:
Data Members:
Name of account holder
Account number
Balance account
Member Functions:
To initialize the data members with appropriate data
To deposit an account
To withdraw an amount after checking the balance
To display details of account holder
35. Write a program that dynamically allocates memory for an array of size n, reads elements of array and sorts them in ascending order.
36. Explain five manipulators along with examples that you can use for managing output.
37. Discuss the following basic concept of OOP: Data encapsulation, Inheritance, Polymorphism, Dynamic binding?
38. How you can specify a class along with member functions? With the help of example explain how we can access the data and member function of a class.
39. What is a constructor? How we can use dynamic constructor?
40. What do you mean by operator overloading? Discuss the different rules for the overloading operator.
41. What is a virtual base class. Explain the concept of overriding member function.
42. What is pointer to a function? Discuss the dynamic memory management in c++?
43. Discuss the hierarchy of console stream classes.
44. What is a file? How we can open a file in read mode? Explain with example.
45. Discuss with example the relational, logical and bitwise operators in C++.
46.. Explain run time polymorphism with example program in C++.
47. (a) Explain the different types of streams and various formatted I/O in C++.
(b) Explain working of size of () operator and conditional operator in C++.
48. (a) List the operators that cannot be overloaded.
(b) When will the destructors be called? Is it implicit or explicit?
49. What are the various in built string operations? Explain with a program.
50. What are the visibility modes in inheritance? Explain with an example.
51. (a) Describe few area of application of oops.
(b) Describe how data is shared between function in C++.
52. Explain the difference between C and CPP. [10]
53. Elaborate the concept of function overloading in CPP with an example.
54. Define Constructors and Destructors in CPP using an programming example.
55.Compare and contrast the following:
(i) Procedural and object-oriented programming.
(ii) Constructor and destructor.
56. What do you mean by function overloading? Discuss with the help of an example.
57. How can you implement the concept of operator overloading? Discuss with the help of an example.
58. What are classes? Discuss with the help of an example. Compare and contrast various access specifiers used in a class.
59. Compare and contrast the following:
(i) Virtual and pure virtual function.
(ii) New and Delete operator.
60. What do you mean by inheritance? Discuss its various forms with the help of an example.
61. What do you mean by pointer to a function? Discuss with the help of an example.
62. What are virtual functions? Discuss the concept of pure virtual function with the help of an example.
63. Discuss the various operations that can be performed on files. Elaborate with the help of an example
64. Explain inline function and default argument function with proper examples.
65. Write a program to create a class ‘student’ which is having name, id, percentage and mobile number as the data members. Define all type of constructors and destructor (except dynamic constructor) into the same class.
66. Explain the advantage of friend function using proper example with the help of appropriate program
67. Write a program to explain the overloading of unary + operator as member function.
68. Explain the Hybrid inheritance with the help of proper programs. Also discuss the ambiguity situation of Hybrid Inheritance.
69. Write a program to find out the average of float elements with the use of dynamic memory management. Total number of float elements is given at run time.
70. Write a program to copy content of one file into another file using file handling operations.
71. Discuss the 4 functions of iostream-class with their proper purpose. Also design the program to use the same functions.
72. Write a program to define a class ‘time’ which is having hour component, minute component, second component as data members. Define getdata() and putdata() for the class as non inline member functions.
73. List out some of the differences between C and C++.
74. How is a copy constructor different from a parameterized constructor? Illustrate with suitable examples.
75. What is a friend function? Explain it with a program example.
76. What are classes? Discuss with the help of an example. Compare and contrast various access specifiers used in a class.
77. What is a virtual function? Explain by taking a suitable programming example.
78. Write a program to overload a binary operator plus (+) for adding two object values.
79. What are the various file stream modes available in C++. Explain by taking a suitable example.
80. What is polymorphism? Explain by taking a suitable example.
81. Write a short note on inheritance.
82. Explain run time polymorphism with example program in C++.
83. Define dynamic Constructors in CPP using a programming example.
84. Write a program to add two numbers defining a member getdata () and display () inside a class named sum and displaying the result.
85. What is inheritance? What are its advantages? Explain different types of inheritance.
86.What is pointer to pointer? Explain by taking a suitable programming example.
87. What are the various operators available in C++. Explain by taking a suitable example.
88. What is empty class? Explain by taking a suitable example. Also discuss local classes.
89. Explain the difference between procedural programming language and object oriented programming language.
90. What is inline function? Explain by taking an example.
91. What is an object with respect to class in C++? Explain by taking a suitable examp
[Foundation of Computer Programming ]
01. List the different types of constants used in C?
02. Give any four-string manipulation library functions, with an example each.
03. Mention different primitive data types and memory required for them
04. Distinguish between variables and keywords with example.
05. What are Logical operators and Relational operators in C?06. What are bitwise operators available in C?07. What is a conditional operator?08. Write the syntax of the switch statement with an example.09. What is the difference between while and do-while loop?10. Write a program to check whether the given number is prime or not.
11. Write a c program to check whether a given 5 digit number is a palindrome or not?
12. Write a program using switch statement to perform arithmetic operations on two integers.
13. Write a program to find a number from a list of n elements.
14. Explain the term Dynamic memory allocation. Also explain malloc, calloc and realloc functions in C with a suitable example.
15. Differentiate call-by-value and call-by-reference with suitable examples.
16. What is an array? How are they declared in 'C'? What are the rules to be followed while using arrays?
17. Write a function to concatenate two strings, write a program to read three Strings and use the function to concatenate them and print it.
18. Using recursion, write a c program to generate first n terms for the Fibonacci series.
19. What do you understand by pointers in C? Identify the syntax errors in the following program and write the right syntax for the same.
main {}
{
float X;
X=25;
Y=Exp(x);
/** printing section**/
Print(x,y)
}
Comments
Post a Comment