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 Write a program in C that dynamically allocates memory for a string, reads a string from user input, and then prints the 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 dynamically allocates memory for an array of strings, reads strings from user input, and then prints the strings. |
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 for a dynamic array of integers, reads integers from user input, and then prints 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 Write a program in C that dynamically allocates memory for a dynamic array of structures, reads structure members from user input, and then prints the 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 Write a program in C that dynamically allocates memory for an array of integers, sorts the array in ascending order, and then prints the sorted 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 creates a new empty file named "output.txt". |
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 reads the content of a file named "input.txt" and displays it on the console. |
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 copies the content of one file named "input.txt" to another file named "output.txt". |
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 appends text to an existing file named "output.txt". |
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 checks if a file named "input.txt" exists. |
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 reads a text file named "input.txt" and counts the number of characters in 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 renames a file from "oldfile.txt" to "newfile.txt". |
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 deletes a file named "file.txt". |
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 searches for a specific word in a text file named "wordsearch.txt". |
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 replaces all occurrences of a word in a file named "input.txt" with another word. |
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 reads a binary file named "data.bin" and displays its contents on the console. |
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 a new folder named "myFolder". |
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 lists all the files in a folder named "myFolder". |
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 checks if a given path is a file or a directory. |
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 opens a file named "input.txt" in read-only mode. |
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 moves a file from one directory to another. |
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 calculates the size of a file named "data.txt" in bytes. |
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 reads a line from a file named "input.txt" and stores it in a string 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 Write a program in C that reads a file named "numbers.txt" and finds the average of all the numbers in 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 counts the number of lines in a text file named "textfile.txt". |
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 checks if a file named "image.png" is a png image 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 Write a program in C that reads a csv file named "data.csv" and stores the data in a 2D 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 encrypts the content of a file named "input.txt" using a simple substitution cipher. |
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 reads a file named "input.txt" and checks if it contains 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 reads a text file named "input.txt" and sorts the lines alphabetically. |
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 calculates 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 6[/INST] Write a program in C that Write a program in C that calculates the sum of digits 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 6[/INST] Write a program in C that Write a program in C that calculates the Fibonacci series 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 calculates the power of a 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 checks 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 6[/INST] Write a program in C that Write a program in C that calculates the GCD (Greatest Common Divisor) of two numbers 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 reverses a linked list 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 generates all possible permutations 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 prints the elements of an array in reverse order 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 finds the maximum element in an array 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 checks if a number is prime 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 finds the length of a linked list 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 counts the number of occurrences of a given character in a 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 sorts an array of integers using recursion (e.g., bubble sort, merge sort, etc.). |
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 checks if a given string is a palindrome ignoring spaces and punctuation 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 performs binary search using recursion on a given sorted 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 calculates the sum of all elements in an array 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 checks if a given string is an anagram of another string 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 calculates the factorial of a given number using tail 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 checks if a binary tree is a binary search tree 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 calculates the sum of all even numbers in a given range 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 finds the kth smallest element in an array 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 calculates the power of a number using tail 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 checks if a given number is a perfect 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 prints the first N terms of the Pascal's triangle 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 defines a preprocessor directive named "INCLUDE_ME" and prints "Hello, World!" using this directive. |
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 a preprocessor directive to check if a constant named "PI" is defined and if not, define it as Write a program in C that14. |
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 a preprocessor directive to define a macro named "MAX" that takes two arguments and returns the maximum of the two numbers. |
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 a preprocessor directive to include a header file named "myheader.h" and calls a function named "printHello()" defined in this 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 includes a preprocessor directive 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 uses a preprocessor directive to test if a macro named "DEBUG" is defined and prints "Debugging mode active" if it is defined. |
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 a preprocessor directive to define a macro named "SQUARE" that takes a number as an argument and returns its 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 uses a preprocessor directive to define a macro named "ADD" that takes two numbers as 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 uses a preprocessor directive to define a macro named "LENGTH" that takes a string as an argument and returns its length. |
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 a preprocessor directive to define a macro named "FOR_LOOP" that takes a number as an argument and prints "Hello" that many times using a for 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 uses a preprocessor directive to define a macro named "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 includes a preprocessor directive to check if a constant named "DEBUG" is defined and if not, defines it as 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 6[/INST] Write a program in C that uses a preprocessor directive to include a header file named "math.h" and calls a function named "sqrt()" defined in this 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 uses a preprocessor directive to define a macro named "CIRCLE_AREA" that takes the radius of a circle as an argument and returns its area. |
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 a preprocessor directive to define a macro named "PRINT_ARRAY" that takes an array and its size as arguments and prints all the elements. |
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 a preprocessor directive to check if a constant named "DEBUG" is defined as 1 and if not, prints an error message and terminates the program. |
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 a preprocessor directive to include a header file named "stdio.h" and calls a function named "printf()" defined in this header 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 uses a preprocessor directive to define a macro named "FACTORIAL" that takes a number as an 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 uses a preprocessor directive to define a macro named "PRINT_PRODUCT" that takes two numbers as arguments and prints their product. |
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 a preprocessor directive to include a header file named "stdlib.h" and calls a function named "malloc()" defined in this header 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 uses a preprocessor directive to define a macro named "IS_EVEN" that takes a number as an argument and returns 1 if the number is even, and 0 otherwise. |
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 a preprocessor directive to define a macro named "SWAP" that takes two variables as arguments and swaps their values. |
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 a preprocessor directive to include a header file named "string.h" and calls a function named "strlen()" defined in this header 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 uses a preprocessor directive to define a macro named "ABS" that takes a number as an argument and returns its absolute value. |
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 a preprocessor directive to define a macro named "PRINT_REVERSE" that takes a string as an argument and prints it in reverse 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 uses a preprocessor directive to include a header file named "time.h" and calls a function named "time()" defined in this header 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 Converts an integer to a float and prints the result. |
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 float to an integer and prints the result. |
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 character to an integer and prints the result. |
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 an integer to a character and prints the result. |
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 float to a character and prints the result. |
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 character to a float and prints the result. |
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 decimal number to an integer and prints the result. |
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 an integer to a decimal number and prints the result. |
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 string to a float and prints the result. |
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 float to a string and prints the result. |
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 string to an integer and prints the result. |
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 an integer to a string and prints the result. |
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 float to a double and prints the result. |
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 double to a float and prints the result. |
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 long to an integer and prints the result. |
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 an integer to a long and prints the result. |
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 double to an integer and prints the result. |
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 an integer to a double and prints the result. |
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 long to a float and prints the result. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.