Answer:
{"double", "char", "char", "double"} will be stored in word.
Explanation:
Given the word is an array of four strings, {"algorithm", "boolean", "char", "double"}. Hence, the length of the word array is 4.
The for-loop will only run for two iterations due to i < word.length/2, with i = 0 (first loop) and i = 1 (second loop).
In the first loop,
- word[word.length - 1 - i] = word[4 - 1 - 0] = word[3] = "double"
- Hence, the string "double" will be assigned to word[0] and overwrite "algorithm"
In the second loop,
- word[word.length - 1 - i] = word[4 - 1 - 1] = word[2] = "char"
- Hence, the string "char" will be assigned to word[1] and overwrite "boolean"
At last, the word array will hold {"double", "char", "char", "double"}
Answer:
Option is b is correct answer. Excel performs exponentiation, then multiplication and division, then addition, and subtraction, it is correct order of operation in Excel. It is important to remember when you write any formula in Excel having different mathematical operators like +/ -/ ^/ etc, it follows a specific order and performs calculations in specific order which is termed as order of operator precedence. Each of mathematical operator has its precedence and executes in a special order set by Excel.
Explanation:
- As we already know order of precedence of each mathematical operator is different in Excel. The order of operations for Excel is as follows:
- Evaluate elements in parentheses.
- Evaluate 'ranges' ().
- Evaluate 'intersections' (empty spaces).
- Evaluate 'unions' (,).
- Perform negation (-).
- determine percentages (%).
- Perform exponentiation (^).
- Perform multiplication (*) and division (/), both are of equal precedence.
- Perform addition (+) and subtraction (-), both are of equal precedence.
- Evaluate text operators like (&).
- Perform comparisons like (=, <>, <=, >=).
Answer details
Grade: Middle
Subject: Computers and Technology
Chapter: Order of precedence of mathematical operators
Keywords: precedence in Excel, operators precedence etc
Use Pangu 9.2 iOS jailbreak installer.
1. get the Pagnu 9.2 installer
2. connect your iOS 9.2 device to your Windows/OS X machine via universal serial bus cord
3. go through with the setup wizard
Explanation there is the rest in comments