instruction
stringclasses
3 values
question
stringlengths
7
166
The conversation between a Human and AI Assistant [INST] Generate a question for PROGRAMMING IN C (Code: CS101) exam in PART – B section, for 3 mark(s) [/INST]
Develop an application in C to find the mean of all elements in an array using"""```
The conversation between a Human and AI Assistant [INST] Generate a question for PROGRAMMING IN C (Code: CS101) exam in PART – C section, for 5 mark(s) [/INST]
17. a. Explain the error diagnostic and debugging techniques. CO1 U 5"""```
The conversation between a Human and AI Assistant [INST] Generate a question for PROGRAMMING IN C (Code: CS101) exam in PART – C section, for 5 mark(s) [/INST]
18. a. Explain any four relational operators with sample code. CO2 U 5"""```
The conversation between a Human and AI Assistant [INST] Generate a question for PROGRAMMING IN C (Code: CS101) exam in PART – C section, for 5 mark(s) [/INST]
19. a. Explain different aspects of function calling with an example. CO5 A 9"""```
The conversation between a Human and AI Assistant [INST] Generate a question for PROGRAMMING IN C (Code: CS101) exam in PART – C section, for 5 mark(s) [/INST]
20. a. Definean array and explain the declaration and initialization of one-"""```
The conversation between a Human and AI Assistant [INST] Generate a question for PROGRAMMING IN C (Code: CS101) exam in PART – C section, for 5 mark(s) [/INST]
21. a. Describe a pointer. Explain how the pointer variable is declared and"""```
The conversation between a Human and AI Assistant [INST] Generate a question for PROGRAMMING IN C (Code: CS101) exam in PART – C section, for 5 mark(s) [/INST]
22. a. Write a program in C to add two matrices of MXN order. CO4 A 8"""```
The conversation between a Human and AI Assistant [INST] Generate a question for PROGRAMMING IN C (Code: CS101) exam in PART – C section, for 5 mark(s) [/INST]
23. a. Develop an application in C using structures to maintain and display"""```
The conversation between a Human and AI Assistant [INST] Generate a question for PROGRAMMING IN C (Code: CS101) exam in PART – C section, for 5 mark(s) [/INST]
24. a. Write a recursive function to return the factorial of all the numbers in a"""```
The conversation between a Human and AI Assistant [INST] Generate a question for PROGRAMMING IN C (Code: CS101) exam in PART – A section, for 1 mark(s) [/INST]
Name the unit that performs the arithmetic and logical operations on the stored numbers."""```
The conversation between a Human and AI Assistant [INST] Generate a question for PROGRAMMING IN C (Code: CS101) exam in PART – A section, for 1 mark(s) [/INST]
Differentiate a variable and a constant."""```
The conversation between a Human and AI Assistant [INST] Generate a question for PROGRAMMING IN C (Code: CS101) exam in PART – A section, for 1 mark(s) [/INST]
How is a++ different from ++a?"""```
The conversation between a Human and AI Assistant [INST] Generate a question for PROGRAMMING IN C (Code: CS101) exam in PART – A section, for 1 mark(s) [/INST]
How is a character string terminated in C language?"""```
The conversation between a Human and AI Assistant [INST] Generate a question for PROGRAMMING IN C (Code: CS101) exam in PART – A section, for 1 mark(s) [/INST]
State the use of ?: operator."""```
The conversation between a Human and AI Assistant [INST] Generate a question for PROGRAMMING IN C (Code: CS101) exam in PART – A section, for 1 mark(s) [/INST]
What is recursion?"""```
The conversation between a Human and AI Assistant [INST] Generate a question for PROGRAMMING IN C (Code: CS101) exam in PART – A section, for 1 mark(s) [/INST]
State the advantage of pointers."""```
The conversation between a Human and AI Assistant [INST] Generate a question for PROGRAMMING IN C (Code: CS101) exam in PART – A section, for 1 mark(s) [/INST]
What are the storage classes available in C language?"""```
The conversation between a Human and AI Assistant [INST] Generate a question for PROGRAMMING IN C (Code: CS101) exam in PART – A section, for 1 mark(s) [/INST]
State the advantages of structures over an array."""```
The conversation between a Human and AI Assistant [INST] Generate a question for PROGRAMMING IN C (Code: CS101) exam in PART – A section, for 1 mark(s) [/INST]
State the modes in which you can open a file."""```
The conversation between a Human and AI Assistant [INST] Generate a question for PROGRAMMING IN C (Code: CS101) exam in PART – B section, for 3 mark(s) [/INST]
Give the data types available in C language."""```
The conversation between a Human and AI Assistant [INST] Generate a question for PROGRAMMING IN C (Code: CS101) exam in PART – B section, for 3 mark(s) [/INST]
What are the logical operators available in C language?"""```
The conversation between a Human and AI Assistant [INST] Generate a question for PROGRAMMING IN C (Code: CS101) exam in PART – B section, for 3 mark(s) [/INST]
Differentiate break and continue."""```
The conversation between a Human and AI Assistant [INST] Generate a question for PROGRAMMING IN C (Code: CS101) exam in PART – B section, for 3 mark(s) [/INST]
How can dynamic memory allocation save storage space?"""```
The conversation between a Human and AI Assistant [INST] Generate a question for PROGRAMMING IN C (Code: CS101) exam in PART – B section, for 3 mark(s) [/INST]
What is a self referential structure?"""```
The conversation between a Human and AI Assistant [INST] Generate a question for PROGRAMMING IN C (Code: CS101) exam in PART – C section, for 5 mark(s) [/INST]
16. a. Explain the working of a computer with its block diagram. (7)"""```
The conversation between a Human and AI Assistant [INST] Generate a question for PROGRAMMING IN C (Code: CS101) exam in PART – C section, for 5 mark(s) [/INST]
17. a. Describe the various classes of data types used in C language. (7)"""```
The conversation between a Human and AI Assistant [INST] Generate a question for PROGRAMMING IN C (Code: CS101) exam in PART – C section, for 5 mark(s) [/INST]
18. How are C operators classified? Explain operator precedence."""```
The conversation between a Human and AI Assistant [INST] Generate a question for PROGRAMMING IN C (Code: CS101) exam in PART – C section, for 5 mark(s) [/INST]
19. Write notes on input output functions used in C language."""```
The conversation between a Human and AI Assistant [INST] Generate a question for PROGRAMMING IN C (Code: CS101) exam in PART – C section, for 5 mark(s) [/INST]
20. a. Explain how multi way decision can be made in C language. (8)"""```
The conversation between a Human and AI Assistant [INST] Generate a question for PROGRAMMING IN C (Code: CS101) exam in PART – C section, for 5 mark(s) [/INST]
21. Explain the different ways of parameter passing in functions"""```
The conversation between a Human and AI Assistant [INST] Generate a question for PROGRAMMING IN C (Code: CS101) exam in PART – C section, for 5 mark(s) [/INST]
22. a. Explain how pointers could be used to manipulate strings. (8)"""```
The conversation between a Human and AI Assistant [INST] Generate a question for PROGRAMMING IN C (Code: CS101) exam in PART – C section, for 5 mark(s) [/INST]
23. a. Explain how dynamic memory allocation is used in C language. (7)"""```
The conversation between a Human and AI Assistant [INST] Generate a question for PROGRAMMING IN C (Code: CS101) exam in PART – C section, for 5 mark(s) [/INST]
24. a. Differentiate structure and union. (7)"""```
The conversation between a Human and AI Assistant [INST] Generate a question for PROGRAMMING IN C (Code: CS101) exam in PART – C section, for 5 mark(s) [/INST]
25. a. Write short notes on how reading and writing to a file is done. (7)"""```
The conversation between a Human and AI Assistant [INST] Generate a question for PROGRAMMING IN C (Code: CS101) exam in PART – A section, for 1 mark(s) [/INST]
What is a variable in C?"""```
The conversation between a Human and AI Assistant [INST] Generate a question for PROGRAMMING IN C (Code: CS101) exam in PART – A section, for 1 mark(s) [/INST]
Define constant in C."""```
The conversation between a Human and AI Assistant [INST] Generate a question for PROGRAMMING IN C (Code: CS101) exam in PART – A section, for 1 mark(s) [/INST]
What are the different data types in C?"""```
The conversation between a Human and AI Assistant [INST] Generate a question for PROGRAMMING IN C (Code: CS101) exam in PART – A section, for 1 mark(s) [/INST]
Explain the concept of pointers."""```
The conversation between a Human and AI Assistant [INST] Generate a question for PROGRAMMING IN C (Code: CS101) exam in PART – A section, for 1 mark(s) [/INST]
What is an array?"""```
The conversation between a Human and AI Assistant [INST] Generate a question for PROGRAMMING IN C (Code: CS101) exam in PART – A section, for 1 mark(s) [/INST]
Define function in C."""```
The conversation between a Human and AI Assistant [INST] Generate a question for PROGRAMMING IN C (Code: CS101) exam in PART – A section, for 1 mark(s) [/INST]
What is recursion?"""```
The conversation between a Human and AI Assistant [INST] Generate a question for PROGRAMMING IN C (Code: CS101) exam in PART – A section, for 1 mark(s) [/INST]
What is the purpose of the main() function?"""```
The conversation between a Human and AI Assistant [INST] Generate a question for PROGRAMMING IN C (Code: CS101) exam in PART – A section, for 1 mark(s) [/INST]
What are header files?"""```
The conversation between a Human and AI Assistant [INST] Generate a question for PROGRAMMING IN C (Code: CS101) exam in PART – A section, for 1 mark(s) [/INST]
Explain the concept of storage classes."""```
The conversation between a Human and AI Assistant [INST] Generate a question for PROGRAMMING IN C (Code: CS101) exam in PART – B section, for 3 mark(s) [/INST]
What is the difference between a for loop and a while loop?"""```
The conversation between a Human and AI Assistant [INST] Generate a question for PROGRAMMING IN C (Code: CS101) exam in PART – B section, for 3 mark(s) [/INST]
Explain the switch statement with an example."""```
The conversation between a Human and AI Assistant [INST] Generate a question for PROGRAMMING IN C (Code: CS101) exam in PART – B section, for 3 mark(s) [/INST]
How do you allocate memory dynamically in C?"""```
The conversation between a Human and AI Assistant [INST] Generate a question for PROGRAMMING IN C (Code: CS101) exam in PART – B section, for 3 mark(s) [/INST]
What is a structure in C?"""```
The conversation between a Human and AI Assistant [INST] Generate a question for PROGRAMMING IN C (Code: CS101) exam in PART – B section, for 3 mark(s) [/INST]
Differentiate between structure and union."""```
The conversation between a Human and AI Assistant [INST] Generate a question for PROGRAMMING IN C (Code: CS101) exam in PART – C section, for 5 mark(s) [/INST]
Explain the process of file handling in C."""```
The conversation between a Human and AI Assistant [INST] Generate a question for PROGRAMMING IN C (Code: CS101) exam in PART – C section, for 5 mark(s) [/INST]
Discuss the importance of pointers in C."""```
The conversation between a Human and AI Assistant [INST] Generate a question for PROGRAMMING IN C (Code: CS101) exam in PART – C section, for 5 mark(s) [/INST]
How do you create a custom header file in C?"""```
The conversation between a Human and AI Assistant [INST] Generate a question for PROGRAMMING IN C (Code: CS101) exam in PART – C section, for 5 mark(s) [/INST]
What is the use of the 'static' keyword?"""```
The conversation between a Human and AI Assistant [INST] Generate a question for PROGRAMMING IN C (Code: CS101) exam in PART – C section, for 5 mark(s) [/INST]
Describe the concept of linked lists."""```
The conversation between a Human and AI Assistant [INST] Generate a question for PROGRAMMING IN C (Code: CS101) exam in PART – C section, for 5 mark(s) [/INST]
Explain how to implement a stack using an array."""```
The conversation between a Human and AI Assistant [INST] Generate a question for PROGRAMMING IN C (Code: CS101) exam in PART – C section, for 5 mark(s) [/INST]
Discuss the difference between call by value and call by reference."""```
The conversation between a Human and AI Assistant [INST] Generate a question for PROGRAMMING IN C (Code: CS101) exam in PART – C section, for 5 mark(s) [/INST]
Explain the role of the preprocessor in C."""```
The conversation between a Human and AI Assistant [INST] Generate a question for PROGRAMMING IN C (Code: CS101) exam in PART – C section, for 5 mark(s) [/INST]
What are the different types of operators in C?"""```
The conversation between a Human and AI Assistant [INST] Generate a question for PROGRAMMING IN C (Code: CS101) exam in PART – C section, for 5 mark(s) [/INST]
Write a program to reverse a string using pointers."""```
The conversation between a Human and AI Assistant [INST] Generate a question for PROGRAMMING IN C (Code: CS101) exam in PART – A section, for 1 mark(s) [/INST]
What is a pointer in C?"""```
The conversation between a Human and AI Assistant [INST] Generate a question for PROGRAMMING IN C (Code: CS101) exam in PART – A section, for 1 mark(s) [/INST]
Define the term 'array'."""```
The conversation between a Human and AI Assistant [INST] Generate a question for PROGRAMMING IN C (Code: CS101) exam in PART – A section, for 1 mark(s) [/INST]
What is a string in C?"""```
The conversation between a Human and AI Assistant [INST] Generate a question for PROGRAMMING IN C (Code: CS101) exam in PART – A section, for 1 mark(s) [/INST]
How do you declare a function?"""```
The conversation between a Human and AI Assistant [INST] Generate a question for PROGRAMMING IN C (Code: CS101) exam in PART – A section, for 1 mark(s) [/INST]
What is the purpose of the return statement?"""```
The conversation between a Human and AI Assistant [INST] Generate a question for PROGRAMMING IN C (Code: CS101) exam in PART – A section, for 1 mark(s) [/INST]
What is the size of an integer variable?"""```
The conversation between a Human and AI Assistant [INST] Generate a question for PROGRAMMING IN C (Code: CS101) exam in PART – A section, for 1 mark(s) [/INST]
What is a null pointer?"""```
The conversation between a Human and AI Assistant [INST] Generate a question for PROGRAMMING IN C (Code: CS101) exam in PART – A section, for 1 mark(s) [/INST]
How are strings stored in memory?"""```
The conversation between a Human and AI Assistant [INST] Generate a question for PROGRAMMING IN C (Code: CS101) exam in PART – A section, for 1 mark(s) [/INST]
What are comments in C?"""```
The conversation between a Human and AI Assistant [INST] Generate a question for PROGRAMMING IN C (Code: CS101) exam in PART – A section, for 1 mark(s) [/INST]
Explain the use of the sizeof operator."""```
The conversation between a Human and AI Assistant [INST] Generate a question for PROGRAMMING IN C (Code: CS101) exam in PART – B section, for 3 mark(s) [/INST]
What is the use of the 'break' statement?"""```
The conversation between a Human and AI Assistant [INST] Generate a question for PROGRAMMING IN C (Code: CS101) exam in PART – B section, for 3 mark(s) [/INST]
How do you handle errors in C?"""```
The conversation between a Human and AI Assistant [INST] Generate a question for PROGRAMMING IN C (Code: CS101) exam in PART – B section, for 3 mark(s) [/INST]
Explain how to create a linked list."""```
The conversation between a Human and AI Assistant [INST] Generate a question for PROGRAMMING IN C (Code: CS101) exam in PART – B section, for 3 mark(s) [/INST]
What is a dynamic array?"""```
The conversation between a Human and AI Assistant [INST] Generate a question for PROGRAMMING IN C (Code: CS101) exam in PART – B section, for 3 mark(s) [/INST]
Explain the difference between '==' and '='."""```
The conversation between a Human and AI Assistant [INST] Generate a question for PROGRAMMING IN C (Code: CS101) exam in PART – C section, for 5 mark(s) [/INST]
Discuss the various data types in C with examples."""```
The conversation between a Human and AI Assistant [INST] Generate a question for PROGRAMMING IN C (Code: CS101) exam in PART – C section, for 5 mark(s) [/INST]
Explain how to read from a file in C."""```
The conversation between a Human and AI Assistant [INST] Generate a question for PROGRAMMING IN C (Code: CS101) exam in PART – C section, for 5 mark(s) [/INST]
What is the difference between a structure and a class?"""```
The conversation between a Human and AI Assistant [INST] Generate a question for PROGRAMMING IN C (Code: CS101) exam in PART – C section, for 5 mark(s) [/INST]
Describe the concept of a function pointer."""```
The conversation between a Human and AI Assistant [INST] Generate a question for PROGRAMMING IN C (Code: CS101) exam in PART – C section, for 5 mark(s) [/INST]
How do you implement error handling in C?"""```
The conversation between a Human and AI Assistant [INST] Generate a question for PROGRAMMING IN C (Code: CS101) exam in PART – C section, for 5 mark(s) [/INST]
Explain the concept of multi-dimensional arrays."""```
The conversation between a Human and AI Assistant [INST] Generate a question for PROGRAMMING IN C (Code: CS101) exam in PART – C section, for 5 mark(s) [/INST]
Discuss the use of the 'const' keyword."""```
The conversation between a Human and AI Assistant [INST] Generate a question for PROGRAMMING IN C (Code: CS101) exam in PART – C section, for 5 mark(s) [/INST]
What is an enumerated type?"""```
The conversation between a Human and AI Assistant [INST] Generate a question for PROGRAMMING IN C (Code: CS101) exam in PART – C section, for 5 mark(s) [/INST]
Explain the concept of a binary tree."""```
The conversation between a Human and AI Assistant [INST] Generate a question for PROGRAMMING IN C (Code: CS101) exam in PART – C section, for 5 mark(s) [/INST]
Write a program to find the factorial of a number using recursion."""```
The conversation between a Human and AI Assistant [INST] Generate a question for PROGRAMMING IN C (Code: CS101) exam in PART – A section, for 1 mark(s) [/INST]
What is the syntax for declaring a variable?"""```
The conversation between a Human and AI Assistant [INST] Generate a question for PROGRAMMING IN C (Code: CS101) exam in PART – A section, for 1 mark(s) [/INST]
Define a constant variable."""```
The conversation between a Human and AI Assistant [INST] Generate a question for PROGRAMMING IN C (Code: CS101) exam in PART – A section, for 1 mark(s) [/INST]
What is the purpose of 'main' function in C?"""```
The conversation between a Human and AI Assistant [INST] Generate a question for PROGRAMMING IN C (Code: CS101) exam in PART – A section, for 1 mark(s) [/INST]
How is memory allocated in C?"""```
The conversation between a Human and AI Assistant [INST] Generate a question for PROGRAMMING IN C (Code: CS101) exam in PART – A section, for 1 mark(s) [/INST]
What is the difference between an array and a pointer?"""```
The conversation between a Human and AI Assistant [INST] Generate a question for PROGRAMMING IN C (Code: CS101) exam in PART – A section, for 1 mark(s) [/INST]
Explain the structure of a C program."""```
The conversation between a Human and AI Assistant [INST] Generate a question for PROGRAMMING IN C (Code: CS101) exam in PART – A section, for 1 mark(s) [/INST]
What are the types of loops available in C?"""```
The conversation between a Human and AI Assistant [INST] Generate a question for PROGRAMMING IN C (Code: CS101) exam in PART – A section, for 1 mark(s) [/INST]
What is the difference between 'int' and 'float'?"""```
The conversation between a Human and AI Assistant [INST] Generate a question for PROGRAMMING IN C (Code: CS101) exam in PART – A section, for 1 mark(s) [/INST]
Define a function prototype."""```
The conversation between a Human and AI Assistant [INST] Generate a question for PROGRAMMING IN C (Code: CS101) exam in PART – A section, for 1 mark(s) [/INST]
What is a segmentation fault?"""```
The conversation between a Human and AI Assistant [INST] Generate a question for PROGRAMMING IN C (Code: CS101) exam in PART – B section, for 3 mark(s) [/INST]
Explain the use of conditional statements."""```
The conversation between a Human and AI Assistant [INST] Generate a question for PROGRAMMING IN C (Code: CS101) exam in PART – B section, for 3 mark(s) [/INST]
What is the difference between 'strcpy' and 'strncpy'?"""```
The conversation between a Human and AI Assistant [INST] Generate a question for PROGRAMMING IN C (Code: CS101) exam in PART – B section, for 3 mark(s) [/INST]
Describe how to pass an array to a function."""```
The conversation between a Human and AI Assistant [INST] Generate a question for PROGRAMMING IN C (Code: CS101) exam in PART – B section, for 3 mark(s) [/INST]
Explain the significance of the 'volatile' keyword."""```
The conversation between a Human and AI Assistant [INST] Generate a question for PROGRAMMING IN C (Code: CS101) exam in PART – B section, for 3 mark(s) [/INST]
What are the different types of memory allocation?"""```
The conversation between a Human and AI Assistant [INST] Generate a question for PROGRAMMING IN C (Code: CS101) exam in PART – C section, for 5 mark(s) [/INST]
What is the purpose of the 'typedef' keyword?"""```