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

1. An array must be initialized when it is declared.
2. Subscript range errors are syntax errors.
3. Loop control variables may be used as array subscripts.
4. Single array elements may not be used as function arguments.
5. An array name with no subscript is a pointer.


1. False
2. False
3. True
4. False
5. True

Computer Science & Information Technology

You might also like to view...

The following function computes the sum of the first n? 1 integers. Show how this function satisfies the properties of a recursive function.

``` /** Computes the sum of the integers from 1 through n. @pre n > 0. @post None. @param n A positive integer @return The sum 1 + 2 + . . . + n. */ int sumUpTo(int n) { int sum = 0; if (n == 1) sum = 1; else// n > 1 sum = n + sumUpTo(n - 1); return sum; } // end sumUpTo ```

Computer Science & Information Technology

Review the solutions proposed in the discussion of the Wireless Equivalent Privacy protocol design, outlining ways in which each solution could be implemented and discussing any unresolved issues or drawbacks.

a) Sharing a single key: Solution, use a public-key based protocol for negotiating individual keys. b) Base stations are never authenticated: Solution, base stations should supply a certificate. c) Inappropriate use of a stream cipher: Solution: Negotiate a new key after a time less than the worst case for repetition. An explicit termination code would be needed, as is the case in TLS. d) The RC4 stream cipher weakness Solution: Provision for the negotiation of cipher specifications e) Users often didn’t deploy the protection Solution: Better default settings and documentation.

Computer Science & Information Technology

Instant messaging is commonly referred to as _____.

A. ?tweet B. ?chat C. ?post D. ?pin

Computer Science & Information Technology

ICMP packets contain only three required fields after the IP header: Type, Code, and Checksum.

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

Computer Science & Information Technology