Online Examination System Project
Online Examination System Project
Key Features:
- Secure login for students and admin
- Multiple-choice and descriptive questions
- Timer-based examination system
- Instant result generation
- Database-driven backend for exam storage
Technology Stack:
- Frontend: HTML, CSS, JavaScript
- Backend: Java, JSP, Servlet
- Database: MySQL
This project simplifies the examination process and enhances security and
efficiency in online assessments.
TABLE OF CONTENTS
1. 1. Introduction
2. 2. System Requirements
3. 3. System Design
4. 4. Database Schema
5. 5. Implementation & Features
6. 6. Testing & Validation
7. 7. Screenshots
8. 8. Conclusion
9. 9. References
10. 10. Source Code
1. INTRODUCTION
The Online Examination System aims to replace traditional pen-and-paper exams with an
efficient digital solution. This system is designed to improve accessibility and reduce the
administrative burden of conducting exams.
SOURCE CODE
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
import java.sql.*;
try {
Class.forName("com.mysql.cj.jdbc.Driver");
Connection con =
DriverManager.getConnection("jdbc:mysql://localhost:3306/exam_db", "root", "");
PreparedStatement ps = con.prepareStatement("SELECT * FROM users WHERE
username=? AND password=?");
ps.setString(1, username);
ps.setString(2, password);
ResultSet rs = ps.executeQuery();
if (rs.next()) {
response.sendRedirect("dashboard.jsp");
} else {
response.sendRedirect("login.jsp?error=Invalid credentials");
}
} catch (Exception e) {
e.printStackTrace();
}
}
}