Independent assessment B: equipment inspections
ورشة امتحان مستقلة
هذه أسئلة أصلية ومبتكرة على نمط امتحان AS 9618. الوقت المقترح هو 35 دقيقة. اقرأ كل جزء قبل الإجابة. قدم جميع الإجابات معاً؛ لن يتوفر المشرف والدعم حتى ذلك الحين.
تُمنح فحوصات البنية 2 نقطة للتتبع، و2 للاختبارات الحدية، و6 لكل خوارزمية مكتملة. يُكتسب الجزء البرمجي نقاطه فقط عند اجتياز كل حالة. هذا المعيار العملي منفصل عن مخطط علامات كامبريدج.
في صندوق التعليل، اشرح اختيار حلقة التكرار، والحالة التي يجب الحفاظ عليها عند الرفض، والهدف من كل معامل. بعد التقديم، قارن بالإجابات المحلولة. يجب على المعلم مراجعة التعليلات وتعيين درجات الامتحان الجزئية: لا يمكن للفحوصات المخرجة القيام بذلك.
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 دقائق. أجب على كل جزء قبل الإرسال. سيتم إخفاء التشغيل والتحقق والتلميحات حتى وقت الإرسال، ثم تُقفل الإجابات للمراجعة.