Why did we use a for loop in the barrier gate project?, To repeat an action a fixed number of times, To measure the distance using the ultrasonic sensor, Which part of a for loop controls how many times the loop runs?, Initialisation, Condition, Increment, What would happen if the condition in a loop never becomes false?, The loop would stop immediately, The loop could run forever, The program would skip the loop, In the barrier gate system, did we know in advance how many times the gate needed to move?, Yes, No, If we do NOT know how many times an action needs to repeat, what should control the repetition?, A fixed number, A condition, When should the artificial lights turn ON in the greenhouse?, When light is high, When light is low, When the servo moves, Which programming construct repeats code while a condition is true?, If statement, For loop, While loop, Which loop is best when you do NOT know how many times the code should repeat?, For loop, While loop, What condition keeps this while loop running? while (lightLevel < threshold), Light level is high, Light level is low, Servo is moving, When does a while loop stop running?, After a fixed number of times, When the condition becomes false, Never.
0%
While-loop Quiz
แชร์
แชร์
แชร์
โดย
Mhadjsalem
แก้ไขเนื้อหา
สั่งพิมพ์
ฝัง
เพิ่มเติม
กำหนด
ลีดเดอร์บอร์ด
แสดงเพิ่มขึ้น
แสดงน้อยลง
ลีดเดอร์บอร์ดนี้ตอนนี้เป็นส่วนตัว คลิก
แชร์
เพื่อทำให้เป็นสาธารณะ
ลีดเดอร์บอร์ดนี้ถูกปิดใช้งานโดยเจ้าของทรัพยากร
ลีดเดอร์บอร์ดนี้ถูกปิดใช้งานเนื่องจากตัวเลือกของคุณแตกต่างสำหรับเจ้าของทรัพยากร
แปลงกลับตัวเลือก
แบบทดสอบ
เป็นแม่แบบแบบเปิดที่ไม่ได้สร้างคะแนนสำหรับลีดเดอร์บอร์ด
ต้องลงชื่อเข้าใช้
สไตล์ภาพ
แบบ อักษร
ต้องสมัครสมาชิก
ตัวเลือก
สลับแม่แบบ
แสดงทั้งหมด
รูปแบบเพิ่มเติมจะปรากฏเมื่อคุณเล่นกิจกรรม
)
เปิดผลลัพธ์
คัดลอกลิงค์
คิวอาร์โค้ด
ลบ
คืนค่าการบันทึกอัตโนมัติ:
ใช่ไหม