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

1. If the following is a valid call to the function moneyToNumberString, then moneyToNumberString is a member function of the money class.
moneyToNumberString (priceString);
2. If the function getline, with the following function call, reads characters and stores then in nameString, the second parameter of getline must be a value parameter.
getline (cin, nameString. ā€˜\nā€™);
3. It is helpful when testing a program system to display the name of the function as it begins execution.
4. The process of testing a function without knowing anything about the code inside the function is called black-box testing.
5. A function that calls itself is called a recursive function


False
False
True
True
True.

Computer Science & Information Technology

You might also like to view...

A package is:

a. A directory structure used to organize classes and interfaces. b. A mechanism for software reuse. c. A group of related classes and interfaces. d. All of the above.

Computer Science & Information Technology

Which of the following statements is true of a bit?

A. ?Eight bytes grouped together are collectively referred to as a bit. B. ?A named collection of files that is stored on computer hardware is known as a bit. C. ?A bit is also known as a file. D. ?A bit by itself typically represents only a fraction of a piece of data.

Computer Science & Information Technology

You are given the following tables:

Student(StudId, Name, Addr, Status)
Transcript(Id, CrsCode, Semester, Grade)
(a) Write a SELECT statement that outputs the names of all students who took CSE305 in the spring of 2000. (b) A naive query execution plan for your answer to (8a) would rst execute the FROM clause, then apply the WHERE condition to the result, and then eliminate unwanted columns using the attributes named in the SELECT clause. Express this plan as a relational algebra expression. (c) We're interested in a more ecient execution plan for this query than your answer to (8b). Such a plan uses a join operation on relations which are as small as possible (some rows of the tables to be joined have been eliminated and the remaining rows have been shortened). Give a relational algebra expression equivalent to your answer to (8b) that can be evaluated more eciently. The amount of credit you get depends on how ecient the expression is.

Computer Science & Information Technology

With the vertical-align property, the ____________________ value aligns the bottom of the image with the text.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology