Professional Documents
Culture Documents
CS File by Shikha
CS File by Shikha
Output:
Ques2- Write a program to enter a number and check if it is a prime
number or not.
Output:
Ques3- Write a program to accept a number from the user and
print the table of the number.
Output:
Ques4- Write a program to Fibonacci print series up to a certain
limit.
Output:
Ques5- Write a program to accept a number and display whether the
number is a palindrome or not.
Output:
Ques6- Write a program to find the sum of the digits of a number.
Output:
Ques7- Write a program to perform all the mathematical
operations of a calculator.
Output:
Ques8- Write a program to come the number of vowels in the string
given by user.
Output:
Ques9- Write a program that reads a line, then counts words and
display how many words are there in the line.
Output:
Ques10- Write a program that reads a line, then counts how many
times a substring affairs in the line and displace the account and
substring is: "is".
Ques11- Write a program to perform linear search on the given list by
user.
Output:
Ques12- Write a program to perform bubble sort.
Output:
Ques13- Write a program to calculate mean of a given list of
numbers.
Output:
Output:
Output:
SQL Practical
Q16- Write queries for find outputs, which are based on the tables.
TABLE1: VEHICLE TABLE2: TRAVEL
ii. To display the CNAME of all customers from the table TRAVEL who are
travelling by vehicle with code Vo1 or Vo2
iii. To display the CNO and CNAME of those customers from the table TRAVEL
who travelled between ‘2015-1231’ and ‘2015-05-01’.
iv. To display all the details from table TRAVEL for the customers, who have travel
distance more than 120 KM in ascending order of NOE
Q17. Write queries for find outputs, which are based on the tables.
Q18. Consider the following tables SCHOOL and ADMIN and answer this question:
Give the output the following SQL queries:
Q19. Consider the following tables SCHOOL and ADMIN and answer this question:
ii. To display all the information from the table SCHOOL in descending order of
experience.
iii. To display DESIGNATION without duplicate entries from the table ADMIN.
ii. To display NAME and DESIGN of those Workers, whose PLEVEL is either P001 or
iii. To display the content of all the workers table, whose DOB is in between ‘19-JAN-
1984’ and ‘18-JAN-1987’.