Exam 9: Character Strings

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

Using string library functions requires that the file string.h be included in your program before the function is called.

(True/False)
4.7/5
(31)

The function strtok(string, char) locates the position of the first occurrence of the char within string; it returns the address of the character.

(True/False)
4.9/5
(34)

When you use any of the four functions, printf(), scanf(), sprintf(), or sscanf(), the control string containing the conversion control sequences need not be explicitly contained within the function.

(True/False)
4.8/5
(42)

When using #include, the characters ____, tell the compiler to start looking in the default directory where the program file is located.

(Multiple Choice)
5.0/5
(41)

Good programming practice requires that you end the last output display with a newline escape sequence, usually as the single character '\n'.

(True/False)
4.9/5
(36)

A(n) ____ is any sequence of characters enclosed in double quotes.

(Multiple Choice)
4.8/5
(46)

The double quotes in "Good Morning!" are part of the string.

(True/False)
4.9/5
(41)

The ____ function reads a set of characters up to either a blank space or a newline character.

(Multiple Choice)
4.8/5
(43)

In C, a character is stored as an integer value.

(True/False)
4.7/5
(44)

Programs that use the gets() routine must include the ____ header file.

(Multiple Choice)
4.7/5
(43)

The string "Good Morning!" is stored in memory using a character array of size ____.

(Multiple Choice)
4.8/5
(31)
Showing 41 - 51 of 51
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)