NCV4 Computer Programming Paper 1 November 2020
NCV4 Computer Programming Paper 1 November 2020
COMPUTER PROGRAMMING
(First paper)
NQF LEVEL 4
(10041024)
103Q1N2025
Copyright reserved Please turn over
(10041024) -2-
TIME: 2 HOURS
MARKS: 100
SECTION A
QUESTION 1
Various options are given as possible answers to the following questions. Choose the
answer and write only the letter (A–D) next to the question number
(1.1–1.10) in the ANSWER BOOK.
A local.
B exceptional.
C private.
D coupled.
1.2 Which of the following is simply a combination of process and data in a single
entity?
A Encapsulation
B Polymorphism
C Inheritance
D Modular
A Tables
B Structure
C Procedure
D Normalisation
A record
B table
C database
D relationship
A TCP/IP
B HTTP
C SMTP
D POP
A Ownership
B Infringement
C Royalties
D Copyright
1.7 The type of software application that makes it possible for internet users to
access websites is called a ...
A blog
B browser
C server
D www
A <td>
B <tr>
C <table>
D <ul>
1.9 The aim of the … is to plan the navigation of a site and to present a paper
visualisation of the entire website.
A design
B application
C project
D storyboard
1.10 Determine the value of MyVariable after the execution of the following
JavaScript code:
MyVariable = 4;
MyVariable = ++MyVariable + 5 * 6;
A 54
B 34
C 35
D 4
(10 × 1) [10]
QUESTION 2
Indicate whether the following statements are TRUE or FALSE. Choose the answer
and write only 'True' or 'False' next to the question number (2.1–2.5) in the
ANSWER BOOK.
2.1 Concatenating text in JavaScript involves adding strings together using the
plus symbol (+).
2.3 Interactive websites are used for displaying information such as educational
or recreational information.
2.5 Both foreign and primary keys must be of the same data type.
(5 × 1) [5]
QUESTION 3
COLUMN A COLUMN B
3.1 The accuracy and consistency of data within a A inheritance
relationship
B strong cohesion
3.2 Compares the implemented system against the
design document and requirement specifications C normalisation
and produces an acceptance report
D testing
3.3 Occurs when an instance of one class within a
system is dependent on an instance of a E H3
different class
F H1
3.4 Takes place when objects of a class inherit
methods and data members of a superclass G referential integrity
3.5 HTML tag used to create a heading with the H strong coupling
largest font size
I documentation
(5 × 1) [5]
QUESTION 4
Give ONE word/term for each of the following descriptions. Write only the answer next
to the question number (4.1–4.5) in the ANSWER BOOK.
4.1 A privately maintained computer network that uses internet protocols and is
accessible only to the organisation’s staff members.
4.2 Payments to the owner of intellectual property for the use of that property.
4.4 Content that uses a combination of different content forms such as text,
audio, images, animations, video and interactive content.
TOTAL SECTION A: 25
SECTION B
QUESTION 5
5.1 Study the OOP code below and answer the question.
Create a UML class diagram to represent the scenario depicted in the source
code above. Show the class names, data members, methods and inheritance
hierarchy. (10)
5.2 Which is the best image file type to use for the display of several small icons
in a web-based application? (1)
5.3.1 Website
QUESTION 6
6.1 Study the diagram below and answer the questions:
6.1.1 List the all the information you will need to display the output
shown above. (5)
6.1.2 State the purpose of the code in line number 32 in the diagram (2)
6.1.3 Construct the code to set up the data binding of the label called
lblCountry to the BindingSource1. (3)
6.1.4 Construct a line of code that will activate the BindingNavigator1. (1)
6.2 Briefly explain the following security control principles:
6.2.2 OTP
6.2.3 HTTPS
(3 × 2) (6)
6.3 List the main purpose of each of the following OOP terminologies:
QUESTION 7
Study the web page below and then answer the questions.
7.1 Create an HTML tag to insert a graphic into the web page. Use vlc.jpg as the
name of the image file. (2)
7.2 Modify the image element in QUESTION 7.1 so that the image floats to the
left with a height of 50 pixels and a right margin of 5px. (3)
7.3 Create an anchor element that links to nowhere for the underlined “read
more” text on the web page above. (2)
7.4 List the benefits of each of the following user interface technologies:
7.4.1 Web forms
7.4.2 Server pages
7.4.3 Applets
(3 × 2) (6)
7.5 State TWO factors that can affect the loading time of a web page. (2)