SECTION A: Attempt All Questions 55marks: 1. Define The Following Terms
SECTION A: Attempt All Questions 55marks: 1. Define The Following Terms
LEVEL: SENIOR 5
TERM: 1st
TIME: 3HOURS
_____________________________________________________________________________
INSTRUCTION:
Page 1
Page 1
3. Suppose you want to save your new project in the directory called DESKTOP inside the folder
called PROJECTS, what are the steps to save it?
4. Write a VB program that calculates the half of the sum of three numbers.
5. Give the names of the following controls represented by alphabets, as shown on the
figure respectively:
Page 2
Page 2
SECTION C: ONE question and is compulsory 15marks
Page 3
Page 3
1
2
5
3
a. What are the uses of the following properties on the properties window
represented by the below numbers:
Page 4
Page 4
1
2
Page 5
Page 5
MARKING SCHEME OF OPERATING SYSTEM S4
SECTION A:
Q1.
Visual BASIC is a higher level language that evolves from earlier DOS and is used to
create interfaces and it can be used in interaction with most of the DBMS’s.
A toolbox is an element of the toolbar that contains all the controls used in designing
interfaces such as command button, Label, etc…
A Binary language is a machine language. It is also defined as an executable language of
the computer.
An object: is any control used when creating interfaces including the form.
An event: An event is something that happens, usually but not always due to the user at
the keyboard, during a program’s operation. Examples: Click, double-click.
Q3.
Click on FILE on the toolbar> Choose SAVE AS option> Choose the DESKTOP directory in the
SAVE IN area>create a new folder and nae it PROJECTS>Type the project name in the FILE
NAME area> press SAVE or ENTER on the key board.
Q4.
Q5.
Q6.
Page 6
Page 6
An event is something that happens, usually but not always due to the user at the keyboard,
during a program’s operation. Examples: Click, double-click
Q7.
A control is a tool on the toolbox window that you place on a form to interact with the user and
control the program flow. Examples: textbox, label, commandbutton
Q8.
Each and every VB section of code Starts with Private Sub and it ends with End Sub.
Q9.
a. Variable Declaration is a process of telling the Ram to hold enough place to store the
values of those variable that will be entered through the program running.
b. Dim X As integer
Q10. The event associated to the form when loading is: Form_Load()
Q11.
a. False
b. False
c. True
d. False
e. False
SECTION B:
1. A. MDI is short for Multiple Document Interface; it allows opening multiple data
documents within the same application. While SDI is short for Single Document
Interface; it allows opening one data document at time.
B. Inheritance is a process in which an object acquires the properties of the other class
out of its class, whereas polymorphism is the way that an object may have more than one
form.
2.
Dim a, b, c As Integer
Page 7
Page 7
b = InputBox("enter 2nd number")
C= a+b
Label1.caption=C
2.
A comment in programming is tool or codes used to clarify the below codes function.
This is not executed by the compiler.
In VB 6.0 we use Double quotes to make a comment.
No, it is there to tell the programmer or to make clarification.
3.
num1 = Val(Text1.Text)
num2 = Val(Text2.Text)
num3 = Val(Text3.Text)
Quater = sum / 2
LblQuater.Caption = StrHalf)
4.
A: Title Bar
B: Toolbar
C:project browser
D: properties window
E: Form or Object
F: Form Layout
G: code editor
H: Task Bar
I: Toolbox
J: object browser
SECTION C:
Page 8
Page 8
5.
1: CheckBox, 2: Command Button, 3: ListBox, 4: Timer, 5: Frame
Prorerty Role
Page 9
Page 9