تطوير تطبيقات جافا سكريبت
24 Questions
0 Views

Choose a study mode

Play Quiz
Study Flashcards
Spaced Repetition
Chat to Lesson

Podcast

Play an AI-generated podcast conversation about this lesson

Questions and Answers

ما هو نوع العامل المستخدم في التعبير 'z' عندما يكون 'x=5'?

  • عامل معقد
  • عامل متغير (correct)
  • عامل ثابت
  • عامل دالة

ماذا يعني الناتج 'false' في جملة 'nاتج = false'?

  • الناتج غير متوقع
  • الناتج صحيح
  • الناتج خطأ (correct)
  • الناتج غير موجود

أي من العوامل المذكورة يعتبر حسابيًا بناءً على المعطيات المعطاة؟

  • عامل معادلة (correct)
  • عامل عددي
  • عامل منطقي
  • عامل بيانات

ما هو المثال المستخدم لتوضيح وظيفة العامل؟

<p>x = 5 (C)</p> Signup and view all the answers

ما هو تعبير القيم الرجعية في المعاملة؟

<p>تكون القيمة الراجعة true إذا تحقق الشرط. (D)</p> Signup and view all the answers

ما هي الوظيفة الأساسية للعوامل المذكورة في الجدول؟

<p>الأداء الحسابي (D)</p> Signup and view all the answers

متى تكون القيمة الثانية للمعاملة صحيحة؟

<p>عندما لا يتحقق جميع الشروط. (B)</p> Signup and view all the answers

ما هو دور العامل في المعاملة؟

<p>يؤثر على القيمة الراجعة للمعاملة. (A)</p> Signup and view all the answers

ما هي نتيجة المعاملة إذا كان الشرط > 4 صحيحًا؟

<p>تكون القيمة الراجعة true. (C)</p> Signup and view all the answers

ما هو الشكل العام للمعاملة؟

<p>يمكن أن يحتوي على مسارات متعددة. (D)</p> Signup and view all the answers

ما هي البنية الأساسية لوضع كود JavaScript داخل صفحة HTML؟

&lt;script> &lt;/script> (A) Signup and view all the answers

أي من العوامل التالية يُستخدم لمقارنة القيم في JavaScript؟

<p>== (C)</p> Signup and view all the answers

متى تم إنشاء لغة JavaScript لأول مرة؟

<p>1995 (C)</p> Signup and view all the answers

أي من العمليات التالية تُعتبر عملية جمع في JavaScript؟

<ul> <li>(C)</li> </ul> Signup and view all the answers

ما هو الاسم الذي أطلق على JavaScript عند إنشائها لأول مرة؟

<p>Mocha (B), LiveScript (D)</p> Signup and view all the answers

أي من العوامل التالية يُستخدم لطرح القيم في JavaScript؟

<ul> <li>(C)</li> </ul> Signup and view all the answers

ما الذي يمكن لمطوري JavaScript فعله عند استخدام اللغة؟

<p>إنشاء صفحات ويب تفاعلية (D)</p> Signup and view all the answers

من الذي قام بتطوير JavaScript؟

<p>Brendan Eich (A)</p> Signup and view all the answers

ما هو العامل المنطقي الذي يستخدم للتحقق من أن الشرطين صحيحين في JavaScript؟

<p>&amp;&amp; (B)</p> Signup and view all the answers

ما هي الصيغة الصحيحة لإنشاء تعليق في JavaScript؟

<p>// تعليق (C), /* تعليق */ (D)</p> Signup and view all the answers

ما هي العملية التي يتم تنفيذها عند استخدام العامل % في JavaScript؟

<p>الباقي بعد القسمة (B)</p> Signup and view all the answers

أي من الخيارات التالية يمثل صيغة المتغير في JavaScript؟

<p>let name; (A), var name; (D)</p> Signup and view all the answers

ما هو الغرض من استخدام مكتبات JavaScript مثل jQuery؟

<p>تسهيل التفاعل مع عناصر HTML (B)</p> Signup and view all the answers

أي من الخيارات التالية هي ميزة من ميزات JavaScript؟

<p>إمكانية التفاعل مع المستخدم (C), البرمجة الكائنية (D)</p> Signup and view all the answers

Flashcards

إرجاع قيمة معامل شرط

يعيد قيمة معامل شرط (true أو false) وعكسها.

القيمة المرتجعة

هي القيمة التي يُعيدها البرنامج عند تحقق الشرط أو عدم تحققه.

تحقق الشرط

عملية اختبار صحة شرط معين.

قيمة الشرط true

تشير إلى أن الشرط صحيح.

Signup and view all the flashcards

قيمة الشرط false

تشير إلى أن الشرط خطأ.

Signup and view all the flashcards

عامل حسابي

عملية حسابية تزيد أو تنقص قيمة المتغير.

Signup and view all the flashcards

نوعه حسابي

نوع العملية الحسابية.

Signup and view all the flashcards

وظيفته

وظيفة العملية الحسابية على المتغير.

Signup and view all the flashcards

مثال

مثال على استخدام العملية الحسابية.

Signup and view all the flashcards

النتيجة

القيمة الناتجة من العملية الحسابية.

Signup and view all the flashcards

لغة JavaScript

لغة برمجة تُستخدم لإنشاء تطبيقات تفاعلية على الويب.

Signup and view all the flashcards

وضع كود JavaScript في صفحة HTML

يمكن وضع كود JavaScript في صفحة HTML عن طريق استخدام العلامة <script>...</script>

Signup and view all the flashcards

متغيرات JavaScript

حاويات تخزين لقيم data في JavaScript

Signup and view all the flashcards

قواعد تسمية المتغيرات

يجب أن تكون أسماء المتغيرات في JavaScript حروفًا أو أرقامًا أو علامات أسفل أو علامات دولار.

Signup and view all the flashcards

إعلان المتغيرات

عملية تعريف المتغير في JavaScript

Signup and view all the flashcards

وظيفة document.write()

وظيفة لكتابة نص في صفحة HTML.

Signup and view all the flashcards

عوامل رياضية

تستخدم لإجراء العمليات الرياضية مثل الجمع، الطرح، الضرب، القسمة.

Signup and view all the flashcards

عوامل مقارنة

تستخدم لمقارنة قيم مثل الأكبر، الأصغر، أو المساوي.

Signup and view all the flashcards

عوامل منطقية

تُستخدم مع القيم المنطقية (true أو false).

Signup and view all the flashcards

العمليات المنطقية

عمليات مثل && (و) || (أو) ! (نفي).

Signup and view all the flashcards

ECMAScript

معيار لغة JavaScript، تم تطويره بواسطة منظمة ECMA.

Signup and view all the flashcards

Brendan Eich

المبرمج الذي اخترع لغة JavaScript.

Signup and view all the flashcards

تطبيق JavaScript

إضافة تفاعل إلى صفحات الويب.

Signup and view all the flashcards

صفحات HTML

اللغة الأساسية لتصميم صفحات الويب.

Signup and view all the flashcards

نصوص ديناميكية

نصوص تتغير وفقاً للأحداث.

Signup and view all the flashcards

Study Notes

JavaScript Course

  • Course Title: JavaScript Application Development
  • Course Code: 3-66034103
  • Department: Department of Management Information Systems
  • Faculty: College of Business Administration
  • Instructors: Dr. Hesham Kamal, Dr. Many بنت ماجد اليامي
  • Learning Modules: JavaScript basics, JavaScript within HTML pages, Conditional Statements, Popup boxes,Events, Loops

Introduction to JavaScript

  • What is JavaScript? A scripting language used to add interactivity to HTML pages.
  • Is JavaScript the same as Java? No, they are different programming languages, with different designs and concepts. Java is a more complex and powerful language developed by Sun Microsystems, while JavaScript is a simpler language used for adding interactivity to HTML pages.
  • What can JavaScript do?
    • Add interactivity to HTML pages.
    • Create dynamic content within HTML pages.
    • Respond to user actions and events.
    • Communicate with web servers (though not covered in slides).
  • JavaScript history: Initially developed by Brendan Eich at Netscape, later standardized as ECMAScript, and integrated into various browsers from 1996.
  • Where to place JavaScript code in HTML: Within <script> tags; typically inside <head> or <body>.

JavaScript in HTML

  • <script> tag for embedding JavaScript: Uses type="text/javascript" attribute, placing code between opening and closing <script> tags.
  • document.write() for displaying content: This method writes content to the HTML page, inserting HTML tags directly.

Handling Older Browsers

  • Comment out JavaScript code for older browsers: Use <!-- and //--> tags to prevent display of JavaScript code in older browsers.

JavaScript Execution

  • Execution order: JavaScript code inside <head> is executed before the <body> loads, and code in <body> is executed as the page loads. Events trigger JavaScript execution.
  • Case sensitivity: JavaScript is case-sensitive, unlike HTML. Variable names, function names, and keywords must be written with correct capitalization.

JavaScript Statements

  • Structure of JavaScript statements: Simple statements, block statements (using curly braces {}), and comments.
  • Comments: Single-line comments start with //; multi-line comments start with /* and end with */.

JavaScript Variables & Operators

  • Variables: Used to store data (numerical, string, boolean, etc.). Variables and function/object names must follow particular naming conventions.
  • Variable declaration: Use the var keyword for declaring variables (though modern JS may use let or const).
  • Assignment: Assign values to variables using the assignment operator =.

JavaScript Conditional Statements

  • if...else: Executes different code based on a condition.
  • if…else if...else: Chooses one block of code from multiple conditional possibilities.

JavaScript Popup Boxes

  • alert(): Displays a message box with an "OK" button.
  • confirm(): Displays a message box with "OK" and "Cancel" buttons; returns true or false based on user click.
  • prompt(): Displays a message box with an input field to allow user to enter a value. Returns the entered value or null if the user clicks "Cancel".

JavaScript Events

  • Events: Trigger actions when something happens on a website; various events are associated with HTML elements.

JavaScript Loops

  • for loop: Used to execute a block of code repeatedly for a set number of times (e.g., to loop through an array).
  • while loop: Used to execute a block of code repeatedly as long as a given condition is true.

Studying That Suits You

Use AI to generate personalized quizzes and flashcards to suit your learning preferences.

Quiz Team

Related Documents

Description

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

More Like This

JavaScript Basics for Web Development
5 questions
Web Security and JavaScript Basics
5 questions

Web Security and JavaScript Basics

SelfDeterminationGyrolite8760 avatar
SelfDeterminationGyrolite8760
Use Quizgecko on...
Browser
Browser