Computer Science, asked by apurvamawar10a52145, 3 days ago


i attached my question below. please give me correct answer ​

Attachments:

Answers

Answered by anindyaadhikari13
5

\textsf{\large{\underline{Solution}:}}

Given Co‎de:

A, B, C, D = 9.2, 2.0, 4, 21

Radius=3.75

Area = 3.14159 * Radius * Radius  #Statement1

print(Area,'Sq. Metre')   #Statement2

print((A/4),(A//4))  #Statement3

print(B *‎* C)  #Statement4

print(D // B)  #Statement5

print(A % C)  #Statement6

Question 1:

Actually, there is no output for #Statement1 because in this line, the area is calculated.

Value of Area = 44.178

Question 2:

The output of Statement2 is:  44.178 Sq. Metre

The area of the circle is displayed on the screen along with a message.

Question 3:

The output for #Statement3 is: 2.3 2.0

Calculations:

> A =9.2

>> A/4 = 9.2/4 = 2.3

>> A//4 = 9.2//4 = 2.0 (integer division). The number is converted to float type since the operation is carried out in float data type.

Question 4:

The output for #Statement4 is: 16.0

Calculations:

> B = 2.0 and C = 4

>> B *‎* C = B to the power C = 2.0⁴ = 16.0.

Question 5:

The output for #Statement5 is: 10.0

Calculations:

> D = 21 and B = 2.0

>> D // B = 21//2.0 = 10.0  (integer division).

Question 6:

The output for #Statement6 is: 1.2

Calculations:

> A = 9.2 and C = 4

>> A % C = 9.2 % 4

→ Dividing 9.2 by 4 leaves 1.2 as remainder.

So, output is 1.2.

Answered by MichMich0945
2

Answer:

  1. b
  2. a
  3. c
  4. b

Hope this helps you!

Edit: Sorry I couldn't add the explanation because it won't allow me to post...

Similar questions