Beruflich Dokumente
Kultur Dokumente
System consist of some pages of question(MCQ types) and the student are to
give the correct answers of those question by selecting the appropriate choice.
Once a page is be submitted, it will not possible to return back to that page. This
1. The main view of our project will be to design a user friendly front page
where all the information about the online examination will be provided.
significant part of my spare I would also like to thank the other members of the
verma, Sunil Yadav discussed them at the committee meetings, and otherwise
Finally, I would like to thank the following people, whose suggestions have
1.1 Background
1.2 objectives
1.3.1 Purpose
1.3.2 Scope
1.3.3 Applicability
1.4 Achievements
2. Survey Of Technologies
4. System Design
7. Conclusions
7.1 Coclusion
References
Glossary
Appendix A
INTRODUCTION
On Line Examination itself represent the examination through the internet. This
project will help the university/ Institution to evaluate the question have
multiple option with one correct answer. This project contains two types of
question viz. subjective and objective. Students have to write the descriptive
This project helps the management to conducting online examination and save
secure. This is the era of computer and we are adopting fast mechanism to
solve any problem. On line examination is also a way to give result as soon as
academy. So to keep the information correct and fast, it will manage the
Earlier it was a very time consuming and tedious process where both students as
Sqtting Question Papers, Setting Schedules to finally declaring the result. It was
cumbersome since these details were now generated, managed and kept in
computers.It was still not that much simpler Later the process became a lot
easier when computer system were introduced and all for students because they
were stll expected to come in person to register, appear for exam at exam center
and for all those formalities. Now we are expected to develop an web
application which converts all of these tasks atomized as well as web enabled.
There are applications already working in this area like MCSE, CCNA which
theses already working and tested applications as well as making our own set of
Report, Results, Student’s details and Fee Status etc. As we know that this
means this software is easy to operate. Even a person having less knowledge of
computer can easily operate is, he will be guided throughout by the software to
operate it. This Software is a best effort of changing in paper work to electronic
work. This application is divided into many module, and each module is related
to different part of code. This integration makes the project very user friendly.
strongly, the current and previous information is stored in this database and
The On line test System is developed using Asp.net and sql fully meets the
objectives of the system for which it has been developed. The system has
reached a steady state where all bugs have been eliminated. The system is
operated at a high level of efficiency and all the teacher and user associated
with the system understands its advantage. The system soves the problem. It
purpose of this system is to overcome the shortfall faced in the previous systems
The website will have to be secure, and properly working on WAN. It should be
speedy with good interface. The university may conduct examination in various
and time saving. In this modern era time is the most precious thing, so in
context of time the new system will be effective to do a group of task in easy
consuming process. Now the purpose of this system is to overcome the shortfall
The website will have to be secure, and properly working on WAN. It should be
speedy with good interface. The university may conduct examination in various
Methodology of the system is clear that result in the complete and proper
working of the system from the requirements achieved. it contains the working
features/parameters.
No need to take leave, visit a different town, city or even states in some cases.
To develop this application, we’ve taken into account some assumptions. They
are:
behalf of any other student. and only the student himself/herself can
this project can use any institute or any university which has conducted this
type examination or test. Like CCNA citification course conduct this type of
The achievements tucked under our belt after the completion of this project are
life experience to put into practice some of the techniques we have been taught
our own work and making constructive suggestions for improvement or further
work based on our experience. And apart from these all what we learnt is the
organization.
Contributions of our project, both direct and indirect has been discussed
in the previous topic and as far as the degree to which our goals laid out
by project objective is concerned, we can say that all those are achieved.
sophisticated, but they were not part of our objective and therefore, we
1. ASP.NET
1. ASP.NET :
for web development to produce dynamic web sites, web applications and web
services .
It was first released in January 2002 with version 1.0 of the .NET framework ,
Framework .The new framework will make use of the new open-source .NET
Compiler Platform (code-name "Roslyn") and be cross platform ASP.NET
MVC, ASP.NET Web API, and ASP.NET Web Pages (a platform using only
Razor pages) will merge into a unified MVC 6. The project is called "ASP.NET
vNext".
and effectively Reduces the total amount of data storage required. It also
eliminates the extra processing and of the inconsistencies e.g. Same format
To perform this the complete problem has been divided into five sub-problems
so that they can be solved easily and after that can be integrated to make it an
Online Login
Online Schedule
Online Examination
be checked properly at the time of login for student, expert, controller and Exam
Dept Admin. In the schedule Module send the exam schedule to the student.
from the database and the subjective answer manually checking by exam
In the exam module When the student starts the exam the timer will start
At result module display the result of each student and send by the exam. Dept .
REQUIERTMENT SPECIFICATION
specified.
Functional Requirements :
To provide login interface through which only authorized user can pass
by.
The timer facility should be provide once the student appears in the
Exam.
The system should support WAN so that exam can given from anywhere.
Results.
Interface requirements
Gantt chart :
Gantt chart are a project control technique that can be used for several purpose
including scheduling and planning. Gantt chart is also known bar chart with
Pert stands for program evalution and review technique. A pert chart is a
network of boxes and arrows. The boxes in the pert chart can be decorated with
Hardware Requirements:
2. RAM : 132 MB
4. Hard Disk : 20 GB
6. HUB : 1012
Software Requirements:
the procedure is to determine the benefit and saving that are expected from a
system and compare them with costs, decisions is made to design and
This part of feasibility study gives the top management the economic
management the management, because very often the top management does
associated with a project of this kind. A simple economic analysis that gives
cases.
Because, if the organization implements this system, it need not require any
procedure, inputs are identified. It is also one ofthe important phases of the
The system offers greater levels of user friendliness combined with greater
processing speed is very high and the work is reduced in the maintenance
3) BEHAVIOURAL FEASIBILITY
People are inherently resistant to change and computer has been known to
The system will facilitate online examination and documentation of results. The
system can conduct various examinations for various subjects. All one needs to
This application has Login module we need the user name and password facilty
The application has schedule Module send the exam schedule to the student.
The application has question bank module for the examination could be
Dyanamic application.
automatically by the system from the database and the subjective answer
Admin Table :
Teacher Table:
Attendance Table:
Student Table:
In Our Project with the help of ‘Divide and Conquer theory’ we can divide
Login Module
Student Module
ExamController Module
Expert Module
Login Module :
This is the first module in this project a anyone who want to enter into this
project/application . he/she must have pass through this module, in other word
we can say that this is authentication module because the user authentication
with his/her.To provided user name and password facility and credentials
This is the form in this project a student who want to enter into this project
application. he/she must have pass through this module, in other word we can
say that this is authentication module because the user authentication with
his/her.
Registration
In this module student can get his/her whole information like his name, address
fees detail,program and courses. the user can select only one course at the
time.Our student table will register the student.University will provide each
that no one can register on behalf of any other student. and only the student
Students only submit his/her documents and fees after the registration.
View Schedule
In this schedule form student get his/her schedule according to his registration.
Exam process
When the student starts the exam the timer will start automatically and show
Show Result
In the result form will manage the result(Subjective and Objective questions)
and Status of the student. This table contains the student id from which we will
ExamController Module
The controller has authority to modify the criteria is provided to the controller
of examination and provide an interface from where controller will create new
ManageAdmin
In this module the controller will Create, Delete and Edit admin for the exam
A Loginname and password has been provided through which the admin can
ManageExpert
In this module the controller will Create,Delete and Edit experts for they can
later send question sets for objective as well as subjective questions which will
hete too through which the expert can later login to send questions.
Exam Dept Module
In the exam dept will manage the question bank sent by experts.and make
ManageSchForStu
In this form the exam dept. managed the schedule and sends to the student with
For this first he see all the details of registered students and allot them date
accordingly.
ManageQusBank
his form manage the subjective and objective question in the question bank sent
by the expert module. The Manage Qustion Bank managed the question will
CheckSubQus
This module checks the subjective question attempted by the student during the
exam. subjective answer manually checking by exam department will take place
Declare result
in this form the exam dept. manage the result and sends to the student when
Expert Module
Subjective Question
SubQus table will contain Subjective question and it’s right answer. To not
provide facility of copy and paste while attempting the Subjective questions on
Objective Question
ObjQus table will contain objective question and four options and right answer.
Student
Our student table will register the student.University will provide each student a
unique student Id during enrollment time. The purpose of this is so that no one
can register on behalf of any other student. and only the student himself/herself
can register for the examination using this id and password. Students only
submit his/her documents and fees after the registration.In this student table
store his/her whole information like his name, address fees detail,program and
courses. the user can select only one course at the time.
Subjective Question
SubQus table will contain Subjective question and it’s right answer. Here the
Objective Question
ObjQus table will contain objective question and four options and right answer.
Result
result table will contain the result(Subjective and Objective questions) and
Status of the student. This table contains the student id from which we will help
resgistraion.This module contains information about their exam with their date.
ExamDept
admin. controller will make admin for different center. The Exam Dept will
manage the question bank sent by experts and evaluated the answer.
SCHEMA DESIGN
Expert
Our Expert table will register the institute or university Expert administrator.
This ManageExpert form can access only the controller. This module contain
the information about expert like his name & expert in which course.
tAns. iStuId will be the foreign key for the table Student.
ObjQAttempted table will have iObjQAId, iStuId, iObjQusId, And cAns. iStuId
Course
iSemester and the iProId. Here the iCouId is the primary key.
Program
This program table contains the information about the like course iProgId,
cProgName, and the iFessof the program. Here the iProgId is the primary key.
DATA INTEGRITY AND CONSTRAINTS
Student
vLoginName,
vPasswd
Course
ExamDept
Expert
ObjQAttempted
ObjQus
CStatus
Program
Result
Schedule
SubQAttempted
SubQus
Logic Diagrams
Process Diagram
Exam Dept :
Exam DeptId
Vpassword
Board
DATA STRUCTURE
USER INTERFACE DESIGN
STUDENT
Registration
SECURITY ISSUES
computing infrastructure.
anyone with destructive or malicious mind gets access to the database he can
The beauty of these algos are that whatever be the length of password the
However a question arise here that if this thing is that good then why
The answer lies in the fact that not all data are needed to be encrypted as
will only increase the load on server and network with no additional
advantage. So we’ve not used this encryption algo on all data blindly.
We have implemented different approach related to security issue for our
Authorization:
Authentication:
Only registered students can appear for the examination. Every registered
Information Integrity:
Only Super admin has right in the modification of the information. There
information.
Detection:
Super Admin will have a bank up of the project. Also there is a complex
and alphanumeric password for admin and student. Super admin itself has
through student login form. There are three field in the student login page and
Every field has to filled by student. Student can not used character in the login
Admin Login :- To register the student admin has to login first. The Id field is
numeric.
VALIDATION CRITERIA
text fields like names should not contain any numeric characters.
4. Use of error handling for each Save, Edit, delete and other important
operations.
5. Whenever the user Tabs out or Enter from a text box, the data should be
validated and if it is invalid, focus should again be sent to the text box with
proper message.
TEST CASE 1
match!!!”.
IMPLEMENTATION APPROACHES
coding is performed and the system is passed through a strict testing phase and
approaches and based on the requirement and constraints, the best suitable tech
is used.
approach. In this approach the old system which is being used is replaced by the
effective and the new system helps in various ways. As it overcome the all
This system is tested first very carefully. Then after it is being used in any
organization.
CODING DETAILS AND CODE EFFICIENCY
Code Details
DBMgt.
using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Data.SqlClient ;
/// <summary>
public DBMgt()
SqlConnection("Server=.;uid=sa;pwd=;integrated
security=true;database=OnLEDB");
SqlDataAdapter adpt;
DataSet dtst;
SqlCommand cmd;
if(con.State==ConnectionState.Closed)
con.Open();
else
con.Close();
con.Open();
if(con.State==ConnectionState.Open)
con.Close();
parList)
cmd.Parameters.Add(parList[inc]);
OpenCon();
int i = cmd.ExecuteNonQuery();
CloseCon();
if (i == 1)
return true;
else
return false;
SqlParameter[] parList)
cmd.CommandType = CommandType.StoredProcedure;
for (int inc = 0; inc < parList.Length; inc++)
cmd.Parameters.Add(parList[inc]);
OpenCon();
cmd.ExecuteReader();
CloseCon();
return cmd;
parList)
cmd.CommandType = CommandType.StoredProcedure;
cmd.Parameters.Add(parList[inc]);
OpenCon();
return obj;
Student Login
Login
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Data.SqlClient;
try
string sha1pwd =
FormsAuthentication.HashPasswordForStoringInConfigFile(txtPassword.Text.
Trim(), "sha1");
SqlParameter[] parList = new SqlParameter[4];
txtUserName.Text.Trim());
txtPassword.Text.Trim());
parList[2].Direction = ParameterDirection.Output;
parList[3].Direction = ParameterDirection.Output;
SqlCommand cmd =
objDBMgt.ExecuteReaderStoreProc("checkStudentLogin", parList);
if (cmd != null)
if (Convert.ToInt16(cmd.Parameters["@Yes_No"].Value) == 1)
{
Session["iStuId"] =
Convert.ToInt16(cmd.Parameters["@iStuId"].Value);
FormsAuthentication.RedirectFromLoginPage(txtUserName.Text,
true);
else
FailureText.Visible = true;
}
CODE EFFICIENCY
both are very different”. The same theory is applied in the case of our coding
too. Some of the code efficiencty measures that we’ve taken are :
places in the project with very slight changes then instead of writing that codes
functions) so that they can be called from different pages with proper
OpenCon()
ExecuteNonQueryStoreProc()
ExecuteReaderStoreProc()
ExecuteReaderStoreProc()
TESTING APPROACH
Unit Testing
Unit testing focuses verification error on the smallest unit of software design –
within the boundary of the module. The relative complexity of tests and the
errors those tests uncover is limited by the constrained scope established for unit
testing. The unit test focuses on the internal processing logic can be conducted
The tests that occur as part of unit tests are illustrated. The module interface is
tested to ensure that information properly flows into and out of the program unit
under test. Local data structures are examined to ensure that data stored
temporarily maintains its integrity during all control structure are exercised to
ensure that all statements in a module have been executed at least once.
Boundary conditions are tested to ensure that the module operates properly at
Test of data flow across a module interface are required before any other
test is initiated. If data do not enter and exit properly, all other tests are moot. In
addition, local data structures should be exercised and the local impact on
entered.
3. Incorrect Initialization.
architecture while at the same time conducting tests to uncover errors associated
with interfacing. The objective is to take unit tested components and build a
In testing phase, beside some small errors we got to know about as serious error
We didn’t proper use of “DataSet”. Because of this our site was running
slowly. After proper using of DataSet our site becomes fast, i.e. page loaded
very quickly. What we were doing that for each item we have opened the
connection. But at page load we brought all the item and then start retrieving
TEST REPORTS
If the id field is filled by character the error generated and shown by “*”. That
it should be numeric.
If the user id or password does exist then error will be generated that “ User Id
Registration:
Compare to validate mean the field should match from the previous field.
Student Login:
Appearing for examination, Student must have to be begin through student login
form. There are three field in the student login page and Every field has to filled
Admin Login :-
USER DOCUM ENTATION
Loginid :- demo
Userid:- demo
Student Loginid:- a
Password:- a
DATABASE SCRIPT
USE [EXAM]
GO
/****** Object: ForeignKey [FK_Exam_type_Exam_type] Script Date:
03/28/2014 16:53:59 ******/
ALTER TABLE [dbo].[Exam_type] DROP CONSTRAINT [FK_Exam_type_Exam_type]
GO
/****** Object: ForeignKey [FK__oe_exams__mid__35BCFE0A] Script Date:
03/28/2014 16:55:01 ******/
ALTER TABLE [dbo].[oe_exams] DROP CONSTRAINT [FK__oe_exams__mid__35BCFE0A]
GO
/****** Object: StoredProcedure [dbo].[GetQuestionPageWise] Script
Date: 03/28/2014 16:55:01 ******/
DROP PROCEDURE [dbo].[GetQuestionPageWise]
GO
/****** Object: Table [dbo].[oe_exams] Script Date: 03/28/2014 16:55:00
******/
DROP TABLE [dbo].[oe_exams]
GO
/****** Object: StoredProcedure [dbo].[SubmitQuestion] Script Date:
03/28/2014 16:55:00 ******/
DROP PROCEDURE [dbo].[SubmitQuestion]
GO
/****** Object: Table [dbo].[subset] Script Date: 03/28/2014 16:53:59
******/
DROP TABLE [dbo].[subset]
GO
/****** Object: Table [dbo].[category] Script Date: 03/28/2014 16:53:59
******/
DROP TABLE [dbo].[category]
GO
/****** Object: Table [dbo].[Exam_type] Script Date: 03/28/2014
16:53:59 ******/
DROP TABLE [dbo].[Exam_type]
GO
/****** Object: Table [dbo].[oe_members] Script Date: 03/28/2014
16:53:59 ******/
DROP TABLE [dbo].[oe_members]
GO
/****** Object: Table [dbo].[oe_questions] Script Date: 03/28/2014
16:53:59 ******/
DROP TABLE [dbo].[oe_questions]
GO
/****** Object: Table [dbo].[oe_subjects] Script Date: 03/28/2014
16:53:59 ******/
DROP TABLE [dbo].[oe_subjects]
GO
/****** Object: Table [dbo].[student] Script Date: 03/28/2014 16:53:59
******/
DROP TABLE [dbo].[student]
GO
/****** Object: Table [dbo].[student] Script Date: 03/28/2014 16:53:59
******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[student](
[StudentID] [bigint] IDENTITY(1,1) NOT NULL,
[RegID] [nvarchar](50) NULL,
[Category] [nvarchar](50) NULL,
[FName] [nvarchar](200) NULL,
[Mname] [nvarchar](200) NULL,
[Lname] [nvarchar](200) NULL,
[FatherName] [nvarchar](200) NULL,
[MotherName] [nvarchar](200) NULL,
[dob] [nvarchar](50) NULL,
[gender] [nvarchar](50) NULL,
[sCategory] [nvarchar](50) NULL,
[Email] [nvarchar](50) NULL,
[Mobile] [nvarchar](50) NULL,
[Phone] [nvarchar](50) NULL,
[Physical_chal] [nvarchar](50) NULL,
[Matric_board] [nvarchar](200) NULL,
[Matric_passyear] [nvarchar](50) NULL,
[Matric_percentage] [nvarchar](50) NULL,
[Matric_totalmarks] [nvarchar](50) NULL,
[Matric_obtainmarks] [nvarchar](50) NULL,
[Inter_board] [nvarchar](200) NULL,
[Inter_passyear] [nvarchar](50) NULL,
[Inter_percentage] [nvarchar](50) NULL,
[Inter_totalmarks] [nvarchar](50) NULL,
[Inter_obtainmarks] [nvarchar](50) NULL,
[UG_stream] [nvarchar](200) NULL,
[UG_board] [nvarchar](200) NULL,
[UG_passyear] [nvarchar](50) NULL,
[UG_percentage] [nvarchar](50) NULL,
[UG_totalmarks] [nvarchar](50) NULL,
[UG_obtainmarks] [nvarchar](50) NULL,
[PG_stream] [nvarchar](200) NULL,
[PG_board] [nvarchar](200) NULL,
[PG_passyear] [nvarchar](50) NULL,
[PG_percentage] [nvarchar](50) NULL,
[PG_totalmarks] [nvarchar](50) NULL,
[PG_obtainmarks] [nvarchar](50) NULL,
[Postal_street1] [nvarchar](200) NULL,
[Postal_street2] [nvarchar](200) NULL,
[Postal_city] [nvarchar](100) NULL,
[Postal_state] [nvarchar](100) NULL,
[Postal_zipcode] [nvarchar](50) NULL,
[Postal_country] [nvarchar](100) NULL,
[Perma_street1] [nvarchar](200) NULL,
[Perma_street2] [nvarchar](200) NULL,
[Perma_city] [nvarchar](100) NULL,
[Perma_state] [nvarchar](100) NULL,
[Perma_zipcode] [nvarchar](50) NULL,
[Perma_country] [nvarchar](100) NULL
) ON [PRIMARY]
GO
SET IDENTITY_INSERT [dbo].[student] ON
INSERT [dbo].[student] ([StudentID], [RegID], [Category], [FName], [Mname],
[Lname], [FatherName], [MotherName], [dob], [gender], [sCategory], [Email],
[Mobile], [Phone], [Physical_chal], [Matric_board], [Matric_passyear],
[Matric_percentage], [Matric_totalmarks], [Matric_obtainmarks],
[Inter_board], [Inter_passyear], [Inter_percentage], [Inter_totalmarks],
[Inter_obtainmarks], [UG_stream], [UG_board], [UG_passyear],
[UG_percentage], [UG_totalmarks], [UG_obtainmarks], [PG_stream],
[PG_board], [PG_passyear], [PG_percentage], [PG_totalmarks],
[PG_obtainmarks], [Postal_street1], [Postal_street2], [Postal_city],
[Postal_state], [Postal_zipcode], [Postal_country], [Perma_street1],
[Perma_street2], [Perma_city], [Perma_state], [Perma_zipcode],
[Perma_country]) VALUES (1, N'SR1000', N'A', N'ashish', N'kumar',
N'kaushik', N'vindo kaushik', N'savita kaushik', N'28/11/1984', N'male',
N'ST/SC', N'akaushik855@gmail.com', N'9654679085', N'28521222', N'No',
N'CBSE', N'2000', N'56%', N'500', N'300', N'CBSE', N'2002', N'54%', N'500',
N'250', N'BA', N'Delhi university', N'2007', N'74%', N'500', N'450',
N'BTECH', N'Delhi University', N'2008', N'56%', N'600', N'500', N'dwarka',
N'dwarka palam', N'nde delhi', N'110046', N'110046', N'india', N'Nanagal
Raya', N'delhi palam', N'new delhi', N'delhi', N'110046', N'india')
SET IDENTITY_INSERT [dbo].[student] OFF
/****** Object: Table [dbo].[oe_subjects] Script Date: 03/28/2014
16:53:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[oe_subjects](
[sid] [int] IDENTITY(1,1) NOT NULL,
[sname] [nvarchar](50) NULL,
[noq] [int] NULL
) ON [PRIMARY]
GO
SET IDENTITY_INSERT [dbo].[oe_subjects] ON
INSERT [dbo].[oe_subjects] ([sid], [sname], [noq]) VALUES (1, N'English',
0)
INSERT [dbo].[oe_subjects] ([sid], [sname], [noq]) VALUES (2, N'Math', 0)
SET IDENTITY_INSERT [dbo].[oe_subjects] OFF
/****** Object: Table [dbo].[oe_questions] Script Date: 03/28/2014
16:53:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [dbo].[oe_questions](
[qid] [int] IDENTITY(1,1) NOT NULL,
[question] [nvarchar](2000) NOT NULL,
[ans1] [nvarchar](1000) NOT NULL,
[ans2] [nvarchar](1000) NOT NULL,
[ans3] [nvarchar](1000) NOT NULL,
[ans4] [nvarchar](1000) NOT NULL,
[cans] [nvarchar](50) NOT NULL,
[sid] [int] NULL,
[category] [char](50) NULL,
[subset] [nvarchar](100) NULL
) ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
SET IDENTITY_INSERT [dbo].[oe_questions] ON
INSERT [dbo].[oe_questions] ([qid], [question], [ans1], [ans2], [ans3],
[ans4], [cans], [sid], [category], [subset]) VALUES (36, N'Campuses,
Edition, Hudibras, Love''s Metamorphosis and The Woman in the Moon are the
best works of John Lyly, who wrote mostly', N'Novels were few and could be
enjoyed only by the educated', N'National themes and sentiments were
dramatized.', N'Drama was the best way for the author to earn money', N'All
of the above', N'Option 2', 1, N'A
', N'english subset')
INSERT [dbo].[oe_questions] ([qid], [question], [ans1], [ans2], [ans3],
[ans4], [cans], [sid], [category], [subset]) VALUES (37, N'Who among the
following University Wits is primarily known for his Friar Bacon and Friar
Bunge?', N'Lyly', N'Peele', N'Greene', N'Keyed', N'Option 2', 1, N'A
', N'english subset')
INSERT [dbo].[oe_questions] ([qid], [question], [ans1], [ans2], [ans3],
[ans4], [cans], [sid], [category], [subset]) VALUES (16, N'The Spenserian
poet who had said that he became "irrecoverably a poet" by reading the
Faerie Queen when a boy, is', N'Dryden', N'Fletcher', N'Moore', N'Cowley',
N'Option 4', 1, N'A ',
N'english subset')
INSERT [dbo].[oe_questions] ([qid], [question], [ans1], [ans2], [ans3],
[ans4], [cans], [sid], [category], [subset]) VALUES (17, N'In which of the
following, Naples has been described as a place "of more pleasure than
profit and yet of more profit than pity"?', N'Euphuism by Lyly', N'Pando to
by Greene', N'The Adventures of Master F.J. by Gascoigne', N'Rosalinda by
Lodge', N'Option 2', 1, N'B
', N'english subset 2')
INSERT [dbo].[oe_questions] ([qid], [question], [ans1], [ans2], [ans3],
[ans4], [cans], [sid], [category], [subset]) VALUES (25, N'Campuses,
Edition, Hudibras, Love''s Metamorphosis and The Woman in the Moon are the
best works of John Lyly, who wrote mostly', N'Novels were few and could be
enjoyed only by the educated', N'National themes and sentiments were
dramatized.', N'Drama was the best way for the author to earn money', N'All
of the above', N'Option 2', 1, N'A
', N'english subset')
INSERT [dbo].[oe_questions] ([qid], [question], [ans1], [ans2], [ans3],
[ans4], [cans], [sid], [category], [subset]) VALUES (38, N'Who is credited
for introducing the first English comedy, The Supposes, the first verse
satire, The Steel Glass, and the first translation from the Greek tragedy
Jocasta?', N'Sackville', N'Gascoigne', N'Erasmus', N'Philip Sidney',
N'Option 3', 1, N'B ',
N'english subset 2')
INSERT [dbo].[oe_questions] ([qid], [question], [ans1], [ans2], [ans3],
[ans4], [cans], [sid], [category], [subset]) VALUES (29, N'In which of the
following, Naples has been described as a place "of more pleasure than
profit and yet of more profit than pity"?', N'Euphuism by Lyly', N'Pando to
by Greene', N'The Adventures of Master F.J. by Gascoigne', N'Rosalinda by
Lodge', N'Option 2', 1, N'B
', N'english subset 2')
INSERT [dbo].[oe_questions] ([qid], [question], [ans1], [ans2], [ans3],
[ans4], [cans], [sid], [category], [subset]) VALUES (31, N'An interesting
work of this period is a verse debate of two birds who advocate their
rela-tive merits. What is the name of the poem, which is often found in the
school antholo-gies in India?', N'Ormolu', N'The Owl and the Nightingale',
N'Cuckoo Song', N'The Cricket and the Grass-hopper', N'Option 4', 1, N'A
', N'english subset')
INSERT [dbo].[oe_questions] ([qid], [question], [ans1], [ans2], [ans3],
[ans4], [cans], [sid], [category], [subset]) VALUES (45, N'The one that
traces the genealogy of a Shoemaker is', N'Cobbler', N'Shoemaker''s
Holiday', N'School of Abuse', N'The Gentle Craft', N'Option 3', 1, N'A
', N'english subset')
INSERT [dbo].[oe_questions] ([qid], [question], [ans1], [ans2], [ans3],
[ans4], [cans], [sid], [category], [subset]) VALUES (48, N'Who among the
following University Wits is primarily known for his Friar Bacon and Friar
Bunge?', N'Lyly', N'Peele', N'Greene', N'Keyed', N'Option 2', 1, N'A
', N'english subset')
INSERT [dbo].[oe_questions] ([qid], [question], [ans1], [ans2], [ans3],
[ans4], [cans], [sid], [category], [subset]) VALUES (50, N'The Spenserian
poet who had said that he became "irrecoverably a poet" by reading the
Faerie Queen when a boy, is', N'Dryden', N'Fletcher', N'Moore', N'Cowley',
N'Option 4', 1, N'A ',
N'english subset')
INSERT [dbo].[oe_questions] ([qid], [question], [ans1], [ans2], [ans3],
[ans4], [cans], [sid], [category], [subset]) VALUES (56, N'The one that
traces the genealogy of a Shoemaker is', N'Cobbler', N'Shoemaker''s
Holiday', N'School of Abuse', N'The Gentle Craft', N'Option 3', 1, N'A
', N'english subset')
INSERT [dbo].[oe_questions] ([qid], [question], [ans1], [ans2], [ans3],
[ans4], [cans], [sid], [category], [subset]) VALUES (43, N'About Total''s
Miscellany a character in Shakespeare''s play says, "I had rather than
forty shillings I had my Book of Songs and Sonnets here." Who is the
speaker and in which play?', N'Slender in The Merry Wives of Windsor',
N'Cali ban in The Tempest', N'Rosalind in As You Like It', N'Don Pedro in
Much Ado About Nothing', N'Option 2', 1, N'B
', N'english subset 2')
INSERT [dbo].[oe_questions] ([qid], [question], [ans1], [ans2], [ans3],
[ans4], [cans], [sid], [category], [subset]) VALUES (44, N'On whose tomb
the following lines have been inscribed?
"Good friend for Jesus'' sake forebear To dig the dust enclosed hearer;
Blest be the man that spares these stones, And curst be he that moves my
bones"', N'Marlowe''s', N'Sidney''s', N'Shakespeare''s', N'Milton''s',
N'Option 2', 1, N'A ',
N'english subset')
INSERT [dbo].[oe_questions] ([qid], [question], [ans1], [ans2], [ans3],
[ans4], [cans], [sid], [category], [subset]) VALUES (46, N'A noteworthy
work produced under the French influence in England was Layamon''s
voluminous poem of about 30,000 lines, named Brut. What is this book
about?', N'It is a legendary history of Britain', N'It is the story of
Brutus', N'It is King Arthur''s quest', N'It is a long pastoral poem',
N'Option 3', 1, N'B ',
N'english subset 2')
INSERT [dbo].[oe_questions] ([qid], [question], [ans1], [ans2], [ans3],
[ans4], [cans], [sid], [category], [subset]) VALUES (49, N'Who is credited
for introducing the first English comedy, The Supposes, the first verse
satire, The Steel Glass, and the first translation from the Greek tragedy
Jocasta?', N'Sackville', N'Gascoigne', N'Erasmus', N'Philip Sidney',
N'Option 3', 1, N'B ',
N'english subset 2')
INSERT [dbo].[oe_questions] ([qid], [question], [ans1], [ans2], [ans3],
[ans4], [cans], [sid], [category], [subset]) VALUES (51, N'In which of the
following, Naples has been described as a place "of more pleasure than
profit and yet of more profit than pity"?', N'Euphuism by Lyly', N'Pando to
by Greene', N'The Adventures of Master F.J. by Gascoigne', N'Rosalinda by
Lodge', N'Option 2', 1, N'B
', N'english subset 2')
INSERT [dbo].[oe_questions] ([qid], [question], [ans1], [ans2], [ans3],
[ans4], [cans], [sid], [category], [subset]) VALUES (52, N'There is one
tale in The Canterbury Tales which is a shrewd satire on unequal
mar-riages. Which one is that?', N'The Nun''s Priest''s Tale of the Cock
Chanticleer and the Fox', N'The Merchant''s Tale of January and May', N'The
Wife of Bath''s Tale', N'The Knight''s Tale', N'Option 1', 1, N'B
', N'english subset 2')
INSERT [dbo].[oe_questions] ([qid], [question], [ans1], [ans2], [ans3],
[ans4], [cans], [sid], [category], [subset]) VALUES (53, N'An interesting
work of this period is a verse debate of two birds who advocate their
rela-tive merits. What is the name of the poem, which is often found in the
school antholo-gies in India?', N'Ormolu', N'The Owl and the Nightingale',
N'Cuckoo Song', N'The Cricket and the Grass-hopper', N'Option 4', 1, N'A
', N'english subset')
INSERT [dbo].[oe_questions] ([qid], [question], [ans1], [ans2], [ans3],
[ans4], [cans], [sid], [category], [subset]) VALUES (59, N'Who among the
following University Wits is primarily known for his Friar Bacon and Friar
Bunge?', N'Lyly', N'Peele', N'Greene', N'Keyed', N'Option 2', 1, N'A
', N'english subset')
INSERT [dbo].[oe_questions] ([qid], [question], [ans1], [ans2], [ans3],
[ans4], [cans], [sid], [category], [subset]) VALUES (61, N'The Spenserian
poet who had said that he became "irrecoverably a poet" by reading the
Faerie Queen when a boy, is', N'Dryden', N'Fletcher', N'Moore', N'Cowley',
N'Option 4', 1, N'A ',
N'english subset')
INSERT [dbo].[oe_questions] ([qid], [question], [ans1], [ans2], [ans3],
[ans4], [cans], [sid], [category], [subset]) VALUES (54, N'About Total''s
Miscellany a character in Shakespeare''s play says, "I had rather than
forty shillings I had my Book of Songs and Sonnets here." Who is the
speaker and in which play?', N'Slender in The Merry Wives of Windsor',
N'Cali ban in The Tempest', N'Rosalind in As You Like It', N'Don Pedro in
Much Ado About Nothing', N'Option 2', 1, N'B
', N'english subset 2')
INSERT [dbo].[oe_questions] ([qid], [question], [ans1], [ans2], [ans3],
[ans4], [cans], [sid], [category], [subset]) VALUES (55, N'On whose tomb
the following lines have been inscribed?
"Good friend for Jesus'' sake forebear To dig the dust enclosed hearer;
Blest be the man that spares these stones, And curst be he that moves my
bones"', N'Marlowe''s', N'Sidney''s', N'Shakespeare''s', N'Milton''s',
N'Option 2', 1, N'A ',
N'english subset')
INSERT [dbo].[oe_questions] ([qid], [question], [ans1], [ans2], [ans3],
[ans4], [cans], [sid], [category], [subset]) VALUES (57, N'A noteworthy
work produced under the French influence in England was Layamon''s
voluminous poem of about 30,000 lines, named Brut. What is this book
about?', N'It is a legendary history of Britain', N'It is the story of
Brutus', N'It is King Arthur''s quest', N'It is a long pastoral poem',
N'Option 3', 1, N'B ',
N'english subset 2')
INSERT [dbo].[oe_questions] ([qid], [question], [ans1], [ans2], [ans3],
[ans4], [cans], [sid], [category], [subset]) VALUES (58, N'Campuses,
Edition, Hudibras, Love''s Metamorphosis and The Woman in the Moon are the
best works of John Lyly, who wrote mostly', N'Novels were few and could be
enjoyed only by the educated', N'National themes and sentiments were
dramatized.', N'Drama was the best way for the author to earn money', N'All
of the above', N'Option 2', 1, N'A
', N'english subset')
INSERT [dbo].[oe_questions] ([qid], [question], [ans1], [ans2], [ans3],
[ans4], [cans], [sid], [category], [subset]) VALUES (60, N'Who is credited
for introducing the first English comedy, The Supposes, the first verse
satire, The Steel Glass, and the first translation from the Greek tragedy
Jocasta?', N'Sackville', N'Gascoigne', N'Erasmus', N'Philip Sidney',
N'Option 3', 1, N'B ',
N'english subset 2')
INSERT [dbo].[oe_questions] ([qid], [question], [ans1], [ans2], [ans3],
[ans4], [cans], [sid], [category], [subset]) VALUES (62, N'In which of the
following, Naples has been described as a place "of more pleasure than
profit and yet of more profit than pity"?', N'Euphuism by Lyly', N'Pando to
by Greene', N'The Adventures of Master F.J. by Gascoigne', N'Rosalinda by
Lodge', N'Option 2', 1, N'B
', N'english subset 2')
INSERT [dbo].[oe_questions] ([qid], [question], [ans1], [ans2], [ans3],
[ans4], [cans], [sid], [category], [subset]) VALUES (63, N'There is one
tale in The Canterbury Tales which is a shrewd satire on unequal
mar-riages. Which one is that?', N'The Nun''s Priest''s Tale of the Cock
Chanticleer and the Fox', N'The Merchant''s Tale of January and May', N'The
Wife of Bath''s Tale', N'The Knight''s Tale', N'Option 1', 1, N'B
', N'english subset 2')
INSERT [dbo].[oe_questions] ([qid], [question], [ans1], [ans2], [ans3],
[ans4], [cans], [sid], [category], [subset]) VALUES (64, N'An interesting
work of this period is a verse debate of two birds who advocate their
rela-tive merits. What is the name of the poem, which is often found in the
school antholo-gies in India?', N'Ormolu', N'The Owl and the Nightingale',
N'Cuckoo Song', N'The Cricket and the Grass-hopper', N'Option 4', 1, N'A
', N'english subset')
INSERT [dbo].[oe_questions] ([qid], [question], [ans1], [ans2], [ans3],
[ans4], [cans], [sid], [category], [subset]) VALUES (65, N'About Total''s
Miscellany a character in Shakespeare''s play says, "I had rather than
forty shillings I had my Book of Songs and Sonnets here." Who is the
speaker and in which play?', N'Slender in The Merry Wives of Windsor',
N'Cali ban in The Tempest', N'Rosalind in As You Like It', N'Don Pedro in
Much Ado About Nothing', N'Option 2', 1, N'B
', N'english subset 2')
INSERT [dbo].[oe_questions] ([qid], [question], [ans1], [ans2], [ans3],
[ans4], [cans], [sid], [category], [subset]) VALUES (66, N'On whose tomb
the following lines have been inscribed?
"Good friend for Jesus'' sake forebear To dig the dust enclosed hearer;
Blest be the man that spares these stones, And curst be he that moves my
bones"', N'Marlowe''s', N'Sidney''s', N'Shakespeare''s', N'Milton''s',
N'Option 2', 1, N'A ',
N'english subset')
INSERT [dbo].[oe_questions] ([qid], [question], [ans1], [ans2], [ans3],
[ans4], [cans], [sid], [category], [subset]) VALUES (67, N'The one that
traces the genealogy of a Shoemaker is', N'Cobbler', N'Shoemaker''s
Holiday', N'School of Abuse', N'The Gentle Craft', N'Option 3', 1, N'A
', N'english subset')
INSERT [dbo].[oe_questions] ([qid], [question], [ans1], [ans2], [ans3],
[ans4], [cans], [sid], [category], [subset]) VALUES (68, N'A noteworthy
work produced under the French influence in England was Layamon''s
voluminous poem of about 30,000 lines, named Brut. What is this book
about?', N'It is a legendary history of Britain', N'It is the story of
Brutus', N'It is King Arthur''s quest', N'It is a long pastoral poem',
N'Option 3', 1, N'B ',
N'english subset 2')
INSERT [dbo].[oe_questions] ([qid], [question], [ans1], [ans2], [ans3],
[ans4], [cans], [sid], [category], [subset]) VALUES (69, N'Campuses,
Edition, Hudibras, Love''s Metamorphosis and The Woman in the Moon are the
best works of John Lyly, who wrote mostly', N'Novels were few and could be
enjoyed only by the educated', N'National themes and sentiments were
dramatized.', N'Drama was the best way for the author to earn money', N'All
of the above', N'Option 2', 1, N'A
', N'english subset')
INSERT [dbo].[oe_questions] ([qid], [question], [ans1], [ans2], [ans3],
[ans4], [cans], [sid], [category], [subset]) VALUES (70, N'Who among the
following University Wits is primarily known for his Friar Bacon and Friar
Bunge?', N'Lyly', N'Peele', N'Greene', N'Keyed', N'Option 2', 1, N'A
', N'english subset')
INSERT [dbo].[oe_questions] ([qid], [question], [ans1], [ans2], [ans3],
[ans4], [cans], [sid], [category], [subset]) VALUES (71, N'Who is credited
for introducing the first English comedy, The Supposes, the first verse
satire, The Steel Glass, and the first translation from the Greek tragedy
Jocasta?', N'Sackville', N'Gascoigne', N'Erasmus', N'Philip Sidney',
N'Option 3', 1, N'B ',
N'english subset 2')
INSERT [dbo].[oe_questions] ([qid], [question], [ans1], [ans2], [ans3],
[ans4], [cans], [sid], [category], [subset]) VALUES (72, N'The Spenserian
poet who had said that he became "irrecoverably a poet" by reading the
Faerie Queen when a boy, is', N'Dryden', N'Fletcher', N'Moore', N'Cowley',
N'Option 4', 1, N'A ',
N'english subset')
INSERT [dbo].[oe_questions] ([qid], [question], [ans1], [ans2], [ans3],
[ans4], [cans], [sid], [category], [subset]) VALUES (73, N'In which of the
following, Naples has been described as a place "of more pleasure than
profit and yet of more profit than pity"?', N'Euphuism by Lyly', N'Pando to
by Greene', N'The Adventures of Master F.J. by Gascoigne', N'Rosalinda by
Lodge', N'Option 2', 1, N'B
', N'english subset 2')
INSERT [dbo].[oe_questions] ([qid], [question], [ans1], [ans2], [ans3],
[ans4], [cans], [sid], [category], [subset]) VALUES (74, N'There is one
tale in The Canterbury Tales which is a shrewd satire on unequal
mar-riages. Which one is that?', N'The Nun''s Priest''s Tale of the Cock
Chanticleer and the Fox', N'The Merchant''s Tale of January and May', N'The
Wife of Bath''s Tale', N'The Knight''s Tale', N'Option 1', 1, N'B
', N'english subset 2')
INSERT [dbo].[oe_questions] ([qid], [question], [ans1], [ans2], [ans3],
[ans4], [cans], [sid], [category], [subset]) VALUES (75, N'An interesting
work of this period is a verse debate of two birds who advocate their
rela-tive merits. What is the name of the poem, which is often found in the
school antholo-gies in India?', N'Ormolu', N'The Owl and the Nightingale',
N'Cuckoo Song', N'The Cricket and the Grass-hopper', N'Option 4', 1, N'A
', N'english subset')
INSERT [dbo].[oe_questions] ([qid], [question], [ans1], [ans2], [ans3],
[ans4], [cans], [sid], [category], [subset]) VALUES (76, N'About Total''s
Miscellany a character in Shakespeare''s play says, "I had rather than
forty shillings I had my Book of Songs and Sonnets here." Who is the
speaker and in which play?', N'Slender in The Merry Wives of Windsor',
N'Cali ban in The Tempest', N'Rosalind in As You Like It', N'Don Pedro in
Much Ado About Nothing', N'Option 2', 1, N'B
', N'english subset 2')
INSERT [dbo].[oe_questions] ([qid], [question], [ans1], [ans2], [ans3],
[ans4], [cans], [sid], [category], [subset]) VALUES (77, N'On whose tomb
the following lines have been inscribed?
"Good friend for Jesus'' sake forebear To dig the dust enclosed hearer;
Blest be the man that spares these stones, And curst be he that moves my
bones"', N'Marlowe''s', N'Sidney''s', N'Shakespeare''s', N'Milton''s',
N'Option 2', 1, N'A ',
N'english subset')
INSERT [dbo].[oe_questions] ([qid], [question], [ans1], [ans2], [ans3],
[ans4], [cans], [sid], [category], [subset]) VALUES (78, N'The one that
traces the genealogy of a Shoemaker is', N'Cobbler', N'Shoemaker''s
Holiday', N'School of Abuse', N'The Gentle Craft', N'Option 3', 1, N'A
', N'english subset')
INSERT [dbo].[oe_questions] ([qid], [question], [ans1], [ans2], [ans3],
[ans4], [cans], [sid], [category], [subset]) VALUES (79, N'A noteworthy
work produced under the French influence in England was Layamon''s
voluminous poem of about 30,000 lines, named Brut. What is this book
about?', N'It is a legendary history of Britain', N'It is the story of
Brutus', N'It is King Arthur''s quest', N'It is a long pastoral poem',
N'Option 3', 1, N'B ',
N'english subset 2')
INSERT [dbo].[oe_questions] ([qid], [question], [ans1], [ans2], [ans3],
[ans4], [cans], [sid], [category], [subset]) VALUES (81, N'Who among the
following University Wits is primarily known for his Friar Bacon and Friar
Bunge?', N'Lyly', N'Peele', N'Greene', N'Keyed', N'Option 2', 1, N'A
', N'english subset')
INSERT [dbo].[oe_questions] ([qid], [question], [ans1], [ans2], [ans3],
[ans4], [cans], [sid], [category], [subset]) VALUES (83, N'The Spenserian
poet who had said that he became "irrecoverably a poet" by reading the
Faerie Queen when a boy, is', N'Dryden', N'Fletcher', N'Moore', N'Cowley',
N'Option 4', 1, N'A ',
N'english subset')
INSERT [dbo].[oe_questions] ([qid], [question], [ans1], [ans2], [ans3],
[ans4], [cans], [sid], [category], [subset]) VALUES (89, N'The one that
traces the genealogy of a Shoemaker is', N'Cobbler', N'Shoemaker''s
Holiday', N'School of Abuse', N'The Gentle Craft', N'Option 3', 1, N'A
', N'english subset')
INSERT [dbo].[oe_questions] ([qid], [question], [ans1], [ans2], [ans3],
[ans4], [cans], [sid], [category], [subset]) VALUES (80, N'Campuses,
Edition, Hudibras, Love''s Metamorphosis and The Woman in the Moon are the
best works of John Lyly, who wrote mostly', N'Novels were few and could be
enjoyed only by the educated', N'National themes and sentiments were
dramatized.', N'Drama was the best way for the author to earn money', N'All
of the above', N'Option 2', 1, N'A
', N'english subset')
INSERT [dbo].[oe_questions] ([qid], [question], [ans1], [ans2], [ans3],
[ans4], [cans], [sid], [category], [subset]) VALUES (82, N'Who is credited
for introducing the first English comedy, The Supposes, the first verse
satire, The Steel Glass, and the first translation from the Greek tragedy
Jocasta?', N'Sackville', N'Gascoigne', N'Erasmus', N'Philip Sidney',
N'Option 3', 1, N'B ',
N'english subset 2')
INSERT [dbo].[oe_questions] ([qid], [question], [ans1], [ans2], [ans3],
[ans4], [cans], [sid], [category], [subset]) VALUES (84, N'In which of the
following, Naples has been described as a place "of more pleasure than
profit and yet of more profit than pity"?', N'Euphuism by Lyly', N'Pando to
by Greene', N'The Adventures of Master F.J. by Gascoigne', N'Rosalinda by
Lodge', N'Option 2', 1, N'B
', N'english subset 2')
INSERT [dbo].[oe_questions] ([qid], [question], [ans1], [ans2], [ans3],
[ans4], [cans], [sid], [category], [subset]) VALUES (85, N'There is one
tale in The Canterbury Tales which is a shrewd satire on unequal
mar-riages. Which one is that?', N'The Nun''s Priest''s Tale of the Cock
Chanticleer and the Fox', N'The Merchant''s Tale of January and May', N'The
Wife of Bath''s Tale', N'The Knight''s Tale', N'Option 1', 1, N'B
', N'english subset 2')
INSERT [dbo].[oe_questions] ([qid], [question], [ans1], [ans2], [ans3],
[ans4], [cans], [sid], [category], [subset]) VALUES (86, N'An interesting
work of this period is a verse debate of two birds who advocate their
rela-tive merits. What is the name of the poem, which is often found in the
school antholo-gies in India?', N'Ormolu', N'The Owl and the Nightingale',
N'Cuckoo Song', N'The Cricket and the Grass-hopper', N'Option 4', 1, N'A
', N'english subset')
INSERT [dbo].[oe_questions] ([qid], [question], [ans1], [ans2], [ans3],
[ans4], [cans], [sid], [category], [subset]) VALUES (87, N'About Total''s
Miscellany a character in Shakespeare''s play says, "I had rather than
forty shillings I had my Book of Songs and Sonnets here." Who is the
speaker and in which play?', N'Slender in The Merry Wives of Windsor',
N'Cali ban in The Tempest', N'Rosalind in As You Like It', N'Don Pedro in
Much Ado About Nothing', N'Option 2', 1, N'B
', N'english subset 2')
INSERT [dbo].[oe_questions] ([qid], [question], [ans1], [ans2], [ans3],
[ans4], [cans], [sid], [category], [subset]) VALUES (88, N'On whose tomb
the following lines have been inscribed?
"Good friend for Jesus'' sake forebear To dig the dust enclosed hearer;
Blest be the man that spares these stones, And curst be he that moves my
bones"', N'Marlowe''s', N'Sidney''s', N'Shakespeare''s', N'Milton''s',
N'Option 2', 1, N'A ',
N'english subset')
INSERT [dbo].[oe_questions] ([qid], [question], [ans1], [ans2], [ans3],
[ans4], [cans], [sid], [category], [subset]) VALUES (90, N'A noteworthy
work produced under the French influence in England was Layamon''s
voluminous poem of about 30,000 lines, named Brut. What is this book
about?', N'It is a legendary history of Britain', N'It is the story of
Brutus', N'It is King Arthur''s quest', N'It is a long pastoral poem',
N'Option 3', 1, N'B ',
N'english subset 2')
INSERT [dbo].[oe_questions] ([qid], [question], [ans1], [ans2], [ans3],
[ans4], [cans], [sid], [category], [subset]) VALUES (91, N'Campuses,
Edition, Hudibras, Love''s Metamorphosis and The Woman in the Moon are the
best works of John Lyly, who wrote mostly', N'Novels were few and could be
enjoyed only by the educated', N'National themes and sentiments were
dramatized.', N'Drama was the best way for the author to earn money', N'All
of the above', N'Option 2', 1, N'A
', N'english subset')
INSERT [dbo].[oe_questions] ([qid], [question], [ans1], [ans2], [ans3],
[ans4], [cans], [sid], [category], [subset]) VALUES (92, N'Who among the
following University Wits is primarily known for his Friar Bacon and Friar
Bunge?', N'Lyly', N'Peele', N'Greene', N'Keyed', N'Option 2', 1, N'A
', N'english subset')
INSERT [dbo].[oe_questions] ([qid], [question], [ans1], [ans2], [ans3],
[ans4], [cans], [sid], [category], [subset]) VALUES (93, N'Who is credited
for introducing the first English comedy, The Supposes, the first verse
satire, The Steel Glass, and the first translation from the Greek tragedy
Jocasta?', N'Sackville', N'Gascoigne', N'Erasmus', N'Philip Sidney',
N'Option 3', 1, N'B ',
N'english subset 2')
INSERT [dbo].[oe_questions] ([qid], [question], [ans1], [ans2], [ans3],
[ans4], [cans], [sid], [category], [subset]) VALUES (94, N'The Spenserian
poet who had said that he became "irrecoverably a poet" by reading the
Faerie Queen when a boy, is', N'Dryden', N'Fletcher', N'Moore', N'Cowley',
N'Option 4', 1, N'A ',
N'english subset')
INSERT [dbo].[oe_questions] ([qid], [question], [ans1], [ans2], [ans3],
[ans4], [cans], [sid], [category], [subset]) VALUES (144, N'The one that
traces the genealogy of a Shoemaker is', N'Cobbler', N'Shoemaker''s
Holiday', N'School of Abuse', N'The Gentle Craft', N'Option 3', 1, N'A
', N'english subset')
INSERT [dbo].[oe_questions] ([qid], [question], [ans1], [ans2], [ans3],
[ans4], [cans], [sid], [category], [subset]) VALUES (95, N'In which of the
following, Naples has been described as a place "of more pleasure than
profit and yet of more profit than pity"?', N'Euphuism by Lyly', N'Pando to
by Greene', N'The Adventures of Master F.J. by Gascoigne', N'Rosalinda by
Lodge', N'Option 2', 1, N'B
', N'english subset 2')
INSERT [dbo].[oe_questions] ([qid], [question], [ans1], [ans2], [ans3],
[ans4], [cans], [sid], [category], [subset]) VALUES (96, N'There is one
tale in The Canterbury Tales which is a shrewd satire on unequal
mar-riages. Which one is that?', N'The Nun''s Priest''s Tale of the Cock
Chanticleer and the Fox', N'The Merchant''s Tale of January and May', N'The
Wife of Bath''s Tale', N'The Knight''s Tale', N'Option 1', 1, N'B
', N'english subset 2')
INSERT [dbo].[oe_questions] ([qid], [question], [ans1], [ans2], [ans3],
[ans4], [cans], [sid], [category], [subset]) VALUES (97, N'An interesting
work of this period is a verse debate of two birds who advocate their
rela-tive merits. What is the name of the poem, which is often found in the
school antholo-gies in India?', N'Ormolu', N'The Owl and the Nightingale',
N'Cuckoo Song', N'The Cricket and the Grass-hopper', N'Option 4', 1, N'A
', N'english subset')
INSERT [dbo].[oe_questions] ([qid], [question], [ans1], [ans2], [ans3],
[ans4], [cans], [sid], [category], [subset]) VALUES (98, N'About Total''s
Miscellany a character in Shakespeare''s play says, "I had rather than
forty shillings I had my Book of Songs and Sonnets here." Who is the
speaker and in which play?', N'Slender in The Merry Wives of Windsor',
N'Cali ban in The Tempest', N'Rosalind in As You Like It', N'Don Pedro in
Much Ado About Nothing', N'Option 2', 1, N'B
', N'english subset 2')
INSERT [dbo].[oe_questions] ([qid], [question], [ans1], [ans2], [ans3],
[ans4], [cans], [sid], [category], [subset]) VALUES (99, N'On whose tomb
the following lines have been inscribed?
"Good friend for Jesus'' sake forebear To dig the dust enclosed hearer;
Blest be the man that spares these stones, And curst be he that moves my
bones"', N'Marlowe''s', N'Sidney''s', N'Shakespeare''s', N'Milton''s',
N'Option 2', 1, N'A ',
N'english subset')
INSERT [dbo].[oe_questions] ([qid], [question], [ans1], [ans2], [ans3],
[ans4], [cans], [sid], [category], [subset]) VALUES (100, N'The one that
traces the genealogy of a Shoemaker is', N'Cobbler', N'Shoemaker''s
Holiday', N'School of Abuse', N'The Gentle Craft', N'Option 3', 1, N'A
', N'english subset')
INSERT [dbo].[oe_questions] ([qid], [question], [ans1], [ans2], [ans3],
[ans4], [cans], [sid], [category], [subset]) VALUES (101, N'A noteworthy
work produced under the French influence in England was Layamon''s
voluminous poem of about 30,000 lines, named Brut. What is this book
about?', N'It is a legendary history of Britain', N'It is the story of
Brutus', N'It is King Arthur''s quest', N'It is a long pastoral poem',
N'Option 3', 1, N'B ',
N'english subset 2')
INSERT [dbo].[oe_questions] ([qid], [question], [ans1], [ans2], [ans3],
[ans4], [cans], [sid], [category], [subset]) VALUES (102, N'Campuses,
Edition, Hudibras, Love''s Metamorphosis and The Woman in the Moon are the
best works of John Lyly, who wrote mostly', N'Novels were few and could be
enjoyed only by the educated', N'National themes and sentiments were
dramatized.', N'Drama was the best way for the author to earn money', N'All
of the above', N'Option 2', 1, N'A
', N'english subset')
INSERT [dbo].[oe_questions] ([qid], [question], [ans1], [ans2], [ans3],
[ans4], [cans], [sid], [category], [subset]) VALUES (103, N'Who among the
following University Wits is primarily known for his Friar Bacon and Friar
Bunge?', N'Lyly', N'Peele', N'Greene', N'Keyed', N'Option 2', 1, N'A
', N'english subset')
INSERT [dbo].[oe_questions] ([qid], [question], [ans1], [ans2], [ans3],
[ans4], [cans], [sid], [category], [subset]) VALUES (104, N'Who is credited
for introducing the first English comedy, The Supposes, the first verse
satire, The Steel Glass, and the first translation from the Greek tragedy
Jocasta?', N'Sackville', N'Gascoigne', N'Erasmus', N'Philip Sidney',
N'Option 3', 1, N'B ',
N'english subset 2')
INSERT [dbo].[oe_questions] ([qid], [question], [ans1], [ans2], [ans3],
[ans4], [cans], [sid], [category], [subset]) VALUES (105, N'The Spenserian
poet who had said that he became "irrecoverably a poet" by reading the
Faerie Queen when a boy, is', N'Dryden', N'Fletcher', N'Moore', N'Cowley',
N'Option 4', 1, N'A ',
N'english subset')
INSERT [dbo].[oe_questions] ([qid], [question], [ans1], [ans2], [ans3],
[ans4], [cans], [sid], [category], [subset]) VALUES (106, N'In which of the
following, Naples has been described as a place "of more pleasure than
profit and yet of more profit than pity"?', N'Euphuism by Lyly', N'Pando to
by Greene', N'The Adventures of Master F.J. by Gascoigne', N'Rosalinda by
Lodge', N'Option 2', 1, N'B
', N'english subset 2')
INSERT [dbo].[oe_questions] ([qid], [question], [ans1], [ans2], [ans3],
[ans4], [cans], [sid], [category], [subset]) VALUES (111, N'The one that
traces the genealogy of a Shoemaker is', N'Cobbler', N'Shoemaker''s
Holiday', N'School of Abuse', N'The Gentle Craft', N'Option 3', 1, N'A
', N'english subset')
INSERT [dbo].[oe_questions] ([qid], [question], [ans1], [ans2], [ans3],
[ans4], [cans], [sid], [category], [subset]) VALUES (114, N'Who among the
following University Wits is primarily known for his Friar Bacon and Friar
Bunge?', N'Lyly', N'Peele', N'Greene', N'Keyed', N'Option 2', 1, N'A
', N'english subset')
INSERT [dbo].[oe_questions] ([qid], [question], [ans1], [ans2], [ans3],
[ans4], [cans], [sid], [category], [subset]) VALUES (116, N'The Spenserian
poet who had said that he became "irrecoverably a poet" by reading the
Faerie Queen when a boy, is', N'Dryden', N'Fletcher', N'Moore', N'Cowley',
N'Option 4', 1, N'A ',
N'english subset')
INSERT [dbo].[oe_questions] ([qid], [question], [ans1], [ans2], [ans3],
[ans4], [cans], [sid], [category], [subset]) VALUES (107, N'There is one
tale in The Canterbury Tales which is a shrewd satire on unequal
mar-riages. Which one is that?', N'The Nun''s Priest''s Tale of the Cock
Chanticleer and the Fox', N'The Merchant''s Tale of January and May', N'The
Wife of Bath''s Tale', N'The Knight''s Tale', N'Option 1', 1, N'B
', N'english subset 2')
INSERT [dbo].[oe_questions] ([qid], [question], [ans1], [ans2], [ans3],
[ans4], [cans], [sid], [category], [subset]) VALUES (108, N'An interesting
work of this period is a verse debate of two birds who advocate their
rela-tive merits. What is the name of the poem, which is often found in the
school antholo-gies in India?', N'Ormolu', N'The Owl and the Nightingale',
N'Cuckoo Song', N'The Cricket and the Grass-hopper', N'Option 4', 1, N'A
', N'english subset')
INSERT [dbo].[oe_questions] ([qid], [question], [ans1], [ans2], [ans3],
[ans4], [cans], [sid], [category], [subset]) VALUES (109, N'About Total''s
Miscellany a character in Shakespeare''s play says, "I had rather than
forty shillings I had my Book of Songs and Sonnets here." Who is the
speaker and in which play?', N'Slender in The Merry Wives of Windsor',
N'Cali ban in The Tempest', N'Rosalind in As You Like It', N'Don Pedro in
Much Ado About Nothing', N'Option 2', 1, N'B
', N'english subset 2')
INSERT [dbo].[oe_questions] ([qid], [question], [ans1], [ans2], [ans3],
[ans4], [cans], [sid], [category], [subset]) VALUES (110, N'On whose tomb
the following lines have been inscribed?
"Good friend for Jesus'' sake forebear To dig the dust enclosed hearer;
Blest be the man that spares these stones, And curst be he that moves my
bones"', N'Marlowe''s', N'Sidney''s', N'Shakespeare''s', N'Milton''s',
N'Option 2', 1, N'A ',
N'english subset')
INSERT [dbo].[oe_questions] ([qid], [question], [ans1], [ans2], [ans3],
[ans4], [cans], [sid], [category], [subset]) VALUES (112, N'A noteworthy
work produced under the French influence in England was Layamon''s
voluminous poem of about 30,000 lines, named Brut. What is this book
about?', N'It is a legendary history of Britain', N'It is the story of
Brutus', N'It is King Arthur''s quest', N'It is a long pastoral poem',
N'Option 3', 1, N'B ',
N'english subset 2')
INSERT [dbo].[oe_questions] ([qid], [question], [ans1], [ans2], [ans3],
[ans4], [cans], [sid], [category], [subset]) VALUES (113, N'Campuses,
Edition, Hudibras, Love''s Metamorphosis and The Woman in the Moon are the
best works of John Lyly, who wrote mostly', N'Novels were few and could be
enjoyed only by the educated', N'National themes and sentiments were
dramatized.', N'Drama was the best way for the author to earn money', N'All
of the above', N'Option 2', 1, N'A
', N'english subset')
INSERT [dbo].[oe_questions] ([qid], [question], [ans1], [ans2], [ans3],
[ans4], [cans], [sid], [category], [subset]) VALUES (115, N'Who is credited
for introducing the first English comedy, The Supposes, the first verse
satire, The Steel Glass, and the first translation from the Greek tragedy
Jocasta?', N'Sackville', N'Gascoigne', N'Erasmus', N'Philip Sidney',
N'Option 3', 1, N'B ',
N'english subset 2')
INSERT [dbo].[oe_questions] ([qid], [question], [ans1], [ans2], [ans3],
[ans4], [cans], [sid], [category], [subset]) VALUES (117, N'In which of the
following, Naples has been described as a place "of more pleasure than
profit and yet of more profit than pity"?', N'Euphuism by Lyly', N'Pando to
by Greene', N'The Adventures of Master F.J. by Gascoigne', N'Rosalinda by
Lodge', N'Option 2', 1, N'B
', N'english subset 2')
INSERT [dbo].[oe_questions] ([qid], [question], [ans1], [ans2], [ans3],
[ans4], [cans], [sid], [category], [subset]) VALUES (118, N'There is one
tale in The Canterbury Tales which is a shrewd satire on unequal
mar-riages. Which one is that?', N'The Nun''s Priest''s Tale of the Cock
Chanticleer and the Fox', N'The Merchant''s Tale of January and May', N'The
Wife of Bath''s Tale', N'The Knight''s Tale', N'Option 1', 1, N'B
', N'english subset 2')
INSERT [dbo].[oe_questions] ([qid], [question], [ans1], [ans2], [ans3],
[ans4], [cans], [sid], [category], [subset]) VALUES (119, N'An interesting
work of this period is a verse debate of two birds who advocate their
rela-tive merits. What is the name of the poem, which is often found in the
school antholo-gies in India?', N'Ormolu', N'The Owl and the Nightingale',
N'Cuckoo Song', N'The Cricket and the Grass-hopper', N'Option 4', 1, N'A
', N'english subset')
INSERT [dbo].[oe_questions] ([qid], [question], [ans1], [ans2], [ans3],
[ans4], [cans], [sid], [category], [subset]) VALUES (120, N'About Total''s
Miscellany a character in Shakespeare''s play says, "I had rather than
forty shillings I had my Book of Songs and Sonnets here." Who is the
speaker and in which play?', N'Slender in The Merry Wives of Windsor',
N'Cali ban in The Tempest', N'Rosalind in As You Like It', N'Don Pedro in
Much Ado About Nothing', N'Option 2', 1, N'B
', N'english subset 2')
INSERT [dbo].[oe_questions] ([qid], [question], [ans1], [ans2], [ans3],
[ans4], [cans], [sid], [category], [subset]) VALUES (121, N'On whose tomb
the following lines have been inscribed?
"Good friend for Jesus'' sake forebear To dig the dust enclosed hearer;
Blest be the man that spares these stones, And curst be he that moves my
bones"', N'Marlowe''s', N'Sidney''s', N'Shakespeare''s', N'Milton''s',
N'Option 2', 1, N'A ',
N'english subset')
INSERT [dbo].[oe_questions] ([qid], [question], [ans1], [ans2], [ans3],
[ans4], [cans], [sid], [category], [subset]) VALUES (122, N'The one that
traces the genealogy of a Shoemaker is', N'Cobbler', N'Shoemaker''s
Holiday', N'School of Abuse', N'The Gentle Craft', N'Option 3', 1, N'A
', N'english subset')
INSERT [dbo].[oe_questions] ([qid], [question], [ans1], [ans2], [ans3],
[ans4], [cans], [sid], [category], [subset]) VALUES (123, N'A noteworthy
work produced under the French influence in England was Layamon''s
voluminous poem of about 30,000 lines, named Brut. What is this book
about?', N'It is a legendary history of Britain', N'It is the story of
Brutus', N'It is King Arthur''s quest', N'It is a long pastoral poem',
N'Option 3', 1, N'B ',
N'english subset 2')
INSERT [dbo].[oe_questions] ([qid], [question], [ans1], [ans2], [ans3],
[ans4], [cans], [sid], [category], [subset]) VALUES (124, N'Campuses,
Edition, Hudibras, Love''s Metamorphosis and The Woman in the Moon are the
best works of John Lyly, who wrote mostly', N'Novels were few and could be
enjoyed only by the educated', N'National themes and sentiments were
dramatized.', N'Drama was the best way for the author to earn money', N'All
of the above', N'Option 2', 1, N'A
', N'english subset')
INSERT [dbo].[oe_questions] ([qid], [question], [ans1], [ans2], [ans3],
[ans4], [cans], [sid], [category], [subset]) VALUES (125, N'Who among the
following University Wits is primarily known for his Friar Bacon and Friar
Bunge?', N'Lyly', N'Peele', N'Greene', N'Keyed', N'Option 2', 1, N'A
', N'english subset')
INSERT [dbo].[oe_questions] ([qid], [question], [ans1], [ans2], [ans3],
[ans4], [cans], [sid], [category], [subset]) VALUES (126, N'Who is credited
for introducing the first English comedy, The Supposes, the first verse
satire, The Steel Glass, and the first translation from the Greek tragedy
Jocasta?', N'Sackville', N'Gascoigne', N'Erasmus', N'Philip Sidney',
N'Option 3', 1, N'B ',
N'english subset 2')
INSERT [dbo].[oe_questions] ([qid], [question], [ans1], [ans2], [ans3],
[ans4], [cans], [sid], [category], [subset]) VALUES (127, N'The Spenserian
poet who had said that he became "irrecoverably a poet" by reading the
Faerie Queen when a boy, is', N'Dryden', N'Fletcher', N'Moore', N'Cowley',
N'Option 4', 1, N'A ',
N'english subset')
INSERT [dbo].[oe_questions] ([qid], [question], [ans1], [ans2], [ans3],
[ans4], [cans], [sid], [category], [subset]) VALUES (128, N'In which of the
following, Naples has been described as a place "of more pleasure than
profit and yet of more profit than pity"?', N'Euphuism by Lyly', N'Pando to
by Greene', N'The Adventures of Master F.J. by Gascoigne', N'Rosalinda by
Lodge', N'Option 2', 1, N'B
', N'english subset 2')
INSERT [dbo].[oe_questions] ([qid], [question], [ans1], [ans2], [ans3],
[ans4], [cans], [sid], [category], [subset]) VALUES (129, N'There is one
tale in The Canterbury Tales which is a shrewd satire on unequal
mar-riages. Which one is that?', N'The Nun''s Priest''s Tale of the Cock
Chanticleer and the Fox', N'The Merchant''s Tale of January and May', N'The
Wife of Bath''s Tale', N'The Knight''s Tale', N'Option 1', 1, N'B
', N'english subset 2')
INSERT [dbo].[oe_questions] ([qid], [question], [ans1], [ans2], [ans3],
[ans4], [cans], [sid], [category], [subset]) VALUES (130, N'An interesting
work of this period is a verse debate of two birds who advocate their
rela-tive merits. What is the name of the poem, which is often found in the
school antholo-gies in India?', N'Ormolu', N'The Owl and the Nightingale',
N'Cuckoo Song', N'The Cricket and the Grass-hopper', N'Option 4', 1, N'A
', N'english subset')
INSERT [dbo].[oe_questions] ([qid], [question], [ans1], [ans2], [ans3],
[ans4], [cans], [sid], [category], [subset]) VALUES (131, N'About Total''s
Miscellany a character in Shakespeare''s play says, "I had rather than
forty shillings I had my Book of Songs and Sonnets here." Who is the
speaker and in which play?', N'Slender in The Merry Wives of Windsor',
N'Cali ban in The Tempest', N'Rosalind in As You Like It', N'Don Pedro in
Much Ado About Nothing', N'Option 2', 1, N'B
', N'english subset 2')
INSERT [dbo].[oe_questions] ([qid], [question], [ans1], [ans2], [ans3],
[ans4], [cans], [sid], [category], [subset]) VALUES (132, N'On whose tomb
the following lines have been inscribed?
"Good friend for Jesus'' sake forebear To dig the dust enclosed hearer;
Blest be the man that spares these stones, And curst be he that moves my
bones"', N'Marlowe''s', N'Sidney''s', N'Shakespeare''s', N'Milton''s',
N'Option 2', 1, N'A ',
N'english subset')
INSERT [dbo].[oe_questions] ([qid], [question], [ans1], [ans2], [ans3],
[ans4], [cans], [sid], [category], [subset]) VALUES (133, N'The one that
traces the genealogy of a Shoemaker is', N'Cobbler', N'Shoemaker''s
Holiday', N'School of Abuse', N'The Gentle Craft', N'Option 3', 1, N'A
', N'english subset')
INSERT [dbo].[oe_questions] ([qid], [question], [ans1], [ans2], [ans3],
[ans4], [cans], [sid], [category], [subset]) VALUES (136, N'Who among the
following University Wits is primarily known for his Friar Bacon and Friar
Bunge?', N'Lyly', N'Peele', N'Greene', N'Keyed', N'Option 2', 1, N'A
', N'english subset')
GO
print 'Processed 100 total records'
INSERT [dbo].[oe_questions] ([qid], [question], [ans1], [ans2], [ans3],
[ans4], [cans], [sid], [category], [subset]) VALUES (138, N'The Spenserian
poet who had said that he became "irrecoverably a poet" by reading the
Faerie Queen when a boy, is', N'Dryden', N'Fletcher', N'Moore', N'Cowley',
N'Option 4', 1, N'A ',
N'english subset')
INSERT [dbo].[oe_questions] ([qid], [question], [ans1], [ans2], [ans3],
[ans4], [cans], [sid], [category], [subset]) VALUES (134, N'A noteworthy
work produced under the French influence in England was Layamon''s
voluminous poem of about 30,000 lines, named Brut. What is this book
about?', N'It is a legendary history of Britain', N'It is the story of
Brutus', N'It is King Arthur''s quest', N'It is a long pastoral poem',
N'Option 3', 1, N'B ',
N'english subset 2')
INSERT [dbo].[oe_questions] ([qid], [question], [ans1], [ans2], [ans3],
[ans4], [cans], [sid], [category], [subset]) VALUES (135, N'Campuses,
Edition, Hudibras, Love''s Metamorphosis and The Woman in the Moon are the
best works of John Lyly, who wrote mostly', N'Novels were few and could be
enjoyed only by the educated', N'National themes and sentiments were
dramatized.', N'Drama was the best way for the author to earn money', N'All
of the above', N'Option 2', 1, N'A
', N'english subset')
INSERT [dbo].[oe_questions] ([qid], [question], [ans1], [ans2], [ans3],
[ans4], [cans], [sid], [category], [subset]) VALUES (137, N'Who is credited
for introducing the first English comedy, The Supposes, the first verse
satire, The Steel Glass, and the first translation from the Greek tragedy
Jocasta?', N'Sackville', N'Gascoigne', N'Erasmus', N'Philip Sidney',
N'Option 3', 1, N'B ',
N'english subset 2')
INSERT [dbo].[oe_questions] ([qid], [question], [ans1], [ans2], [ans3],
[ans4], [cans], [sid], [category], [subset]) VALUES (139, N'In which of the
following, Naples has been described as a place "of more pleasure than
profit and yet of more profit than pity"?', N'Euphuism by Lyly', N'Pando to
by Greene', N'The Adventures of Master F.J. by Gascoigne', N'Rosalinda by
Lodge', N'Option 2', 1, N'B
', N'english subset 2')
INSERT [dbo].[oe_questions] ([qid], [question], [ans1], [ans2], [ans3],
[ans4], [cans], [sid], [category], [subset]) VALUES (141, N'An interesting
work of this period is a verse debate of two birds who advocate their
rela-tive merits. What is the name of the poem, which is often found in the
school antholo-gies in India?', N'Ormolu', N'The Owl and the Nightingale',
N'Cuckoo Song', N'The Cricket and the Grass-hopper', N'Option 4', 1, N'A
', N'english subset')
INSERT [dbo].[oe_questions] ([qid], [question], [ans1], [ans2], [ans3],
[ans4], [cans], [sid], [category], [subset]) VALUES (142, N'About Total''s
Miscellany a character in Shakespeare''s play says, "I had rather than
forty shillings I had my Book of Songs and Sonnets here." Who is the
speaker and in which play?', N'Slender in The Merry Wives of Windsor',
N'Cali ban in The Tempest', N'Rosalind in As You Like It', N'Don Pedro in
Much Ado About Nothing', N'Option 2', 1, N'B
', N'english subset 2')
INSERT [dbo].[oe_questions] ([qid], [question], [ans1], [ans2], [ans3],
[ans4], [cans], [sid], [category], [subset]) VALUES (143, N'On whose tomb
the following lines have been inscribed?
"Good friend for Jesus'' sake forebear To dig the dust enclosed hearer;
Blest be the man that spares these stones, And curst be he that moves my
bones"', N'Marlowe''s', N'Sidney''s', N'Shakespeare''s', N'Milton''s',
N'Option 2', 1, N'A ',
N'english subset')
INSERT [dbo].[oe_questions] ([qid], [question], [ans1], [ans2], [ans3],
[ans4], [cans], [sid], [category], [subset]) VALUES (145, N'A noteworthy
work produced under the French influence in England was Layamon''s
voluminous poem of about 30,000 lines, named Brut. What is this book
about?', N'It is a legendary history of Britain', N'It is the story of
Brutus', N'It is King Arthur''s quest', N'It is a long pastoral poem',
N'Option 3', 1, N'B ',
N'english subset 2')
SET IDENTITY_INSERT [dbo].[oe_questions] OFF
/****** Object: Table [dbo].[oe_members] Script Date: 03/28/2014
16:53:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [dbo].[oe_members](
[mid] [int] NOT NULL,
[lname] [varchar](10) NULL,
[pwd] [varchar](10) NOT NULL,
[fullname] [varchar](50) NOT NULL,
[email] [varchar](50) NOT NULL,
[dlv] [datetime] NULL,
[dr] [datetime] NULL,
PRIMARY KEY CLUSTERED
(
[mid] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY =
OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY],
UNIQUE NONCLUSTERED
(
[lname] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY =
OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY],
UNIQUE NONCLUSTERED
(
[email] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY =
OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
INSERT [dbo].[oe_members] ([mid], [lname], [pwd], [fullname], [email],
[dlv], [dr]) VALUES (1, N'a', N'a', N'ABC', N'abc@classroom.com',
CAST(0x0000A2380107250F AS DateTime), CAST(0x0000A23700CD9342 AS DateTime))
INSERT [dbo].[oe_members] ([mid], [lname], [pwd], [fullname], [email],
[dlv], [dr]) VALUES (2, N'b', N'b', N'XYZ', N'xyz@classroom.com', NULL,
CAST(0x0000A23700CD9343 AS DateTime))
INSERT [dbo].[oe_members] ([mid], [lname], [pwd], [fullname], [email],
[dlv], [dr]) VALUES (3, N'demo', N'demo', N'ashish kaushik',
N'akaushik855@gmail.com', CAST(0x0000A2FC00D2F4AC AS DateTime),
CAST(0x0000A23700F21071 AS DateTime))
/****** Object: Table [dbo].[Exam_type] Script Date: 03/28/2014
16:53:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[Exam_type](
[catid] [int] IDENTITY(1,1) NOT NULL,
[sid] [int] NOT NULL,
[ExamType] [nvarchar](100) NULL,
CONSTRAINT [PK_Exam_type] PRIMARY KEY CLUSTERED
(
[catid] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY =
OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
SET IDENTITY_INSERT [dbo].[Exam_type] ON
INSERT [dbo].[Exam_type] ([catid], [sid], [ExamType]) VALUES (3, 3,
N'Junior Secondary School')
INSERT [dbo].[Exam_type] ([catid], [sid], [ExamType]) VALUES (6, 1,
N'Primary School')
INSERT [dbo].[Exam_type] ([catid], [sid], [ExamType]) VALUES (7, 2,
N'Senior Secondary School')
INSERT [dbo].[Exam_type] ([catid], [sid], [ExamType]) VALUES (8, 4,
N'Institution')
INSERT [dbo].[Exam_type] ([catid], [sid], [ExamType]) VALUES (9, 5,
N'Recruitment')
SET IDENTITY_INSERT [dbo].[Exam_type] OFF
/****** Object: Table [dbo].[category] Script Date: 03/28/2014 16:53:59
******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[category](
[catid] [int] IDENTITY(1,1) NOT NULL,
[cat_name] [nvarchar](50) NOT NULL
) ON [PRIMARY]
GO
/****** Object: Table [dbo].[subset] Script Date: 03/28/2014 16:53:59
******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[subset](
[ssid] [int] IDENTITY(1,1) NOT NULL,
[SubsetName] [nvarchar](50) NULL
) ON [PRIMARY]
GO
/****** Object: StoredProcedure [dbo].[SubmitQuestion] Script Date:
03/28/2014 16:55:00 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
create proc [dbo].[SubmitQuestion]
(
@question nvarchar(2000),
@ans1 nvarchar(1000),
@ans2 nvarchar(1000) ,
@ans3 nvarchar(1000),
@ans4 nvarchar(1000),
@cans nvarchar(50),
@sid int,
@category char(50),
@subset nvarchar(100)
)
as begin
insert into
oe_questions([question],[ans1],[ans2],[ans3],[ans4],[cans],[sid],[category]
,[subset]) values
(@question,@ans1,@ans2,@ans3,@ans4,@cans,@sid,@category,@subset)
end
GO
/****** Object: Table [dbo].[oe_exams] Script Date: 03/28/2014 16:55:00
******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[oe_exams](
[examid] [int] NOT NULL,
[mid] [int] NULL,
[sid] [int] NULL,
[noq] [int] NULL,
[nocans] [int] NULL,
[stdate] [datetime] NULL,
[enddate] [datetime] NULL,
PRIMARY KEY CLUSTERED
(
[examid] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY =
OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object: StoredProcedure [dbo].[GetQuestionPageWise] Script
Date: 03/28/2014 16:55:01 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
-- =============================================
CREATE PROCEDURE [dbo].[GetQuestionPageWise]
@PageIndex INT = 1
,@PageSize INT = 10
,@RecordCount INT OUTPUT
AS
BEGIN
SET NOCOUNT ON;
SELECT ROW_NUMBER() OVER
(
ORDER BY [qid] ASC
)AS RowNumber
,[qid]
,[question]
,[ans1]
,[ans2]
,[ans3]
,[ans4]
,[cans]
,[sid]
,[category]
,[subset]
INTO #Results
FROM [oe_questions]
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Login ::</title>
</head>
<body>
<form id="form1" runat="server">
<center>
<div>
<br />
<h3>
Admin Login</h3>
<br />
<br />
<table bgcolor= "#eeeeee">
<tr>
<td>Login Name :</td>
<td><asp:TextBox ID="txtLname" runat="server"
Width="150px"></asp:TextBox>
<asp:RequiredFieldValidator
ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtLname"
ErrorMessage="Llogin name is missing!" Font-
Bold="True">*</asp:RequiredFieldValidator></td>
</tr>
<tr>
<td>Password :</td>
<td><asp:TextBox ID="txtPwd" runat="server"
TextMode="Password" Width="150px"></asp:TextBox>
<asp:RequiredFieldValidator
ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtPwd"
ErrorMessage="Password is missing!" Font-
Bold="True">*</asp:RequiredFieldValidator></td>
</tr>
<tr>
<td colspan="2">
</td>
</tr>
</table>
<br />
<asp:Button ID="btnLogin" runat="server" Text="Login" Width="116px"
OnClick="btnLogin_Click" /><br />
<br />
<asp:Label ID="lblMsg" runat="server"></asp:Label>
<p>
<asp:ValidationSummary ID="ValidationSummary1" runat="server"
HeaderText="Please correct the following errors:" Font-Bold="True" />
<p/>
<br />
<br />
<br />
<br />
</div>
</center>
</form>
</body>
</html>
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Data.SqlClient;
public partial class adminlog_Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
protected void btnLogin_Click(object sender, EventArgs e)
{
// check whether credentials are valid
SqlConnection con = new SqlConnection(DBUtil.ConnectionString);
try
{
con.Open();
SqlCommand cmd = new SqlCommand("select * from oe_members where
lname = @lname and pwd = @pwd", con);
cmd.Parameters.Add("@lname", SqlDbType.VarChar, 10).Value =
txtLname.Text;
cmd.Parameters.Add("@pwd", SqlDbType.VarChar, 10).Value =
txtPwd.Text;
SqlDataReader dr = cmd.ExecuteReader();
if (dr.Read())
{
Session.Add("mid", dr["mid"]);
Session.Add("fullname", dr["fullname"]);
Session.Add("dlv", dr["dlv"]);
// update MEMBERS table for DLV
dr.Close();
cmd.CommandText = "update oe_members set dlv = getdate()
where lname = @lname";
cmd.ExecuteNonQuery();
Response.Redirect("home.aspx?pn=dash");
}
else
{
lblMsg.Text = "Invalid Login!";
dr.Close();
}
}
catch (Exception ex)
{
lblMsg.Text = "Error --> " + ex.Message;
}
finally
{
con.Close();
}
}
}
<div style="background-color:#ffffff;padding:15px;">
<asp:PlaceHolder ID="plcContentForm" EnableViewState="true"
runat="server"></asp:PlaceHolder>
</div>
</asp:Content>
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
switch (pagename)
{
//-------------------------------------------------------------
---------------------
case "dash":
this.plcContentForm.Controls.Add(LoadControl("pages/dashboard.ascx"));
break;
case "students":
this.plcContentForm.Controls.Add(LoadControl("pages/addstudents.ascx"));
break;
case "subject":
this.plcContentForm.Controls.Add(LoadControl("pages/addsubjects.ascx"));
break;
case "question":
this.plcContentForm.Controls.Add(LoadControl("pages/addquestions.ascx"));
break;
}
}
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Admin Panel ::</title>
<link href="css/Site.css" rel="stylesheet" />
</head>
<body>
<form runat=server>
<table height="100%" width="100%">
<tr style="height:200 px">
<td colspan="2" style="height:10px">
<h1>Admin Panel</h1>
</td>
</tr>
<tr>
<td width="20%" bgcolor="#dddddd" valign="top">
<a href="home.aspx?pn=students">Import Student Details</a>
<p />
<a href="home.aspx?pn=subject">Create Subjects</a>
<p />
<p />
<a href="home.aspx?pn=question">Create Questions</a>
<p />
<a href="#"></a>
<p>
<asp:LinkButton ID="btnLogout" runat="server"
CausesValidation="False">Logout</asp:LinkButton>
</p>
</td>
<td valign="top">
<asp:ContentPlaceHolder id="ContentPlaceHolder1"
runat="server">
</asp:ContentPlaceHolder>
</td>
</tr>
</table>
</form>
</body>
</html>
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
<script runat="server">
<script runat="server">
<script runat="server">
if ( cmd.ExecuteNonQuery() > 0 )
lblMsg.Text = "Password has been changed succesfully!";
else
lblMsg.Text = "Sorry! Could not change password!";
}
catch(Exception ex)
{
lblMsg.Text = "Error --> " + ex.Message ;
}
finally{
con.Close();
}
}
</script>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<h2>Examination</h2>
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<table width="100%" bgcolor="#dddddd">
<tr>
<td>
Subject :
<asp:Label ID="lblSubject" runat="server" Width="154px" Font-
Bold="True" Font-Names="Verdana" ForeColor="Red"></asp:Label></td>
<td>
Question :
<asp:Label ID="lblQno" runat="server" Font-Bold="True" Font-
Names="Verdana" ForeColor="Red"></asp:Label></td>
</tr>
<tr>
<td>
Started At :
<asp:Label ID="lblStime" runat="server" Font-Bold="True" Font-
Names="Verdana" ForeColor="Red"></asp:Label></td>
<td style="height: 22px">
Current Time :<asp:Label ID="lblCtime" runat="server" Font-
Bold="True" Font-Names="Verdana" ForeColor="Red"></asp:Label></td>
</tr>
</table>
<p />
<b>Question</b>
<br />
<b><pre runat=server id="question" style="background-
color:#eeeeee">question</pre> </b>
<p></p>
<table>
<tr>
<td>
<asp:RadioButton ID="rbAns1" runat="server" GroupName="answer" />
</td>
<td style="width: 3px">
<pre runat=server id="ans1"></pre>
</td>
</tr>
<tr>
<td>
<asp:RadioButton ID="rbAns2" runat="server" GroupName="answer" />
</td>
<td style="width: 3px">
<pre runat=server id="ans2"></pre>
</td>
</tr>
<tr>
<td>
<asp:RadioButton ID="rbAns3" runat="server" GroupName="answer" />
</td>
<td style="width: 3px">
<pre runat=server id="ans3"></pre>
</td>
</tr>
<tr>
<td>
<asp:RadioButton ID="rbAns4" runat="server" GroupName="answer" />
</td>
<td style="width: 3px">
<pre runat=server id="ans4"></pre>
</td>
</tr>
</table>
<br />
<asp:Button ID="btnPrev" runat="server" Text="Previous"
OnClick="btnPrev_Click" /> <asp:Button ID="btnNext"
runat="server" Text="Next" Width="75px" OnClick="btnNext_Click"
/>
<asp:Button ID="btnCancel" runat="server" Text="Cancel Exam"
Width="115px" OnClick="btnCancel_Click" />
</form>
</body>
</html>
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
Question q = e.questions[e.curpos];
// display details of question
question.InnerHtml = q.question;
ans1.InnerHtml = q.ans1;
ans2.InnerHtml = q.ans2;
ans3.InnerHtml = q.ans3;
ans4.InnerHtml = q.ans4;
if (e.curpos == e.SIZE - 1)
btnNext.Text = "Finish";
else
btnNext.Text = "Next";
}
catch (Exception ex)
{
}
}
}
<%@ Page Language="C#" Theme="all" %>
<%@ Import Namespace="System.Data.SqlClient" %>
<%@ Import Namespace="System.Data" %>
<script runat="server">
SqlDataReader dr = cmd.ExecuteReader();
if (dr.Read())
{
Session.Add("mid", dr["studentId"]);
Session.Add("fullname", dr["fname"] + " " + dr["Lname"]);
Session.Add("category", dr["Category"]);
//Session.Add("dlv",
System.DateTime.Now.ToShortDateString());
// update MEMBERS table for DLV
dr.Close();
//cmd.CommandText = "update oe_members set dlv = getdate()
where lname = @lname";
//cmd.ExecuteNonQuery();
Response.Redirect("default.aspx");
}
else
{
lblMsg.Text = "Invalid Login!";
dr.Close();
}
}
catch (Exception ex)
{
lblMsg.Text = "Error --> " + ex.Message;
}
finally
{
con.Close();
}
}
</script>
</div>
</form>
</center>
</body>
</html>
<script runat="server">
<script runat="server">
<ItemTemplate>
<pre style="color:Red;background-color:#eeeeee"><%# DataBinder.Eval(
Container.DataItem,"QuestionText")%></pre>
<pre>1.<%# DataBinder.Eval( Container.DataItem,"Answer1") %></pre>
<pre>2.<%# DataBinder.Eval( Container.DataItem,"Answer2") %></pre>
<pre>3.<%# DataBinder.Eval( Container.DataItem,"Answer3") %></pre>
<pre>4.<%# DataBinder.Eval( Container.DataItem,"Answer4") %></pre>
<pre>Correct Answer :<%# DataBinder.Eval(
Container.DataItem,"CorrectAnswer") %></pre>
<pre>Your Answer :<%# DataBinder.Eval(
Container.DataItem,"YourAnswer") %></pre>
</ItemTemplate>
<SeparatorTemplate>
<hr size="2" style="color:Red" />
</SeparatorTemplate>
<FooterTemplate>
<hr size=5 style="color:red" />
<a href="showresult.aspx">Show Result</a>
</FooterTemplate>
</asp:DataList>
</asp:Content>
<%@ Page Title="" Language="C#" MasterPageFile="~/main.master"
AutoEventWireup="true" CodeFile="showresult.aspx.cs" Inherits="showresult"
%>
<tr>
<td>
Time Taken In Minutes :
</td>
<td>
<asp:Label ID="lblMin" runat="server"
Text="Label"></asp:Label></td>
</tr>
<tr>
<td>
No. of Questions :
</td>
<td>
<asp:Label ID="lblNquestions"
runat="server"></asp:Label></td>
</tr>
<tr>
<td>
No. of correct answers :
</td>
<td>
<asp:Label ID="lblNcans" runat="server"
Text="Label"></asp:Label></td>
</tr>
<tr>
<td>
Grade :
</td>
<td>
<asp:Label ID="lblGrade" runat="server"
Text="Label"></asp:Label></td>
</tr>
</table>
<br />
<a href="reviewquestions.aspx">Review Questions</a>
<asp:LinkButton ID="lbRank" runat="server" OnClick="lbRank_Click">Rank
The Result</asp:LinkButton><br />
<br />
<asp:Label ID="lblRank" runat="server"></asp:Label><br />
</asp:Content>
<table>
<tr>
<td> Select Subject :</td>
<td><asp:DropDownList ID="ddlSubject"
runat="server"></asp:DropDownList></td>
</tr>
</table>
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data;
using System.Data.SqlClient;
using System.Configuration;
/// <summary>
/// Summary description for DAL
/// </summary>
public class DAL
{
SqlClass con = new SqlClass();
SqlConnection objConnection;
SqlCommand objCommand;
SqlDataReader dataReader;
string con_str =
ConfigurationManager.ConnectionStrings["examConnectionString"].ConnectionSt
ring;
public DAL()
{
objCommand.Parameters.Add("@question",
SqlDbType.NVarChar,2000).Value = question;
objCommand.Parameters.Add("@ans1", SqlDbType.NVarChar,1000).Value =
ans1;
objCommand.Parameters.Add("@ans2", SqlDbType.NVarChar,1000).Value =
ans2;
objCommand.Parameters.Add("@ans3", SqlDbType.NVarChar,1000).Value =
ans3;
objCommand.Parameters.Add("@ans4", SqlDbType.NVarChar,1000).Value =
ans4;
objCommand.Parameters.Add("@cans", SqlDbType.NVarChar,50).Value =
cans;
objCommand.Parameters.Add("@sid", SqlDbType.Int).Value = sid;
objCommand.Parameters.Add("@category", SqlDbType.Char,50).Value =
category;
objCommand.Parameters.Add("@subset", SqlDbType.NVarChar, 100).Value
= subset;
objCommand.ExecuteNonQuery();
objCommand = null;
objConnection.Close();
objConnection = null;
}
}
using System;
using System.Web;
using System.Configuration;
using System.Web.Configuration;
/// <summary>
/// Summary description for DBUtil
/// </summary>
public class DBUtil
{
}
}
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data;
using System.Data.SqlClient;
using System.Configuration;
/// <summary>
/// Summary description for ExamDB
/// </summary>
public class ExamDB
{
public ExamDB()
{
//
// TODO: Add constructor logic here
//
}
custCommand.CommandType = CommandType.Text;
//Cache records
ExamDBCache.Add(EXAM_CACHE_KEY, dtresults);
}
catch (Exception e)
{
throw;
}
return ExamDBCache.GetData(EXAM_CACHE_KEY, startRowIndex + 1,
maximumRows, sortExpression, null);
}
if (!string.IsNullOrEmpty(searchCriteria))
sql = sql + " where " + searchCriteria;
custCount = Convert.ToInt32(sqlCommand.ExecuteScalar());
dbConnection.Close();
if (ExamDBCache.Get(EXAM_CACHE_KEY) != null)
{
// remove customers data if customers count has changed
since first cache
int val =
Convert.ToInt32(ExamDBCache.Get(EXAMCOUNT_CACHE_KEY));
if (Convert.ToInt32(ExamDBCache.Get(EXAMCOUNT_CACHE_KEY))
!= custCount && string.IsNullOrEmpty(searchCriteria))
{
ExamDBCache.Remove(EXAM_CACHE_KEY);
}
}
if (string.IsNullOrEmpty(searchCriteria))
ExamDBCache.Add(EXAMCOUNT_CACHE_KEY, custCount);
}
catch (Exception e)
{
throw;
}
return custCount;
}
}
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Caching;
using System.Data.SqlClient;
using System.Data;
/// <summary>
/// Summary description for ExamDBCache
/// </summary>
public class ExamDBCache
{
public ExamDBCache()
{
if (dbCache[cacheKey] == null)
return false;
return true;
}
}
public static object Get(string key)
{
Cache dbCache = HttpContext.Current.Cache;
return dbCache[key];
}
if (dbCache[cacheKey] != null)
{
DataTable dtble = new DataTable();
DataTable dtblNew = new DataTable();
if(dtble ==null)
{
return null;
}
else
{
dtblNew = dtble.Clone();
}
if (rows != null)
{
if (rows.Count() > 0)
{
if (startRowIndex > rows.Count())
{
startRowIndex = rows.Count() - maximumRowNumber;
if (startRowIndex < 0)
{
startRowIndex = 1;
maximumRowNumber = rows.Count();
}
}
return dtblNew;
}
}
return dtblNew;
return null;
}
}
using System;
using System.Data;
using System.Data.SqlClient;
using System.Collections.Generic;
return subject;
return subset;
}
public void GetQuestions()
{
//get random subset
string subset = GetSubset();
// get questions from OE_QUESTIONS table
SqlConnection con = new SqlConnection(DBUtil.ConnectionString);
SqlDataAdapter da = new SqlDataAdapter("select
question,ans1,ans2,ans3,ans4,cans from oe_questions where sid = " +
subjectID + " And Category='" + category + "' And subset='" + subset +
"'",con);
DataSet ds = new DataSet();
da.Fill(ds, "questions");
int nquestions = ds.Tables[0].Rows.Count;
if (!found)
{ positions[pos] = num;
pos++;
}
} // end of for
} // end of GetQuestions()
} // end of Class
using System;
public class Question
{
public String question;
public String ans1, ans2, ans3, ans4, cans, answer;
}
using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Configuration;
using System.Data.SqlClient;
using System.Drawing;
using System.Web;
using System.Web.SessionState;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
}
private SqlConnection _objCon = null;
private SqlCommand _objCmd;
private SqlDataReader _objReader;
public string _strQueryText = null, _strQuery=null;
/// <summary>
/// Open a Sql connection based on connection string in web.conf file
/// </summary>
/// <returns>boolean true or false</returns>
public bool OpenConnection()
{
if (this._objCon != null)
{
this._objCon.Close();
}
this._objCon = new SqlConnection();
try
{
this._objCon.ConnectionString =
ConfigurationManager.ConnectionStrings["examConnectionString"].ConnectionSt
ring;
this._objCon.Open();
this._objCmd = _objCon.CreateCommand();
}
catch (Exception ex)
{
if (this._objCon.State != ConnectionState.Closed)
{
this._objCon.Close();
this._objCon.Open();
this._objCmd = this._objCon.CreateCommand();
}
string ss = ex.Message.ToString();
return false;
}
return true;
}
/// <summary>
/// Executes a SqlDataReader
/// </summary>
/// <param name="sSQL">string query text</param>
/// <returns>Reader</returns>
public SqlDataReader ExecReader(string sSQL)
{
this._objCmd.CommandType = CommandType.Text;
this._objCmd.CommandText = sSQL;
this._objReader = this._objCmd.ExecuteReader();
return this._objReader;
}
/// <summary>
/// Executes a Scalar
/// </summary>
/// <param name="sSQL">string sql text</param>
/// <returns>string returned value of query</returns>
public string ExecScalar(string sSQL)
{
string temp;
this._objCmd.CommandType = CommandType.Text;
this._objCmd.CommandText = sSQL;
try
{
temp = this._objCmd.ExecuteScalar().ToString();
if (temp == "")
return "0";
else
return temp;
}
catch (SqlException ex)
{
string err = ex.Message;
return "0";
}
}
/// <summary>
/// Execute a nonquery
/// </summary>
/// <param name="sSQL">string sql text</param>
public void ExecuteCommand(string sSQL)
{
this._objCmd.CommandType = CommandType.Text;
this._objCmd.CommandText = sSQL;
this._objCmd.ExecuteNonQuery();
}
/// <summary>
/// close the connection
/// </summary>
///
/// <summary>
/// Execute a nonquery
/// </summary>
/// <param name="sSQL">string sql text</param>
public void ExecuteProcedure(string sSQL)
{
this._objCmd.CommandType = CommandType.StoredProcedure;
this._objCmd.CommandText = sSQL;
this._objCmd.ExecuteNonQuery();
}
/// <summary>
/// close the connection
/// </summary>
public void CloseConnection()
{
if (this._objCon != null)
{
this._objCon.Close();
this._objCon.Dispose();
}
}
/// <summary>
/// Get the maximum number in a integer colum in a teble
/// </summary>
/// <param name="sSQL">query text</param>
/// <returns>int newcode</returns>
public int GetNewCode(string sSQL)
{
SqlCommand _objCmd = new SqlCommand(sSQL, this._objCon);
this._objReader = _objCmd.ExecuteReader();
int iNewCode;
this._objReader.Read();
if (this._objReader.IsDBNull(0) == true)
iNewCode = 1;
else
iNewCode = Convert.ToInt32(this._objReader[0]) + 1;
this._objReader.Close();
return iNewCode;
}
/// <summary>
/// Executes a query and return a dataset
/// </summary>
/// <param name="sSQL">string query text</param>
/// <returns>dataset</returns>
public SqlDataAdapter ExecuteDataSet(string sSQL)
{
this._objCmd.CommandType = CommandType.Text;
SqlDataAdapter da = new SqlDataAdapter(sSQL, this._objCon);
return da;
}
/// <summary>
/// Remaves the time field from datetime and returns the specified
format date
/// </summary>
/// <param name="date"></param>
/// <param name="format">0 for US format(mm/dd/yyyy) and 1 for UK
format dd/mm/yyyy</param>
/// <returns></returns>
public string FormatDate(string date,int format)
{
string _strTempDate = null;
if (format == 1)
{
string[] temp = date.Substring(0, date.IndexOf("
")).Split('/');
_strTempDate = temp[1] + "/" + temp[0] + "/" + temp[2];
}
if (format == 0)
{
_strTempDate = date.Substring(0, date.IndexOf(" "));
}
return _strTempDate;
}
}