terms programming 4

0.0(0)
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/41

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

42 Terms

1
New cards

variables

a named storage location that holds a value or data.

<p><span><em>a </em></span><strong><em>named storage location t</em></strong><span><em>hat holds a value or data.</em></span></p>
2
New cards

functions

a set of code that performs a specific task. Instead of writing the same code multiple times, you can define a function once and call it whenever needed.

<p>a set of code that performs a specific task. Instead of writing the same code multiple times, you can define a function once and call it whenever needed.</p>
3
New cards

functions #arabic

مجموعة من التعليمات البرمجية التي تؤدي مهمة محددة. بدلاً من كتابة نفس التعليمات البرمجية عدة مرات، يمكنك تعريف وظيفة مرة واحدة واستدعائها عند الحاجة.

4
New cards

theory DRY (نظرية DRY)

Don't rebeat yourself

5
New cards

functions library

It means a set of ready-made functions provided by the programming language or created in advance in a specific file.

6
New cards

function library #arabic

.يعني مجموعة من الوظائف الجاهزة التي توفرها لغة البرمجة أو يتم إنشاؤها مسبقًا في ملف محدد.

7
New cards

Custom Function Library

The programmer does it and it is in a separate file.

<p>The programmer does it and it is in a separate file.</p>
8
New cards

Custom Function Library #arabic

يقوم المبرمج بذلك وهو موجود في ملف منفصل.

9
New cards

Built-in Functions

These are ready-made functions that come with the programming language, and you do not need to import an external library to use them.

<p>These are ready-made functions that come with the programming language, and you do not need to import an external library to use them.</p>
10
New cards

Built-in Functions #arabic

هي دوال جاهزة تأتي مع لغة البرمجة، ولا تحتاج إلى استيراد مكتبة خارجية لاستخدامها.

11
New cards

Subroutine

do not return a value directly; they just execute commands.

<p>do not return a value directly; they just execute commands.</p>
12
New cards

Routine

A routine is a general term in programming that refers to a set of instructions designed to perform a specific task. It can be a function, subroutine, method, or procedure, depending on the programming language.

13
New cards

Routine#arabic

الروتين (Routine) هو مصطلح عام في البرمجة يشير إلى مجموعة من التعليمات المصممة لتنفيذ مهمة معينة. يمكن أن يكون دالة (Function)، إجراءً فرعيًا (Subroutine)، طريقة (Method)، أو إجراءً (Procedure) حسب لغة البرمجة المستخدمة.

14
New cards

User-defined

"defined by the user," and it refers to elements that the user creates manually in programming, such as functions, variables, and objects, instead of using built-in (Pre-defined) elements.

<p>"defined by the user," and it refers to <strong>elements that the user creates manually</strong> in programming, such as <strong>functions, variables, and objects</strong>, instead of using built-in (Pre-defined) elements.</p>
15
New cards

User-defined #arabic

"مُعرَّف من قبل المستخدم"، وتُستخدم في البرمجة للإشارة إلى العناصر التي يقوم المستخدم بإنشائها بنفسه، مثل الدوال، المتغيرات، والكائنات، بدلًا من استخدام العناصر الجاهزة (Pre-defined).

16
New cards

Pre-defined

"already defined," and it refers to functions, variables, or objects built into the programming language, making them ready to use without needing to define or create them manually.

<p>"already defined," and it refers to <strong>functions, variables, or objects built into the programming language</strong>, making them ready to use without needing to define or create them manually.</p>
17
New cards

Pre-defined #arabic

"مُعرَّف مسبقًا"، وهي تُستخدم في البرمجة للإشارة إلى دوال أو متغيرات أو كائنات مدمجة في اللغة، بحيث تكون جاهزة للاستخدام دون الحاجة إلى تعريفها أو إنشائها يدويًا.

<p>"مُعرَّف مسبقًا"، وهي تُستخدم في البرمجة للإشارة إلى <strong>دوال أو متغيرات أو كائنات مدمجة في اللغة</strong>، بحيث تكون جاهزة للاستخدام دون الحاجة إلى تعريفها أو إنشائها يدويًا.</p>
18
New cards

Procedure

a block of code that performs a specific task but does not return a value.

19
New cards

Procedure #arabic

هو كتلة من الكود التي تقوم بأداء مهمة معينة ولكن لا تُرجع قيمة. يشبه الإجراء الدالة (Function)

20
New cards

Subprogram

a small, independent section of a larger program that performs a specific task. It helps in breaking down complex programs into smaller, manageable parts.

<p>a small, independent section of a larger program that performs a specific task. It helps in breaking down complex programs into smaller, manageable parts.</p>
21
New cards

Subprogram #arabic

هو جزء صغير ومستقل من البرنامج الرئيسي يقوم بمهمة معينة. يساعد في تقسيم البرامج الكبيرة إلى أجزاء أصغر وأكثر تنظيمًا.

22
New cards

method

a function that is associated with an object or a class in object-oriented programming (OOP). It is used to perform operations on data stored in an object.

<p>a function that is associated with an object or a class in object-oriented programming (OOP). It is used to perform operations on data stored in an object.</p>
23
New cards

method #arabic

الطريقة (Method) هي دالة (Function) مرتبطة بكائن (Object) أو فئة (Class) في البرمجة الكائنية التوجه (OOP). تُستخدم لتنفيذ عمليات على البيانات المخزنة داخل الكائن.

<p>الطريقة (Method) هي دالة (Function) مرتبطة بكائن (Object) أو فئة (Class) في البرمجة الكائنية التوجه (OOP). تُستخدم لتنفيذ عمليات على البيانات المخزنة داخل الكائن.</p>
24
New cards

function components

  1. keyword def 

  2. function name 

  3. parameters 

  4. colon 

  5. statement 

  6. return statement

  7. function call 

<ol><li><p>keyword def&nbsp;</p></li><li><p class="p1">function name&nbsp;</p></li><li><p class="p1">parameters&nbsp;</p></li><li><p class="p1">colon&nbsp;</p></li><li><p class="p1">statement&nbsp;</p></li><li><p class="p1">return statement</p></li><li><p class="p1">function call&nbsp;</p></li></ol><p></p>
25
New cards

argument

The actual value passed to the function.

<p>The actual value passed to the function.</p>
26
New cards

argument #arabic

هو القيمة الفعلية التي يتم تمريرها عند استدعاء الدالة.

27
New cards

parameter

A variable in the function definition.

<p>A variable in the function definition.</p>
28
New cards

parameter #arabic

هو المتغير الذي يُستخدم في تعريف الدالة.

29
New cards

Higher-Order Function

a function that takes another function as an argument OR returns a function.

<p>a function that takes another function as an argument OR returns a function. </p>
30
New cards

Higher-Order Function #arabic

هي دالة تأخذ دالة أخرى كمعامل OR تُرجع دالة أخرى كنتيجة.

31
New cards
<p>Nested Lists</p>

Nested Lists

Nested lists allow data representation in the form of tables or matrices.

<p>Nested lists allow data representation in the form of tables or matrices.</p>
32
New cards

Nested Lists #arabic

تسمح بتمثيل البيانات في شكل مصفوفات أو جداول.

33
New cards

Nested Function

A nested function is a function defined inside another function. It is commonly used for encapsulation, organization, and closure properties in programming.

<p>A <strong>nested function</strong> is a function <strong>defined inside another function</strong>. It is commonly used for <strong>encapsulation, organization, and closure properties</strong> in programming.</p>
34
New cards

Nested Function #arabic

لدالة المتداخلة هي دالة يتم تعريفها داخل دالة أخرى. تُستخدم عادةً من أجل التغليف (Encapsulation)، وتنظيم الكود، والاستفادة من الـ Closures في البرمجة.

<p>لدالة المتداخلة هي دالة يتم تعريفها داخل دالة أخرى. تُستخدم عادةً من أجل التغليف (Encapsulation)، وتنظيم الكود، والاستفادة من الـ Closures في البرمجة.</p>
35
New cards

inline function

a function that is defined and called within a single line of code. These are usually small functions that can be defined where they are used. Inline functions are typically used for short, simple operations.

<p>a function that is defined and called within a single line of code. These are usually small functions that can be defined where they are used. Inline functions are typically used for short, simple operations.</p>
36
New cards

inline function #arabic

هي دالة تُعرّف وتُستدعى في سطر واحد من الكود. عادةً ما تكون هذه الدوال قصيرة وبسيطة، ويتم تعريفها في مكان استخدامها. تُستخدم الدوال المدمجة عادةً للعمليات السريعة والبسيطة.

37
New cards

anonymous function

a function that does not have a name, and is used temporarily within the program. These functions are generally defined without a name and are often used in places where a function is needed only once, such as passing a function as an argument to another function.

<p>a function that does not have a name, and is used temporarily within the program. These functions are generally defined without a name and are often used in places where a function is needed only once, such as passing a function as an argument to another function.</p>
38
New cards

anonymous function #arabic

هي دالة لا تحمل اسمًا، وتُستخدم بشكل مؤقت داخل البرنامج. هذه الدوال تُعرف بشكل عام بدون اسم، وعادةً ما يتم استخدامها في الأماكن التي تحتاج فيها إلى دالة لمرة واحدة فقط، مثل تمرير دالة كمعامل إلى دالة أخرى.

39
New cards
<p>Lambda Expressions </p>

Lambda Expressions

A lambda expression (or lambda function) is an anonymous function defined using the lambda keyword. It is typically used for short, simple operations where defining a full function would be unnecessary.

<p>A lambda expression (or lambda function) is an anonymous function defined using the lambda keyword. It is typically used for short, simple operations where defining a full function would be unnecessary.</p>
40
New cards

Lambda Expressions #arabic

knowt flashcard image
41
New cards

Debugging

the process of finding and fixing errors in a program's source code.

<p>the process of finding and fixing errors in a program's source code. </p>
42
New cards

Debugging #arabic

هو عملية العثور على الأخطاء البرمجية وإصلاحها في الكود المصدري للبرنامج.

<p>هو عملية العثور على الأخطاء البرمجية وإصلاحها في الكود المصدري للبرنامج.</p>