0% found this document useful (0 votes)
12 views3 pages

Programing Set Two

The document outlines a sample question set for the HND examination in Programming for the year 2024, covering various topics including algorithms, structured programming, object-oriented programming (OOP), and web programming. It includes specific questions and tasks related to each section, such as differentiating concepts, writing algorithms and programs, and creating HTML and CSS scripts. The exam is divided into four sections with a total duration of 3 hours and a credit value of 5.

Uploaded by

paguemic
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)
12 views3 pages

Programing Set Two

The document outlines a sample question set for the HND examination in Programming for the year 2024, covering various topics including algorithms, structured programming, object-oriented programming (OOP), and web programming. It includes specific questions and tasks related to each section, such as differentiating concepts, writing algorithms and programs, and creating HTML and CSS scripts. The exam is divided into four sections with a total duration of 3 hours and a credit value of 5.

Uploaded by

paguemic
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

HND EXAMINATON SAMPLE QUESTION SET TWO 2024

Specialty/Option: HWM PAPER: PROGRAMMING

Code Nature of paper Duration Credit value Total


HWM18 WRITTEN 3Hours 5 100
Instructions: Answer all questions

Section A: Algorithm
Duration: 45Minutes
1. Differentiate between a program and an algorithm. 2marks
2. List and explain the three basic structures of an algorithm. 5marks
3. What is the difference between pseudo code and flowchart? 2 marks
4. Write out the following algorithms: 6 marks
An algorithm to calculate the cube of 5
An algorithm to calculate the Square of 4
An algorithm to calculate the average of n integers
5. What is data structures with example, is it the same as array and variable, if yes or no, say why and how
to process array elements of any size of your choice. 5marks

Section B: Structured programming Duration 45minutes

1. What is structured programing and its advantages. 5marks


2. Why is c programing a structured programing language? 5marks
3. Write a program using, for loop to print ten integers zero to nine. 5marks

1
4. What is array, write a program to print one, two, and three dimensional array your choice of data type
should be integers. 10marks

Section C: OOP (Object Oriented Programming) Duration 45Minutes

1. What is OOP? 2marks


2. Write basic concepts of OOPS? 5marks
3. Differentiate between a class and an object. 5marks
4. Differentiate between encapsulation and polymorphism. 3marks
5. What will be the output if all necessary code is included (Header files and main function)? 5 marks

void test (Object &y)


{
y = "It is a string";
}
void main()
{
Object x = null;
test (x);
[Link] (x);
Explain, Passing object to a function 5marks

2
Section D: Web Programing
Duration 45 Minutes

2. WEB DESIGN (25Marks)


Figure 2

2.1. HTML5 (7marks)

Using HTML5 structural tags, propose an html script sketch well indented to produce the design of figure 2

2.2. CSS3 (13marks)

Using the figure 2, propose a CCS script


1. To style the aside containing (IP, TCP, TCP/IP, W3SCHOOLS) as it looks on figure 2 (9Mrks)
2. Explain each line of the above script. (5Mrks)

You might also like