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

1. The string "Hello" could be stored in the variable str declared as follows
char str[5];
2. The assignment operator = can be used for string assignment only when initializing a string variable in its declaration.
3. If "cat" is the value of the string variable str, then str[3] is the null character.
4. If name is a string variable whose value is "Elizabeth", the function call
strcpy(target, &name[5]);
assigns the string "beth" to target.
5. The length of a string is determined by the size of the variable in which it is stored and does not depend on the value stored in the variable.


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

Computer Science & Information Technology

You might also like to view...

A _____________ function is a function that calls itself.

A. infinite B. recursive C. self-calling D. iterating

Computer Science & Information Technology

Queues that are implemented as arrays are called __________ queues.

a. dynamic b. stack c. static d. deque e. None of these

Computer Science & Information Technology

A _____ is a conditional statement that links conditions to actions or outcomes.  

A. simulation B. case C. rule D. genetic algorithm

Computer Science & Information Technology

Suppose we want to create a linear hash file with a file load factor of 0.7 and a blocking factor of 20 records per bucket, which is to contain 112,000 records initially.

(a) How many buckets should we allocate in primary areas? (b) What should be the number of bits used for bucket addresses?

Computer Science & Information Technology