Professional Documents
Culture Documents
Grade 12 Advance
Week 3 – Assessment Checkpoint - CA
Instruction: Complete all Parts (1-3), then submit back to your teacher, through LMS.
Part 1 of 3: Fill in your student details (in English):
Student ID. /رقم ال ّطالب Enter your Student ID
Student Name /اسم ال ّطالب Enter your Student Name
School Name اسم المدرسة/ Enter your School’s name.
Grade & Stream /صف والمسار
ّ ال 12 General ّ ال
Class / شعبة Enter your class
Subject /المادّة Creative Design and Innovation Date / تاريخ
individual tasks.
Part 2 of 3: Answer the questions in this part as per the given instructions.
Q2. The image below shows an example of a function with its part labelled as A – D.
B C
Complete the table below by writing the correct name for parts A – D shown above.
(4 marks)
A Data type of function
C parameters
void setup()
{
Serial.begin(9600);
z = comparison(x, y);
Serial.print("The comparison result is - ");
Serial.println( z );
}
void loop()
{
}
char comparison (int x, int y)
{
char result;
if (x>y)
{
result = ‘T’;
}
else
{
result = ‘F’;
}
return result;
}
(a) Complete the table below to identify the two global variables and one local variable used in the
Arduino code above. (6 marks)
An example is done for you.
1. Global z
2. Global x
3. Global y
4. Local result
Then, paste a picture of the code in the space given below: (8 marks)