Based on the description below, how should the statistics activities be coded?In a program with statistics activities, the user should have a choice of repeatedly calculating statistics-including sum, product, maximum, minimum, and average-on sets of numbers.

A. The steps can be done in the scope of an If/Else If structure.
B. The steps can be done in the scope of a truth table.
C. The steps can be done in an array.
D. The steps can be done in the scope of a binary tree.


Answer: A

Computer Science & Information Technology

You might also like to view...

By default, when a TCP stream socket is closed, the connection is left intact while TCP tries to deliver any data previously written to the socket, but not yet received. This is known as an orderly release.If an application sends a lot of data over a TCP connection, but encounters an error during some other processing, it might make sense not to bother sending any data queued for transmission. In this case, the application can use the SO_LINGER socket option to generate an abortive release instead. An abortive release, as the name implies, discards any data queued for delivery to the other end of the connection. Write a program that illustrates the difference between abortive and orderly releases with TCP.

What will be an ideal response?

Computer Science & Information Technology

A user can be identified by ________.

a) user knowledge, such as passwords, PINs and lock combinations b) ownership of an item, such as badges, keys and smart cards c) a unique characteristic such as a fingerprint d) all of the above

Computer Science & Information Technology

?In the context of mail merges, you can explicitly identify a merge field by:

A. ?using the Match Fields dialog box B. ?using the Insert Address block dialog box C. ?using the Name Line merge field dialog box D. ?using the Location Block merge field dialog box

Computer Science & Information Technology

Case 8-2 Another colleague shares the following code with you:  Dim strEmployees(50) As String ' Later in the code ReDim strEmployees(65). Which of the following lines could replace the line at the bottom of the code in the sample and retain the data in the elements 0 through 50?

A. ReDim Retain strEmployees(65) B. ReDim Reserve strEmployees(65) C. ReDim Restore strEmployees(65) D. ReDim Preserve strEmployees(65)

Computer Science & Information Technology