Line1File.seekg()-1*sizeof(cn),ios::cur); ½ 4a) Line2:file.write((char*)&c,sizeof(cn); ½ Function Definition 1 b) Opening the file and for loop 1 Function Declaration ½ c) File input& output file stream format 1½ While loop and file close 1 Definition for each 1 5 a) Explain 1 1 1 Select * from Employee where City=”New Delhi”; Delete from Employee where Empid=215; Select fistname, lastname max(salary) from Employee,empSalary 1 where Employee.Empid=EmpSalary.empid Select sum(Sarary) from EmpSalary group by Designation ½ Manila 50000 Rober 45000 Ritu 40000 b) 9 ½ Designation Sum(Salary) Director 80000 ½ Salesman 60000 Sum(Benefits) 215000 ½ De Morgan’s First Theoram; (X+Y)’=x’.Y’,(X.Y)’=X’+Y’ ½ x½ a) II) Truth Table
4a) Line1File.seekg()-1*sizeof(cn),ios::cur); Line2:file.write((char*)&c,sizeof(cn); ½ ½ b) Function Definition Opening the file and for loop 1 1 c) Function Declaration File input& output file stream format While loop and file close ½ 1½ 1 5 a) Definition for each Explain 1 1 b) Select * from Employee where City=”New Delhi”; Delete from Employee where Empid=215; Select fistname, lastname max(salary) from Employee,empSalary where Employee.Empid=EmpSalary.empid Select sum(Sarary) from EmpSalary group by Designation Manila 50000 Rober 45000 Ritu 40000 9 Designation Sum(Salary) Director 80000 Salesman 60000 Sum(Benefits) 215000 1 1 1 ½ ½ ½ ½ a) De Morgan’s First Theoram; (X+Y)’=x’.Y’,(X.Y)’=X’+Y’ II) Truth Table ½ x½
513150762sample_paper_cpp_class_xii.docx