.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Forum >> ASP.Net >> Post New QuestionBookmark and Share Subscribe to Forum

Online Test

Posted By: Aamrapali Tamgadge     Posted Date: June 09, 2011    Points:5   Category :ASP.Net
Hi i want to developed the online test like dotnetspark certification test.please give me some idea how to developed it.

Responses
Author: Sasi Prabhu             
Posted Date: June 09, 2011     Points: 20   

Just Create a Table for Posting Questions
Display the Questions Randomly and Stored in Temp Table.
Check the Question is Already Displayed or Not.
Show the results.


Thanks & Regards,
Sasi Prabhu.
Author: Gowthammanju             
Posted Date: June 09, 2011     Points: 20   

Hey try following ways

1. Uses ASP.Net and HTML controls like TextBox, Button, span
2. Simple JavaScript code to handle timer
3. Fetch Questions from SQL Server Database and Fetch Random Questions
4. It also Demostrates the JAVAScript POSTBACK function in a simple way.
5. It automatically PostBack when time is over


for time use java script as

var hour = 0;  //specify hours for counter
var min = 0; // specify minutes
var second = 59; // specify the seconds
var lab = 'cd'; // id of the entry on the page where the counter is to be inserted

function start() {
displayCountdown(setCountdown(hour, min, second), lab);
}
loaded(lab, start);
var pageLoaded = 0;
window.onload = function() { pageLoaded = 1; }
function loaded(i, f) {
if (document.getElementById && document.getElementById(i) != null)
f();
else if (!pageLoaded)
setTimeout('loaded(\'' + i + '\',' + f + ')', 100);
}
function setCountdown(hour, min, second) {
if (hour > 0)
min = min * hour * 60;
c = setC(min, second);
return c;
}
function setC(min, second) {
if (min > 0)
second = min * 60 * second;
return Math.floor(second);
}
function displayCountdown(countdn, cd) {
if (countdn < 0) {
alert("Sorry, you are too late.");
__doPostBack('__Page', 'time');
}
else {
var secs = countdn % 60;
if (secs < 10)
secs = '0' + secs;
var countdn1 = (countdn - secs) / 60;
var mins = countdn1 % 60;
if (mins < 10)
mins = '0' + mins;
countdn1 = (countdn1 - mins) / 60;
var hours = countdn1 % 24;
document.getElementById(cd).innerHTML = hours + ' : ' + mins + ' : ' + secs;
setTimeout('displayCountdown(' + (countdn - 1) + ',\'' + cd + '\');', 999);
}
}


rest is easy to do in asp.net



Thanks & Regards,
GowthamManju
Chennai



Mark if the answer is true
Author: Gowthammanju             
Posted Date: June 09, 2011     Points: 20   

For asp.net follow the stps as

Steps:

1. Get the answers from DB for the given question (separately or in one shot along with question)
2. You should have a dataset with 4 answers.
3. Use this to bind the radiobutton the way you like - pick one by one if you want


in database use as

SELECT question, answer1, answer2, answer3, answer4
FROM myQTable
WHERE sno = 1



Thanks & Regards,
GowthamManju
Chennai



Mark if the answer is true
Author: Gowthammanju             
Posted Date: June 09, 2011     Points: 20   

Hey try this sample project there by u can get some ideas


first create database as follows

USE [DATABASE NAME]//modify with ur name
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[Questions](
[id] [int] IDENTITY(1,1) NOT NULL,
[Question] [nvarchar](500) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[Option1] [nvarchar](250) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[Option2] [nvarchar](250) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[Option3] [nvarchar](250) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[Option4] [nvarchar](250) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[Correct] [nvarchar](50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL
) ON [PRIMARY]

/****** Insert Dummy Data into Questions Table ******/

INSERT INTO [dbo].[Questions]([Question],[Option1],[Option2],[Option3],[Option4],[Correct]) VALUES(N'What is full for of HTML?' ,N'Hyper Text Transport Protocol',N'Hyper Transport Type Protocol',N'Hexa type Transport Protocol',N'None of the above',N'1')
INSERT INTO [dbo].[Questions]([Question],[Option1],[Option2],[Option3],[Option4],[Correct]) VALUES(N'Which method do you invoke on the DataAdapter control to load your generated dataset with data?' ,N'Fill()',N'load()',N'get()',N'None of the above',N'1')
INSERT INTO [dbo].[Questions]([Question],[Option1],[Option2],[Option3],[Option4],[Correct]) VALUES(N'What is the default Identity of an Application Pool?' ,N'Server',N'Network Service',N'Pool',N'None of the above',N'2')
INSERT INTO [dbo].[Questions]([Question],[Option1],[Option2],[Option3],[Option4],[Correct]) VALUES(N'Are Private class-level variables inherited?' ,N'Yes, but they are not accessible.',N'No, Also they are not accessible',N'Both are correct',N'None of the above',N'1')



step2: include that to ur project

step 3: download attachment below and try it


Download Attachment

Thanks & Regards,
GowthamManju
Chennai



Mark if the answer is true
Author: Aamrapali Tamgadge             
Posted Date: June 09, 2011     Points: 20   

hi please check the following website http://accountingacademy.net/User/Login.aspx

in this site Login with username shwet.agashe@gmail.com pwd is sss in this site when i submit the test the popup is even still der not close even i close the popup and close the script manager also but result page is not cuming how can i close this so that the result wil show pls anyone can resolve this problm its argent.

Software Programmer At OTIS ISRC
Author: Ravi Ranjan Kumar             
Posted Date: June 11, 2011     Points: 20   

Hey try
http://www.codeproject.com/KB/applications/xmlquiz.aspx
http://www.codeproject.com/KB/aspnet/MultipleChoiceExam.aspx

Thanks & Regards
Ravi Ranjan Kumar
http://raviranjankr.wordpress.com
Author: Beverly P F             
Posted Date: May 09, 2014     Points: 20   

Hi, you could also check out this:
http://www.c-sharpcorner.com/UploadFile/mgold/dynamicwebquizzes02152007043229AM/dynamicwebquizzes.aspx
And also here is a test site that has a live coding, that would be great to implement:
http://testdome.com/



Post Reply

You must Sign In To post reply
 
 
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery
JavaScript/VBScriptBiztalkWPFPatten/PracticesWCFOthers
www.DotNetSpark.comUnAnsweredAll

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend