Computer Science - 0478 CIE

Arrays

Muhtasari

Imagine storing the marks of 100 students in 100 separate variables, then trying to add them up. It would be unbearable. An array solves this by holding many values of the same type under a single name, each reachable by a number called its index, so a short loop can sweep through them all.

In this lesson you will learn to declare and use one-dimensional and two-dimensional arrays in the Cambridge pseudocode style, understand why arrays are so useful, and write values into and read values from an array using iteration, with full worked routines you can adapt in the exam.

Malengo

  1. 1 Declare and use one-dimensional (1D) and two-dimensional (2D) arrays
  2. 2 Understand the use of arrays
  3. 3 Write values into, and read values from, an array using iteration

Maelezo ya Somo

Almost every real program handles lists of data: scores, names, prices, pixels. Arrays are the basic structure for storing such lists, and the programming paper expects you to declare them, put data in, take data out, and process them with loops. Master the array-and-loop pattern and a whole class of problems becomes routine.

Inapatikana kwenye programu ya Green Bridge

Pakua programu ya Green Bridge CBT kwenye simu yako au kompyuta yako ili kupata maelezo kamili ya masomo, maswali ya mazoezi, na mengi zaidi.

Maelezo kamili ya masomo yenye michoro
Msaidizi wa kujifunza wa AI
Soma bila mtandao, wakati wowote, mahali popote
Inapatikana kwa Android, Windows, macOS, na Linux

Tathmini ya Somo

Hongera kwa kukamilisha somo la Arrays. Sasa kwa kuwa umechunguza dhana na mawazo muhimu, ni wakati wa kuweka ujuzi wako kwa mtihani. Sehemu hii inatoa mazoezi mbalimbali maswali yaliyoundwa ili kuimarisha uelewaji wako na kukusaidia kupima ufahamu wako wa nyenzo.

Utakutana na mchanganyiko wa aina mbalimbali za maswali, ikiwemo maswali ya kuchagua jibu sahihi, maswali ya majibu mafupi, na maswali ya insha. Kila swali limebuniwa kwa umakini ili kupima vipengele tofauti vya maarifa yako na ujuzi wa kufikiri kwa makini.

Tumia sehemu hii ya tathmini kama fursa ya kuimarisha uelewa wako wa mada na kubaini maeneo yoyote ambapo unaweza kuhitaji kusoma zaidi. Usikatishwe tamaa na changamoto zozote utakazokutana nazo; badala yake, zitazame kama fursa za kukua na kuboresha.

  1. What must be true of all the items stored in one array? A. they must be integers B. they must be the same data type C. they must be strings D. they must be unique Answer: B
  2. What is used to identify the position of an element in an array? A. its value B. its data type C. its index D. its identifier Answer: C
  3. Which declaration creates a 1D array of 8 integers indexed 1 to 8? A. DECLARE A : INTEGER B. DECLARE A : ARRAY[1:8] OF INTEGER C. DECLARE A : ARRAY OF 8 D. DECLARE A[8] Answer: B
  4. Which loop structure is normally used to process every element of a 2D array? A. a single WHILE loop B. a REPEAT loop C. a nested (loop inside a loop) D. no loop is needed Answer: C
  5. Before adding all elements of an array into a variable Total, Total should first be: A. set to the first element B. set to 0 C. left undeclared D. set to the array length Answer: B

Inapatikana kwenye programu ya Green Bridge

Pakua programu ya Green Bridge CBT kwenye simu yako au kompyuta yako ili kupata maelezo kamili ya masomo, maswali ya mazoezi, na mengi zaidi.

Maelezo kamili ya masomo yenye michoro
Msaidizi wa kujifunza wa AI
Soma bila mtandao, wakati wowote, mahali popote
Inapatikana kwa Android, Windows, macOS, na Linux

Inapatikana kwenye programu ya Green Bridge

Pakua programu ya Green Bridge CBT kwenye simu yako au kompyuta yako ili kupata maelezo kamili ya masomo, maswali ya mazoezi, na mengi zaidi.

Maelezo kamili ya masomo yenye michoro
Msaidizi wa kujifunza wa AI
Soma bila mtandao, wakati wowote, mahali popote
Inapatikana kwa Android, Windows, macOS, na Linux

Fanya Mazoezi ya Maswali ya Majaribio

Ungependa kufanya mazoezi ya maswali ya majaribio kuhusu Arrays? Pakua programu ya Green Bridge CBT ili kupata maswali ya majaribio na tathmini kamili za mazoezi kuhusu mada hii.

Pakua Programu Kwenye Google Playstore

Kila kitu unachohitaji ili kufaulu katika JAMB, WAEC & NECO.

Green Bridge CBT Mobile App
Msaidizi wa Gumzo wa Kujifunza wa AI Uliobinafsishwa
Maelfu ya Maswali ya Zamani ya JAMB, WAEC & NECO
Zaidi ya Madaftari ya Masomo 1200
Msaada Nje ya Mtandao - Jifunze Wakati Wowote, Popote Pale
Ratiba ya Daraja la Kijani
Muhtasari wa Fasihi na Maswali Yanayoweza Kutokea
Fuata Utendaji na Maendeleo Yako
Maelezo ya Kina kwa Kujifunza kwa Kina