Download as pdf or txt
Download as pdf or txt
You are on page 1of 3

Hands-on Exercise No.

4 Total Marks: 10
DigiSkills 2.0 Batch-03
WordPress Due Date: 12/01/2023

Instructions:

Please read the following instructions carefully before submitting this Hands-on Exercise:

• Use MS Word to prepare exercise solution.


• You may consult tutorials and videos if the concept is not clear.
• Your submitted exercise will not be considered/counted if:
▪ It is submitted after due date.
▪ It is not in the required format (.doc or .docx)
▪ It does not open, or file is corrupt.
▪ It is copied (partial or full) from any source (websites, forums, students, etc.)

Learning Outcome:

After completing this exercise, you shall be able to:

• Learn about PHP


• Create/Edit WordPress PHP files
• Learn about Conditional Statements in PHP
Problem Statement

You are required to perform the following tasks.

1. Create PHP file in WordPress Theme with name demo.php


2. Open demo.php and create a variable with name age.
3. Assign the number 18 to this variable age.
4. Apply the conditional statement (if else) and print the following outputs according to the
condition.
If age is greater than and equals to 18 then print: You are eligible for giving the vote.
If age is less than 18 then print: You are not eligible for giving the vote

Instructions:

• You can use the following websites for Free domain and hosting to complete the Hands-on
Exercise.

https://infinityfree.net
https://www.awardspace.com/
https://byet.host
https://www.cloudaccess.net
https://www.000webhost.com

• You can also use Localhost or any other WordPress hosting.


• You are required to submit MS word file (*.doc,*.docx) containing all the screenshots of the
above mentioned task as solution file

How to take a Screenshot:

• Press “PrtScn” button on your keyboard. Open “Paint” on your system and paste the image there.
Save the ‘Screenshot’ in your desired location.
• You can also Install a screenshot software, “Light Shot”. Press “PrtScn” button on your keyboard
to take the screenshot.

BEST OF LUCK ☺
How to submit solution file on LMS?

Please perform the following steps for submitting your solution using LMS:

1) Login to the LMS.

2) Click on the Exercises button within the My Activities section.

3) Click on the submit button to upload your Solution.

4) Keep in mind to upload your Solution in .doc or .docx format.

You might also like