wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

WEB-SYSTEM AND TECHNOLOGY 2 Preliminary Examination

Total questions: 40

Worksheet time: 40mins

Name
Class
Date
1.

A static website is mainly built using:

a)

PHP only

b)

HTML & CSS only

c)

PHP and MySQL

d)

JavaScript frameworks

2.

A dynamic website changes content based on:

a)

Browser version

b)

User interaction or data

c)

Internet speed

d)

Operating system

3.

PHP stands for:

a)

Personal Home Page

b)

Pre Hyper Program

c)

Hypertext Preprocessor

d)

PHP Hyper Program

4.

PHP is a __________ scripting language.

a)

Client-side

b)

Server-side

c)

Hybrid

d)

Local-only

5.

MySQL is a type of:

a)

Programming language

b)

Operating system

c)

Relational database management system

d)

Web browser

6.

Which example is a dynamic website?

a)

Printed PDF

b)

Resume website

c)

Facebook

d)

A JPEG image

7.

PHP is usually embedded inside:

a)

SQL

b)

HTML

c)

CSS

d)

Java

8.

MySQL stores data using:

a)

XML files

b)

SQL queries

c)

JavaScript

d)

HTML tags

9.

Which part of the web architecture runs PHP code?

a)

Browser

b)

Server

c)

CSS engine

d)

URL parser

10.

WordPress is an example of:

a)

Static page generator

b)

CMS using PHP

c)

Photo editor

d)

Desktop application

11.

The combination to create dynamic websites is:

a)

HTML + CSS

b)

PHP + JavaScript

c)

HTML + CSS + PHP + MySQL

d)

HTML + CSS + SQL

12.

The browser receives output from PHP as:

a)

JSON only

b)

Raw SQL

c)

HTML

d)

PHP code

13.

XAMPP includes MySQL and:

a)

Safari

b)

Photoshop

c)

Apache

d)

Firefox

14.

The default directory for XAMPP projects is:

a)

C:\xampp\server\

b)

C:\xampp\htdocs\

c)

C:\xampp\public\

d)

C:\xampp\php\

15.

A requirement to run PHP locally is:

a)

Internet connection

b)

Web server + PHP + MySQL

c)

Microsoft Office

d)

Android Studio

16.

An example of stored data in MySQL:

a)

Images only

b)

Blog posts

c)

CSS styles

d)

Browser settings

17.

The purpose of a local server is to:

a)

Host on the internet

b)

Execute PHP scripts

c)

Store cookies

d)

Load CSS faster

18.

XAMPP works on:

a)

Windows only

b)

Linux only

c)

macOS only

d)

Windows, Linux, macOS

19.

Docker is used for:

a)

Editing images

b)

Running containerized environments

c)

Writing CSS

d)

Uploading videos

20.

To open your local server in the browser, you type:

a)

http://home

b)

http://server

c)

http://localhost

d)

http://phpserver

21.

PHP is mainly used for:

a)

Styling pages

b)

Making interactive CSS

c)

Server-side logic

d)

Creating fonts

22.

MySQL is described as:

a)

Closed-source

b)

Open-source

c)

Paid subscription

d)

Only for Linux

23.

To create your first PHP script, you must:

a)

Start Apache and MySQL

b)

Install MS Word

c)

Open Photoshop

d)

Install a GPU

24.

A user visits profile.php. What happens first?

a)

MySQL sends data directly to the browser

b)

The server sends the request to the PHP engine

c)

The HTML file runs automatically

d)

The browser connects to MySQL

25.

You want to store product catalogs. Which technology handles this?

a)

CSS

b)

HTML

c)

MySQL

d)

PHP alone

26.

You need to process form input and store it in a database. Which pair is needed?

a)

PHP + CSS

b)

PHP + MySQL

c)

HTML + CSS

d)

HTML + JavaScript

27.

You created a folder named mywebsite for Docker. What will you run to start the server?

a)

docker build php

b)

docker compose up –d

c)

docker run apache localhost

d)

php install –run

28.

A student wants to build an eCommerce system with user accounts. What should they use?

a)

Pure HTML

b)

HTML + CSS

c)

PHP + MySQL

d)

Illustrator

29.

You want to test a PHP file locally. The correct URL is:

a)

http://localhost/filename.php

b)

file://filename.php

c)

https://php.com

d)

http://server.local

30.

To display “Hello World” using PHP in xampp, you must place the file in:

a)

C:\xampp\data\

b)

C:\xampp\htdocs\

c)

C:\xampp\mysql\

d)

C:\xampp\public_html\

31.

You must stop and start services manually in:

a)

Docker Desktop

b)

Windows Command Prompt

c)

XAMPP Control Panel

d)

MySQL Workbench

32.

A PHP script needs to read stored user accounts. What does it need to send?

a)

An image request

b)

A CSS selector

c)

A SQL query

d)

A Java class

33.

You develop a CMS. Which combination is essential?

a)

PHP + MySQL

b)

JavaFX + HTML

c)

XML + CSS

d)

Python + C

34.

Your dynamic website must show personalized dashboards based on user login data. Which best explains how PHP and MySQL work together?

a)

PHP styles the page; MySQL sends images

b)

PHP queries MySQL, processes results, and outputs personalized HTML

c)

MySQL loads HTML templates

d)

PHP rewrites the database directly into CSS

35.

You are designing a multi-user system. What workflow ensures dynamic and updated data on every request?

a)

Store data in HTML tables

b)

Let MySQL store data and let PHP fetch data upon user request

c)

Use only static CSS files

36.

You want to migrate your development from XAMPP to Docker for better consistency. What is the most accurate reasoning?

a)

Docker websites load faster

b)

Docker containers ensure consistent environments across machines

c)

Docker removes the need for Apache

d)

Docker writes PHP code automatically

37.

A web developer wants to scale a PHP application to many users and ensure portability. What setup helps achieve this?

a)

Run everything manually in XAMPP

b)

Use Docker containers for PHP, MySQL, and the web server

c)

Store everything in one PHP file

d)

Use only HTML and CSS files

38.

You are tasked to create a dynamic website with login, content management, and user-specific dashboards. Which architecture blueprint best fits the requirements?

a)

HTML-only pages

b)

HTML + CSS + PHP + MySQL, running on Apache/NGINX

c)

JavaScript + Photoshop

d)

Local files with no database

39.

Which file extension is used for PHP scripts?

a)

.js

b)

.html

c)

.php

d)

.css

40.

What is the primary function of MySQL in a web application?

a)

Designing web pages

b)

Storing and managing data

c)

Rendering images

d)

Styling content