new_instruction2
stringlengths 155
411
|
---|
The conversation between a Human and AI Assistant [INST] Generate a C programming question exam in PART β A section, for 6[/INST] Write a program in C that Demonstrates nested structures by declaring a structure that contains another structure representing a date.
|
The conversation between a Human and AI Assistant [INST] Generate a C programming question exam in PART β A section, for 6[/INST] Write a program in C that Implements a structure within a structure to store data about a university, including its departments and their respective courses.
|
The conversation between a Human and AI Assistant [INST] Generate a C programming question exam in PART β A section, for 6[/INST] Write a program in C that Uses structures within structures to create a simulation of a library, including books and their borrowing details.
|
The conversation between a Human and AI Assistant [INST] Generate a C programming question exam in PART β A section, for 3[/INST] Write a program in C that Uses nested structures to store data related to different students' educational history, such as degrees and courses completed.
|
The conversation between a Human and AI Assistant [INST] Generate a C programming question exam in PART β A section, for 6[/INST] Write a program in C that Implements a structure within a structure to simulate a banking system, including account details and transaction history.
|
The conversation between a Human and AI Assistant [INST] Generate a C programming question exam in PART β A section, for 6[/INST] Write a program in C that Declares a structure with a nested structure representing a person's name, including their first name, middle name, and last name.
|
The conversation between a Human and AI Assistant [INST] Generate a C programming question exam in PART β A section, for 3[/INST] Write a program in C that Uses nested structures to store information about an employee's resume, including their skills and work experience.
|
The conversation between a Human and AI Assistant [INST] Generate a C programming question exam in PART β A section, for 6[/INST] Write a program in C that Implements a structure within a structure to store data related to a zoo, including details about different animals and their habitats.
|
The conversation between a Human and AI Assistant [INST] Generate a C programming question exam in PART β A section, for 6[/INST] Write a program in C that Uses structures within structures to simulate a contact management system, including individual contacts and their respective phone numbers and addresses.
|
The conversation between a Human and AI Assistant [INST] Generate a C programming question exam in PART β A section, for 3[/INST] Write a program in C that Demonstrates nested structures by declaring a structure that holds information about a student's academic performance, including their grades in various subjects.
|
The conversation between a Human and AI Assistant [INST] Generate a C programming question exam in PART β A section, for 6[/INST] Write a program in C that Implements a structure within a structure to store details of a music database, including songs and their respective artists.
|
The conversation between a Human and AI Assistant [INST] Generate a C programming question exam in PART β A section, for 6[/INST] Write a program in C that Uses nested structures to represent a bookstore inventory system, including books and their availability.
|
The conversation between a Human and AI Assistant [INST] Generate a C programming question exam in PART β A section, for 6[/INST] Write a program in C that Declares a structure within a structure to store information about a country and its states/provinces.
|
The conversation between a Human and AI Assistant [INST] Generate a C programming question exam in PART β A section, for 6[/INST] Write a program in C that Implements a structure within a structure to simulate a restaurant management system, including details about tables and their respective orders.
|
The conversation between a Human and AI Assistant [INST] Generate a C programming question exam in PART β A section, for 3[/INST] Write a program in C that Uses structures within structures to create a family tree, including individuals and their relationships.
|
The conversation between a Human and AI Assistant [INST] Generate a C programming question exam in PART β A section, for 3[/INST] Write a program in C that Demonstrates nested structures by declaring a structure that holds information about a company's products, including their prices and availability.
|
The conversation between a Human and AI Assistant [INST] Generate a C programming question exam in PART β A section, for 3[/INST] Write a program in C that Implements a structure within a structure to store data related to a school's timetable, including classes and timings.
|
The conversation between a Human and AI Assistant [INST] Generate a C programming question exam in PART β A section, for 6[/INST] Write a program in C that Uses nested structures to represent a file management system, including files and their attributes.
|
The conversation between a Human and AI Assistant [INST] Generate a C programming question exam in PART β A section, for 6[/INST] Write a program in C that Declares a structure named "person" with members "name" (char array) and "age" (integer).
|
The conversation between a Human and AI Assistant [INST] Generate a C programming question exam in PART β A section, for 3[/INST] Write a program in C that Declares a union named "data" with members "num" (integer) and "c" (character).
|
The conversation between a Human and AI Assistant [INST] Generate a C programming question exam in PART β A section, for 6[/INST] Write a program in C that Creates a structure variable "student" of type "person" and assigns the name "John" and age Write a program in C that
|
The conversation between a Human and AI Assistant [INST] Generate a C programming question exam in PART β A section, for 3[/INST] Write a program in C that Creates a union variable "value" of type "data" and assigns the value 5 to the member "num".
|
The conversation between a Human and AI Assistant [INST] Generate a C programming question exam in PART β A section, for 6[/INST] Write a program in C that Prints the size of the structure "person" using the "sizeof" operator.
|
The conversation between a Human and AI Assistant [INST] Generate a C programming question exam in PART β A section, for 3[/INST] Write a program in C that Prints the size of the union "data" using the "sizeof" operator.
|
The conversation between a Human and AI Assistant [INST] Generate a C programming question exam in PART β A section, for 3[/INST] Write a program in C that Reads the name and age of a person from the user and stores it in the "student" structure.
|
The conversation between a Human and AI Assistant [INST] Generate a C programming question exam in PART β A section, for 6[/INST] Write a program in C that Reads a number from the user and stores it in the member "num" of the "value" union.
|
The conversation between a Human and AI Assistant [INST] Generate a C programming question exam in PART β A section, for 6[/INST] Write a program in C that Prints the name and age of the person stored in the "student" structure.
|
The conversation between a Human and AI Assistant [INST] Generate a C programming question exam in PART β A section, for 3[/INST] Write a program in C that Prints the value of the "num" member of the "value" union.
|
The conversation between a Human and AI Assistant [INST] Generate a C programming question exam in PART β A section, for 6[/INST] Write a program in C that Creates an array of 5 "person" structures and initializes their name and age.
|
The conversation between a Human and AI Assistant [INST] Generate a C programming question exam in PART β A section, for 3[/INST] Write a program in C that Creates an array of 5 "data" unions and assigns different values to their "num" members.
|
The conversation between a Human and AI Assistant [INST] Generate a C programming question exam in PART β A section, for 3[/INST] Write a program in C that Prints the names and ages of all the persons in the array.
|
The conversation between a Human and AI Assistant [INST] Generate a C programming question exam in PART β A section, for 3[/INST] Write a program in C that Prints the values of the "num" members in all the unions of the array.
|
The conversation between a Human and AI Assistant [INST] Generate a C programming question exam in PART β A section, for 6[/INST] Write a program in C that Swaps the values of the "name" member in two "person" structures.
|
The conversation between a Human and AI Assistant [INST] Generate a C programming question exam in PART β A section, for 3[/INST] Write a program in C that Swaps the values of the "num" member in two "data" unions.
|
The conversation between a Human and AI Assistant [INST] Generate a C programming question exam in PART β A section, for 6[/INST] Write a program in C that Sorts the array of persons based on their ages in ascending order.
|
The conversation between a Human and AI Assistant [INST] Generate a C programming question exam in PART β A section, for 3[/INST] Write a program in C that Sorts the array of unions based on their num values in descending order.
|
The conversation between a Human and AI Assistant [INST] Generate a C programming question exam in PART β A section, for 6[/INST] Write a program in C that Checks if the "name" member in a person structure is empty.
|
The conversation between a Human and AI Assistant [INST] Generate a C programming question exam in PART β A section, for 3[/INST] Write a program in C that Checks if the "c" member in a data union is lowercase.
|
The conversation between a Human and AI Assistant [INST] Generate a C programming question exam in PART β A section, for 6[/INST] Write a program in C that Adds the ages of all the persons in the array and prints the total.
|
The conversation between a Human and AI Assistant [INST] Generate a C programming question exam in PART β A section, for 3[/INST] Write a program in C that Computes the average of the num values in all the unions of the array.
|
The conversation between a Human and AI Assistant [INST] Generate a C programming question exam in PART β A section, for 3[/INST] Write a program in C that Finds the oldest person in the array and prints their name and age.
|
The conversation between a Human and AI Assistant [INST] Generate a C programming question exam in PART β A section, for 3[/INST] Write a program in C that Finds the union with the highest num value in the array and prints its num value.
|
The conversation between a Human and AI Assistant [INST] Generate a C programming question exam in PART β A section, for 3[/INST] Write a program in C that Calculates the sum of the ASCII values of all characters in the name member of the person structure.
|
The conversation between a Human and AI Assistant [INST] Generate a C programming question exam in PART β A section, for 3[/INST] Write a program in C that Write a program in C that dynamically allocates memory using malloc() and forgets to free it.
|
The conversation between a Human and AI Assistant [INST] Generate a C programming question exam in PART β A section, for 6[/INST] Write a program in C that Write a program in C that creates an infinite loop, continuously allocating memory without ever freeing it.
|
The conversation between a Human and AI Assistant [INST] Generate a C programming question exam in PART β A section, for 3[/INST] Write a program in C that Write a program in C that uses calloc() to allocate memory and then fails to deallocate it.
|
The conversation between a Human and AI Assistant [INST] Generate a C programming question exam in PART β A section, for 3[/INST] Write a program in C that Write a program in C that creates a function with a local variable that is not properly deallocated before the function ends.
|
The conversation between a Human and AI Assistant [INST] Generate a C programming question exam in PART β A section, for 6[/INST] Write a program in C that Write a program in C that includes a recursive function that allocates memory but does not free it properly.
|
The conversation between a Human and AI Assistant [INST] Generate a C programming question exam in PART β A section, for 3[/INST] Write a program in C that Write a program in C that declares a large array on the stack and uses it, causing a stack overflow.
|
The conversation between a Human and AI Assistant [INST] Generate a C programming question exam in PART β A section, for 6[/INST] Write a program in C that Write a program in C that fails to free memory in a loop, causing repeated memory leaks.
|
The conversation between a Human and AI Assistant [INST] Generate a C programming question exam in PART β A section, for 3[/INST] Write a program in C that Write a program in C that uses global variables to allocate and forget to deallocate memory.
|
The conversation between a Human and AI Assistant [INST] Generate a C programming question exam in PART β A section, for 6[/INST] Write a program in C that Write a program in C that uses realloc() to resize an array, but fails to free the original memory.
|
The conversation between a Human and AI Assistant [INST] Generate a C programming question exam in PART β A section, for 6[/INST] Write a program in C that Write a program in C that creates multiple threads and each thread allocates memory without freeing it.
|
The conversation between a Human and AI Assistant [INST] Generate a C programming question exam in PART β A section, for 3[/INST] Write a program in C that Write a program in C that creates a struct dynamically but forgets to free it.
|
The conversation between a Human and AI Assistant [INST] Generate a C programming question exam in PART β A section, for 3[/INST] Write a program in C that Write a program in C that allocates memory for a pointer but does not assign a value to it, causing a memory leak.
|
The conversation between a Human and AI Assistant [INST] Generate a C programming question exam in PART β A section, for 6[/INST] Write a program in C that Write a program in C that uses a library function that internally allocates memory but does not provide a way to deallocate it.
|
The conversation between a Human and AI Assistant [INST] Generate a C programming question exam in PART β A section, for 6[/INST] Write a program in C that Write a program in C that includes a function with a memory leak due to an incorrect logic flow.
|
The conversation between a Human and AI Assistant [INST] Generate a C programming question exam in PART β A section, for 3[/INST] Write a program in C that Write a program in C that uses a self-referential data structure with incorrect deallocation logic, causing a memory leak.
|
The conversation between a Human and AI Assistant [INST] Generate a C programming question exam in PART β A section, for 3[/INST] Write a program in C that Write a program in C that declares a local array in a loop and fails to deallocate it before the loop ends.
|
The conversation between a Human and AI Assistant [INST] Generate a C programming question exam in PART β A section, for 3[/INST] Write a program in C that Write a program in C that uses a double pointer to dynamically allocate memory and forgets to free it.
|
The conversation between a Human and AI Assistant [INST] Generate a C programming question exam in PART β A section, for 6[/INST] Write a program in C that Write a program in C that opens a file but fails to close it, causing a memory leak in the file-related resources.
|
The conversation between a Human and AI Assistant [INST] Generate a C programming question exam in PART β A section, for 3[/INST] Write a program in C that Write a program in C that allocates memory in a switch statement but fails to deallocate it in all the possible cases.
|
The conversation between a Human and AI Assistant [INST] Generate a C programming question exam in PART β A section, for 3[/INST] Write a program in C that Write a program in C that uses a custom memory allocation function, but does not handle errors or deallocate memory properly.
|
The conversation between a Human and AI Assistant [INST] Generate a C programming question exam in PART β A section, for 6[/INST] Write a program in C that Write a program in C that uses a nested loop and fails to deallocate memory allocated inside the inner loop.
|
The conversation between a Human and AI Assistant [INST] Generate a C programming question exam in PART β A section, for 6[/INST] Write a program in C that Write a program in C that allocates memory for a string but does not properly handle the case where the string is not found or not utilized.
|
The conversation between a Human and AI Assistant [INST] Generate a C programming question exam in PART β A section, for 6[/INST] Write a program in C that Write a program in C that uses a third-party library function that allocates memory but fails to document or provide instructions on how to deallocate it.
|
The conversation between a Human and AI Assistant [INST] Generate a C programming question exam in PART β A section, for 3[/INST] Write a program in C that Write a program in C that accidentally overwrites a pointer value without deallocating the memory it previously pointed to.
|
The conversation between a Human and AI Assistant [INST] Generate a C programming question exam in PART β A section, for 3[/INST] Write a program in C that Write a program in C that uses a custom data structure and forgets to implement a proper destructor or cleanup mechanism.
|
The conversation between a Human and AI Assistant [INST] Generate a C programming question exam in PART β A section, for 3[/INST] Write a program in C that Defines a structure 'Person' with members 'name' and 'age'. Declare a pointer to this structure.
|
The conversation between a Human and AI Assistant [INST] Generate a C programming question exam in PART β A section, for 3[/INST] Write a program in C that Initializes the members of the structure 'Person' using the pointer.
|
The conversation between a Human and AI Assistant [INST] Generate a C programming question exam in PART β A section, for 3[/INST] Write a program in C that Prints the name and age of the structure 'Person' using the pointer.
|
The conversation between a Human and AI Assistant [INST] Generate a C programming question exam in PART β A section, for 6[/INST] Write a program in C that Updates the age of the structure 'Person' using the pointer.
|
The conversation between a Human and AI Assistant [INST] Generate a C programming question exam in PART β A section, for 6[/INST] Write a program in C that Creates an array of structures and assigns values to its members using the pointer.
|
The conversation between a Human and AI Assistant [INST] Generate a C programming question exam in PART β A section, for 3[/INST] Write a program in C that Prints the values of all members of the structures in the array using the pointer.
|
The conversation between a Human and AI Assistant [INST] Generate a C programming question exam in PART β A section, for 6[/INST] Write a program in C that Calculates the average age of the structures in the array using the pointer.
|
The conversation between a Human and AI Assistant [INST] Generate a C programming question exam in PART β A section, for 6[/INST] Write a program in C that Swaps two structures in the array using the pointer.
|
The conversation between a Human and AI Assistant [INST] Generate a C programming question exam in PART β A section, for 6[/INST] Write a program in C that Sorts the array of structures based on the age using the pointer.
|
The conversation between a Human and AI Assistant [INST] Generate a C programming question exam in PART β A section, for 3[/INST] Write a program in C that Checks if two structures in the array are equal based on their name using the pointer.
|
The conversation between a Human and AI Assistant [INST] Generate a C programming question exam in PART β A section, for 3[/INST] Write a program in C that Concatenates two structures in the array using the pointer.
|
The conversation between a Human and AI Assistant [INST] Generate a C programming question exam in PART β A section, for 6[/INST] Write a program in C that Deletes a structure from the array using the pointer.
|
The conversation between a Human and AI Assistant [INST] Generate a C programming question exam in PART β A section, for 6[/INST] Write a program in C that Counts the number of structures in the array having age greater than a given value using the pointer.
|
The conversation between a Human and AI Assistant [INST] Generate a C programming question exam in PART β A section, for 3[/INST] Write a program in C that Finds the oldest person in the array based on age using the pointer.
|
The conversation between a Human and AI Assistant [INST] Generate a C programming question exam in PART β A section, for 3[/INST] Write a program in C that Copies the contents of one structure to another using the pointer.
|
The conversation between a Human and AI Assistant [INST] Generate a C programming question exam in PART β A section, for 3[/INST] Write a program in C that Checks if a structure in the array has a given name using the pointer.
|
The conversation between a Human and AI Assistant [INST] Generate a C programming question exam in PART β A section, for 3[/INST] Write a program in C that Reverses the order of the structures in the array using the pointer.
|
The conversation between a Human and AI Assistant [INST] Generate a C programming question exam in PART β A section, for 3[/INST] Write a program in C that Inserts a new structure at a specific position in the array using the pointer.
|
The conversation between a Human and AI Assistant [INST] Generate a C programming question exam in PART β A section, for 6[/INST] Write a program in C that Finds the index of a structure with a given name in the array using the pointer.
|
The conversation between a Human and AI Assistant [INST] Generate a C programming question exam in PART β A section, for 6[/INST] Write a program in C that Prints the size of the structure using the pointer.
|
The conversation between a Human and AI Assistant [INST] Generate a C programming question exam in PART β A section, for 6[/INST] Write a program in C that Checks if the pointer to the structure is NULL.
|
The conversation between a Human and AI Assistant [INST] Generate a C programming question exam in PART β A section, for 3[/INST] Write a program in C that Dynamically allocates memory for a structure using the pointer.
|
The conversation between a Human and AI Assistant [INST] Generate a C programming question exam in PART β A section, for 6[/INST] Write a program in C that Frees the memory allocated for a structure using the pointer.
|
The conversation between a Human and AI Assistant [INST] Generate a C programming question exam in PART β A section, for 6[/INST] Write a program in C that Compares two structure pointers for equality.
|
The conversation between a Human and AI Assistant [INST] Generate a C programming question exam in PART β A section, for 3[/INST] Write a program in C that Checks if the pointer to the structure is pointing to a valid memory location.
|
The conversation between a Human and AI Assistant [INST] Generate a C programming question exam in PART β A section, for 3[/INST] Write a program in C that declares a structure named 'student', containing variables such as 'name', 'roll number', and 'grade'.
|
The conversation between a Human and AI Assistant [INST] Generate a C programming question exam in PART β A section, for 3[/INST] Write a program in C that Write a program in C that defines a bit field structure with 3 fields: "a" with 3 bits, "b" with 5 bits, and "c" with 2 bits.
|
The conversation between a Human and AI Assistant [INST] Generate a C programming question exam in PART β A section, for 3[/INST] Write a program in C that Write a program in C that defines a bit field structure with a single field "x" using 8 bits.
|
The conversation between a Human and AI Assistant [INST] Generate a C programming question exam in PART β A section, for 6[/INST] Write a program in C that Write a program in C that defines a bit field structure with 4 fields: "a" with 2 bits, "b" with 3 bits, "c" with 4 bits, and "d" with 1 bit.
|
The conversation between a Human and AI Assistant [INST] Generate a C programming question exam in PART β A section, for 6[/INST] Write a program in C that Write a program in C that defines a bit field structure with 2 fields: "a" with 6 bits and "b" with 2 bits.
|
The conversation between a Human and AI Assistant [INST] Generate a C programming question exam in PART β A section, for 3[/INST] Write a program in C that Write a program in C that defines a bit field structure with 3 fields: "a" with 4 bits, "b" with 2 bits, and "c" with 6 bits.
|
The conversation between a Human and AI Assistant [INST] Generate a C programming question exam in PART β A section, for 3[/INST] Write a program in C that Write a program in C that defines a bit field structure with a single field "x" using 16 bits.
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.