Answer:
Following is the loop statement in the Python programming language
salaries=[93.85967,4232.32,13343.3434] #storing the values in salaries
for k in salaries:#iterating the loop
print("%12f"%round(k,2))# print the width of 12 and a precision of 2
Output:
93.860000
4232.320000
13343.340000
Explanation:
Following is the description of the statement
- Declared a dictionary "salaries" and initialized some values into it.
- iterating the for a loop .
- In this for loop print the width 12 and a precision of 2 .The print statement in python will
- print the data with width 12 and a precision of 2 in the console window
Answer:
e) Code segment II produces correct output for all values of str, but code segment I produces correct output only for values of str that contain "pea" but not "pear".
Explanation:
<em>if - elseif - else statements work in sequence in which they are written. </em>
- <em> </em>In case <em>if() statement is true, </em>else if() and else statements will not get executed.
- In case <em>else if() statement is true</em>, conditions in if() and else if() will be checked and else statement will not be executed.
- In case <em>if() and else if() both are false</em>, else statement will be executed<em>.</em>
First, let us consider code segment I.
In this, first of all "pea" is checked in if() statement which will look for "pea" only in the String str. So, even if "pearl" or "pear" or "pea" is present in 'str' the result will be true and "pea" will get printed always.
After that there are else if() and else statements which will not get executed because if() statement was already true. As a result else if() and else statements will be skipped.
Now, let us consider code segment II.
In this, "pearl" is checked in if() condition, so it will result in desired output.
Executable code is attached hereby.
Correct option is (e).
<span class="sg-text sg-text--link sg-text--bold sg-text--link-disabled sg-text--blue-dark">
java
</span>
<span class="sg-text sg-text--link sg-text--bold sg-text--link-disabled sg-text--blue-dark">
java
</span>
Normally active directory once is corrupted best method is to repair the active directory. As IT administrator user has keep a proper backup either date wise or weekly wise.
<u>Explanation:</u>
If IT administrator doesn’t have enough backup restore or repairing the active directory is highly impossible.
Before restore proper information to be made and rebooted the domino server and selected advance boot option and select the restore options. And select the proper and good backup and restore it. After restoring the backup domain server started and domain active directory should work proper.
As experience better to reinstall domain server and active directory is good practice.
Microwave transmission is ideal for long distance communication. It is so good that it is used for satellite and space probe communication.