0% found this document useful (0 votes)
47 views9 pages

SECTION A: Attempt All Questions 55marks: 1. Define The Following Terms

This document outlines an interschool exam for Visual Basic given to senior 5 students. It provides instructions for the exam, which has 3 sections (A, B, C) worth a total of 100 marks. Section A is worth 55 marks and contains 10 multiple choice and true/false questions testing VB terminology and concepts. Section B is worth 30 marks and requires students to answer 3 of 5 programming questions. Section C is worth 15 marks and requires answering questions about VB controls on the toolbox. The document provides sample questions, answers, and a marking scheme to summarize the key topics covered.

Uploaded by

Christian AMANI
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as RTF, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
47 views9 pages

SECTION A: Attempt All Questions 55marks: 1. Define The Following Terms

This document outlines an interschool exam for Visual Basic given to senior 5 students. It provides instructions for the exam, which has 3 sections (A, B, C) worth a total of 100 marks. Section A is worth 55 marks and contains 10 multiple choice and true/false questions testing VB terminology and concepts. Section B is worth 30 marks and requires students to answer 3 of 5 programming questions. Section C is worth 15 marks and requires answering questions about VB controls on the toolbox. The document provides sample questions, answers, and a marking scheme to summarize the key topics covered.

Uploaded by

Christian AMANI
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as RTF, PDF, TXT or read online on Scribd
You are on page 1/ 9

INTERSCHOOL EXAM OF ----VISUAL BASIC --------------

LEVEL: SENIOR 5

TERM: 1st

ACADEMIC YEAR: 2014

TIME: 3HOURS

_____________________________________________________________________________

INSTRUCTION:

- This exam has three sections: A, B and C


- Section A: answer all the questions (55 marks)
- Section B: choose three section to answer (30 marks)
- Section C: choose one question (15points)

- SECTION A: ANSWER ALL THE QUESTIONS ( each question carry 5 marks)

SECTION A: Attempt all questions 55marks

1. Define the following terms


 Visual BASIC
 Event Drive
 Toolbox
 Object
 Binary language

2. What are the steps to open a VB 6.0 projects

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. For what stands the following terms:


a. GUI
b. OOP
c. BASIC
5. List at least 5 data types used in VB
6. What is an event? Give one example of it.
7. What is a control? Give three examples.
8. What are the starting and the ending syntax that is used on each and every VB code?
9. A. What is variable declaration?
B. Give a typical example of the VB declaration process.
10. What is the event associated to the form in order to be displayed?
11. Answer TRUE or FALSE, the following sentences:
a. A project is an anything that is found on the computer specifically on the desktop.
b. A tool box is an element of the VB IDE that describes the properties of a selected object.
c. A class is collection of object with similar type.
d. A command button is found in the project explorer
e. A label is used to display pictures on the form.

SECTION B: Attempt 3 questions 30marks (10 on each)

1. Differentiate the following terms:


a. SDI Vs MDI
b. Inheritance Vs Polymorphism
2. Write a program that calculates the sum of two numbers from the Textboxes and displays
the result using a label control.
3.
a. What is a comment in programming?
b. What do we use when creating a comment in VB 6.0?
c. Does the compiler execute a comment? If no why?

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

Name the following controls on the toolbox as indicated

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.

Q2. Steps to open up a VB project are:

Click on the START MUNU>ALL PROGRAM>MICROSOFT VISUAL STUDIO 6.0>


MICROSOFT VISUAL BASIC 6.0.

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.

GUI: Graphical User Interface

BASIC: Beginners All-Purpose Symbolic

OOP: Object oriented programming

Q5.

Float, Double, Single, String, Integer etc

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

a = InputBox("enter 1st number")

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.

Dim num1, num2, num3, sum As Single

Dim Half As Double

num1 = Val(Text1.Text)

num2 = Val(Text2.Text)

num3 = Val(Text3.Text)

sum = num1 + num2 + num3

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

Name It is the only representing name of the


control within codes.

Alignment It is the property that puts writing at the


left side, Right or at the center of the
control.

Backcolor It is the color of the background of


controls

Caption It is the outside writing that is visible to


the sight assigned to the control.

Font It is a collection of different writing


setting that can be assigned to them.

Page 9

Page 9

You might also like