Software Programming Theory
Software Programming Theory
Question 01
1.) Explain difference between variables and constants with suitable examples. (Marks 08)
Question 02
1.) Explain difference between “while” and “do while” loop with suitable example. (Marks 10)
2.) Explain break and continue statements with suitable examples. (Marks 08)
3.) Write a program to print odd numbers between 0 to 10. (Marks 07)
Question 03
1.) What is an exception? Explain exception handling with an example. (Marks 10)
2.) Is the following code legal? Explain answer. (Marks 07)
try {
}
finally {
3.) What is the importance of finally block in exception handling? (Marks 08)
Question 05
Page 2 of 2
TERTIARY AND VOCATIONAL EDUCATION COMMISSION