Ilovepdf Merged

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 22

IP PRACTICAL

TERM II
IP PRACTICAL FILE
SQL
QUESTIONS:
Q1. Write a query to create student table with the students ID, name, and
marks as attribute where the students ID is primary key.

Q2. a) Write a query to show the structure of the table student.

b) Write a query to insert the detail of the student in the above table.

Q3. a) Write a query to display the complete table student.

b) Write a query to select command to get details of the student with marks
more than 470.

Q4. a) Write a query to get MAX marks from the table student .

b) Write a query to get MIN marks from the table student.

c) Write a query to get AVG marks from the table student.

d) Write a query to get sum of total marks from table student.

Q5. a) Write a query to create table computer .

b)Write a query to insert values into table.

Q6. Write a query to display the structure of the table, distinct publisher, and
details from table in ascending order and to display maximum edition from the
table.
A R M Y P U B L I C S C H O O L
N O I D A

INFORMATION
PRACTICES
PRACTICAL FILE

2 0 2 3 - 2 0 2 4
Ques 1:
WAP TO PRINT AREA OF RECTANGLE & SQUARE BY INPUTTING SIDE OF THE SQUARE,
LENGTH & BREADTH OF RECTANGLE

Ques 2:
WAP THAT ASKS USER FOR HEIGHT IN CM & CONVERT IT TO FEET AND INCHES
Ques 3:
WAP TO CONVERT TIME INPUT IN MINUTES AND CONVERT IT INTO HOURS AND
REMAINING MINUTES

Ques 4:
WAP TO CALCULATE GROSS PROFIT OF AN INDIA BASED CARGO COMPANY'S SALES
Ques 5:
WAP TO SEE IF A NUMBER IS ODD OR EVEN

Ques 6:
WAP TO ENTER TWO NUMBERS AND PERFORM ARITHMETIC OPERATIONS
Ques 7:
WAP TO PRINT A GIVEN CHARACTER IN UPPERCASE, LOWERCASE, NUMBERS OR SPECIAL
CHARACTERS
Ques 8:
WAP TO CHECK GRADES OF A STUDENT ON BASIS OF %

Ques 9:
WAP TO DISPLAY DISCOUNT AMOUNT BASED ON THE AMOUNT OF PURCHASING AND
DISCOUNT %
Ques 10:
WAP TO CALCULATE NET SALARY WITH BASIC SALARY, HRA, DA% AND TAXES

Ques 11:
WAP TO PRINT ODD NO.S FROM 1 TO 100
Ques 12:
WAP TO PRINT EVEN NO.S FROM M to N, WHERE M <N

Ques 13:
WAP TO PRINT SUM OF FIRST N NATURAL NO.S
Ques 14:
WAP TO PRINT NO.S FROM 20 TO 1

Ques 15:
WAP TO PRINT TABLE OF A NO.
Ques 16:
WAP TO PRINT FACTORIAL OF A NO.

Ques 17:
WAP TO PRINT FIBONACCI SERIES
Ques 18:
WAP TO PRINT PRIME NO.S FROM 1 TO 100
Ques 19:
WAP TO FIND CONVERSE OF A NUMBER

Ques 20:
WAP TO SEE IF A NUMBER IS PALINDROME OR NOT
Q1) Write a query to create student table with the students ID, name, and
marks as an attribute where the student's ID is the primary key.

Q2) a) Write a query to show the structure of the table student.

Q2) b) Insert details of a student.


Q3) a) Display complete table.

Q3) b) Select command to get details of students with marks more than 470.

Q4. a) Write a query to get MAX marks from the table student.

Q4. b) Write a query to get MIN marks from the table student.
Q4. c) Write a query to get AVERAGE marks from the table student.

Q4. d) Write a query to get SUM of marks from the table student.

Q5. a) Write a query to create a table computer .

Q5. b)Write a query to insert values into the table.


Q6. Write a query to display the structure of the table, distinct publisher, and
details from table in ascending order and to display maximum edition from the
table.

You might also like