Home arrow PHP arrow Page 2 - Developing a Short and Simple IQ Test Online Using PHP

Designing an IQ Grading System - PHP

If you are a school administrator wanting to have an IQ test online, then this tutorial is for you. It can be used not only in the field of academics, but in the instances where you need to draw user interest to your website. An IQ test is a popular feature to incorporate into your website, and will attract a large amount of web traffic over time.

  1. Developing a Short and Simple IQ Test Online Using PHP
  2. Designing an IQ Grading System
  3. The HTML Test Form
  4. PHP Script to Process
By: Codex-M
Rating: starstarstarstarstar / 12
January 14, 2009

print this article



I am not in the academics field, but those ten questions should quantitatively determine the IQ of the person. The challenge is how to rate it. Below are the ways I would rate those test questions:

Test Question number

Score if Correct (Mental Age)

1(elementary level)


2(elementary level)


3(elementary level)


4(secondary level)


5(secondary level)


6(secondary level)


7(tertiary level)


8(tertiary level)






Total Mental Age (Score)


Since IQ is defined as:

Mental Age/ Chronological Age x 100

It is very easy to score the test. It requires the user to enter their chronological age at the time they take the test. The result of their test determines their mental age (summation of their scores). Dividing those data and multiplying by 100 gives the IQ.

In the above table, each test question has corresponding mental age score. For example, a certain user only correctly answers question 1 to 6 and he is 30 years old at the time of the test. The IQ computation will be:

Mental age score (total of question 1 to 6) = 18

Chronological age = 30

IQ = (Mental Age/ Chronological Age) x 100 = (18/30) x 100 = 60

Likewise, if the age of the person is 28 and he is able to answer question 1 to 10. The IQ is around:

Mental age = 60

Chronological age= 28

IQ= (Mental Age/ Chronological Age) x 100 = (60/28) x 100 = 214

Disclaimer: This method is not guaranteed to fully measure the intellectual capacity of the person.

The Test questions

Test questions can vary depending on your choice. In this article I will illustrate 10 questions that will be used in the PHP programming. This is not guaranteed to be a perfect test, but it will roughly measure your intelligence.

Test question 1: What is the approximate shape of orange fruit, it starts with “r”?

Test question 2: What is the product of 5 and 3?

Test question 3: If I have 3 apples and 12 mangoes, how many fruits do I have?

Test question 4: -5 + (+9)-(-8) is how much?

Test question 5: The result of 2 to the power of 6 divided by eight squared is how much?

Test question 6: If I have a right triangle whose two shorter sides are 5 and 12 respectively, how long is the longest side?

Test question 7: What is the name of  a  popular TV news network with two “Ns” comprised of 3 letters as initials?

Test question 8: In 2008, John is 2 times older than Jerry. In  2040, Jerry will be 46 years old. Find John’s year of birth.

Test question 9: If you are using Excel, which function offers the most convenient and most popular approach for extracting data from other spreadsheets or workbooks without using the manual copy and paste method? This is a one word answer.

Test question 10. If a 65-year-old couple retires today, how much may they need today to cover their future health care cost? This answer is only a figure and does not include a dollar sign.

>>> More PHP Articles          >>> More By Codex-M

blog comments powered by Disqus
escort Bursa Bursa escort Antalya eskort


- Hackers Compromise PHP Sites to Launch Attac...
- Red Hat, Zend Form OpenShift PaaS Alliance
- PHP IDE News
- BCD, Zend Extend PHP Partnership
- PHP FAQ Highlight
- PHP Creator Didn't Set Out to Create a Langu...
- PHP Trends Revealed in Zend Study
- PHP: Best Methods for Running Scheduled Jobs
- PHP Array Functions: array_change_key_case
- PHP array_combine Function
- PHP array_chunk Function
- PHP Closures as View Helpers: Lazy-Loading F...
- Using PHP Closures as View Helpers
- PHP File and Operating System Program Execut...
- PHP: Effects of Wrapping Code in Class Const...

Developer Shed Affiliates


Dev Shed Tutorial Topics: