Question
What is the value of sum after the following Python code
executes?   sum = 0   for i in range(5):     if i % 2 == 0:       sum += i     else:       continueSolution
i = 0: 0 % 2 == 0 is true. sum = 0 + 0 = 0. Â Â i = 1: 1 % 2 == 0 is false. continue skips to next iteration. Â Â i = 2: 2 % 2 == 0 is true. sum = 0 + 2 = 2. Â Â i = 3: 3 % 2 == 0 is false. continue skips to next iteration. Â Â i = 4: 4 % 2 == 0 is true. sum = 2 + 4 = 6. Â Â Final sum = 6.

In a sphere if the radius is increased by 25% then by how much percentage volume increased:
The area of four walls of a room is 144 cm2. If the length and breadth of the room were equal and the height of the room is 4 cm, then what i...
The dimensions of a cuboidal box are in the ratio 3:2:1. If the total volume of the box is 546.75 cm³, determine its lateral surface area.
Find the surface area of the smallest cube that can perfectly fit a sphere of volume 2304Ï€ cm3 inside it. Â
The area of a square is 576 cm2 which is 172 cm2 less than that of a rectangle. Find the perimeter of the rectangle if the length ...
A cube of volume 768 cm³ is molded into a cuboid whose length, width, and height are in the ratio 3: 2: 2. Find the length of the cuboid.
- The volume of a cube is 729 cm 3 . If the cost of painting the cube is Rs. 10 per cm 2 , then find the cost of painting five faces of...
The area of four walls of a room is 112 cm2. If the length and breadth of the room were equal and the height of the room is 4 cm, then what i...
A chord of a circle is equal to its radius. The angle subtended by this chord at a point on the circumference is