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

1. The following function call stores in target the null-terminated string "Eliza".
strncpy(target, "Elizabeth", 5);
2. The following code fragment stores "compute" in variable str, and then changes the 'u' to an 'e' so str's value is "compete".
strcpy(str, "compute");
str[4] = 'e';
3. The condition
str1 < str2
is true if the string value of str1 alphabetically precedes the string value of str2.
4. The string library function strcmp compares the lengths of two strings.
5. In the code fragment below, the value assigned to the type double variable x is -2.5.
sscanf("5 -0.5 end", "%d%lf%s", &n, &d, str);
x = n * d;


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

Computer Science & Information Technology

You might also like to view...

An encryption/decryption system requires a point G and an elliptic group _________ as parameters.

A. Eb(a,q) B. Ea(q,b) C. En(a,b) D. Eq(a,b)

Computer Science & Information Technology

Which of the following is a wireless network certification?

A. A+ B. CSP C. ICCP D. CWNP

Computer Science & Information Technology

You must run the Adprep /forestprep command on the ___________ of the forest first

a. Global catalog b. First domain controller installed c. DNS server d. Schema master

Computer Science & Information Technology

What are some issues that should be addressed when installing peripherals on the network?

What will be an ideal response?

Computer Science & Information Technology