ICT SC Module
ICT SC Module
Directions: Read each item carefully. Write only the letter of the correct
answer. Use a separate sheet for your answers.
1. Computer programming is the act of writing computer programs,
which are a ___________________________ written using a Human
Language to perform a specified task by the computer.
a. sequence of instructions
b. sequence of numbers
c. scientific method
d. series of menu
2. A computer program is also called a ___________________________, which
can range from two lines to millions of lines of instructions.
a. computer software
b. computer hardware
c. computer techniques
d. computer system
3. Below are examples of computer programming language EXCEPT:
a. C++
b. Python
c. HTML
d. Microsoft Word
4. Which of the statements below are correct?
a. Computer programs are being used to develop graphics and special
effects in movie making.
b. Computer programs are being used to perform Ultrasounds, X-Rays,
and other medical examinations.
c. Computer programs are being used in our mobile phones for SMS,
Chat, and voice communication.
d. All of the above
5. Computer program instructions are also called _______________________.
a. Program Source Code
b. Program Reference
c. Source Information
d. Computer Data
7
What’s In
WORD SEARCH
Search for the words related to the history and generation of
computer hidden in the puzzle. The words have been placed
horizontally, vertically, or diagonally – frontwards or backwards.
When you locate a word, write it on another sheet of paper.
8
What’s New
the programmer
Sandesh Uprety Aug 2015
she said, our life is a journey of accomplishments,
that we were programmed, we were trained
For what it has to come the other day
And at sudden something went fortunately wrong
and now we are nothing but some strayed unfixable bugs
That no one seems to care about
Did we fail to compile?
or did we not impress?
or did our programmer want us this way
for us to suffocate enough to
define the pain of failure
so, we would learn to re-generate the code to the happiness
that we’ll know how to feel our self
when every sentiment on us floats away
and all we can imagine to do is dream
what would we be, if it never happened
What is It
Get ready to dive deep into the world of Computer Programming and know
all about the Basics of Programming in detail.
• Sequence of instructions
• Computer Programming Language
9
To understand these terms, consider a situation when someone
asks you about how to go to a nearby Jollibee store. What exactly
do you do to tell him the way to go to Jollibee?
You will use Human Language to tell the way to go to Jollibee,
something as follows
– First go straight, after one kilometer, take left and then drive
around five kilometers and you will find Jollibee at the left side.
Here, you have used English Language to give several steps to be
taken to reach Jollibee. If they are followed in the following
sequence, then you will reach Jollibee
−
1. Go straight
2. Drive one kilometer
3. Take left
4. Drive around five kilometers
5. Search for Jollibee at your left side
Now, try to map the situation with a computer program. The above
sequence of instructions is actually a Human Program written in
English Language, which instructs on how to reach Jollibee from
a given starting point. This same sequence could have been given
in Spanish, Hindi, Arabic, or any other human language, provided
the person seeking direction knows any of these languages.
Now, let us go back and try to understand a computer program,
which is a sequence of instructions written in a Computer
Language to perform a specified task by the computer. Following is
a simple program written in Python programming Language
−
print "Hello, World!"
Output Devices: These are the computer hardware devices that help in
converting information into human-readable form. Some of the output devices
include Visual Display Units (VDU) such as a Monitor, Printer, Graphics Output
devices, Plotters, Speakers, etc.
A developer can analyze the problem and come up with simple steps to achieve a
solution to this problem, for which he/she uses a programming algorithm. This
can be compared to a recipe for a food item, where ingredients are inputs and
finished delicacy is the output required by the client.
11
The Recipe contains ingredients (inputs) and directions (steps) to prepare a food item.
Simple flow chart describing the steps and flow of the solution.
• Programming Environment
• Basic Syntax
12
• Data Types
• Variables
• Keywords
• Basic Operators
• Decision Making
• Loops
• Numbers
• Characters
• Arrays
• Strings
• Functions
• File I/O
For Example, a recipe to cook a dessert. The algorithm describes the steps to
be followed for completing a specific task, but it does not say how to achieve
any of the steps.
13
For Example, it is mandatory to have the main method in Java and the text
used is as shown below.
public static void main(String arg[]) {
//Steps to be performed
}
#3) Compiler: Compiler is a software program that helps in converting the
source code into binary code or byte code, also called machine language, that is
easy for a computer to understand, and can be further executed using an
interpreter to run the program.
#4) Data Type: Data used in the applications can be of a different type, it can
be a whole number (integer), floating-point (decimal point numbers), characters
or objects.
For Example, double currency = 45.86, where double is a data type used for
storing numbers with decimal points.
#5) Variable: Variable is a space holder for the value stored in the memory and
this value can be used in the application.
#6) Conditionals: Knowledge of how to use a certain condition, such that a set
of code should execute only if a certain condition is true. In case of a false
condition, the program should exit and should not continue the code further.
#7) Array: Array is the variable that stores elements of a similar data type.
Knowledge of using an array in coding/programming will be a great benefit.
#8) Loop: Loop is used to execute the series of code until the condition is true.
For Example, in Java, loops can be used as for loop, do-while, while loop or
enhanced for loop.
The code for loop is as shown below:
for (int I =0; i<10; i++) {System.out.println(i); }
#10) Class: Class is like a template that contains state and behavior, which
corresponding to programming is field and method. In Object-Oriented
languages like Java, everything revolves around Class and Object.
If you understood what a computer program is, then we will say: the
act of writing computer programs is called computer programming.
15
Programming
Popularity Practical Applications of Languages
Language
16
language. The use of assembly language is in device drivers, low-level
embedded systems, and real-time systems.
#2) High-level Language
• Independent of hardware
• Their codes are very simple, and developers can read, write, and debug as
they are similar to English like statements.
High-level Language can be further divided into three categories.
• Procedural Language: Code in the procedural language is a sequential
step by step procedure, that gives information like what to do and how to
do. Languages such as Fortran, Cobol, Basic, C, and Pascal are a few
examples of procedural language.
• Non-procedural Language: Code in non-procedural language specify what
to do but does not specify how to do. SQL, Prolog, LISP are a few examples
of non-procedural language.
• Object-oriented Language: Use of objects in the programming language,
where the code is used to manipulate the data. C++, Java, Ruby, and
Python are a few examples of Object-oriented language.
Basic Operations of a Programming Environment
Five basic elements or operations of programming are listed below:
• Input: Data can be input using the keyboard, touch screen, text editor,
etc. For Example, to book a flight, the user can enter his login credentials
and then select a departure date and return date, the number of seats,
starting place and destination place, Name of Airlines, etc., from desktop,
laptop, or mobile device.
• Output: Once authenticated, and upon receiving the request to book the
tickets with the mandatory inputs, a confirmation of booking for the
selected date and destination will be displayed on the screen, and a copy
of the tickets and invoice information is sent to the user’s registered email
id and mobile number.
• Arithmetic: In case of flight booking, update of the number of seats booked
and those seats need some mathematical calculations, further name of
the passenger, no. of seats reserved, date of journey, journey start date,
and starting place, destination place, etc. should be filled into the airlines
server database system.
• Conditional: It is required to test if a condition is satisfied or not, based
on the condition, the program may execute the function with parameters
else it will not get executed.
• Looping: It is required to repeat /perform the task until the condition
holds. Types of loops can be While loop, Do-while loop, For loop.
Example
for (int i = 0; i < 10; i++)
{
System.out.println(i);
}
17
#1) Self Reliance: To succeed in coding, you should develop a confidence
in yourself, control your impatience, frustration and should refrain from being
dependent on someone else to help you in solving your technical problems, rather
you should be self-reliant and keep faith on your capabilities, monitor your efforts
and remain optimistic and perseverant in learning.
#2) Language: It is an individual’s choice to decide which programming
languages he/she should learn. A programming language should be selected
based on its acceptance in the various domains in software industries. Object-
oriented languages like Python and Java, which are free & open source are widely
accepted and used by Google, Yahoo, and NASA.
Java script is another scripting language, a client-side scripting language, but
knowing JavaScript will highly benefit web-based application developers. Non-
procedural language like SQL is mandatory as it is acceptable by all the back-
end databases.
#3) Logic: As a developer or tester, to excel in the programming language,
one must always have conditional and logical thinking. It can be improved as we
improve our muscles, there are a few sites where one can prepare and improve
logical thinking and prepare for programming language.
• Fresherslive
• The Online Test Centre
• Indiabix
#4) Attention to Detail: A conscientious and alert person with an eye for
details will check his/her work for minute details and this will prevent any syntax
error, verify if any steps like unit testing or including API /classes, miss
associated jar or class files. For some people, meditation might help to improve
focus and concentration while for others taking a walk or playing some mind
games might help. You need to find out what works for you.
#5) Abstract Thinking: During sprint meeting in an agile environment, the
ability to think out of the box, or see things from different angles/perspectives,
help to uncover scenarios for requirements and design considerations. This can
be improved by a discussion with others.
#6) Patience: At times, it happens as you write a code, for which you are
confident about, verified it a couple of types, it works in your machine, but after
integration the code snippet does not work, all the effort to identify the fault go
in vain, you feel stressed out, frustrated and feel like good for nothing.
During such times, your ability to overcome the situation, try again from
scratch and develop patience will prove the developer to be more mature and
he/she gets appreciated for the ability to work under pressure environments like
releases and acceptance testing or during client demos.
#7) Strong Memory: Being able to understand and visualize the high-level
design, data flow, algorithm, data structure, how they interact with each other
will separate you from an average coder. Meditation techniques and memory
exercises can help with this as well.
18
As a human, you should have the habit to introspect daily and identify what you
have done today, how can you improve yourself, what steps or precautions you
will take to avoid difficult situations.
20
What’s More
Directions:
1. Use English Language to give several steps to be taken to
reach Ocaña National High School.
2. Use short bond paper
3. Observe 1-inch margin on all sides (left, right, up, bottom)
B.
Examples of Computer Programming Languages:
1 6
2 7
3 8
4 9
5 10
C.
Elements of Computer Programming:
1 6 11
2 7 12
3 8 13
4 9 14
5 10 15
21
What I Can Do
Directions:
1. Make one example of an algorithm.
2. Write your output on a short bond paper.
Assessment
Directions:
Test I - Read each item carefully. Write only the letter of the
correct answer. Use a separate sheet for your answers.
1. Computer program instructions are also called _______________________.
a. Program Source Code
b. Program Reference
c. Source Information
d. Computer Data
2. Which of the statements below are correct?
a. Computer programs are being used to develop graphics and
special effects in movie making.
b. Computer programs are being used to perform Ultrasounds, X-
Rays, and other medical examinations.
c. Computer programs are being used in our mobile phones for
SMS, Chat, and voice communication.
d. All of the above
3. Computer programming is the act of writing computer
programs, which are a ___________________________ written
using a Human Language to perform a specified task by the
computer.
a. sequence of instructions
b. sequence of numbers
c. scientific method
d. series of menu
4. A computer program is also called a ___________________________,
which can range from two lines to millions of lines of
instructions.
a. computer software c. computer hardware
b. computer techniques d. computer system
22
5. Below are examples of computer programming language
EXCEPT:
a. C++ c. Python
b. HTML d. Microsoft Word
Test II
Enumerate the Elements of Computer Programming Languages.
Additional Activities
A. Reflection Journal
Name of Student:
Topic/s:
B. Jingle Making
23