Answer:
3) 44 10 44
Explanation:
Given data
int [] val = { 3, 10, 44 };
The total number of parameters of given array are 3, so total length of array is also 3.
The indexing of array starts with '0', Therefore the <u>indexes</u> of array with length zero are: {0,1,2}
The value of array at index 0 is = 3
similarly
value at index 1 = 10
value at index 2 = 44
Any value of index 'i' of an array is selected using array[i].
Therefore,
val[0] is selecting the value of array located at index '0'.
val[0] = 3
val[2] is selecting the value of array located at index '2'.
val[2] = 44
Finally,
val[0] = val[2]; is copying the value placed at index 2 (44) to value placed at index 0 (3). Hence, the output would be { 44 10 44}. So 3rd option is correct.
Answer:
c = float(input("Enter the temperature in Celsius: "))
f = c * 1.8 + 32
print("The temperature in Fahrenheit: " + str(f))
k = (f - 32) / 1.8 + 273.15
print("The temperature in Kelvin: " + str(k))
Explanation:
*The code is in Python.
Ask the user to enter the temperature in Celsius
Convert the Celsius to Fahrenheit using the conversion formula and print it
Convert the Fahrenheit to Kelvin using the conversion formula and print it
Answer:
A,B,D
A. Allows you to be sure the problem and solution are understood
B. Presents the solution in a manner that is easy to share
C. Is a starting point for all other activities