0% found this document useful (0 votes)
24 views

Software Programming Theory

The document contains 5 questions regarding Information & Communication Technology concepts for a Software Programming exam. Question topics include variables and constants, loops, classes, exceptions, dialog boxes, ADO.NET, and SQL databases. Students must answer any 4 of the 5 questions, which contain multiple short parts asking about programming concepts and asking to provide examples or code.

Uploaded by

Ernest
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
24 views

Software Programming Theory

The document contains 5 questions regarding Information & Communication Technology concepts for a Software Programming exam. Question topics include variables and constants, loops, classes, exceptions, dialog boxes, ADO.NET, and SQL databases. Students must answer any 4 of the 5 questions, which contain multiple short parts asking about programming concepts and asking to provide examples or code.

Uploaded by

Ernest
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 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