Las Ict7 Java Q3 Las 3
Las Ict7 Java Q3 Las 3
QUARTER 3 WEEK 3
Learning Activity Sheet
Quarter 3 – Activity Sheet 3: Arrays
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:
After going through this Learning Activity Sheets, you are expected to:
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: Arrange the given objects alphabetically in each item. Write 0 for
the first, 1 for the second, and 2 for the last on the space provided.
What is an array?
An array is simply a sequence of either objects or primitives, all of the same type
and packaged together under one identifier name.
Creating an array
Manipulating an array
? Questions
Activity 2:
Directions: Read and analyze each statement. Write check (/) if the statement is
correct and (x) if otherwise.
_________2. An array can be declared by providing only the data type and the
number of elements it contains.
_________3. Array elements can be given initial values when an array is declared.
_________4. Individual elements of an array can be addressed by appending an
array indexed enclosed in curly brackets at the end of an array name.
_________5. A variable with an int data type can be used as a subscript to address
individual array elements.
_________6. The elements of arrays can only have primitive data types.
_________7. The individual elements of one array can have different data types.
_________10. All arrays have a property named size that contains the number of
elements in the array.
Activity 3
Directions: Answer each item based from the given array declaration below.
Activity 4.
Directions: Provide the output in each item given the following array declaration
below. Write your answer on the space provided in the table below.
char [] fb = {‘A’,’*’,’$’,’t’,’h’,’+’,’G’};
Code Output
1. System.out.println(fb[1]);
2. System.out.println(fb[4]);
3. System.out.println(fb[2]);
4. System.out.println(fb[6]);
5. System.out.println(fb[3]);
Closure
-------------------------------------
-------------------------------------
-------------------------------------
Telefax: -------------------------