C Language Quiz (Set 13) C Language (Set 3) 1 / 10 What is the purpose of the 'const' keyword in C? To indicate the start of a loop. To create a pointer to a variable. To declare a constant variable. To include a header file. 2 / 10 Which C function is used to open an existing file for reading? fileopen fopen openfile readfile 3 / 10 What is the purpose of the 'union' in C? To group multiple variables of different types. To create an ordered collection of elements. To define a new data type. To store data in a sorted manner. 4 / 10 Which operator is used to find the address of a variable in C? & * # $ 5 / 10 What is the purpose of the 'static' keyword when used with a variable in C? To declare a variable as constant. To allocate memory for the variable. To make the variable local to the current function. To retain the value of the variable between function calls. 6 / 10 In C, what is the purpose of the 'typedef' keyword? To define a new data type alias. To create a pointer to a variable. To declare a variable. To include a header file. 7 / 10 What does the 'fwrite' function do in C? Reads data from a file. Writes data to a file. Appends data to a file. Deletes data from a file. 8 / 10 Which C library function is used to convert a string to an integer? strint convert stoi atoi 9 / 10 What is the result of the expression '7 / 2' in C? 3.5 3 3.0 4 10 / 10 What is the purpose of the 'NULL' pointer in C? To point to a specific memory address. To indicate the absence of a value or address. To store a zero value. To terminate a string. Your score isThe average score is 0% 0% Restart quiz