The document contains past year B.Com programming exam questions organized into 5 units. Unit I covers the history and basics of C language including data types, operators, input/output. Unit II covers control structures like if/else, switch, loops. Unit III discusses functions, arrays, strings. Unit IV introduces pointers and structures. Unit V focuses on object-oriented concepts in C++ like classes and inheritance. The document wishes students good luck on their exam.
The document contains past year B.Com programming exam questions organized into 5 units. Unit I covers the history and basics of C language including data types, operators, input/output. Unit II covers control structures like if/else, switch, loops. Unit III discusses functions, arrays, strings. Unit IV introduces pointers and structures. Unit V focuses on object-oriented concepts in C++ like classes and inheritance. The document wishes students good luck on their exam.
The document contains past year B.Com programming exam questions organized into 5 units. Unit I covers the history and basics of C language including data types, operators, input/output. Unit II covers control structures like if/else, switch, loops. Unit III discusses functions, arrays, strings. Unit IV introduces pointers and structures. Unit V focuses on object-oriented concepts in C++ like classes and inheritance. The document wishes students good luck on their exam.
1. What is the History and importance of c-language?
2. Explain the structure of c-language? 3. What is flowchart, algorithm and explain in detail? 4. Explain how to execute a c-program with a neat diagram? 5. Explain about c-tokens? 6. Define scope & life time of a variable? 7. Explain the c-data types? 8. What is type conversion and explain its types? 9. Explain the formatted input input (scanf) and formatted output (printf)? 10. Explain about c-operators with an example?
UNIT II
1. Explain the simple if statement with an example?
2. Explain the if-else statement with an example? 3. Explain the switch statement with an example? 4. Explain the while loop statement with an example? 5. Explain the do (or) do-while loop statement with an example? 6. Explain the for loop statement with an example?
UNIT III
1. Explain the function elements? (function definition, function call &
function declaration) 2. Explain the various built-in functions? (Mathematical, String, Character & Date functions) 3. Explain the call by value and call by reference with an example? 4. What is need for user defined functions? 5. What is recursion and explain with an example?
6. Explain about one-dimensional array with an example?
7. Explain about two-dimensional array with an example? 8. How to declare and initializing strings? 9. Explain about the reading and writing strings? 10. Explain about string handling functions with an example?
UNIT IV
1. What is pointer? And explain how to declare pointer variables?
2. Explain the arithmetic operators with pointers? 3. What is structure and how to define and declaration of structures? 4. Explain about arrays of structures? 5. Explain about enumerated data types? 6. What is union? Explain with an example? 7. What is the difference between structures and unions?
UNIT V
1. Explain the basic concepts of OOP?
2. Explain the structure of C++? 3. What is the difference between C & C++? 4. What is class and explain with an example? 5. What is inheritance and explain its types?