You are on page 1of 2

TERTIARY AND VOCATIONAL EDUCATION COMMISSION

COMMON WRITTEN EXAMINATION

All rights reserved.


Tertiary and Vocational Education Commission
NVQ Level 05 –Semester I

Information & Communication Technology

Software Programming (Theory) K72T001M04 Three Hours

Answer only any four (04) questions.

Question 01

1.) Explain difference between variables and constants with suitable examples. (Marks 08)

2.) What does static variable mean? (Marks 08)


3.) List down three data types with suitable examples. (Marks 09)

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 a class? (Marks 06)


2.) Explain the concept of Encapsulation and Inheritance in OOP with suitable examples.
(Marks 12)
3.) What is an array? (Marks 07)
Question 04

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

1.) What is a dialog box? Give an example. (Marks 08)


2.) What is ADO.NET? (Marks 05)
3.) Write programme to connect SQL Database using ADO. NET classes. (Marks 07)
4.) What is a Datatable? (Marks 05)

Page 2 of 2
TERTIARY AND VOCATIONAL EDUCATION COMMISSION

COMMON WRITTEN EXAMINATION

You might also like