Computer Programming
Computer Programming
CLASS ……………………
1
NAME ………………………………………………………………………………………………………. CLASS ……………………
or OFF. A program written in machine language is tedious, boring to write and to read, prone to error and
such errors are difficult to detect and correct.
ASSEMBLY LANGUAGE
An assembly language program is one written using mnemonic code in which instruction names are to
remember like MPY for multiply and STO for store). Assembly language program eliminates all the
problems encountered using machine language. However, a translator called ASSEMBLER translates
assembly language program to machine language because this is the only language in which a computer
can run programs.
HIGH LEVEL LANGUAGE
These were developed to further ease the work of programmers making the programs problem oriented
against machine – oriented low level language. The statements of high – level language are close to
natural human language (i.e. English Language). A high – level language program is translated
(compiled) by a COMPILER to an equivalent machine language programs. Each high level language has
its own compiler.
Examples of high level languages are
1. BASIC – Beginners All-Purpose Symbolic Instruction Code.
2. COBOL – Common Business Oriented Language
3. FORTRAN – Formula Translator
4. ALGOL – Algorithmic Language
5. C++
6. PASCAL
7. JAVA
8. VISUAL BASIC
9. LOGO
10. ADA etc
EVALUATION
1. What is programming language?
2. List the THREE types of programming languages.
WEEKEND ASSIGNMENT
1. How many types of programming languages do we have?
(a) 2 (b) 3 (c) 4
2. ……………. is used to translate assembly language to its machine language equivalent.
(a) Compiler (b) Assembler (c) Interpreter
3. …………… is the language of 0s and 1s
(a) High level Language (b) Assembly Language (c) Machine Language
4. Compiler is used to translate …………… level language to machine language
(a) Low (b) High (c) Medium
5. Which of these is NOT a translator?
(a) Assembler (b) Constructor (c) Compiler
THEORY
1. What is programming language?
2. List the THREE types of programming languages.
READING ASSIGNMENT
Computer Studies for Senior Secondary Education page 30.
2
NAME ………………………………………………………………………………………………………. CLASS ……………………
3
NAME ………………………………………………………………………………………………………. CLASS ……………………
The RUN statement is used to execute a program. In Q-BASIC, F5 is used to RUN a program.
Note that the program will not RUN if any mistake or error is detected in it.
EVALUATION
1. Write the function of the following BASIC keywords
(a) LET (b) INPUT (c) PRINT (d) REM (e) RUN
GENERAL EVALUATION
Discuss briefly the following BASIC statements: (i) READ (ii) CLS (iii) PRINT (i) END
WEEKEND ASSIGNMENT
1. ……………… converts your program into a form that can be executed directly by the computer
(a) Software (b) Interpreter (c) Hardware
2. BASIC means BEGINNNERS ALL-PURPOSE SYMBOLIC INSTRUCTION ……………..
(a) Code (b) Centre (c) Computer
3. ………………….. used to assign (or give) values to variables
(a) REM (b) INPUT (c) LET
4. ………………… statement is used to execute a program
(a) INPUT (b) RUN (c) END
5. …………….. is used to RUN a program
(a) F5 (b) F10 (c) F1
THEORY
1. What is BASIC?
2. Write the function of the following BASIC keywords
(b) LET (b) INPUT (c) PRINT (d) REM (e) RUN
READING ASSIGNMENT
Computer Studies for Senior S econdary School page 32-33
4
NAME ………………………………………………………………………………………………………. CLASS ……………………
20 INPUT A, B, C, D, E
30 LET SUM = A + B + C + D + E
40 PRINT AVG
50 END
GENERAL EVALUATION
1. Write a program to find the volume of a Cube.
2. Write a program to circumference of a circle.
WEEKEND ASSIGNMENT
1. The ____ statement allows the programmer to assign numbers and formulas to a variable name
a)Input b)Let c)Data
2. The_______statement always indicates the end of a basic program a)Stop b)End c)Data
3. The _______statement brings out the processed data a)Input b)Let c)Output
4. _____statement allows you to type in data from the keyboard when the program is running
a)Output b)Input c)Let
5. Key words are referred to as______a)important b)Reserved c)Constant
THEORY
1. Write a program to solve for z in this equation: ax2 + bx +c = z
2. Write a program to find the area of a circle.
READING ASSIGNMENT
Computer Studies for Senior S econdary School page 32-35
5
NAME ………………………………………………………………………………………………………. CLASS ……………………
Reference Book – A handbook on Computer Studies (PRACTICAL GUIDE) for Schools and Colleges by Niyi
Adekolegan
CONTENT
A package is the software written to perform a particular task. A graphic package is the software written
and designed with the sole purpose of helping users of the software to easily create graphical design. It
can be used to draw and even paint. It can also be used to create fancy text, Business Card, Birthday Card,
Create presentation or even to create a map. Examples of Graphic Packages are
- Paint
- Corel Draw
- Instant Artist
- Print Artist
- Photo Shops
- Logo Graphics etc
FEATURE OF A GRAPHIC PACKAGE
Graphic software usually has special attributes and characteristic. Some of them are
1. Title Bar
2. Tool Bar (or Tool Bar)
3. Menu Bar
4. Colour Bar (or Colour Bar)
5. Status Bar
6. Drawing Area
7. Option Box
1. TITLE BAR: This is the top of the graphic software that contains the name of the program. It also
contains the filename given to your saved work. The title bar also contains symbols which allow you
to minimize, restore or close the program.
2. TOOL BAR (or TOOL BOX): The toolbox contains the tools which you can use to draw shapes,
lines, types text etc. It is found on the left side of the window.
3. MENU BAR: This is found below the title bar. It contains commands that you will need to work on
the graphic software e.g. FILE, EDIT, VIEW, IMAGE, COLOUR, HELP etc
4. COLOUR BAR: This is also called a colour box or palette. It is simply a palette of colours to choose
from when we intend to fill an object will colours.
5. STATUS BAR: This is the last bar located below in the graphic software. It is below the Drawing
Area of the graphic software. It is a bar which gives you the status of where your mouse pointer is
located on the graphic page.
6. DRAWING AREA: This is the area of the graphic software that looks like a white sheet of paper.
On the area you can actually do whatever you like i.e. draw or paint.
7. OPTION BOX: The option box is the part of the graphic software where you can be given more
options of the tools you need to make your graphics better. It is located below or directly under the
tool box.
GENERAL EVALUATION
1. What is a Graphical package?
2. List and explain FOUR features of a graphic package.
WEEKEND ASSIGNMENT
1. ..................... the software written and designed with the sole purpose of helping users of the
software to easily create graphical design
(a) Word-processing package (b) Graphic package (c) Spreadsheet package
2. These are examples of graphic packages except
(a) Paint (b) Corel Draw (c) Excel
3. ……………… is below the title bar.
(a) Title Bar (b) Menu Bar (c) Status Bar
4. One of these is a graphic package
6
NAME ………………………………………………………………………………………………………. CLASS ……………………
READING ASSIGNMENT
A handbook on Computer Studies (PRACTICAL GUIDE) for Schools and Colleges by Niyi Adekolegan,
Pages 99-100.
7
NAME ………………………………………………………………………………………………………. CLASS ……………………
THEORY
1.List TEN tools used in Paint
2.Explain the function each of the tools.
READING ASSIGNMENT
A handbook on Computer Studies (PRACTICAL GUIDE) for Schools and Colleges by Niyi Adekolegan, pages
100-101.
8
NAME ………………………………………………………………………………………………………. CLASS ……………………
ICT has transformed the traditional (manual) ways of data/information processing to automation. The
advert of computer and telecommunication technology has brought about changes in organization
structure. Information transmission is the transfer of information from one source to a destination through
a communication medium. Office automation includes the use of computers and telecommunication
technology for internal and external use such as document and text production and public database and
information service.
GENERAL EVALUATION
1. Define the following terms:
(a) Information Technology (b) ICT (c) Intranet
WEEKEND ASSIGNMENT
1. The small version of the Net that is used within an office is called ……………..
(a) Internet (b) ICT (c) IT
2. The use of computer + telecommunication equipments + information + information technology =
(a) IT (b) ICT (c) Intranet
3. Messages sent between buildings using computers are called ………………..
(a) LAN (b) WAN (c) Internet
4. Messages sent between cities using computers are called ………………..
(a) LAN (b) WAN (c) Internet
5. Another name for the International Network is ………………
(a) LAN (b) WAN (c) NET
THEORY
9
NAME ………………………………………………………………………………………………………. CLASS ……………………
4. SATELLITE: This is an information transmission method through cable or wireless by the use of a
satellite dishes
5. VSAT: This is advance telecom equipment for receiving digital broadcast VSAT for very small
aperture terminal.
6. FAX MACHINE: It is an age – long method of transmitting textual and graphical message. It
consists of the feature of photocopying with effective information transmission.
7. TELEPHONE: The telephone is a telecommunication equipment or device used in transmitting send
across a distance.
GENERAL EVALUATION
1. What is ICT Gadgets?
2. Mention FOUR I.C.T. tools?
WEEKEND ASSIGNMENT
(1) Gadgets are tools that help us to do something (a) True (b) False (c) Not Sure
(2) Which of these is not a computer hardware (a) printer (b) radio (c) MP3 player
(3) -------------- medium is used to transmt audio to thousands of audience far and near. (a) Television (b)
Radio (c) Vsat
(4) Transmission of information through cable or wireless by the use of a satellite dish is called ………
(a) Satelite (b) computer (c) telephone
(5) Which of these is not a technology fro broadcasting information (a) Radio (b) Television (c) Fax
machine
Theory
1. List ten ICT tools.
2. Explain the function of the listed ICT tools.
READING ASSIGNMENT
Computer Studies for Secondary School Education page 40.
10
NAME ………………………………………………………………………………………………………. CLASS ……………………
DISADVANTAGES OF ICT
Apart from the positive impact of computer and telecom equipment in our world they affect our lives in
some ways, which are not beneficial. These include;
1. LOSS OF JOBS: While some people believe that computer is creating jobs, there are those who
see the computer as creating unemployment.
2. INVASION OF INDIVIDUAL PRIVACY: Information about the individual on the internet
are not totally secure that one begins to wonder whether a person has any right to his privacy any
longer
3. CRIME AID: The types of crimes that are committed with computer are super crimes i.e.
Internet crimes/electronic fraud.
4. DATABASE MANIPULATION: This is a sensitive area where frauds are perpetrated since it
contains the most sensitive data of a particular organization e.g. theft of storage media.
5. COMPUTER FRAUD: This is the use of computer to perpetrate fraud. This fraudulent act is on
a high scale especially in the financial sector.
EVALUATION
List the disadvantages of using ICT
GENERAL EVALUATION
1. Give FIVE advantages of ICT
2. Give FIVE disadvantages of ICT
WEEKEND ASSIGNMENT
1. ………….. is the use of computer and communication technology to conduct meetings
(a) Teleconferencing (b) Information (c) ICT
2. ICT had turned the whole world into a ……………………
(a) Global Village (b) Ball (c) Universe
3. Crimes that are committed with computer are called …………………..
(a) Computer Fraud (b) 419 (c) Yahoo yahoo
4. Access to information is now cheaper and economically viable
(a) TRUE (b) FALSE (c) I DON’T KNOW
5. One of these of NOT a disadvantage of ICT
(a) Loss of Job (b) Cheaper (c) Crime Aid
11
NAME ………………………………………………………………………………………………………. CLASS ……………………
(b) THEORY
1.Give FIVE advantages of ICT
2.Give FIVE disadvantages of ICT
READING ASSIGNMENT
Computer Studies for Senior Secondary School Education page 40.
WEEKEND ASSIGNMENT
(1) The ability of a user of the telephone to use the phone at anytime and whereever he/she is called
……….. (a) GSM (b) roaming (c) mobility
(2) GSM is a telecommunication device ……. (a) True (b) False (c) Not Sure
(3) GSM is capable of transmitting voice and ……….. (a) Data (b) wave (c) sound
(4) Which of these is not a GSM operator in Nigeria……….. (a) vodafone (b) MTN-NG (c) Globalcom
(5) SMS means…………… (a) Short Message System (b) Short Message Station (c) Short Memory
System.
Theory
(1)What is the importance of GSM to Information and Communication Technology?
() GSM has turned the world into a global village. Explain.
12