0% found this document useful (0 votes)
5 views

Ass

مصطلح

Uploaded by

amoh93392
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views

Ass

مصطلح

Uploaded by

amoh93392
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 10

Assignment (3)

1. Choose the Correct Answer:


1) Three-tier architecture includes which of the following?

a) Three server layers

b) A client layer and two server layers

c) Two client layers and one server layer

d) Three client layers

2) JavaScript is designed for following purpose -

a) To Style HTML Pages

b) To Perform Server Side Scripting Operation

c) To add interactivity to HTML Pages.

d) To Execute Query Related to DB on Server

3) Which component of MVC architecture deals with the database?

a) View

b) Model

c) Controller

d) Storage

4) DOM stands for ………….……

e) document object model

f) document object memory

g) document oriented model

h) none of these

5) Which part of web development is responsible for handling data storage and retrieval?
a) Front-end development

b) Back-end development

c) Full-stack development

d) Middleware development

6) ASP.NET is a …….…………………

a) Client-Side technology

b) Server-side technology

c) Both

d) None of the above

7) What is Basic XML?

a) A hierarchical architecture of attributes, data, and tagged elements

b) All HTML tags compiled together

c) Table-format structure of rows and columns

d) Both (A) and (B)

e) a standard object model for XML.

8) What is the correct way of describing XML data?

a) XML uses a DTD to describe data

b) XML uses a description nodes to describe data

c) XML uses a XLS to describe data

d) XML uses a validator to describe data

9) XML-Schema

a) Replacement for DOM

b) Replacement for XML


c) Replacement for DTD

d) Replacement for HTML

10) Common gateway interface (CGI) is used to _______

a) generate executable files from web content by web server

b) generate web pages

c) stream videos

d) download media files

11) One Tier Architecture __________


a) The entire processing may take place at individual terminal.
b) The entire processing may take place at different terminal.
c) The entire processing may not take place at individual terminal.
d) none of these
12) What is a microservice?

a) A design used primarily in functional programming and object-oriented


programming

b) A small program that represents discrete logic that executes within a well-
defined boundary on dedicated hardware

c) A style of design for enterprise systems based on a loosely coupled component


architecture

d) A very small piece of code that never gets any bigger than 10 lines

13) What is the primary function of ASP.NET in web development?

a) To facilitate the creation of static HTML websites

b) To develop dynamic web pages, web applications, and web services

c) To provide database management tools

d) To enhance client-side scripting capabilities

14) A database server is responsible for which of the following?

a) Database storage
b) Data processing logic

c) Data presentation logic

d) All of the above.

15) A benefit of the three-tier architecture is which of the following?

a) New modules can be built to support specific business needs

b) Performance improves for compiled SQL statements

c) Results in a thinner client and database server

d) All of the above.

16) An application program interface (API) is which of the following?


a) The same thing as ODBC.
b) Middleware that does not provide access to a database.
c) Middleware that provides access to a database.
d) The same thing as JDBC.
17) A common use of JSON is to
a) dynamically manipulate an HTML document
b) provide access to a database.
c) read data from a web server, and display the data in a web page.
d) provide web forms controls that are used to create HTML components.

2. How to put a JavaScript into an HTML Page?

3. What are the differences between server-side scripting and client-side scripting?

4. What is the purpose of Java Script?

5. What do you mean by DOM Tree? Give an example.

6. What is JSON? Whether it is platform dependent?

7. Why Servlet is better than CGI?


8. Explain Model, View and Controller in Brief.

STUDENT NAME : Mohamed mosbah STUDENT CODE : C2101015


abdlbaky

SOLUTION

1) Three-tier architecture includes which of the following?

a) Three server layers

b) A client layer and two server layers

c) Two client layers and one server layer

d) Three client layers

2) JavaScript is designed for following purpose -

a) To Style HTML Pages

b) To Perform Server Side Scripting Operation

c) To add interactivity to HTML Pages.

d) To Execute Query Related to DB on Server

3) Which component of MVC architecture deals with the database?

a) View

b) Model

c) Controller

d) Storage

4) DOM stands for ………….……

e) document object model

f) document object memory


g) document oriented model

h) none of these

5) Which part of web development is responsible for handling data storage and retrieval?

a) Front-end development

b) Back-end development

c) Full-stack development

d) Middleware development

6) ASP.NET is a …….…………………

a) Client-Side technology

b) Server-side technology

c) Both

d) None of the above

7) What is Basic XML?

a) A hierarchical architecture of attributes, data, and tagged elements

b) All HTML tags compiled together

c) Table-format structure of rows and columns

d) Both (A) and (B)

e) a standard object model for XML.

8) What is the correct way of describing XML data?

a) XML uses a DTD to describe data

b) XML uses a description nodes to describe data

c) XML uses a XLS to describe data

d) XML uses a validator to describe data


9) XML-Schema

a) Replacement for DOM

b) Replacement for XML

c) Replacement for DTD

d) Replacement for HTML

10) Common gateway interface (CGI) is used to _______

a) generate executable files from web content by web server

b) generate web pages

c) stream videos

d) download media files

11) One Tier Architecture __________


a) The entire processing may take place at individual terminal.
b) The entire processing may take place at different terminal.
c) The entire processing may not take place at individual terminal.
d) none of these
12) What is a microservice?

a) A design used primarily in functional programming and object-oriented


programming

b) A small program that represents discrete logic that executes within a well-
defined boundary on dedicated hardware

c) A style of design for enterprise systems based on a loosely coupled component


architecture

d) A very small piece of code that never gets any bigger than 10 lines

13) What is the primary function of ASP.NET in web development?

a) To facilitate the creation of static HTML websites

b) To develop dynamic web pages, web applications, and web services

c) To provide database management tools


d) To enhance client-side scripting capabilities

14) A database server is responsible for which of the following?

a) Database storage

b) Data processing logic

c) Data presentation logic

d) All of the above.

15) A benefit of the three-tier architecture is which of the following?

a) New modules can be built to support specific business needs

b) Performance improves for compiled SQL statements

c) Results in a thinner client and database server

d) All of the above.

16) An application program interface (API) is which of the following?


a) The same thing as ODBC.
b) Middleware that does not provide access to a database.
c) Middleware that provides access to a database.
d) The same thing as JDBC.
17) A common use of JSON is to
a) dynamically manipulate an HTML document
b) provide access to a database.
c) read data from a web server, and display the data in a web page.
d) provide web forms controls that are used to create HTML components.

_________________________________________________________

2)
a) Inline JavaScript
b) External JavaScript

3)
a) Location of Execution
b) Languages Used
c) Interaction with the User
d) Performance
e) Security
f) Dependence on the Internet
g) Response Time
h) Code Visibility
___________________________________________________________

4)
Making websites interactive and dynamic
Validating user input on forms
Manipulating the DOM (Document Object Model)
Performing asynchronous operations (AJAX)
Building client-side web applications (using frameworks like React, Angular)
Improving user experience through animations and dynamic content

________________________________________________________________

5)
The DOM (Document Object Model) Tree represents the structure of an HTML or
XMLdocument in a hierarchical way, where each element, attribute, and piece of text is a node
in the tree. The DOM tree is a programming interface for web documents, which provides
a structured representation of the document as a tree of objects that can be accessed and
manipulated using JavaScript.

EX)
DOM Manipulation Example Using JavaScript:
document.querySelector("h1").textContent = "DOM Manipulated!";

__________________________________________________________________

6)
JSON (JavaScript Object Notation) is a lightweight, text-based data format used to
represent structured data based on JavaScript object syntax. It is primarily used to exchange
data between a server and a client in a human-readable and machine-readable format.

JSON is often used in web applications for transmitting data between a web server and a client,
especially in APIs (Application Programming Interfaces) or when fetching data from a server
without refreshing the entire page (AJAX).

________________________________________________________________________
7)

Servlets are considered a better choice than CGI for modern web applications because
they offer higher performance, better scalability, easier development, and more robust
management of resources. While CGI has been largely replaced by more efficient technologies
like servlets, it may still be useful for simple or legacy applications. However, Servlets are the
preferred approach for handling dynamic content in modern, large-scale web systems.

_________________________________________________________________________

8)

Model: Manages the data and business logic.

View: Handles the UI and presentation of data.

Controller: Manages the user input, updates the Model, and refreshes the View.

You might also like