a. attributes c. methods b. behaviors d. members ____ 163. The ____ class provides a set of methods that include easy insertion and removal of characters from a string. ____ 164. The ____ character in a string is referred to as both the character’s index value and its offset value.____ 165. Pressing the Enter key at the terminal generates a newline character, ‘\n’, which is interpreted by getline()as ____. ____ 166. On almost all computer systems, newly entered data is stored in a temporary holding area called a ____. a. register c. buffer b. cell d. memory location ____ 167. The value returned by the method call “Hello World!”.length()is ____.
____ 168. Each character in a string is stored in ____ using either the ASCII or Unicode code. ____ 169. The ____ function returns the next character on the stream, but does not remove it from the stream’s buffer.____ 170. The putback()function places a character back on the stream so that it will be the ____ character read. a. first c. next b. last d. next-to-last ____ 171. One way to prevent the Enter key from being accepted as a legitimate character when using the get()method is to follow the cin.get()input with a call to ____. ____ 172. The first step in the input data validation process for numerical data is to ensure that the data is ____. ____ 173. A string is stored as an array of characters terminated by a special end-of-string marker called ____. ____ 174. The method ____ returns the next character from the input stream without extracting the character from the stream. a. cin.getline() c. cin.get() b. cin.put() d. cin.peek()____ 175. The method ____ pushes character values back onto the input stream. ____ 176. The ____ function returns a nonzero number if the character is a letter; otherwise returns a zero. ____ 177. The ____ function returns a nonzero number if the character is a letter or a digit; otherwise, it returns a zero. ____ 178. tolower()is a ____ function. a. string conversion c. string library
You've reached the end of your free preview.
Want to read all 13 pages?
- Fall '15
- Array, d., B., c.