You are on page 1of 1

.

PHP Script

1. Create a simple web application that converts decimal into binary, octal,
hexadecimal using functions and arrays. Reminder: Do not use built in functions
for the conversion.

Enter decimal number 8 9 10


Binary Octal Hexadecimal
x
8=0100
9=0101
10=1010

4. Modify the quiz application in our demo, this time create a 10-point quiz using
a multidimensional array with the use of HTML elements (HTML Forms +
Bootsrap5). Let user type the name of the student.

To check the answers, you must provide an array of answer key and it must
check the answers of the user. Use function to check for the correct answers.

Name Mike

1. Question1
O option1 O option2 O option3 O option4

…..

10. Question10
O option1 O option2 O option3 O option4

Errors:

Question#2
Question#3
Question#4

Congratulations Mike, you got 7/10!

You might also like