Answer the following statements true (T) or false (F)

1. When using the strcat function, you must be careful not to overflow the bounds of the array allocated for the target string.
2. The C++ compiler performs strict array bounds checking whenever an array of characters is being accessed.
3. The string class append member function str.append(s)tacks a string s to the end of str.
4. It is possible to implement a string class by using a dynamically allocated array of characters.
5. The following statement declares a string object and initializes it to "Once upon a time".


1. TRUE
2. FALSE
3. TRUE
4. TRUE
5. TRUE

Computer Science & Information Technology

You might also like to view...

Use ________ to move to the beginning of a word

A) Ctrl + Left arrow key B) Ctrl + End C) Ctrl + Alt D) Ctrl + Home

Computer Science & Information Technology

The onsubmit event handler is placed ____.

A. in the document head B. within the

element C. at the end of a form D. after the onreset event handler

Computer Science & Information Technology

Which of the following makes it difficult to know how adjustments you make to images will affect your final product?

a. color display differences inherent to monitors b. users making adjustments to the contrast of their monitors c. users making adjustments to the brightness of their monitors d. all of the above

Computer Science & Information Technology

which of the following statements is a true statement, assuming there is at least one input record?

Given the following pseudocode: ``` FINAL-ACCUM = 0 NAME-ACCUM = 0 Read NAME, AMT SAVE-NAME = NAME DOWHILE not EOF IF NAME ? SAVE-NAME THEN Write NAME-ACCUM FINAL-ACCUM = FINAL-ACCUM + NAME-ACCUM NAME-ACCUM = 0 SAVE-NAME = NAME ELSE Write NAME, AMT NAME-ACCUM = NAME-ACCUM + AMT ENDIF Read NAME, AMT ENDDO ``` a) All the detail records will be processed successfully. b) Some of the detail records will be processed successfully. c) None of the detail records will be processed successfully. d) Only the first detail record will be processed successfully.

Computer Science & Information Technology