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 Calculates the number of minutes between two time_t variables.
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 number of seconds between two time_t variables.
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 a given time_t variable is within a specific date range.
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 Gets the current time and date as a time_t variable.
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 Converts a time_t variable to GMT/UTC time.
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 Converts a time_t variable to local time.
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 next occurrence of a specific day of the week from a given time_t variable.
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 a given year is a leap year.
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 number of days in a specific month of a given year.
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 day of the week for a specific date represented by a time_t variable.
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 a given date represented by a time_t variable is a weekend.
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 number of seconds since the Unix epoch for a specific date and time.
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 number of milliseconds since the Unix epoch for a specific date and time.
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 a given time_t variable is in daylight saving time.
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 Converts a local time represented by a time_t variable to GMT time.
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 number of days between the current time and a specific future time.
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 custom header file named "myheader.h".
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 includes the "myheader.h" header file and defines a macro named MAX_VALUE with a value of 100.
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 includes the "myheader.h" header file and declares a function named "print_hello" that takes no arguments and returns void.
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 includes the "myheader.h" header file and defines a structure named "person" with attributes name (string) and age (integer).
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 includes the "myheader.h" header file and declares an integer variable named "num" with a value of 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 includes the "myheader.h" header file and defines a function named "add_numbers" that takes two integer arguments and returns their sum.
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 includes the "myheader.h" header file and declares a constant integer named "NUM_OF_STUDENTS" with a value of 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 includes the "myheader.h" header file and declares a global variable named "counter" of type long.
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 includes the "myheader.h" header file and defines a typedef named "Color" for an 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 includes the "myheader.h" header file and declares an enumeration named "Day" with values MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY.
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 includes the "myheader.h" header file and defines a function named "is_even" that takes an integer argument and returns 1 if even, and 0 if odd.
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 includes the "myheader.h" header file and declares an array named "scores" of type float with a size of 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 includes the "myheader.h" header file and defines a constant character array named "NAME" with a value of "John".
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 includes the "myheader.h" header file and declares a string pointer named "str" with an initial value of 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 includes the "myheader.h" header file and defines a function named "calculate_area" that takes the radius of a circle as an argument and returns the area.
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 includes the "myheader.h" header file and declares a structure pointer named "ptr" of type "person".
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 includes the "myheader.h" header file and defines a function named "multiply_array" that takes an array of integers and its size as arguments, and returns the produ...
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 includes the "myheader.h" header file and declares a static integer variable named "count" with an initial value of 0.
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 includes the "myheader.h" header file and defines a constant integer named "ARRAY_SIZE" with a value of 100.
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 includes the "myheader.h" header file and declares a recursive function named "calculate_factorial" that takes an integer argument and returns its factorial.
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 includes the "myheader.h" header file and defines a macro named "SQUARE" that takes a number as input and returns its squared 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 includes the "myheader.h" header file and declares a structure pointer named "ptr" of type "person" and dynamically allocates memory for 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 includes the "myheader.h" header file and defines a function named "is_prime" that takes an integer argument and returns 1 if it is prime, and 0 if it is not.
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 includes the "myheader.h" header file and declares an integer array named "numbers" of size 10, and initializes it with the values from 1 to Write a program in C th...
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 includes the "myheader.h" header file and defines a constant integer pointer named "ptr" with an initial value of NULL.
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 includes the "myheader.h" header file and declares a function named "calculate_sum" that takes a variable number of arguments and returns their sum.
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 implements a custom library to calculate the factorial of a given number.
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 library to find the maximum element in an 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 Write a program in C that implements a custom library to check if a given string is a palindrome.
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 custom library to calculate the sum of all elements in an 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 Write a program in C that implements a custom library to convert a decimal number to binary.
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 custom library to count the number of vowels in a given string.
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 implements a custom library to calculate the area of a circle.
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 library to find the length of a given string.
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 implements a custom library to check if a given number is prime.
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 library to reverse a given string.
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 implements a custom library to sort an array 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 Write a program in C that uses a custom library to check if a given year is a leap year.
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 implements a custom library to calculate the power of a given number.
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 library to check if a given number is even or odd.
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 implements a custom library to concatenate two strings.
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 custom library to find the factorial of a given number using recursion.
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 implements a custom library to calculate the sum of all even numbers in an 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 Write a program in C that uses a custom library to check if a given string is a palindrome using recursion.
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 implements a custom library to calculate the area of a rectangle.
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 library to check if a given number is a perfect square.
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 implements a custom library to find the length of a given string using recursion.
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 custom library to remove all spaces from a given string.
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 implements a custom library to calculate the sum of all prime numbers in an 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 Write a program in C that uses a custom library to check if a given number is palindrome using bitwise operations.
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 implements a custom library to calculate the area of a triangle.
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 hides an integer variable from being accessed directly.
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 the use of global variables for data hiding.
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 the keyword "static" for data hiding.
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 shows how to create a structure to hide data.
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 encapsulates data using a function.
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 the concept of private and public members.
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 hides an array from being accessed directly.
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 shows how to hide data within a header file.
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 the use of macros for data hiding.
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 hides data using bitwise operators.
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 shows how to define a data hiding class.
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 hides data using the concept of abstraction.
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 encapsulates data using a typedef statement.
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 the use of access modifiers for data hiding.
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 hides data using a separate source file.
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 hides data using the concept of inheritance.
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 the use of extern variables for data hiding.
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 hides data using the concept of polymorphism.
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 shows how to hide data using linked lists.
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 hides data using the concept of encapsulation.
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 the use of static variables for data hiding.
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 hides data using the concept of information hiding.
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 shows how to hide data using pointers.
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 the use of file handling for data hiding.
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 hides data using the concept of data encapsulation.
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 shows how to hide data using structs.
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 global scope resolution with a variable declaration inside a function.
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 global scope resolution with a variable declaration outside a function.
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 local scope resolution with a variable declaration inside a function.
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 local scope resolution with a variable declaration outside a function.
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 scope resolution with a variable declaration inside a function.
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 scope resolution with a variable declaration outside a function.
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 scope resolution with a function prototype.