الانتقال إلى المحتوى

التعامل مع الاستثناءات

مُقدَّم
ورقة عمل
درس فيديو لهذا الموضوع افتح صفحة الفيديو
13:52

نماذج البرمجة

إليك مهمة واحدة: سرد كل طالب حصل على درجة A. يكتب مبرمج حلقة تكرار — ابدأ من السجل الأول، تحقق من الدرجة، أضف الاسم إلى قائمة، انتقل…

سرد باللغة الإنجليزية · ترجمة نصية بالإنجليزية و中文 يمكنك التبديل بينهما

في هذا الدرس

درس فيديو
مفردات
English المعنى
disk/dɪsk/A storage device that holds programs and data even when power is off.
USB stickA small removable storage device that connects to a USB port.
exception/ekˈsepʃn/استثناء
TRY structureA code structure that runs instructions and handles errors that may occur.
division by zeroAn attempt to divide a number by zero, which has no defined result.
invalid inputData entered into a program that does not meet its requirements.
network/ˈnetwɜːk/A set of connected devices or nodes that can exchange information.
Exception handling/ekˈsepʃn ˈhændlɪŋ/Finding and responding to errors while a program is running.
crashing/ˈkræʃɪŋ/Stopping unexpectedly because a program cannot continue after an error.
algorithm/ˈælɡərɪθəm/A finite sequence of precise steps for solving a problem or carrying out a task.
error handlingThe actions taken when an error occurs during communication.
TRY blockThe part of a TRY structure containing code that might cause an exception.
EXCEPT blocksParts of a TRY structure that respond to matching exceptions.
FINALLY blockThe part of a TRY structure that runs whether or not an exception occurs.
raise/reɪz/رفع (خطأ)
handlerCode that runs in response to a matching exception.
subroutine/ˈsʌbruːtiːn/A named set of instructions that performs a task when called.
caller/ˈkɔːlə/The program or module that asks another module to run.
transaction/trænˈsækʃn/A group of operations treated as one complete unit of work.
roll backTo undo changes and return data to its earlier state.
silent failureA failure that gives no clear message or other sign that something went wrong.
run-time error/rʌn taɪm ˈerə/A problem that occurs while a program executes and prevents an operation from completing normally.

ورقة عمل

تسجيل الدخول أو إنشاء حساب

IGCSE, A-Level & AP