The document contains a list of practical programming questions that cover basic programming concepts. It includes tasks such as swapping numbers, calculating areas, finding averages, and creating a calculator. The questions also address control structures and data types in programming.
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 ratings0% found this document useful (0 votes)
5 views
Practical Questions
The document contains a list of practical programming questions that cover basic programming concepts. It includes tasks such as swapping numbers, calculating areas, finding averages, and creating a calculator. The questions also address control structures and data types in programming.
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
You are on page 1/ 1
Practical Questions
1. Write a program to swap two numbers using a third variable.
2. Write a program to calculate the area of a rectangle using variables. 3. Write a program to find the average of three numbers. 4. Write a program to concatenate two strings using variables. 5. Write a program to calculate the total and percentage of marks obtained in 5 subjects. 6. Write a program to demonstrate the use of integer, float, char, string, boolean data types. 7. Write a program to create calculator 8. Write a program to check if a number is positive, negative, or zero. 9. Write a program to check if a number is even or odd. 10. Write a program to find the largest of two numbers. 11. Write a program to check if a person is eligible to vote. 12. Write a program to check if a character is a vowel or consonant. 13. Write a program to print numbers from 1 to 10 using for loop. 14. Write a program to print numbers from 10 to 1 using a while loop. 15. Write a program to print the multiplication table of a number using a for loop.