Independent assessment B: equipment inspections
ห้องปฏิบัติการสอบอิสระ
นี่คือคำถามสไตล์ข้อสอบ AS 9618 ที่ใหม่และเป็นต้นฉบับ เวลาแนะนำคือ 35 นาที อ่านทุกส่วนก่อนตอบ ส่งคำตอบทั้งหมดพร้อมกัน; ตัวรันและตัวช่วยจะยังคงไม่สามารถใช้งานได้จนกว่าจะส่งทั้งหมด
การตรวจสอบแบบมีโครงสร้างให้คะแนน 2 คะแนนสำหรับการติดตาม, 2 สำหรับการทดสอบขอบเขต, และ 6 สำหรับอัลกอริทึมที่สมบูรณ์แต่ละตัว ส่วนการเขียนโปรแกรมจะได้รับคะแนนก็ต่อเมื่อทุกกรณีผ่านเท่านั้น เกณฑ์มาตรฐานการฝึกหัดนี้แยกต่างหากจากรายละเอียดคะแนนของ Cambridge
ในกล่องเหตุผล อธิบายการเลือกลูปของคุณ สถานะที่ต้องคงไว้เมื่อปฏิเสธ และวัตถุประสงค์ของพารามิเตอร์แต่ละตัว หลังส่งคำตอบแล้ว ให้เปรียบเทียบกับคำตอบที่แสดงตัวอย่าง ครูควรทบทวนคำอธิบายและให้คะแนนย่อยตามข้อสอบ: การตรวจสอบเอาต์พุตไม่สามารถทำสิ่งนี้ได้
A 2 by 3 array contains rows [8, 4, 6] and [3, 9, 5]. Total is reset to 0 for each row, then values are added left to right. Give Row, Col, Total after EVERY inner iteration, one triple per line.
Valid quantities for an unchanged stock of 7 are 1 to 7 inclusive. Give FOUR boundary values in ascending order, including the immediately invalid values.
Read NumberOfItems (1 to 4), then THREE non-negative integer inspection scores per item, item by item. Store a 2-D array. Output each item total, then the 1-based index of the LOWEST-total item. Choose the first on a tie.
มีคำติชมปรากฏขึ้นหลังจากส่งคำตอบแล้ว
Write only PROCEDURE Borrow(BYREF Stock : INTEGER, BYVAL Wanted : INTEGER, BYREF Success : BOOLEAN). Accept only positive requests no greater than Stock. Set Success on EVERY call. Decrease Stock only on success. Do not OUTPUT.
มีคำติชมปรากฏขึ้นหลังจากส่งคำตอบแล้ว
Explain your choice of data structure and loop. Identify one boundary case and predict its result. For a subroutine, explain what is returned or changed in the caller.
บันทึกสำหรับรอบนี้บนเบราว์เซอร์นี้ ทบทวนด้วยตนเองหรือร่วมกับครู; คำอธิบายเหล่านี้ไม่ถูกให้คะแนนอัตโนมัติ
ทบทวนคำอธิบายของคุณตามเกณฑ์เหล่านี้
- My types and data structure match the data and the question.
- I justified the loop and checked its first and last iterations.
- Initial values and rejected operations preserve the intended state.
- My test includes input, purpose and expected result.
- I distinguished returning a value from printing and changing caller state.
เวลาแนะนำ: 35 นาที ตอบทุกส่วนก่อนส่ง การรัน การตรวจสอบ และคำแนะนำจะถูกซ่อนจนกว่าจะส่งคำตอบ จากนั้นคำตอบจะถูกล็อกเพื่อทบทวน