-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #44 from sainanda59/Sai-Spectrum-HF2022
QuizIt
- Loading branch information
Showing
7 changed files
with
559 additions
and
0 deletions.
There are no files selected for viewing
2 changes: 2 additions & 0 deletions
2
projects_Intermediate/PYTHON_DEVELOPMENT/QuizIt-Sai-Soumyak-Nanda/.gitignore
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
.idea/ | ||
venv/ |
388 changes: 388 additions & 0 deletions
388
projects_Intermediate/PYTHON_DEVELOPMENT/QuizIt-Sai-Soumyak-Nanda/main.py
Large diffs are not rendered by default.
Oops, something went wrong.
8 changes: 8 additions & 0 deletions
8
projects_Intermediate/PYTHON_DEVELOPMENT/QuizIt-Sai-Soumyak-Nanda/readMe.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# QuizIt | ||
|
||
[![forthebadge](https://forthebadge.com/images/badges/made-with-python.svg)](https://forthebadge.com) | ||
|
||
## Description | ||
This is a python GUI project and features a quiz game and has teacher and student login. Teacher has the admin role and can add and edit questions and check the scores of student. Student can attempt the MCQ based quiz. The project also features scoreboard. | ||
|
||
### To run and test the game: Clone the project and run the main.py file on your local system. |
51 changes: 51 additions & 0 deletions
51
projects_Intermediate/PYTHON_DEVELOPMENT/QuizIt-Sai-Soumyak-Nanda/student_leaderboard.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
-- MySQL dump 10.13 Distrib 8.0.26, for Win64 (x86_64) | ||
-- | ||
-- Host: localhost Database: student | ||
-- ------------------------------------------------------ | ||
-- Server version 8.0.26 | ||
|
||
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; | ||
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; | ||
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; | ||
/*!50503 SET NAMES utf8 */; | ||
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; | ||
/*!40103 SET TIME_ZONE='+00:00' */; | ||
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; | ||
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; | ||
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; | ||
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; | ||
|
||
-- | ||
-- Table structure for table `leaderboard` | ||
-- | ||
|
||
DROP TABLE IF EXISTS `leaderboard`; | ||
/*!40101 SET @saved_cs_client = @@character_set_client */; | ||
/*!50503 SET character_set_client = utf8mb4 */; | ||
CREATE TABLE `leaderboard` ( | ||
`name` varchar(100) DEFAULT NULL, | ||
`regd_num` varchar(25) DEFAULT NULL, | ||
`score` int DEFAULT '0' | ||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci; | ||
/*!40101 SET character_set_client = @saved_cs_client */; | ||
|
||
-- | ||
-- Dumping data for table `leaderboard` | ||
-- | ||
|
||
LOCK TABLES `leaderboard` WRITE; | ||
/*!40000 ALTER TABLE `leaderboard` DISABLE KEYS */; | ||
INSERT INTO `leaderboard` VALUES ('SAI SOUMYAK NANDA','2001106129',7); | ||
/*!40000 ALTER TABLE `leaderboard` ENABLE KEYS */; | ||
UNLOCK TABLES; | ||
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; | ||
|
||
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */; | ||
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; | ||
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; | ||
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; | ||
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; | ||
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; | ||
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; | ||
|
||
-- Dump completed on 2021-07-30 18:03:57 |
52 changes: 52 additions & 0 deletions
52
projects_Intermediate/PYTHON_DEVELOPMENT/QuizIt-Sai-Soumyak-Nanda/teacher_login.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
-- MySQL dump 10.13 Distrib 8.0.26, for Win64 (x86_64) | ||
-- | ||
-- Host: localhost Database: teacher | ||
-- ------------------------------------------------------ | ||
-- Server version 8.0.26 | ||
|
||
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; | ||
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; | ||
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; | ||
/*!50503 SET NAMES utf8 */; | ||
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; | ||
/*!40103 SET TIME_ZONE='+00:00' */; | ||
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; | ||
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; | ||
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; | ||
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; | ||
|
||
-- | ||
-- Table structure for table `login` | ||
-- | ||
|
||
DROP TABLE IF EXISTS `login`; | ||
/*!40101 SET @saved_cs_client = @@character_set_client */; | ||
/*!50503 SET character_set_client = utf8mb4 */; | ||
CREATE TABLE `login` ( | ||
`username` varchar(25) CHARACTER SET latin1 COLLATE latin1_general_cs NOT NULL, | ||
`password` varchar(25) CHARACTER SET latin1 COLLATE latin1_general_cs NOT NULL, | ||
PRIMARY KEY (`username`,`password`), | ||
UNIQUE KEY `password_UNIQUE` (`password`) | ||
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_cs; | ||
/*!40101 SET character_set_client = @saved_cs_client */; | ||
|
||
-- | ||
-- Dumping data for table `login` | ||
-- | ||
|
||
LOCK TABLES `login` WRITE; | ||
/*!40000 ALTER TABLE `login` DISABLE KEYS */; | ||
INSERT INTO `login` VALUES ('admin','pass'),('admin5','pass5'); | ||
/*!40000 ALTER TABLE `login` ENABLE KEYS */; | ||
UNLOCK TABLES; | ||
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; | ||
|
||
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */; | ||
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; | ||
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; | ||
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; | ||
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; | ||
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; | ||
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; | ||
|
||
-- Dump completed on 2021-07-30 18:03:57 |
58 changes: 58 additions & 0 deletions
58
projects_Intermediate/PYTHON_DEVELOPMENT/QuizIt-Sai-Soumyak-Nanda/teacher_questions.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
-- MySQL dump 10.13 Distrib 8.0.26, for Win64 (x86_64) | ||
-- | ||
-- Host: localhost Database: teacher | ||
-- ------------------------------------------------------ | ||
-- Server version 8.0.26 | ||
|
||
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; | ||
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; | ||
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; | ||
/*!50503 SET NAMES utf8 */; | ||
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; | ||
/*!40103 SET TIME_ZONE='+00:00' */; | ||
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; | ||
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; | ||
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; | ||
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; | ||
|
||
-- | ||
-- Table structure for table `questions` | ||
-- | ||
|
||
DROP TABLE IF EXISTS `questions`; | ||
/*!40101 SET @saved_cs_client = @@character_set_client */; | ||
/*!50503 SET character_set_client = utf8mb4 */; | ||
CREATE TABLE `questions` ( | ||
`id` int NOT NULL AUTO_INCREMENT, | ||
`ques` varchar(45) DEFAULT NULL, | ||
`opt_a` varchar(45) DEFAULT NULL, | ||
`opt_b` varchar(45) DEFAULT NULL, | ||
`opt_c` varchar(45) DEFAULT NULL, | ||
`opt_d` varchar(45) DEFAULT NULL, | ||
`correct_opt` enum('A','B','C','D') DEFAULT NULL, | ||
PRIMARY KEY (`id`), | ||
UNIQUE KEY `id_UNIQUE` (`id`), | ||
UNIQUE KEY `ques_UNIQUE` (`ques`) | ||
) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci; | ||
/*!40101 SET character_set_client = @saved_cs_client */; | ||
|
||
-- | ||
-- Dumping data for table `questions` | ||
-- | ||
|
||
LOCK TABLES `questions` WRITE; | ||
/*!40000 ALTER TABLE `questions` DISABLE KEYS */; | ||
INSERT INTO `questions` VALUES (1,'what is 1111 in decimal?','15','16','13','14','A'),(2,'what is 100 in decimal?','6','4','5','7','B'),(3,'What is 1000 in decimal?','5','8','6','7','B'),(4,'Who is Father of Computer?','Alan Turing','Albert Einstein','Thomas Alva Edison','Charles Babbage','D'),(5,'What is ++ operator called?','Increment Operator','Unary Operator','Decrement Operator','Bitwise Addition','A'),(6,'Who is the father of AI?','Alan Turing','Charles Babbage','Sir Newton','Elon Musk','A'),(7,'Who is Owner of SpaceX','Jeff Bezos','Mark Zuckerburg','Elon Musk','Bill Gates','C'); | ||
/*!40000 ALTER TABLE `questions` ENABLE KEYS */; | ||
UNLOCK TABLES; | ||
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; | ||
|
||
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */; | ||
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; | ||
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; | ||
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; | ||
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; | ||
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; | ||
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; | ||
|
||
-- Dump completed on 2021-07-30 18:03:57 |
Binary file added
BIN
+8.53 MB
projects_Intermediate/PYTHON_DEVELOPMENT/QuizIt-Sai-Soumyak-Nanda/video.mp4
Binary file not shown.