Questions
Questions
SCHOOL
th
11 IP
Practical File
Made By: Naman bansal
Roll No.___________
Teacher’s Name_______________
Output:
Q2 Write a program to check whether a given number is negative, positive or zero.
Code:
Output:
Q3 Write a program to accept marks from user and display whether he/she is Pass
or Fail.
Code:
Output:
Q4 Write a program to display area of
rectangle.
Output:
Q5 Write a program to display numbers up to
N.
Output:
Q6 Write a program to display the factorial of a
number.
Output:
Q7 Write a program to display an example of list
slicing.
Output:
Q8 Write a program to display list after deleting even
values.
Output:
Q9 Write a program to increase all the values of list by
10.
Output:
Q11 Write a program to display average of
list.
Output:
Q12 Write a program to calculate sale price after
discount.
Output:
Q13 Write a program to display Profit or
Loss.
Output:
Q14 Write a program to display sum of squares of all the numbers up
N.
Code:
Output:
Q15 Write a program to display states and their capitals using
Code:
Output:
Q16 Write a program to display simple interest and compound
interest.
Output:
Q17 Write a program to display hike of fees by
10%.
Output:
Q18 Write a program to check whether a given year Leap or
not.
Output:
Q19 Write a program to display area and perimeter of
Circle.
Output:
Q20 Write a program to check whether a given number is perfect or
not.
Output:
Q21 Write a program to merger two lists using arithmetic
operator.
Output:
Q22 Write a program to repeat list using arithmetic
operator.
Output:
Q23 Write a program to count total even and odd values from
list.
Output:
Q24 Write a program to replace negative values with -1 and
values with 1.
Code:
Output:
Q25 Write a program to search a given number in
list.
Output:
Q26 Write a program to find the largest number from
list.
Output:
Q27 Write a program to search and remove number from
list.
Output:
Q28 Write a program to create phone
directory.
Output:
Q29 Write a query to create database
Employee.
Q36 Display the details of employees whose name have only four letters.
Select * from Empl where EName like ‘ ’;
Q37 Display the details of all employee whose annual salary
25000 to 40000.
Select * from Empl where Sal*12 between 25000 and 40000;
Q38 Display name, job title and salary of employee who do not have a
manager.
Select EName,Job,Sal from Empl where Job not like “Manager”;
Q39 Display name of employee whose name contains "A" as third
Select EName from Empl where EName like ‘ A%’;
Q40 Display the name of employee whose name contains "L" as any
letter.
Select EName from Empl where EName like '%l%';
Q41 Display the name of departments. Each department should
displayed once.
Select Distinct(Deptno) from Empl;