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

Web Programming 2

The document provides instructions for setting degree examination questions for the School of Engineering Science and Technology at the National Polytechnic University Institute in Cameroon. It includes sections for multiple-choice questions, short answer questions, and matching questions related to HTML, CSS, JavaScript, and web development concepts. The examination is affiliated with the University of Buea and is intended for the first semester of the 2025/2026 academic session.

Uploaded by

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

Web Programming 2

The document provides instructions for setting degree examination questions for the School of Engineering Science and Technology at the National Polytechnic University Institute in Cameroon. It includes sections for multiple-choice questions, short answer questions, and matching questions related to HTML, CSS, JavaScript, and web development concepts. The examination is affiliated with the University of Buea and is intended for the first semester of the 2025/2026 academic session.

Uploaded by

Achenda Mayeh
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

REPUBLIC OF REPUBLIQUE DU

CAMEROON CAMEROUN
PEACE – WORK PAIX – TRAVAIL –
FATHERLAND PATRIE
MINISTRY OF HIGHER MINISTERE DE
EDUCATION L’ENSEIGNEMENT
SUPERIEUR
NATIONAL POLYTECHNIC UNIVERSITY INSTITUTE
Institution’s Approval No. 002/0074/MINESUP of 13th August 2002
Mile 7 Nkwen, P.O. Box 1136, Mankon, Bamenda, North West Region, Cameroon
Tel: (237) 683 77 42 72 / 677 94 81 18 / 677 06 89 60
Email: info@[Link] Website: [Link]
SCHOOL OF ENGINEERING SCIENCE AND TECHNOLOGY
Instructions for setting Degree Examination Questions mentored by the University of Buea
1. Use the correct letter head

NATIONAL POLYTECHNIC UNIVERSITY INSTITUTE BAMENDA


IN AFFILIATION WITH THE UNIVERSITY OF BUEA
FIRST SEMESTER EXAMINATION
Session: 2025/2026
School: Engineering Science and Technology
Department: Date:
Course Code: Instructor:
Course Title: Time:
Credit Value: Hall: Amphi 1000
Duration:
Instruction(s):

Section A: Multiple Choice (20 marks)


Instructions: Choose the correct answer for each question. Each question carries 1 mark.
1. What is the purpose of the <header> tag in HTML?
 a) To define the main content of a page
 b) To create a footer for the document
 c) To introduce the top section of a page or article
 d) To embed multimedia

2. Which CSS property is used to control the font size of text?


 a) font-style
 b) font-size
 c) text-size
 d) text-style
Page 1 of 6
3. What does CSS stand for?
 a) Creative Style Sheets
 b) Cascading Style Sheets
 c) Computer Style Sheets
 d) Custom Style Sheets

4. Which JavaScript function is used to print content to the console?


 a) [Link]()
 b) print()
 c) display()
 d) [Link]()

5. What is the purpose of the <footer> tag in HTML?


 a) To define the main content of a page
 b) To create a header for the document
 c) To introduce the bottom section of a page or article
 d) To embed multimedia

6. Which of the following is a front-end framework?


 a) [Link]
 b) Django
 c) React
 d) Laravel

7. What does the display: none CSS property do?


 a) Hides an element and removes it from the document flow
 b) Makes an element invisible but retains its space
 c) Changes the element’s color
 d) Adds a border to the element

8. Which HTML tag is used to create an ordered list?


 a) <ul>
 b) <ol>
 c) <li>
 d) <list>

9. What is the purpose of the localStorage object in JavaScript?


 a) To store data temporarily during a session
 b) To store data permanently in the user’s browser
 c) To send data to a server
 d) To create animations

10. Which of the following is NOT a valid CSS selector?

Page 2 of 6
 a) #id
 b) .class
 c) element > element
 d) @element

11. What is the purpose of the <article> tag in HTML?


 a) To define a section of navigation links
 b) To represent a self-contained composition in a document
 c) To embed multimedia
 d) To create a footer

12. Which JavaScript method is used to add a new element to the end of an array?
 a) push()
 b) pop()
 c) shift()
 d) unshift()

13. What does the border-radius CSS property do?


 a) Adds a border to an element
 b) Rounds the corners of an element
 c) Changes the border color
 d) Adds space around an element

14. Which of the following is a valid way to include JavaScript in an HTML file?
 a) <javascript src="[Link]">
 b) <script src="[Link]">
 c) <js src="[Link]">
 d) <link src="[Link]">

15. What is the purpose of the <nav> tag in HTML?


 a) To define the main content of a page
 b) To create a navigation menu
 c) To embed multimedia
 d) To define a footer

16. Which CSS property is used to align text horizontally?


 a) text-align
 b) align-text
 c) horizontal-align
 d) text-position

Page 3 of 6
17. What is the output of the following JavaScript code?
[Link](5 + "5");
 a) 10
 b) 55
 c) Error
 d) "55"

18. Which of the following is NOT a valid HTTP status code?


 a) 200
 b) 404
 c) 500
 d) 600

19. What is the purpose of the position: fixed CSS property?


 a) To position an element relative to its normal position
 b) To position an element relative to the viewport
 c) To hide an element
 d) To add a border to an element

20. Which of the following is NOT a semantic HTML tag?


 a) <header>
 b) <div>
 c) <section>
 d) <footer>

Section B: Answer All Questions (30 marks)


Answer the following questions in 6-10 sentences each. Each question carries 4 marks.
1. Explain the difference between inline, block, and inline-block elements in CSS.
2. Describe the role of the <script> tag in HTML.
3. What is the purpose of the fetch() API in JavaScript? Provide an example.
4. How does CSS Grid differ from Flexbox?
5. What are the advantages of using a CDN (Content Delivery Network) for web assets?
6. Explain the concept of 'event bubbling' in JavaScript.
7. What is the purpose of the async and defer attributes in the <script> tag?

Section C: Matching Questions (20 marks)


Match the terms in Column A with their descriptions in Column B.
Page 4 of 6
Set 1: Match the following HTML/CSS terms with their descriptions.
Column A Column B

1. <section> a) Used to define a container for metadata

2. opacity b) A block-level container for content

3. <meta> c) Controls the transparency of an element

4. flex-wrap d) Allows flex items to wrap onto multiple lines

5. em e) A relative unit of font size

Set 2: Match the following JavaScript/PHP terms with their descriptions.


Column A Column B

1. [Link]() a) Converts a JavaScript object to a JSON string

2. session_start() b) Parses a JSON string into a JavaScript object

3. [Link]() c) Starts a PHP session

4. addEventListener() d) Attaches an event handler to an element

5. include() e) Includes and evaluates a PHP file

Set 3: Match the following Web Development Terms with their Descriptions.

Column A Column B

1. <canvas> a) Used to create scalable vector graphics

2. viewport b) A container for drawing graphics

3. <svg> c) Controls the layout on mobile devices

d) A relative unit based on the root font


4. rem
size

5. transition e) Animates changes in CSS properties

Page 5 of 6
Set 4: Match the following Server-Side and Database Terms with their Descriptions.

Column A Column B

1. PDO a) A lightweight data interchange format

2. JSON b) A PHP extension for database access

3. Prepared Statements c) Protects against SQL injection

4. REST d) An architectural style for APIs

5. ORM e) Maps database tables to objects

Page 6 of 6

You might also like