Professional Documents
Culture Documents
ENGINEERING
Project Report On
Lovel Rishi
1PI07ME046
Department of Mechanical Engineering
Project Guides:
Dr. TR SEETHARAM
CERTIFICATE
Guides:
Dr. TR Seetharam Prof. V Krishna Dr. K
Narasimha Murthy
Professor and Head of the Department
ABSTRACT
ACKNOWLEDGEMENT
Ashish Gupta
(1PI07IS021 )
TABLE OF CONTENTS
CHAPTER NO TITLE
PAGE NO.
1. Introduction
1
2. Literature Survey
2
3. Modules
4
4. Testing
9
5. Conclusion
14
6. References
15
MindTwister
1. Introduction
2. Literature Survey
Assuming that children all follow the same pattern of development but
develop at different rates, concept of mental age was created, whereby,
for example, a child of any age who scored as well as an average twelve-
year-old was said to have a mental age of twelve. Intelligence tests today
no longer use the IQ formula. Instead, the score on a modern intelligence
test compares a person’s performance with others his/her own age, while
arbitrarily defining the average score as 100.
During the past 25-30 years IQ testing has been brought into widespread
use by employers because of their need to ensure that they place the
right people in the right job from the outset.
One of the main reasons for this in today’s world of tight purse strings,
cost cutting and low budgets is the high cost of errors in employing the
Thirdly, throat cut marketing ploys have forced the IQ testing sites
marketers to spend more money to get loyal lists of subscribers. A free
instrument is a right tool to have strong lists of hungry subscribers.
Whatever the reason may be there is no dispute that free IQ tools are
getting popular very fast in young generation. We may read reviews and
questions that young lot of 14 to 25 years old is looking for genuine and
quality free online IQ tests. Most of the users don’t bother even to know a
bit about reputation of the test owners and the websites offering them.
They even make plans to avoid marketing emails from the websites to
promote their products.
Tests that measure the IQs of children are standardized and an average
score is recorded for each age group. Thus a child of 10 years of age who
scores the results expected of a child of 12 would have an IQ of 120,
calculated as follows: (mental age/chronological age)100 = (12/10)100 =
120. However, because little or no improvement in IQ rating is found in
adults, they have to be judged on an IQ test whose average score is 100
and their results graded above and below this norm according to known
scores.
The Online IQ test website been developed is easy to use. As the user
explores the website he or she is allowed to create his account and login
to take up the test. As the user goes to IQ section he is presented well
designed set of questions with average score 100 stored in the database.
Based on the user’s answers he gets his IQ score reflecting his
performance as compared to his peers.
3. Modules
Sign up/Sign in
Signing up
protected void Button1_Click(object sender, EventArgs e)
{
if (CustomValidator1.IsValid)
{
string cmd1 = "select * from iq.userinfo where uname='" + tbusr.Text + "';";
conn.Open();
OdbcCommand scmd1 = new OdbcCommand(cmd1, conn);
OdbcDataReader rdr = scmd1.ExecuteReader();
if (rdr.HasRows)
{
TextBox2.Visible = true;
Signing in:-
protected void Button13_Click(object sender, EventArgs e)
{
TextBox2.Visible = false;
OdbcConnection conn = new
OdbcConnection("Dsn=IQCON;uid=root;server=localhost;database=iq;port=2011");
string cmd = "select uname,pwd from iq.userinfo where uname='"+tbusr.Text+"'
and pwd='"+tbpswd.Text+"';";
conn.Open();
OdbcCommand scmd = new OdbcCommand(cmd, conn);
OdbcDataReader rdr = scmd.ExecuteReader();
if (!rdr.HasRows)
{
TextBox2.Visible = true;
TextBox2.Text = "Please check your username and password.";
}
else
{
loggedin.Visible = true;
div4.Visible = false;
dvfrgtpswd.Visible = false;
div.Visible = false;
TextBox3.Visible = true;
TextBox3.Text = "Hello, " + tbusr.Text+".";
string cmd1 = "select uid from iq.userinfo where uname='" + tbusr.Text + "';";
OdbcCommand scmd1 = new OdbcCommand(cmd1, conn);
OdbcDataReader rdr1 = scmd1.ExecuteReader();
while (rdr1.Read())
{
Session["uid"] = rdr1.GetInt32(0);
}
Session["usernm"] = tbusr.Text;
Session["signed"] = 1;
tbusr.Text = "";
tbpswd.Text = "";
}
if (Convert.ToInt32(Session["signed"]) == 1)
Button14.Visible = true;
else
Button14.Visible = false;
conn.Close();
}
protected void Button11_Click(object sender, EventArgs e)
{
OdbcConnection conn = new
OdbcConnection("Dsn=IQCON;uid=root;server=localhost;database=iq;port=2011");
string cmd = "select pwd from iq.userinfo where uname='" + TextBox1.Text + "';";
conn.Open();
OdbcCommand scmd = new OdbcCommand(cmd, conn);
OdbcDataReader rdr = scmd.ExecuteReader();
while (rdr.Read())
{
lblgtps.Visible = true;
lblgtps.Text = "Your Password: "+rdr.GetString(0) ;
}}
The questions has been selected randomly from the database based
on what topic the user has chosen for the test.
RadioButtonList1.Items.Clear();
RadioButtonList2.Items.Clear();
RadioButtonList3.Items.Clear();
RadioButtonList4.Items.Clear();
RadioButtonList5.Items.Clear();
Label3.Visible = true;
Application["time"] = 0;
Button5.Enabled = false;
Button5.Visible = false;
OdbcConnection coniq = new
OdbcConnection("Dsn=IQCON;uid=root;server=localhost;database=iq;port=2011");
if (Convert.ToInt32(Session["choice"]) == 0)
{
Random rndiq = new Random();
coniq.Open();
for (int i = 1; i <=5; i++)
{
int qid = Convert.ToInt32(rndiq.Next(1, 45).ToString());
while((qid == Convert.ToInt32(Application["cuqid1"])) || (qid ==
Convert.ToInt32(Application["cuqid2"])) || (qid ==
Convert.ToInt32(Application["cuqid3"])) || (qid ==
Convert.ToInt32(Application["cuqid4"])) || (qid ==
Convert.ToInt32(Application["cuqid5"])))
{
qid =Convert.ToInt32(rndiq.Next(1, 48).ToString());
}
string cmdq = "select qdesc,op1,op2,op3,op4 from iq.iqqn where qno=" + qid
+";";
OdbcCommand cmdiq = new OdbcCommand(cmdq, coniq);
OdbcDataReader rdriq = cmdiq.ExecuteReader();
while (rdriq.Read())
{
if (i == 1)
{
Application["cuqid1"] = qid;
TextBox1.Text = rdriq.GetString(0);
RadioButtonList1.Items.Add(rdriq.GetString(1));
RadioButtonList1.Items.Add(rdriq.GetString(2));
RadioButtonList1.Items.Add(rdriq.GetString(3));
RadioButtonList1.Items.Add(rdriq.GetString(4));
RadioButtonList1.Items.Add("No Answer");
}
.
.
.
Timer:-
The timer has been implemented using the AJAX control toolkit
which has been provided as an add-on in visual studio 2008. The timer
ticks on the interval specified.
HTML script:-
MySql has been used as the database. Based on the current user,
the scores of all previous tests taken by the user are displayed.
if (!Page.IsPostBack)
{
if(Convert.ToInt32(Session["signed"])==1)
{
GridView1.Visible = true;
Information Science & Engineering Page 1
MindTwister
GridView1.DataSource = ds;
GridView1.DataBind();
if (GridView1.Rows.Count == 0)
{
Label2.Visible = true;
Label2.Text = "No records found.";
}
}
else
Response.Redirect("errfeed.aspx");
}
4. Testing
First page:
Fig- 4.1
Fig.-4.2
Test Page:-
Fig-4.3
Fig-4.4
Fig-4.5
5. Conclusion
6. References
➢ Beginning Ajax With ASP.NET (2006) – Wallace B.
McClure, Scott Cate , Paul Glavich ,Craig Shoemaker
➢ www.asp.net
➢ www.w3schools.com
➢ www.msdn.microsoft.com