0% found this document useful (0 votes)
18 views6 pages

Assignment 1 Cs214. B226556a

The document discusses the differences between SQL and NoSQL databases, highlighting their structures, use cases, and examples. It also covers the roles of HTML, CSS, and JavaScript in web development, emphasizing their importance in creating responsive and interactive websites. Additionally, it addresses the significance of semantic markup and best practices in HTML, along with examples of complex web applications that utilize these technologies effectively.

Uploaded by

divinechitumba67
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
18 views6 pages

Assignment 1 Cs214. B226556a

The document discusses the differences between SQL and NoSQL databases, highlighting their structures, use cases, and examples. It also covers the roles of HTML, CSS, and JavaScript in web development, emphasizing their importance in creating responsive and interactive websites. Additionally, it addresses the significance of semantic markup and best practices in HTML, along with examples of complex web applications that utilize these technologies effectively.

Uploaded by

divinechitumba67
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

GENGO BLESSING M

B226556A
BScEdHCSc
CS214: INTERNET AND WEB DESIGNING
ASSIGNMENT 1
2:2

[email protected]

+263773790748
Question 1

i. Explain the differences between SQL and NoSQL databases. Provide examples of
scenarios where each type is more suitable for web development. (10)

SQL NO-SQL
Relational database management system Non-relational database management system

Structured data organized into tables of rows and Data stored in flexible instructed formats
columns

Data manipulated and retrieval No-predefined schema or relationship between


data and element.

Support (ACID) Scalable and flexible, can handle large volume of


• Atomicity unrestricted Data.
• Consistence
• Isolation
• durability

Examples of programs related includes. Examples of programs related includes.

• Online banking • Social media data


• Inventory management system • Website analytic
• Enrollment management system • Real time data feeds

ii. Write an SQL query to retrieve all students from a table named "Students" who
have paid over $600. (5)

SELECT*

FROM students

WHERE payment >600


iii. Create an SQL query to calculate the total weight shipped for each order from a
table named "Orders" that contains columns OrderID, ProductID, and Weight. (5)

SELECT* order_Id

Sum(weight) As TotalWeight

FROM orders

GROUP BY order_Id

Question 2

i. Analyze the role of HTML, CSS, and JavaScript in creating modern, responsive,
and interactive websites. (12)

• HTML is a foundation of all Web pages; it is the markup language that


defines the structure and content of a web page. HTML elements are used to
create headings, paragraphs, list, and other elements on web.
• CSS is used to style web pages, it defines appearance of pages including font
size, coloring and layout, CSS can be used to create complex and visual
appealing web pages,
• JavaScript is a programming language that enable designer to add interactive
to web pages. It can be used to create forms, validate user input and perform
tasks. JavaScript is an essential tool for web developers who wants to create
a dynamic and engaging web pages.
• The development of these web technology leads to increase in number of
websites on internet. It also changes the way in which business advertise
and market. Internet continuously envelope as it transforms the way we
learn and live

ii. Discuss the importance of semantic markup, accessibility, and best practices in
HTML. (6)
• Improve information structure to screan readers and assistive technologies
rely on semantic markup to understand structure and relationship between
content and elements.
• Enhanced context, sematic markup provides context to content elements,
allowing user to identify purpose of each element
• Understand the content and structure of web pages, improving search
engine optmization.
• Developers write more readable and scalable code. Example <header>
<footer> <main> <article><p>

iii. Explain how CSS can be used for styling and layout, and how JavaScript enhances
user interactivity and functionality. (6)

• CSS (Cascading Style Sheets) is a language used to style the appearance of web pages. It
can be used to control the fonts, colors, backgrounds, and layout of a page. CSS is
essential for creating visually appealing and usable web pages.

• CSS can be used to style the text, links, and other elements on a web page. You can use
CSS to change the font, size, color, and other properties of text. You can also use CSS to
change the appearance of links, such as the color, underline, and hover state.

• CSS can be used to control the layout of a web page. You can use CSS to create columns,
rows, and other layout elements. You can also use CSS to position elements on a page,
such as the header, footer, and sidebar.

• JavaScript is a programming language that can be used to add interactivity and


functionality to web pages. JavaScript can be used to create dynamic effects, such as
menus, pop-ups, and animations. JavaScript can also be used to validate form input,
handle user events, and communicate with the server.

• JavaScript can be used to make web pages more interactive for users. For example,
JavaScript can be used to create menus that expand and collapse, pop-ups that appear
when a user hovers over an element, and animations that add visual interest to a page.

• JavaScript can be used to add functionality to web pages that would not be possible with
HTML and CSS alone. For example, JavaScript can be used to validate form input, handle
user events, and communicate with the server. JavaScript can also be used to create web
applications, which are interactive programs that run in a web browser.
Provide examples of complex web applications that utilize these technologies
effectively. (6)

• Social media platforms for example Facebook.com and Twitter.com


• E- commerce example Amazon.com
• E-learning for example Cousera
• Probox
• GitHub
• Google maps
• Netflix

You might also like