Professional Documents
Culture Documents
LEARNING MODULE
ICT 10
QUARTER 2
Week 1
LENARD GALLAJONES
San Pablo Diocesan Catholic Schools System
Diocese of San Pablo
Liceo de San Pablo
San Pablo City
F.Y. 2020 – 2021
DESCRIPTION:
This learning kit is an innovative tool produced by the SP-DCSS (Liceo de San Pablo) to meet
the standards of the ICT Curriculum. It is designed to introduce Information Communication
Technology as an undertaking subject that prepare students in conducting researches and
investigations.
OBJECTIVE:
Education Type: K to 12
Grade Level: 10
Learning Area: ICT
Intended Users: LEARNERS
LEARNING MATERIAL/MODULE:
What is a Variable?
A variable is a programmer-defined word that holds the value of the user. It also saves a portion of the
memory to store a determined value. Since variables are programmer-defined words, there are rules to follow in
declaring them in a program.
Rules in Declaring variables:
it must begin with a letter or underscore, then followed by a letter, digit or underscore.
It must not include blanks
It must not be the keywords, which are reserved words by the language.
It must not be a given name with the same name as other functions
What is a Constant?
A constant is an expression with a fixed value that cannot be changed at runtime. Unlike a variable, the
value can be changed during runtime based on user’s input. To declare a constant in C#, the const keyword is
used.
To define a constant, this syntax should be followed:
Const<data_type><constant_name>=value;
Const short a = 10;
In const short a = 10; declaration, a is declared as a constant with a fixed value of 10. The fixed values
are also called literals. Literals will be thoroughly discussed in the succeeding topics.
There are character constants in C# that when a preceded by the backslash (/) symbol have special
meanings. Some are used to format the result as they appear in the computer screen
Description Escape Code
New line \n
Carriage return \r
Horizontal tab \t
Vertical tab \v
Backspace \b
Form feed (page feed) \f
Alert (Beep) \a
Single quote (‘) \’
Double quote (“) \”
Question mark (?) \?
Backslash (\) \\