Zero & One، بنك الأسئلة

بنك أسئلة الوحدة 3: تطبيقات الويب

Web Applications

60 سؤال على نفس نقط بنك أسئلة الوزارة للترم الأول، بصياغة جديدة، ومع كل سؤال الإجابة الصح وشرحها. حاول تجاوب الأول، وبعدين افتح الإجابة.

حلّها كاختبار أو لعبة 3 أرواح في التطبيق

درس 3-1: الهيكل العام لتطبيقات الويب The Overall Structure of Web Applications

1. How many main tiers make up the structure of a web application in this lesson?

  1. Three
  2. Two
  3. One
  4. Seven
الإجابة

Three

تطبيق الويب مكوّن من 3 طبقات: frontend و backend و database.

2. Which tier shows the screens and takes in what the user types and clicks?

  1. Web server
  2. Frontend
  3. Backend
  4. Database
الإجابة

Frontend

عرض الشاشات واستقبال مدخلات المستخدم شغل الـ Frontend.

3. A video platform counts how many times each clip is watched and picks clips to suggest. Which tier does this work?

  1. Database
  2. Network
  3. Backend
  4. Frontend
الإجابة

Backend

حساب المشاهدات واختيار الفيديوهات المقترحة معالجة على السيرفر = Backend.

4. Where does a social network keep its posts, follow relationships, and messages?

  1. On the screen
  2. In the backend
  3. In the browser
  4. In the database
الإجابة

In the database

تخزين المنشورات وعلاقات المتابعة والرسايل شغل الـ Database.

5. In an online store, which tier sends the payment request and deals with its result?

  1. Backend
  2. Frontend
  3. Database
  4. User's browser
الإجابة

Backend

تنفيذ الدفع والتعامل مع نتيجته معالجة = Backend.

6. What is the main job of the database tier?

  1. Displaying the screens
  2. Storing and retrieving data
  3. Showing pages and forms
  4. Receiving user clicks
الإجابة

Storing and retrieving data

الـ Database بتنظّم وتخزّن البيانات وترجّعها لما الـ backend يطلبها.

7. On a video site, a user's watch history and account details are kept in which tier?

  1. Backend
  2. Search screen
  3. Database
  4. Frontend
الإجابة

Database

سجل المشاهدة وبيانات المستخدم بيانات متخزنة = Database.

8. Which tier decides who should receive a post and when to push a notification?

  1. Frontend
  2. Database
  3. Timeline
  4. Backend
الإجابة

Backend

تحديد جمهور البوست والتحكم في الإشعارات قرارات = Backend.

9. What does the frontend do in a web application?

  1. Shows content and receives the user's input
  2. Runs the hidden processing that happens on the server
  3. Stores and manages the data
  4. Checks login details on the server
الإجابة

Shows content and receives the user's input

الـ Frontend بيعرض المحتوى وبيستقبل مدخلات المستخدم على المتصفح.

10. A shopper searches for headphones. Which tier passes the search on to the database?

  1. Search box
  2. Backend
  3. Frontend
  4. The database itself
الإجابة

Backend

الـ frontend بيبعت الكلمات للـ Backend، وهو اللي بيدوّر في الـ database.

11. Which of these is data an online shop would store in its database?

  1. The login check process
  2. The checkout button color
  3. Customers' order records
  4. The design of the search box
الإجابة

Customers' order records

سجل الطلبات بيانات بتتخزن في الـ Database؛ شكل الشاشة frontend والتحقق backend.

12. What is the core idea behind the overall structure of a web application?

  1. The whole application is one tier that runs in the browser
  2. Each tier works alone without the others
  3. The backend runs everything with no database
  4. Three tiers work together to respond to the user
الإجابة

Three tiers work together to respond to the user

الفكرة إن الـ frontend والـ backend والـ database بيتعاونوا مع بعض.

13. Which of these is a web application?

  1. A maps website opened in a browser
  2. A video player on the PC
  3. A calculator built into the desktop
  4. A photo editor installed from a disc
الإجابة

A maps website opened in a browser

تطبيق الويب بيتفتح من المتصفح من غير تنزيل برنامج، زي موقع الخرايط.

14. Which tier of a video-sharing site holds the uploaded videos and the users' data?

  1. Video player
  2. Database
  3. Frontend
  4. Backend
الإجابة

Database

الفيديوهات وبيانات المستخدمين بتتخزن في الـ Database.

15. Which task is done by the backend of a web app?

  1. Drawing the search box on the screen
  2. Keeping the order history on disk
  3. Checking the user's login details
  4. Showing the product pages
الإجابة

Checking the user's login details

التحقق من تسجيل الدخول معالجة على السيرفر = Backend.

16. Which statement about the three tiers of a web application is correct?

  1. Each tier works separately with no link to the others
  2. Only the browser is needed to run the application
  3. The database alone is enough to run the application
  4. They cooperate, each doing its own part of the work
الإجابة

They cooperate, each doing its own part of the work

كل طبقة ليها دور، والتلاتة بيشتغلوا مع بعض علشان التطبيق يشتغل.

17. Which phrase best sums up the three-tier architecture?

  1. Frontend, backend, and database working together
  2. Frontend and browser working without a server
  3. One database that shows pages to users
  4. A backend that works with no frontend or data
الإجابة

Frontend, backend, and database working together

الـ three-tier architecture = frontend + backend + database بيتعاونوا.

18. On a video-sharing service, uploaded clips are saved for later viewing. Which tier saves them?

  1. Browser cache
  2. Database
  3. Frontend
  4. Backend
الإجابة

Database

حفظ الفيديوهات علشان تتشاف بعدين تخزين = Database.

19. Which of these programs is used as a web application?

  1. The built-in desktop calculator
  2. An offline image editing program
  3. Gmail opened in a browser
  4. A media player installed on a laptop
الإجابة

Gmail opened in a browser

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

20. When a user signs in, which tier compares the entered password with the stored account data?

  1. Frontend
  2. Database
  3. Search screen
  4. Backend
الإجابة

Backend

الـ database بتخزن البيانات بس، لكن المقارنة والتحقق شغل الـ Backend.

شرح درس الهيكل العام لتطبيقات الويب

درس 3-2: طرق الاتصال في تطبيقات الويب Web Application Communication Methods

1. In the client-server model, what is the client?

  1. The program or device that sends requests
  2. The computer that receives and processes requests
  3. The database that stores the data
  4. The protocol that carries the data
الإجابة

The program or device that sends requests

الـ Client هو اللي بيطلب، زي المتصفح أو تطبيق الموبايل.

2. A user types an ID and password and presses Log in. Which HTTP method should send them?

  1. HTML
  2. POST
  3. GET
  4. JSON
الإجابة

POST

إرسال بيانات للسيرفر زي تسجيل الدخول = POST.

3. The server answers a request with status code 200. What happened?

  1. The page is missing
  2. Access was refused
  3. The request succeeded
  4. The server crashed
الإجابة

The request succeeded

كود 200 معناه إن الطلب نجح.

4. Status code 404 tells the client that…

  1. the request was successful
  2. the server failed while processing
  3. the connection is now encrypted
  4. the requested page could not be found
الإجابة

the requested page could not be found

كود 404 معناه إن الصفحة المطلوبة مش موجودة.

5. What is the key difference between HTTP and HTTPS?

  1. HTTPS encrypts the data with TLS
  2. HTTP is always the faster one
  3. HTTPS cannot be used for POST requests
  4. HTTP sends data only as JSON
الإجابة

HTTPS encrypts the data with TLS

HTTPS = HTTP + تشفير TLS، فطرف تالت صعب يقرا المحتوى.

6. What is JSON mainly used for in web applications?

  1. Choosing the status code
  2. Writing data that programs exchange
  3. Designing the layout and colors of the page
  4. Encrypting the connection
الإجابة

Writing data that programs exchange

JSON صيغة لكتابة البيانات اللي بتتبادل، سهلة على الإنسان والكمبيوتر.

7. Which description fits an API?

  1. A protocol that encrypts the connection
  2. A number showing a request's result
  3. A way for separate programs to exchange data
  4. A database that keeps users' records
الإجابة

A way for separate programs to exchange data

الـ API طريقة لتبادل البيانات بين برامج مختلفة.

8. An app wants to show the latest news items stored on the server. Which method fetches them?

  1. POST
  2. 500
  3. HTTPS
  4. GET
الإجابة

GET

استرجاع بيانات من السيرفر علشان تتعرض = GET.

9. What does the client do in a web application?

  1. Sends requests to get data
  2. Processes requests on the server
  3. Stores data in the database
  4. Decides who sees posts
الإجابة

Sends requests to get data

الـ client بيبعت request والسيرفر بيرد بـ response.

10. Which HTTP method is normally used to ask the server for a page or a file?

  1. JSON
  2. GET
  3. POST
  4. API
الإجابة

GET

طلب صفحة أو ملف من السيرفر استرجاع = GET.

11. Which format is commonly used to exchange data between applications?

  1. CSS
  2. SQL
  3. JSON
  4. HTML
الإجابة

JSON

البيانات بين البرامج بتتكتب غالباً بصيغة JSON.

12. A student follows an old link to a page the site has removed. Which status code does the server return?

  1. 200
  2. 500
  3. 302
  4. 404
الإجابة

404

الصفحة اتشالت يعني مش موجودة = 404.

13. Which status code shows that a request was handled successfully?

  1. 200
  2. 404
  3. 500
  4. 302
الإجابة

200

200 = نجاح.

14. A contact form sends the visitor's name and message to the server. Which method fits?

  1. JSON
  2. POST
  3. GET
  4. API
الإجابة

POST

إرسال بيانات فورم للسيرفر = POST.

15. Which lets two different applications talk to each other and share data?

  1. CSS
  2. SQL
  3. API
  4. HTML
الإجابة

API

الـ API هو اللي بيخلّي البرامج المختلفة تتبادل البيانات.

16. Which of these is a data format used to exchange information between programs?

  1. PHP
  2. Java
  3. CSS
  4. JSON
الإجابة

JSON

JSON صيغة بيانات؛ PHP وJava لغات برمجة وCSS للشكل.

17. Which status code means something went wrong inside the server?

  1. 500
  2. 200
  3. 404
  4. 302
الإجابة

500

500 = خطأ في السيرفر.

18. Which technique is typically used when the browser asks for a web page or search results?

  1. JSON
  2. GET
  3. POST
  4. API
الإجابة

GET

عرض صفحة أو نتائج بحث استرجاع بيانات = GET.

19. The text {"name": "Mona", "marks": [90, 85]} is written in which format?

  1. CSS
  2. SQL
  3. JSON
  4. HTML
الإجابة

JSON

دي بيانات مكتوبة بصيغة JSON (مفتاح وقيمة وقوايم).

20. Which protocol protects client-server traffic so outsiders cannot eavesdrop on it?

  1. HTTP
  2. API
  3. JSON
  4. HTTPS
الإجابة

HTTPS

HTTPS بيشفّر الاتصال بـ TLS فاحتمال التجسس يقل.

شرح درس طرق الاتصال في تطبيقات الويب

درس 3-3: أساسيات تقنيات الـ Frontend Fundamentals of Frontend Technology

1. What is HTML responsible for on a web page?

  1. The basic structure of the page
  2. The colors and fonts of the page
  3. The page's interactive behavior
  4. Speeding up the page's loading
الإجابة

The basic structure of the page

HTML = الهيكل، زي إطار المبنى.

2. Which of these is NOT one of the semantic HTML tags?

  1. <footer>
  2. <contact>
  3. <header>
  4. <main>
الإجابة

<contact>

الـ semantic tags اللي درسناها: header وnav وmain وfooter، لكن <contact> مش منهم.

3. What is CSS used for?

  1. Adding interaction to buttons
  2. Managing the site's database
  3. Styling how the page looks
  4. Building the structure
الإجابة

Styling how the page looks

CSS = الشكل (ألوان، تخطيط، خطوط)، زي التشطيب.

4. What does JavaScript add to a web page?

  1. Headings and text
  2. Colors and fonts
  3. Semantic tags
  4. Interactive behavior
الإجابة

Interactive behavior

JavaScript = السلوك والتفاعل، زي الكهرباء والسباكة.

5. The <header> tag is used to mark…

  1. the top part of the page
  2. the main content
  3. the navigation links
  4. the bottom part of the page
الإجابة

the top part of the page

<header> لأعلى الصفحة.

6. Which describes responsive design?

  1. Hiding less important content
  2. A layout that adapts to each screen size
  3. A page built with JavaScript only
  4. A faster and larger database
الإجابة

A layout that adapts to each screen size

الـ Responsive design بيظبط التخطيط تلقائياً حسب حجم الشاشة.

7. What is React mainly used for?

  1. Encrypting the connection to servers
  2. Writing the styles of the page
  3. Building user interfaces from components
  4. Managing the server's databases
الإجابة

Building user interfaces from components

React من Meta لبناء الواجهات وبيحدّث جزء من الشاشة بكفاءة.

8. The Next.js framework is built on top of…

  1. Vue
  2. HTML
  3. SQL
  4. React
الإجابة

React

Next.js فيه مميزات React وزيادة آليات لتسريع عرض الصفحات.

9. Which technology sets the look and styling of a web page?

  1. CSS
  2. HTML
  3. JavaScript
  4. JSON
الإجابة

CSS

الشكل والتنسيق = CSS.

10. Which tag wraps the main content section of a page?

  1. <nav>
  2. <main>
  3. <header>
  4. <footer>
الإجابة

<main>

<main> للمحتوى الأساسي.

11. A school site rearranges its columns into one column on phones. What is this called?

  1. Server speed-up
  2. JavaScript interaction
  3. Responsive design
  4. Semantic HTML
الإجابة

Responsive design

التخطيط بيتغيّر حسب حجم الشاشة = Responsive design.

12. Which of these is a JavaScript library for building user interfaces?

  1. HTML
  2. Python
  3. SQL
  4. React
الإجابة

React

React لبناء واجهات المستخدم؛ الباقي مش مكتبات JavaScript.

13. Which technology builds the basic structure of a page?

  1. HTML
  2. CSS
  3. JavaScript
  4. SQL
الإجابة

HTML

الهيكل الأساسي = HTML.

14. What is the <nav> tag used for?

  1. The footer at the bottom
  2. Links for moving around the site
  3. The main content of the page
  4. The main heading at the top
الإجابة

Links for moving around the site

<nav> لجزء التنقل في الموقع.

15. What is the main advantage of responsive design?

  1. It adds interaction with JavaScript
  2. It improves search engine results
  3. It fits different screen sizes
  4. It makes the server faster
الإجابة

It fits different screen sizes

الميزة إن الصفحة تتكيف مع أي حجم شاشة؛ تحسين البحث ده من semantic HTML.

16. Which framework is built on React and adds ways to display pages faster?

  1. Vue
  2. JSON
  3. Python
  4. Next.js
الإجابة

Next.js

Next.js مبني على مميزات React وبيسرّع عرض الصفحات.

17. Which technology makes a page respond when a user clicks a button?

  1. JavaScript
  2. HTML
  3. CSS
  4. Semantic HTML
الإجابة

JavaScript

استجابة الأزرار تفاعل = JavaScript.

18. What is the <footer> tag used for?

  1. Links to other site sections
  2. The bottom part of the page
  3. The main content area
  4. The main heading of the page
الإجابة

The bottom part of the page

<footer> لأسفل الصفحة.

19. In responsive design, what does mobile-first mean?

  1. Adding interaction with JavaScript
  2. Making the server respond faster
  3. Designing for small phone screens first
  4. Designing for desktop screens first
الإجابة

Designing for small phone screens first

mobile-first يعني نصمم للشاشات الصغيرة الأول.

20. Which framework lets you adopt it gradually, step by step?

  1. React
  2. Next.js
  3. HTML
  4. Vue
الإجابة

Vue

Vue هيكله بسيط وتقدر تبني بيه بشكل تدريجي.

شرح درس أساسيات تقنيات الـ Frontend

بنك أسئلة الوحدة 1: تكنولوجيا المعلومات والمجتمعبنك أسئلة الوحدة 2: الأمن السيبرانيبنك أسئلة الوحدة 4: تصميم الويب والوسائط

تطبيق تعليمي مستقل وغير تابع لوزارة التربية والتعليم. الكتاب المدرسي هو المرجع الأساسي. سياسة الخصوصية