All other bitters are needed only in specialty bars.What is the proper way to cut an orange for garnish slices?Cut the orange in half lengthwise, through the poles, and then cut 1/4" - 5 mm slices, following the line of the equatorTrue or false: The design of the standard three-piece cocktail shaker is well over a century old.How many garnish wedges should you be able to get out of a lime?How many garnish wedges should you be able to get out of a lemon?What is the approximate size of an ideal lemon twist?Which fruit peel is most commonly used for flaming its oils over a cocktail?True or False? A _____ is a module that returns a value back to the part of the program that called it. Solutions to Practice Questions for Midterm Test 2

You may need to download version 2.0 now from the To login with Google, please enable popups (c) have to convert the entire string they are given.a) Function atof returns a double version of its argument.b) If the converted value cannot be represented, the behavior of atoi is undefined.c) When using functions from the general utilities library, its header file must be included.8.17 __________ values can consist of the digits 0 through 9 and the letters A through F.8.18 Which function does not read data from standard input?8.19 Function __________ inputs the next character from the standard input and re-turns it as an integer.8.20 Function __________ prints the character equivalent of its integer argument.8.21 Function fgets appends a __________ to its array target in memory.b) sprintf prints its output in string format on the screen.8.6 String-Manipulation Functions of the String-Handling Library8.23 Which of the following does not necessarily append the null character to its result?8.24 Which is not a capability of the string-handling library?8.25 Every function of the string handling library except for __________ appends the null character to its result.8.26 The integral type of the value returned by operator sizeof is __________.a) Function strcpy copies its first argument into its second argument.b) Function strncpy does not necessarily copy the terminating null character of its second argument.c) A common error is not appending a terminating null character to the first argument of a strncpy when the third argument is less than or equal to the length of the string in the second argument.d) The first character of the second argument of strcat replaces the null character that terminates the string in the first argument.8.7 Comparison Functions of the String-Handling Library8.28 Assuming that string1 = “hello” and string2 = “hello world”, Which of the following returns 0?8.29 Function strcmp returns __________ if its first argument is equal to its second ar-gument.8.30 Function __________ compares up to n characters of its first argument with its second argument.8.32 When the computer compares two strings, it actually compares the __________ in the strings.8.8 Search Functions of the String-Handling Library8.34 Which function would be the most useful for determining if a certain word is con-tained in a string representing a sentence?8.35 What is the output of the following statement?printf( “%s”, strspn( “Cows like to moo.”, “Ceiklosw ” );8.36 Function __________ searches for the first occurrence of a character in a string.c) the starting and ending positions of a range of characters8.38 Function __________ searches for the first occurrence in its first string argument of any character in its second string argument.b) Subsequent calls to continue tokenizing the same string contain NULL as the first ar-gument.c) The length of the current token is returned by each call.d) If there are no more tokens when the function is called, NULL is returned.c) The first argument of each call to strtok is the string being tokenized.d) strtok works only with a set of four predefined delimiters.8.9 Memory Functions of the String-Handling Library8.41 The ___________ function allows characters of one part of a string to be copied into another part of the string.memcmp(“Hi, how are you?”, “Hi, how are things?”, 6);8.43 To change the string “ABCDEFGHI” to “aaaaaFGHI” you would use the _________ function.8.44 Which statement about the memory functions of the string handling library is false?a) The functions treat blocks of memory as strings.b) The functions facilitate manipulating, comparing and searching blocks of memory.c) The pointer parameters to these functions are defined void *.8.45 Which statement about function memcpy is false?a) It copies a specified number of characters from the object pointed to by its second argument into the object pointed to by its first argument.c) The result of this function is defined even if the two objects overlap in memory.d) Function memmove correctly handles the situation for which memcpy most notably fails.8.46 What memory function of the string handling library copies an unsigned char into a specified number of the leading locations pointed to by its first argument?8.10 Other Functions of the String-Handling Library8.47 Function __________ takes an error number and creates an error message string.