Posts

Showing posts with the label Grade 12

JavaScript Lab Project 12

 Write a JavaScript code: Program 1 To pass the value as argument l,b,h and calculate volume of a box in function. To pass the value as argument l,b and calculate area of base of that box in function. Make a area button to display area of base result and a volume button to display volume of a box. Make a all button if we click on that it should give output in proper format. (Area is = , Volume is =                                   Output should come in Alert box, Bellow the button, Console area. Program 2 In HTML window area should be 4 buttons. (Add, Subtract, Multiply, All) User should enter the value. Below the button Answer should come as: Result(Add) = Answer. There should be three different functions. There should be only one user input code(Only two lines in whole program) for data entry While clicking 'All' button there should be answer of each calculation result. Program 3 There shou...

Practical on SQL (12)

Create a database College. Delete a database College. Create a database OurSchool. Use database OurSchool. Create a table student with rollno, class, studentid, sname, address, phone, salary with suitable variable. Create a table p are nts with sno, studentid, parentname, phone, address Create a table persons with a primary key field. Delete a column salary from student table. Insert any 5 records into student table. Display all the records. Display only class 11 records. (Record must be in table) Display only name and address of class 12 records. (Record must be in table) Add a column section to student table. Update your table field section from varchar(50) into varchar(3) Update section to all the students. Update name from Ram to Shyam whose roll no is 10. (Record must be in table) Delete a single record whose roll no is 5 from student table. Delete all the data from student table. Delete student table. Make a auto increment for sno field in a table. Display only unique records fro...

Object Oriented Programming (OOPs) (12)

Image
What is OOPs? OOP stands for Object-Oriented Programming. It is a programming paradigm that focuses on the concept of objects, which are instances of classes that contain data and methods that operate on that data. OOP is based on the idea of modularity, which means that complex systems can be built from smaller, simpler pieces that can be easily maintained and extended. In OOP, objects are the building blocks of programs, and the design and implementation of the objects are based on the principles of encapsulation, abstraction, inheritance, and polymorphism. Encapsulation is the process of hiding the implementation details of an object and providing a public interface for accessing the object's data and methods. Abstraction is the process of defining the essential features of an object and ignoring the non-essential details. Inheritance is the process of creating new classes that inherit the properties and methods of existing classes. Polymorphism is the ability of objects of diff...