Exam 11: Structured Data

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

If an uppercase character is passed as an argument to toupper, the result will be an uppercase character.

Free
(True/False)
4.8/5
(37)
Correct Answer:
Verified

True

The null terminator stands for this ASCII code.

Free
(Multiple Choice)
5.0/5
(40)
Correct Answer:
Verified

D

The strlen function returns a C-string's length and adds one for \0.

Free
(True/False)
4.8/5
(32)
Correct Answer:
Verified

False

The C++ compiler performs strict array bounds checking when it encounters an array of characters.

(True/False)
4.9/5
(29)

To define a C-string that will store students' last names of up to 25 characters in length, which is an appropriate statement?

(Multiple Choice)
4.8/5
(37)

This function accepts a C-string as an argument and converts the string to a long integer.

(Multiple Choice)
4.8/5
(38)

The C-string company[12] can hold

(Multiple Choice)
5.0/5
(37)

If a C-string that cannot be converted to a numeric value is passed to the atoi function, the function's behavior is undefined by C++.

(True/False)
4.9/5
(43)

To change a lower case character to an upper case character, use this function.

(Multiple Choice)
4.8/5
(32)

This function accepts a pointer to a C-string as an argument, and it returns the length of the C-string (not including the null terminator).

(Multiple Choice)
5.0/5
(35)

This function will return true if its argument is a printable character other than a digit, letter, or space.

(Multiple Choice)
4.8/5
(36)

Look at the following statement. if (!isdigit(var1)) The expression being tested by this statement will evaluate to true if var1 is:

(Multiple Choice)
4.9/5
(44)

Which of the following lines of code defines an array of C-strings that will hold 49 characters and the null terminator?

(Multiple Choice)
4.9/5
(37)

The isdigit function will return a true if its argument is a digit between 0 and 9.

(True/False)
4.9/5
(38)

To determine whether a character entered is a letter of the alphabet, use this function.

(Multiple Choice)
4.9/5
(29)

A library function that can find one C- string inside another is:

(Multiple Choice)
4.8/5
(41)

In C++, a C-string is a sequence of characters stored in consecutive memory, terminated by a

(Multiple Choice)
4.8/5
(40)

After the following statement executes, what value is stored in the variable num? num = atoi("1000");

(Multiple Choice)
4.8/5
(41)

You may use the <, >, <=, >=, ==, and != relational operators to compare string objects.

(True/False)
4.9/5
(33)

Which statement converts the string "10" to the integer value 10?

(Multiple Choice)
4.8/5
(38)
Showing 1 - 20 of 43
close modal

Filters

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