<h2>A line of code that begins with the "while" needs to end with <u>":"</u> symbol</h2>
Explanation:
In python, the while loop statement has ":" at the end of the line.
<u>Syntax:</u>
while expression:
code(s) or statement(s)
<u>Example:</u>
cnt = 0
while (cnt < 5):
print 'cnt:', cnt
cnt = cnt + 1
Like other programming languages, while loop works in the same way except that in python it comes alone with "else" statement. When the condition is false, "else" statement gets executed.
<u>Example:</u>
#!/usr/bin/python
cnt = 0
while cnt < 5:
print cnt, " is less than 5"
cnt = cnt + 1
else:
print cnt, " is not less than 5"
Answer:
Following are the code
for(var k = 0; k< rectangleArray.length; k++) // iterting the loop
{
updateRectangle(rectangleArray[k]); // update the rectangle color
}
Explanation:
- In the given answer we have iterate over the loop will iterated until the length of rectangle array size-1
- In every value of k, we have called the update rectangle function which changes the color of the rectangle of a rectangle class
Information communication technology (ICT) is a crucial tool to support effective communication and decision-making under complex and uncertain environments of disasters by enhancing cognitive capacity of emergency managers. With the continuous influence and evolution of communication technologies, information sharing and decision-making has drastically changed and affects each phase of emergency management. Researchers continue to investigate the relationship of human involvement for spreading public safety information through ICT. With each disaster holding diverse characteristics influencing prediction, detection, and specific activities required for prevention, mitigation, response and recovery, the need for interoperable and dependable communication infrastructure, a common operating picture, and supportive regulations, policies, and practice greatly increases. Although a national public safety communication system was proposed, there are implementation challenges between local, state, and federal agencies. This paper briefly examines the evolution of the use of ICT for public safety along with current trends, benefits and challenges, and future needs.
Answer:
Exponential.
Explanation:
The router is a network device that route packets to its destination through a path on its routing table. The routing table contains the path to the next hop count of the destination network. A path or route could be learnt statically or dynamically.
Static routes are learnt based on direct connection to other router or a hard coded path configuration. A dynamic route is learnt through a routing protocol. RIP, EIGRP, OSPF, IS-IS are examples of routing protocols.
The OSPF or open shortest path first is a protocol that uses algorithm, load cost and other metrics to determine paths for packets. The exponential algorithm is used by the OSPF to determine the shortest and noise-free path to a destination.
Answer:
because it has the ability to capture the whole information you need or downloaded