C++ Quiz 10

¡Supera tus tareas y exámenes ahora con Quizwiz!

To define an array that will store students' last names of up to 25 characters in length, how many characters do I need? a. 23 b. 24 c. 25 d. 26

26

This function concatenates the contents of one string with another string. a. strcat b. strcopy c. strappend d. stradd

a. strcat

This function will return true if its argument is a printable character other than a digit, letter, or space. a. isprint b. ispunct c. ischar d. isnotdls

b. ispunct

What is the returned from a call to tolower when it is passed an upper case z? a. upper case Z b. lower case z c. a lower case z followed by an upper case Z d. nothing

b. lower case z

A library function that can find one string inside another is called a. strcmp b. strstr c. strfind d. strsearch

b. strstr

A practical application of this function is to allow a user to enter a response of y or Y to a prompt. a. tolower b. toupper c. both answers above d. ignorecase

both answers above

What function do you use to convert an string of numbers into an integer? a. atol b. intoa c. atoi d. none of these

c. atoi

In C++, a string is a sequence of characters stored in consecutive memory, terminated by what? a. period b. space c. null character d. semicolon

c. null character

To use the strlen function in a program, you must include which library? a. strlen b. iostring c. cstring d. stringlib

cstring

This library function reverses the order of a character array. a. reverstr b. strbkwards c. reversit d. none of these

d. none of these


Conjuntos de estudio relacionados

Data Structure advantages and disadvantages

View Set

Crash Course: Slavery #13 (Quiz)

View Set

Personal Finance F260 Exam II Practice

View Set

Ch. 35 Assessment of Immune Function

View Set

Human Resource Management or HRM

View Set