Exam 11: Structured Data
Exam 1: Introduction to Computers and Programming44 Questions
Exam 2: Introduction to C++56 Questions
Exam 3: Expressions and Interactivity44 Questions
Exam 4: Making Decisions53 Questions
Exam 5: Loops and Files62 Questions
Exam 6: Functions49 Questions
Exam 7: Arrays53 Questions
Exam 8: Searching and Sorting Arrays20 Questions
Exam 10: Characters, C++-Strings, and More About the String Class42 Questions
Exam 11: Structured Data43 Questions
Exam 11: Structured Data50 Questions
Exam 12: Advanced File Operations38 Questions
Exam 13: Introduction to Classes46 Questions
Exam 14: More About Classes40 Questions
Exam 15: Inheritance, Polymorphism, and Virtual Functions38 Questions
Exam 16: Exceptions, Templates, and the Standard Template Library STL39 Questions
Exam 17: Linked Lists40 Questions
Exam 18: Stacks and Queues46 Questions
Exam 19: Recursion21 Questions
Exam 20: Binary Trees38 Questions
Select questions type
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:
True
The null terminator stands for this ASCII code.
Free
(Multiple Choice)
5.0/5
(40)
Correct Answer:
D
The strlen function returns a C-string's length and adds one for \0.
Free
(True/False)
4.8/5
(32)
Correct Answer:
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)
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
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)