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

Consider the following declarations as you determine if each of assignment statements 1 - 7 is valid. ```
#define HALF_CENT 50
#define A_SIZE 26

char a_list[HALF_CENT], b_list[HALF_CENT], a_char = 'v';
int nums[A_SIZE], vals[A_SIZE], i = 1;
```
1. nums[0] = nums[25];
2. nums = vals + 1;
3. a_list[50] = 'd';
4. b_list[30] = 0.37 * vals[1];
5. a_list = b_list;
6. nums[5] = (int)a_char
7. for (i = 1; i <= A_SIZE; ++i)
nums[A_SIZE - i] = i;


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

Computer Science & Information Technology

You might also like to view...

In the equation x = y%z if all three variables are int, the values are y = 25 and z = 11, what will be the value of the variable x?

A. 2 B. 3 C. 14 D. No value, compiler error.

Computer Science & Information Technology

Which of the following is not a valid function call?

a. ``` var num = parseFloat(num)); ``` b. ``` document.write(parseFloat(64.82)); ``` c. ``` alert("You entered " + parseFloat(num)); ``` d. ``` var num = 2.6; parseFloat(num) = num; ```

Computer Science & Information Technology

The term ____ refers to the ability of objects to attach to, or automatically align with, a grid or guide.

a. docking b. snapping c. aliasing d. feathering

Computer Science & Information Technology

EMI is noise caused by electrical devices

Indicate whether the statement is true or false

Computer Science & Information Technology