Basics of MS Small Basic
Basics of Small Basic
OBJECTIVES
RECALL THE PARTS OF SMALL BASIC WINDOW
EXPLAIN HOW TO EXECUTE A SMALL BASIC PROGRAM
A program is a sequence of instructions written to perform a
particular task .
It instructs the computer what to do and how to do it .
A line in a program is called a statement and every statement
instructs the computer to do something.
©Oxford University Press BASICS OF MS SMALL BASIC 4
The components of the main window of Small Basic are:
Title Bar: The title bar gives you information about the
program you are working on
Toolbar: The
toolbar has
many
commands
such as
New, Open,
Help Area: It
Save, Save
displays hints
As, Run,
and tips while
Cut, Copy,
you write the
Paste, etc.
program code in
Editor: It is a pane the editor
where the Small
Basic programs
are written
©Oxford University Press BASICS OF MS SMALL BASIC 5
Executing a Small Basic Program
After writing and saving the program, you need to execute or run it to see its output.
Steps to run a created program are:
1
1 Click the Run button in the
Program group on the toolbar for
the output
or
Press F5
©Oxford University Press BASICS OF MS SMALL BASIC 6
Creating a Small Basic Program
Steps to create simple programs in the editor are:
1
1
Click the New button on the
toolbar to display a blank editor
2 2
Start typing code in the empty
editor pane
©Oxford University Press BASICS OF MS SMALL BASIC 7
After typing the code in line number 1, press the ENTER key.
The number 2 appears automatically.
Similarly, you will get numbers 3, 4, and so on.
©Oxford University Press BASICS OF MS SMALL BASIC 8
As you type the code, the help area provides useful information.
Here the help area is showing an explanation on the WriteLine()method.
©Oxford University Press BASICS OF MS SMALL BASIC 9
As you type the first line of code, a popup window appears.
This happens due to a feature called intellisense.
©Oxford University Press BASICS OF MS SMALL BASIC 10
It appears for inserting object names, properties, and methods in the program.
When this list appears, you can move through the list using the UP/DOWN
arrow keys and make a selection by pressing ENTER.
©Oxford University Press BASICS OF MS SMALL BASIC 11
Steps to create simple programs in Small Basic are:
3 3
After you have
typed the code,
execute the program
by clicking the Run
button
©Oxford University Press BASICS OF MS SMALL BASIC 12
Complete the requirements in the output window:
The output window appears
4
4 5
Enter any name and press ENTER
5 The message as given in the
program gets displayed
6 To return to the main window,
press any key on the keyboard
©Oxford University Press BASICS OF MS SMALL BASIC 13
QUIZ
https://quizizz.com/admin/quiz/623cb6de6036ee001e6c61a8