Exam 9: Character Strings
Exam 1: Introduction to Computer Programming44 Questions
Exam 2: Getting Started in C Programming46 Questions
Exam 3: Processing and Interactive Input48 Questions
Exam 4: Selection44 Questions
Exam 5: Repetition47 Questions
Exam 6: Modularity Using Functions: Part I51 Questions
Exam 7: Modularity Using Functions: Part II49 Questions
Exam 8: Arrays48 Questions
Exam 9: Character Strings51 Questions
Exam 10: Data Files50 Questions
Exam 11: Arrays, Addresses, and Pointers49 Questions
Exam 12: Structures48 Questions
Exam 13: Dynamic Data Structures49 Questions
Exam 14: Additional Capabilities55 Questions
Exam 15: A Brief Introduction to C++49 Questions
Select questions type
____ does not produce the same result as char test[5] = "abcd";.
Free
(Multiple Choice)
4.8/5
(36)
Correct Answer:
C
In C, a string is terminated by a special end-of-string symbolic constant named NULL.
Free
(True/False)
4.8/5
(35)
Correct Answer:
True
C provides built-in operations for complete arrays, such as array assignment or array comparison.
Free
(True/False)
4.9/5
(42)
Correct Answer:
False
strng[++i] shows an example of the use of the postfix increment operator.
(True/False)
4.9/5
(46)
In C, assignment and relational operations are not provided for strings.
(True/False)
4.8/5
(37)
In general, a scanf() function call can always be used in place of a gets() function call.
(True/False)
5.0/5
(41)
The array char message[81]; can be used to store a string of up to ____ characters.
(Multiple Choice)
4.8/5
(38)
Attempting to copy a larger string value into the destination array using strcpy causes the copy to overflow the destination array beginning with the memory area immediately following the last array element.
(True/False)
4.9/5
(24)
The statement ____ displays the message Have a Happy Day, right-justified, in a field of 25 characters.
(Multiple Choice)
4.9/5
(43)
One of the most common methods of validating input data is to accept all numbers as strings.
(True/False)
4.8/5
(34)
Programs that use the atoi() routine must include the ____ header file.
(Multiple Choice)
4.8/5
(35)
The getchar() and putchar() functions deal with strings as complete units.
(True/False)
4.9/5
(37)
The char[] itoa(string) function converts an integer to an ASCII string.
(True/False)
4.8/5
(30)
Both '\n' and "\n" are recognized by the compiler as containing the newline character.
(True/False)
4.9/5
(45)
Showing 1 - 20 of 51
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)