Answer:
Following are the correct code to this question:
short_names=['Gus','Bob','Zoe']#defining a list short_names that holds string value
print (short_names[0])#print list first element value
print (short_names[1])#print list second element value
print (short_names[2])#print list third element value
Output:
Gus
Bob
Zoe
Explanation:
- In the above python program code, a list "short_names" list is declared, that holds three variable that is "Gus, Bob, and Zoe".
- In the next step, the print method is used that prints list element value.
- In this program, we use the list, which is similar to an array, and both elements index value starting from the 0, that's why in this code we print "0,1, and 2" element value.
Answer:
b) objects are resuable
Explanation:
In OOP there's code reuse where a method or any other body of code is defined once and called or reused severally.
Answer:
a) 10.53
b) 9.53
Explanation:
a) Average Turnaround Time: ( (8-0)+(12-0.4)+(13-1.0) ) / 3 = 10.53
b) Average Turnaround Time: ( (8-0)+(13-0.4)+(9-1.0) ) / 3 = 9.53
Isopropyl is: CH3 - CH - CH3
|
Heptane is: CH3 - CH2 - CH2 - CH2 - CH2 - CH2 - CH3
Then 2,2 isopropyl heptane is:
CH3 - CH - CH3
|
CH3 - C - CH2 - CH2 - CH2 - CH2 - CH3
|
CH3 - CH - CH3.
There you can count that the longest carbon chain has 8 carbon atoms.
So the right name is of an octane.
I will rearrange the chain to show the 8 carbon chain in a row:
CH3 CH3
| |
CH3 - CH - C - CH2 - CH2 - CH2 - CH2 - CH3
|
CH3 - CH - CH3
Now, you can see that the right name is 3 isopropyl - 2, 3 dimethyl octane