Olevel M3R5 Practical Exam -

Olevel M3R5 Practical Exam

Olevel M3R5 Practical Exam

Hello students Once again welcome to our new Article. In this Article you will learn about Olevel M3R5 Practical Exam. Here i am providing the complete program with detailed coding.

  • Enter Name,age and address one by one and display them .
  • Enter 3 number, find their sum,average and display them.
  • Swap two number
  • Swapping two number without using temprary variable
  • Enter the radius of a circle and find the area
  • Enter a number and display its cube value
  • To Display months and days for entered no. of days
  • Solve the quadratic Equations     ax2+bx+c
  • Genarate random number
  • WAP to find simple interest

 

1) Enter Name,age and address one by one and display them .

name=input(“Enter Name”)
age=int(input(“Enter the age”))
address=input(“Enter Address”)
print(“Name=”,name)
print(“Age=”,age)
print(“Address=”,address)

2) Enter 3 number, find their sum,average and display them.

num=float(input(“Enter Any Number”))
s=num**0.5
print(“Square Root of”,num,”is”,s)

3) Swap two number

a=int(input(“Enter The value of a”))#10
b=int(input(“Enter The value of b”))#20
print(“Value of a Before Swapping=”,a)#10
print(“Value of b Before Swapping=”,b)20
temp=a #temp=10
a=b #a=20
b=temp #b=10
print(“Value of a After Swapping=”,a)#20
print(“Value of b After Swapping=”,b)#10

4) Swapping two number without using temprary variable.

a=int(input(“Enter The value of a”))#10
b=int(input(“Enter The value of b”))#20
print(“Value of a Before Swapping=”,a)#10
print(“Value of b Before Swapping=”,b)#20
a,b=b,a
print(“Value of a After Swapping=”,a)#20
print(“Value of b After Swapping=”,b)#10

5) Enter the radius of a circle and find the area.

r=float(input(“Enter the radius”))
area=3.14*r*r
print(“Area of Circle=”,area)

6) Enter a number and display its cube value

number=int(input(“Enter the number”))
cube-number*number*number
print(“Cure Value=”,cube)

7) To Display months and days for entered no. of days.

days=int(input(“Enter number of days”))
months=days/30
day=days%30
print(“Months=”,int(months))
print(“Days=”,day)

8) Solve the quadratic Equations     ax2+bx+c

import cmath
a=float(input(“Enter a:”))
b=float(input(“Enter b:”))
c=float(input(“Enter c:”))
d=(b**2)-(4*a*c)
sol1=(-b-cmath.sqrt(d))/2*a
sol2=(-b+cmath.sqrt(d))/2*a
print(sol1)
print(sol2)

9) Genarate random number

import random
print(random.randint(1000,9999))

10) WAP to find simple interest.

p=int(input(“Enter principle amount”))
r=float(input(“Enter rate of interest”))
t=int(input(“Enter time”))
si=p*r*t/100
print(“Simple Interest=”,si)

Thanks for reading the article  i hope you will understand Olevel M3R5 Practical Exam Questions well.

Also Check our latest uploads

Olevel M3R5 Practical Exam Questions

Visit on our Another website

https://healthyworld111.com/

Leave a Comment