Las Ict7 Java Q3 Las 1
Las Ict7 Java Q3 Las 1
QUARTER 3 WEEK 1
Learning Activity Sheet
Quarter 3 – Activity Sheet 1: Conditional Statements
Unang Edisyon, 2023
Republic Act 8293, section 176 states that: No copyright shall subsist in any work of the
Government of the Philippines. However, prior approval of the government agency or
office wherein the work is created shall be necessary for exploitation of such work for
profit. Such agency or office may, among other things, impose as a condition the payment
of royalties.
Borrowed materials (i.e., songs, stories, poems, pictures, photos, brand names,
trademarks, etc.) included in this module are owned by their respective copyright holders.
Every effort has been exerted to locate and seek permission to use these materials from
their respective copyright owners. The publisher and authors do not represent nor claim
ownership over them.
This Learning Activity Module (LAS) was designed and written with you in mind. It is
here to help you master Java Technology and the Java Programming Language. The
scope of this module permits it to be used in many different learning situations. The
language used recognizes the diverse vocabulary level of students. The lessons are
arranged to follow the standard sequence of the course. But the order in which you
read them can be changed to correspond with the textbook you are now using.
The LAS is divided into one (1) learning outcome, specifically:
In this Learning Activity Sheet, you will study about Java technology and
Java programming.
1. Study the lessons and answer religiously the activities. These will guide you on
what you will learn at the end of this Learning Activity Sheet.
Activity 1:
Directions: There are two pictures in each item, Picture A in column A and
another Picture B in column B. Write the A if you like picture A more than
Picture B. Otherwise, write B if you prefer Picture B more than Picture A. Write
your answer on the Space Provided.
If Statement
Syntax:
if (<boolean condition>) {
<statement/s>
Example:
If-Else Statement
If the if expression evaluates to false, the statements within the scope of the else
part will be run.
Syntax:
if (<boolean condition>) {
<statement/s>
}else{
<statement/s>
Example:
Nested If Statements
When you want to evaluate several conditions, use the nested-if structure.
Example:
Switch Statements
Example:
? Questions
Activity 2:
Directions: Read and analyze the given Java Program below. Identify the objective
or what each conditional statements was trying to solve or achieve in the code
marked by a comment that indicates item number. Then write the expected output
for each item. Write your answers on the space provided below.
Directions: Identify the output asked in each item based on the Java Code given in
Activity 2. Write only the output affected in each item. Write your answer on the
given spaces.
Activity 4.
-------------------------------------
-------------------------------------
-------------------------------------
Telefax: -------------------------