I would say functional and straightforward
Answer:
yes there is an answer to this question
Answer:
- <u>1,000W</u> (rounded to one significant figure)
Explanation:
I will answer in English.
The question is:
- <em>What is the power of a filament lamp that connects to the 220 V network, knowing that it has a resistance of 50 ohms?</em>
<em />
<h2>Solution</h2>
<em />
<em>Power</em>, <em>voltage</em>, <em>resistance</em>, and current, are related by either of the following equations:
Where:
- R is resistance in ohms (Ω)
- V is voltage in volts (V), and
- I is current in amperes (A)
Since you know the voltage (<em>220V</em>) and the resistance (<em>50Ω</em>), you can use the last equation:
Since the magnitude 50Ω has one significant figure, your answer should be rounded to one significant figure. That is <u>1,000W.</u>
Answer:
B. {1, 2, 2, 3, 3, 4, 5}
Explanation:
Given
The above code segment
Required
Determine which list does not work
The list that didn't work is 
Considering options (A) to (E), we notice that only list B has consecutive duplicate numbers i.e. 2,2 and 3,3
All other list do not have consecutive duplicate numbers
Option B can be represented as:
![nums[0] = 1](https://tex.z-dn.net/?f=nums%5B0%5D%20%3D%201)
![nums[1] = 2](https://tex.z-dn.net/?f=nums%5B1%5D%20%3D%202)
![nums[2] = 2](https://tex.z-dn.net/?f=nums%5B2%5D%20%3D%202)
![nums[3] = 3](https://tex.z-dn.net/?f=nums%5B3%5D%20%3D%203)
![nums[4] = 3](https://tex.z-dn.net/?f=nums%5B4%5D%20%3D%203)
![nums[5] = 4](https://tex.z-dn.net/?f=nums%5B5%5D%20%3D%204)
![nums[6] = 5](https://tex.z-dn.net/?f=nums%5B6%5D%20%3D%205)
if (nums.get(j).equals(nums.get(j + 1)))
The above if condition checks for duplicate numbers.
In (B), when the elements at index 1 and 2 (i.e. 2 and 2) are compared, one of the 2's is removed and the Arraylist becomes:
![nums[0] = 1](https://tex.z-dn.net/?f=nums%5B0%5D%20%3D%201)
![nums[1] = 2](https://tex.z-dn.net/?f=nums%5B1%5D%20%3D%202)
![nums[2] = 3](https://tex.z-dn.net/?f=nums%5B2%5D%20%3D%203)
![nums[3] = 3](https://tex.z-dn.net/?f=nums%5B3%5D%20%3D%203)
![nums[4] = 4](https://tex.z-dn.net/?f=nums%5B4%5D%20%3D%204)
![nums[5] = 5](https://tex.z-dn.net/?f=nums%5B5%5D%20%3D%205)
The next comparison is: index 3 and 4. Meaning that comparison of index 2 and 3 has been skipped.
<em>This is so because of the way the if statement is constructed.</em>