0% found this document useful (0 votes)
20 views2 pages

Java and SQL Practical Programming Tasks

The document contains a list of practical programming questions for Java and SQL. It includes tasks such as checking if a number is odd or even, calculating factorials, string manipulations, and database operations like creating tables and inserting records. Each question is designed to test fundamental programming and database skills.

Uploaded by

a.b.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
20 views2 pages

Java and SQL Practical Programming Tasks

The document contains a list of practical programming questions for Java and SQL. It includes tasks such as checking if a number is odd or even, calculating factorials, string manipulations, and database operations like creating tables and inserting records. Each question is designed to test fundamental programming and database skills.

Uploaded by

a.b.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

IT Practical Questions for Java

1. Write a java program to find whether the number is odd or


even.
*Use Scanner class*
2. Write a java program to count number of digit in a number.
3. Write a java program to find factorial of a number.
*Use Scanner class*
4. Write a java program to check whether the number is
Armstrong or not.
*Use While loop*
5. Write a java program to convert string into UPPERCASE,
lowercase
6. Write a java program count number of vowels, special
symbol, no. of spaces.
*Use Scanner class*
7. Write a java program to reverse a string
8. Write a java program to check whether the string is
palindrome or not.
*Use Scanner class*
9. Write a java program to find if the number is prime or not.
10. Write a java program to make Fibonacci series till 10th
element.
11. Write a java program to add 2 numbers with the use of
class and object method.
12. Write a java program to print age of a person using
constructor and age should be passed through argument.
13. Write a java program to catch an expectation for
dividing error.
14. Write a java program to create multiple threads.
15. Write a java program to find sum of the elements of an
array
IT Practical Questions for SQL

1. Create database
2. Create a table with 6 column
3. Insert 10 record in the table
4. Display some records with select statement and use greater
less then
5. Display null values
6. Update data any data
7. Use between command with select
8. Use In and Not in
9. Use like command as per choice
10. Alter table and add column or change name of the
column or change data type
11. Use order by
12. Use group by command
13. Use group by with having
14. Use primary key in the table with not null if columns
needed
15. Delete a record

You might also like