New ! Computer Science MCQ Practise Tests



Python Classes and Objects 5 Mark Creative Question Paper With Answer Key

12th Standard

    Reg.No. :
  •  
  •  
  •  
  •  
  •  
  •  

Computer Science

Time : 02:00:00 Hrs
Total Marks : 45

    5 Marks

    9 x 5 = 45
  1. Write a python program to check and print if the given number is odd or even using class.

  2. Write a program to check and print if the given number is negative or positive using class.

  3. Write a program to calculate area and circumference of a circle.

  4. Write a menu driven program that keeps record of books available in you school library.

  5. Write a program to accept a string and print the number of uppercase, lowercase, vowels, consonants and spaces in the given string.

  6. Write a program to store product and its cost price. Display all the available products and prompt to enter quantity of all the products. Finally generate a bill which displays the total amount to be paid.

  7. How will you define a class? and explain how you create and access the class members?

  8. What are public & private members and explain in detail.

  9. Rewrite the following program to get the given output.
    Output:
    Enter radius: 5
    The Area = 78.5
    The circumference = 31.400000000000002
    Error program:
    Class Circle:
    pi = 3.14
    def-init_(self, radius):
    self = radius
    DEF area (SELF):
    Return Circle. pi* (self.radius**2)
    Def circumference(self):
    Return 2* Circle.pi *self.radius
    r= int (input("Enter Radius:"))
    c= circle(r)
    print (" The Area =", c.area( ))
    print("The circumference= ", C.circumference( ))

*****************************************

Reviews & Comments about 12th Standard Computer Science English Medium - Python Classes and Objects 5 Mark Creative Question Paper and Answer Key 2022 - 2023

Write your Comment