Design and implementation of B/S-based network examination system (attached: source code paper courseware)

Summary

Technology is advancing, and the way people live and work is changing, not only in people's basic necessities of life, but also in the form of examinations that keep pace with the times. The previous exams required the organizers to invest a lot of time and energy. They needed to screen the exam questions and review the later exam papers. So many steps affected the efficiency of the entire exam execution. Therefore, this paper proposes a network examination system to solve some of the above-mentioned problems.

The network examination system described in this article mainly uses the browser as the interface and uses the B/S mode, that is, the user can directly access this site by using the browser. The main technology used is to use JavaWeb technology and MySql database to design various functions. The system mainly has functions such as user management, function management, role authority management, student network examination, test question management, wrong question management, and automatic paper composition.

This article provides some codes and screenshots of the system to help introduce the system, and gives some introductions to the overall design, detailed design and testing of the system, and also explains the running screenshots and codes accordingly. The network examination system can basically meet some simple examinations, runs well, and can basically meet the design requirements.

Key words : exam; JavaWeb; network

Research and Development Status Analysis

The informatization development of the domestic examination system is relatively slow. In the process of widespread application, developers continue to invest in the purchase and construction of various hardware, system software and networks on the one hand, and on the other hand continue to develop and implement various teaching software and data statistics. , information records and other application systems, forming a certain scale of information construction system. However, because the current domestic system is not perfect, for example, an examination requires a system to support, which is too costly, and our country's collective informatization level is somewhat backward, and there are factors such as shortage of funds. Our country's online examination system has not been well and fully integrated into our study and life, and there is a certain gap compared with other countries. The management in foreign countries is completely different from that in China. Not only is the construction of online examinations early, but they also have a strong technical team to provide the technical foundation.

 System related technology

This network test system uses a lot of development tools and java-based development languages, and mainly uses Java and J2EE in the background code writing; JavaScript, JQuery, css and other development languages ​​are used in the front-end design; through eclipse To write these programs; use mysql to design and analyze the database; in addition, the deployment container of the network test system is tomcat, when the test is required, only the tomcat server needs to be configured to conduct the test

 System overview function diagram

The network examination system developed by this system is mainly divided into the main functions of three modules, system function, examination function and student function. Each function contains several sub-functions. The sub-functions mainly include: management of system functions, roles management, user management, management of test questions, management of test papers, students answering questions, summarizing the wrong question bank and scoring. The general function diagram of the system is shown in Figure 4-1:


Database Design

The design of the database is very important, and the data tables used in this article will be introduced one by one below.

1. User table and ER diagram

 User table ER diagram, as shown in Figure 4-4:

Detailed design of system functions

The division of system functions can be divided into many types. The previous division is based on functional modules, and the system is divided into three modules. This chapter can be divided into user end and administrator end according to the different system roles of the network examination system. The client terminal includes: login function, students answering questions, answering questions scores, and analysis of wrong questions after the test. The administrator side includes: login function, system function management, user management, role management, question management, test paper management. The following section mainly introduces each basic function. (There is no detailed introduction to the test administrator here, because the administrator's function of question management and test paper management is his function)

This chapter mainly introduces the detailed design of the network examination system, and introduces the implementation and running screenshots of each functional module from the user side and the administrator side respectively. The following describes the user side first, and then the administrator side.

5.1 Student client

Users in this system are mainly divided into administrators and students. Here I will first introduce the operation of the student user system. The following is the entire operation process of student users from login to error analysis, which will be shown in the following papers.

5.1.1 Student user login

Log in as a student user, first go to this interface. As shown in Figure 5-1:

Main interface

After the student user logs in to the system correctly, it will jump to the interface of the student user terminal. The main interface is shown in Figure 5-3:

The main interface of the student user mainly includes the two functions of test paper list and viewing wrong questions. The test paper list lists all the test papers of the exam. Students can choose the corresponding test papers to take the test according to the teacher's requirements. After the test is over, they can also make wrong questions. View features.

5.1.3 System answering questions

After the student user logs in to the system, select the test paper in the test paper list to answer the test. The answer interface is shown in Figure 5-4:

Students have to complete all the questions on the test paper within a certain period of time, and then submit them. The system will give prompts about the progress of answering questions and the time limit. The operation interface is shown in Figure 5-5:

5.1.4 Answer score

Students complete the answer within the specified time, submit it to the system after completion, submit the system, and the system will get the test result according to the comparison of the question bank. The result interface is shown in Figure 5-6:

After students get their grades, they can check their own grades this time, as well as their other exam papers. The viewing interface is shown in Figure 5-7:

Analysis of wrong questions

Student users can view the wrong questions in their answer papers, and can see the analysis of the wrong questions, but this function is only an auxiliary optimization function, and can only be viewed after the teacher agrees after handing in the paper. The error analysis interface is shown in Figure 5-8

Students can compare their wrong options with the normal answers given in the database to conduct research and study, so as to achieve the effect of improving their ability in the exam.

5.2 Administrator side

The functions of the administrator side are mainly for better management of the system, so that students and users can take the exam smoothly. Therefore, there are many factors and functions that need to be considered when implementing the administrator function. The following demonstrates how the administrator operates in this system . The function of test paper manager (teacher) is included in it.

5.2.1 Administrator login

The administrator login and the student user login use the same login interface, the difference is that the identity selected during login is the administrator identity, and the login interface is shown in Figure 5-9:

5.2.2 Administrator main interface

After the administrator enters the information correctly, it will jump to the main interface of the administrator, as shown in Figure 5-10:

On the main interface of the administrator, we can see that the administrator is mainly divided into two parts. The first is the system function, and the second is the test paper management function. The sub-functions under these two functions will be described below. Introduce one by one.

5.2.3 System function management

System function management realizes the connection between all parent functions and sub-functions, allowing administrators to view the implementation of each function more conveniently. The system function management interface is shown in Figure 5-11:

There is a primary and secondary relationship between functions. New functions can be created by creating new functions, and the connection between functions can also be realized by editing. The newly created functions are shown in Figure 5-12:

Editing system sub-functions are shown in Figure 5-13:

5.2.4 User Management

    Realizing user management solves problems related to students’ use of the system. The user management interface is shown in Figure 5-14:

User management can add, modify and query users. The interface for adding users is shown in Figure 5-15:

5.2.5 Role Management

Role management mainly realizes the authority management among various roles, which is convenient for the person with the highest authority to manage other administrators. The role management interface is shown in Figure 5-18:

5.2.6 Topic Management

Topic management mainly realizes adding and editing all exam topics. The topic management interface is shown in Figure 5-21:

5.2.7 Test paper management

The management of test papers is the key function of student examinations. The test paper management interface is shown in Figure 5-24:

Questions can be randomly selected to generate test papers. The interface for generating test papers is shown in Figure 5-26:

In the DAO layer, use the random function (set the test paper questions and insert the number of questions) to realize automatic test paper composition

public Integer addpaper(Paper paper) {

                       // TODO Auto-generated method stub

                       String sql = "INSERT INTO paper(pname,sid) SELECT ?,sid FROM " +

                                 "subject where sstate = 1 ORDER BY rand() LIMIT ?";

                         Integer rtn  =DBUnitHelper.executeUpdate(sql,paper.getPname(),paper.getScount());

                         return rtn;

data management

Data management plays a role in the connection and interaction between the code and the database. The code implemented by the database interaction is:

Connection conn = null;

      try {

             DbUtils.loadDriver("com.mysql.jdbc.Driver");

             conn = DriverManager.getConnection(

              "jdbc:mysql://localhost:3306/exam", "root", "zhs2668281");

         } catch (SQLException e) {

                      e.printStackTrace();

        }

            return conn;

}

Complete the connection to the database, and perform some simple database operations, including adding, deleting, modifying, and checking.

If you need the source code courseware and other materials supporting the system, you can: like+follow+ click me to get it for free

If there is a novice who wants to get started with Java and Python, but he doesn't know what to learn and how to learn? You can  private message   me and share my own 100G Java and Python webpan information~~~

Share and encourage each other~~~

If you have any resources, you can share with each other, and if you have any questions, you can also discuss with each other~~~

Tsk~~~ You and me alone, then we can't learn from each other~~~ (dog head)

Guess you like

Origin blog.csdn.net/lxianshengde/article/details/124926515