Logical Apting
Logical Apting
A project report submitted in partial fulfilment of the requirements for the award of
the degree of
Submitted by
KARAN.R
22105091
(AUTONOMOUS)
COIMBATORE 641006
JUNE 2024
2023 – 2024
Reg.no: 22105091
____________________ ____________________
Prof & Head Staff-In-Charge
______________________ _______________________
INTERNAL EXAMINER EXTERNAL EXAMINER
2
DECLARATION
“LOGICAL APTING”, submitted in partial fulfillment of the requirements for the award of
the Degree of Bachelor of Computer Applications is a record of original work done during
2023-2024.
Date:
Place: Coimbatore
KARAN.R
3
ACKNOWLEDGEMENT
First and foremost my whole-hearted thanks to the Lord Almighty, the guiding light
of lite for granting us the strength and courage to complete this project work.
Ramakrishna College of Arts & Science, Coimbatore for the facilities and assistance
I record my deep gratitude and will remain obliged Dr. D.HARI PRASAD, Professor
& Head, Department of Computer Applications, Sri Ramakrishna College of Arts and
Science, Coimbatore for his valuable help and suggestions to complete my project.
I take this opportunity to express my gratitude to the staff members, research scholars
and non-teaching staff members of the Sri Ramakrishna College of Arts and Science,
I would like to extend my heartfelt thanks to my beloved parents and family members
KARAN.R
22105091
4
TABLE OF THE CONTENT
3. System Specification
3.1. Functional Requirements
3.2. Non-functional Requirements
3 3.3. Hardware and Software Requirements
3.4. Data Flow Diagrams
System Design
4.1. System Architecture
4.2. Component Design
4 4.3. User Interface Design
4.4. Database Design
4.5. Security Design
5
Conclusion
6
6.1. Summary of Work Done
7 BIBILOGRAPHY
7.1. WEBSITE REFRENCES
APPENDIX
SAMPLE SCREENSHOTS
SOURCE CODE
6
CHAPTER I
INTRODUCTION
1
engaging, adaptive, and secure learning environment, the project aspires to empower
individuals worldwide to enhance their cognitive skills and achieve their full potential .
1.2.1. BACKGROUND
The necessity for enhanced cognitive skills, particularly in aptitude and logical
reasoning, has never been more pronounced than in today's rapidlpagey evolving educational
and professional landscapes. Aptitude tests are a fundamental component of various
competitive examinations, job placements, and academic assessments. These tests evaluate an
individual's ability to solve problems, think critically, and understand complex concepts.
Similarly, logical reasoning is crucial for decision-making, problem-solving, and analytical
thinking, skills that are invaluable in both academic settings and the professional world.
Despite their importance, there is often a significant gap in accessible, high-quality resources
that cater to the diverse needs of individuals seeking to improve these skills. Traditional
learning methods, such as textbooks and classroom instruction, may not fully address the
varied learning styles and paces of different individuals. Moreover, the static nature of these
resources often fails to provide the interactive and engaging experience necessary for
effective learning.
The advent of digital learning platforms presents an opportunity to bridge this gap. By
leveraging technology, we can create dynamic, personalized, and interactive learning
experiences that are accessible to a wider audience. This project aims to harness these
possibilities, providing a comprehensive platform for aptitude and logical reasoning training
that adapts to the needs of each learner.
1.2.2. MOTIVATION
The motivation behind this project stems from several key factors:
2
analytical capabilities. There is a clear demand for resources that help individuals develop
these skills to enhance their employability and career prospects.
5. Continuous Improvement: The platform will not only provide learning resources but also
continuously gather data on user performance and feedback. This data-driven approach will
enable ongoing improvements to the content and delivery methods, ensuring that the platform
evolves to meet the changing needs of its users.
1.2.3. OBJECTIVES
1. Enhance Cognitive Skills: Develop a platform that effectively improves users' aptitude
and logical reasoning abilities through interactive and engaging content.
3
2. Accessibility: Provide a resource that is easily accessible across various devices and
available to a global audience, breaking geographical and financial barriers.
4. Comprehensive Content: Offer a wide range of topics and practice exercises covering
various aspects of aptitude and logical reasoning, catering to diverse learning requirements.
6. Performance Tracking: Enable users to track their progress and identify areas for
improvement with detailed analytics and reporting tools.
7. Security and Privacy: Ensure robust security measures to protect user data and maintain a
safe learning environment.
8. Continuous Improvement: Regularly update the platform based on user feedback and
performance data to keep the content relevant and effective.
10. Support Multiple Languages: Cater to a global audience by offering content in multiple
languages to ensure inclusivity and broad accessibility.
The primary purpose of this project is to develop an advanced web-based learning platform
focused on enhancing aptitude and logical reasoning skills. These skills are critical for
various aspects of personal and professional life, including academic success, career
advancement, and effective problem-solving. The platform aims to address several key
objectives:
1. Filling the Resource Gap: Traditional resources such as textbooks and classroom-based
learning often fail to meet the diverse needs of learners aiming to improve their cognitive
skills. This project intends to fill this gap by providing an accessible, comprehensive, and
interactive online platform that caters to different learning styles and paces.
4
Aptitude and logical reasoning are integral components of many competitive exams and
entrance tests. The platform aims to support students preparing for these assessments by
offering tailored practice exercises, instant feedback, and detailed explanations, thereby
improving their chances of success.
3. Enhancing Employability:
In today’s competitive job market, employers increasingly value candidates with strong
analytical and problem-solving skills. The platform seeks to enhance users' employability by
developing these critical skills, making them better equipped for various roles that demand
high cognitive abilities.
Beyond academic and professional contexts, logical reasoning and aptitude are essential for
everyday decision-making and problem-solving. The platform encourages lifelong learning
and personal development by providing resources that help users continually improve their
cognitive skills.
The project leverages the latest advancements in technology to create a dynamic and
engaging learning environment. Features such as adaptive learning paths, gamification, and
real-time progress tracking are designed to enhance the learning experience and outcomes.
By being an online platform, the project ensures that quality educational resources are
accessible to a global audience, overcoming geographical and financial barriers. This
democratization of education aims to provide equal learning opportunities for everyone,
regardless of their location or economic status.
The platform also aims to build a supportive community where users can interact, share
knowledge, and motivate each other. Community features, such as discussion forums and
peer reviews, will foster collaboration and mutual support among learners.
5
One of the primary purposes is to create a platform that continuously evolves based on user
feedback and data. By analyzing user performance and preferences, the platform will adapt
its content and features to better meet the needs of its users, ensuring continuous
improvement and relevance.
CHAPTER II
SYSTEM STUDY
The existing system comprises traditional learning resources like textbooks and
classroom instruction, alongside digital platforms offering online courses and mobile apps for
aptitude and logical reasoning. However, these systems often lack interactivity,
personalization, and accessibility. Users face challenges such as limited adaptability to
individual learning needs and concerns about data privacy. Despite providing valuable
content, existing systems fail to meet the growing demand for dynamic, engaging, and
personalized learning experiences.
Lack of interactivity: Existing systems often offer static content without interactive
features.
Limited personalization: Learning paths are not customized based on individual progress
and preferences.
Accessibility challenges: Some platforms may not be accessible on all devices or lack
inclusive design features.
Inadequate feedback: Users may not receive timely feedback on their performance,
hindering effective learning.
Security concerns: Weak security measures and unclear privacy policies may compromise
user data.
6
2.3. PROPOSED SYSTEM
The proposed system is an advanced, web-based learning platform designed to enhance the
study of aptitude and logical reasoning. It features interactive quizzes, simulations, and
games to make learning engaging and fun, with gamification elements like badges and
leaderboards to motivate users. The platform provides personalized learning paths and real-
time feedback, tailored to individual progress and performance. It is accessible on multiple
devices, ensuring flexibility, and includes inclusive design features for users with disabilities.
Strong security measures and clear privacy policies protect user data. Additionally, the
platform fosters a supportive learning community through discussion forums and access to
expert mentors.
A feasibility study is a critical evaluation process that involves several key considerations:
1. Technical Feasibility: This aspect assesses whether the proposed system can be developed
using available technology and resources. It examines factors such as software and hardware
requirements, compatibility with existing systems, and scalability to accommodate future
growth.
2. Economic Feasibility: Economic feasibility evaluates the financial viability of the project.
It involves estimating the costs associated with development, implementation, and
7
maintenance of the system, as well as potential revenue streams and return on investment
(ROI). Cost-benefit analysis helps determine whether the benefits outweigh the costs.
4. Scheduling Feasibility: Scheduling feasibility examines the project timeline and resource
allocation required to complete the development and implementation phases. It involves
creating a realistic schedule that accounts for various tasks, dependencies, and potential
delays. Effective scheduling ensures timely delivery of the system while minimizing
disruptions to ongoing operations.
5. Risk Management: A feasibility study also includes risk assessment and mitigation
strategies to address potential challenges and uncertainties. Identifying risks early allows
project teams to develop contingency plans and proactive measures to mitigate their impact
on project success.
System requirements outline the technical specifications and capabilities necessary for the
successful development, implementation, and operation of the proposed learning platform.
Here are the key system requirements:
1.HARDWARE REQUIREMENTS:
- Server Infrastructure: Robust servers capable of handling high volumes of user traffic
and data processing.
- Client Devices: Compatibility with a range of devices including desktops, laptops, tablets,
and smartphones.
2.SOFTWARE REQUIREMENTS:
8
- Web Browsers: Support for popular web browsers like Chrome, Firefox, Safari, and
Edge.
3. DATABASE REQUIREMENTS:
4. NETWORKING REQUIREMENTS:
- Internet Connectivity: Reliable internet connectivity to access the platform from any
location.
6. FUNCTIONALITY REQUIREMENTS:
- Collaboration Tools: Integration of discussion forums, peer reviews, and expert support
features for collaborative learning.
9
- Authentication and Authorization: User authentication mechanisms (e.g.,
username/password, OAuth) and role-based access controls.
- Privacy Policy: Clear privacy policy outlining data collection, usage, and protection
practices to ensure user privacy and compliance with regulations (e.g., GDPR).
8. PERFORMANCE REQUIREMENTS:
- Response Time: Fast response times for loading content, submitting responses, and
accessing features to enhance user experience.
- Scalability: Scalable architecture to handle concurrent user sessions and peak loads
without performance degradation.
By defining these system requirements, the project team can ensure that the learning platform
meets the needs of users, complies with technical standards, and operates effectively and
securely.
10
CHAPTER III
SYSTEM SPECIFICATION
11
- Content recommendations tailored to user progress.
These functional requirements ensure the platform is user-friendly, secure, and effective for
both learning and administrative tasks.
3.2.NON-FUNCTIONAL REQUIREMENTS:
Non-functional requirements define how the system operates and its quality attributes. Here's
a brief overview:
12
1. Performance: The system should respond quickly and handle increasing loads without
slowdowns.
4. Security: It should protect user data through encryption, secure authentication, and access
controls.
6. Portability: The platform should work across different devices and browsers.
9. Compliance: Ensure compliance with data protection laws and industry standards.
11. Supportability: Provide documentation and customer support for users and developers.
HARDWARE REQUIREMENTS
1. Server Hardware:
o Processor: Multi-core processors (e.g., Intel Xeon or AMD EPYC) to handle
concurrent users and complex operations.
o Memory (RAM): At least 32GB, scalable based on user load and data
handling requirements.
o Storage: SSDs with a minimum of 1TB for fast data access and retrieval, with
RAID configuration for redundancy.
o Network: High-speed network interface cards (NICs) for efficient data
transfer and connectivity.
2. Client Hardware:
o Devices: Desktops, laptops, tablets, and smartphones.
13
o Processor: Minimum dual-core processor.
o Memory (RAM): At least 4GB for smooth operation.
o Storage: Sufficient storage to handle application data and cache.
SOFTWARE REQUIREMENTS:
1. Server Software:
o Operating System: Linux (e.g., Ubuntu Server, CentOS) or Windows Server,
depending on compatibility and preference.
o Web Server: Apache HTTP Server or Nginx to serve web pages and handle
requests.
o Database: MySQL, PostgreSQL, or MongoDB for data storage and retrieval.
o Programming Languages: Node.js for server-side logic, with JavaScript
frameworks such as React for the frontend.
o Application Server: Express.js for handling backend logic and API requests.
o Version Control: Git for source code management and collaboration.
o Containerization: Docker for consistent deployment across different
environments.
o Load Balancer: HAProxy or Nginx for distributing incoming traffic evenly
across servers.
2. Client Software:
o Web Browser: Latest versions of Chrome, Firefox, Safari, and Edge for
accessing the platform.
o Operating System: Compatibility with Windows, macOS, Linux, Android,
and iOS.
14
3.3.DATA FLOW DIAGRAM:
APP COMPONENT
STATE VARIABLES
- SelectedTopic
- Selected Sub -Topic
- Question Index
- Selected Answer
- Show Explanation
FUNCTIONS
- Handle Topic Change
- Handle Sub Topic Change
- Handle Answer Select
- Next Question
RENDER: 15
- Topic Buttons
- Sub-Topic Buttons
- Question Text
- Answer Buttons
- Explanation
- Correct/Wrong
- Next Question
CHAPTER IV
SYSTEM DESIGN
The system architecture for the learning platform is designed to ensure scalability, reliability,
and efficient performance. It comprises multiple layers, each responsible for different aspects
of the system's functionality. Here's an overview:
1. PRESENTATION LAYER
Description: This layer interacts directly with users, providing them with interfaces to
register, log in, browse content, take quizzes, and track progress. It ensures a responsive and
intuitive experience across various devices, including desktops, tablets, and smartphones.
2. Application Layer
Description: This layer handles the core business logic of the platform. It processes user
requests, manages sessions, and interacts with the database. It includes:
Quiz and Exercise Management: Manages the creation, delivery, and scoring of quizzes.
User Progress Tracking: Monitors and records user activities and progress.
3. SERVICE LAYER
Description: This layer provides integration with external services and platforms. It
includes:
APIs: Facilitates communication between the application layer and external systems (e.g.,
payment gateways, analytics tools, learning management systems).
16
Third-Party Services: Integrates with services like email notifications, messaging, and
cloud storage.
4. DATA LAYER
Description: This layer is responsible for storing, managing, and retrieving data. It ensures
data integrity, security, and availability. It includes:
Relational Databases: Stores structured data such as user accounts, learning materials,
quiz results, and progress records.
NoSQL Databases: Handles unstructured data like logs, user interactions, and large
multimedia files.
Backup and Recovery: Regularly backs up data to prevent loss and facilitates recovery in
case of failures.
5. INFRASTRUCTURE LAYER
Description: This layer provides the foundational infrastructure for hosting and running the
platform. It includes:
Cloud Providers: Utilizes services from cloud providers (e.g., AWS, Azure, Google
Cloud) for scalability and flexibility.
Network Security: Implements firewalls, VPNs, and other security measures to protect
the system from external threats.
6. SECURITY LAYER
Description: This layer ensures the security of the platform and user data. It includes:
17
Access Control: Implements role-based access control (RBAC) to restrict access to
sensitive data and functionalities.
| API Gateway,
Database Server,
Integrations
Storage, Backup
|
Systems
v
\
Cloud Services, Servers | Security Protocols,
Network Infrastructure
Encryption, Access Control
18
4.2. COMPONENT DESIGN
Key Elements:
- Dashboard
- Content Browser
- Quiz Interface
- Progress Tracker
Key Elements:
- Login Module
- Registration Module
Key Elements
- Content Categorization
19
Description: Manages quiz creation, delivery, and scoring.
Key Elements:
- Quiz Builder
- Question Bank
Key Elements:
- Progress Metrics
- Activity Logs
- Performance Reports
Key Elements:
- External APIs
- Third-Party Integrations
- Data Exchange
7. Database Component:
Key Elements:
- Relational Database
- NoSQL Database
8. Security Component
20
Description: Ensures the security of the platform and user data.
Key Elements:
- Encryption
- Access Controls
- Security Audits
This modular approach ensures the system is scalable, maintainable, and easy to develop and
test.
User Interface (UI) design is paramount for the effectiveness of a learning platform, as it
directly impacts user experience and engagement. The UI design should prioritize clarity,
intuitiveness, and responsiveness to accommodate diverse user needs and device types.
The login and registration forms serve as the entry point to the platform, designed with
simplicity and user-friendliness in mind. These forms include essential input fields for
username, email, and password, ensuring users can easily create accounts and log in. Features
like password recovery, reset options, and optional social media logins enhance accessibility
and convenience.
Upon logging in, users are greeted by the dashboard, which acts as the central hub for their
activities. The dashboard provides a comprehensive overview, displaying summaries of
recent activities such as completed quizzes and newly available content. It also features
notifications for upcoming quizzes or deadlines, along with quick links to frequently accessed
sections, ensuring users can navigate the platform efficiently.
The content browser is crucial for enabling users to search and navigate learning materials.
It incorporates a search bar with filters for subjects, difficulty levels, and types of content,
such as articles, videos, and quizzes. This organization helps users find relevant materials
quickly. The browser also uses categories and tags for better content organization, offering
preview options so users can get a glimpse of the material before fully opening it.
21
includes navigation buttons for moving between questions, making the quiz-taking process
smooth and interactive.
The progress tracker is another vital component, helping users monitor their learning
journey and performance. It includes visual indicators like progress bars and charts, providing
detailed performance metrics such as scores, completion rates, and time spent on various
activities. This feature often offers personalized recommendations for improvement based on
the user's performance, fostering a more targeted learning experience.
Lastly, the user profile section enables users to manage their personal information and
preferences. It often includes details such as the user’s name, contact information, and
learning history. This section ensures that users can update their information easily and view
their overall progress and achievements on the platform.
Together, these UI components create a cohesive and engaging learning environment, making
it easier for users to interact with the platform, access educational content, and track their
progress effectively.
The database design for a learning platform like the one described in the project involves
structuring data efficiently to support the platform's functionality. The design must ensure
data integrity, quick access, and ease of management. Here, we outline the key components
and considerations for the database design.
1. User Table
Fields:
22
- updated_at: Timestamp of the last update to the user account.
2. Profile Table
Fields:
3.Content Table
Fields:
- author_id (Foreign Key): References the `user_id` in the User table, indicating the
content creator.
4. Quiz Table
23
Fields:
5. Question Table
Fields:
- correct_option: Indicates the correct option (e.g., 'A', 'B', 'C', 'D').
6. Response Table
Fields:
24
- selected_option: The option chosen by the user.
7. Progress Table
Fields:
1. Normalization: Ensure that the database is normalized to reduce redundancy and improve
data integrity. Typically, a third normal form (3NF) is adequate for most applications.
2. Indexes: Use indexes on frequently queried fields such as `user_id`, `quiz_id`, and
`content_id` to improve query performance.
3. Foreign Keys: Use foreign keys to maintain referential integrity between tables. This
ensures that, for example, every `author_id` in the Content table matches a valid `user_id` in
the User table.
4. Scalability: Design the database to handle an increasing amount of data as more users and
content are added to the platform. This might involve considering partitioning and sharding
techniques for large tables.
5. Security: Encrypt sensitive data such as passwords and use secure connections for data
transmission to protect user information.
6. Backup and Recovery: Implement regular backup procedures and a disaster recovery plan
to prevent data loss.
25
By adhering to these design principles and structuring the database as outlined, the learning
platform will be robust, efficient, and scalable, ensuring a smooth and secure experience for
all users.
Security design is crucial for safeguarding a web-based learning platform. Key components
include secure user authentication (e.g., multi-factor authentication) and role-based access
control to restrict data and function access. Data encryption is essential: sensitive information
at rest should use strong encryption algorithms like AES-256, and data in transit should be
protected with TLS. Secure coding practices are vital to prevent vulnerabilities, such as
injection attacks, by implementing strict input validation and using prepared statements for
database queries. Regular security audits and updates further ensure the system remains
secure against evolving threats.
26
CHAPTER V
Integration testing is a critical phase in the software development lifecycle that focuses on
testing the interactions and interfaces between integrated components of a system. Unlike
unit testing, which verifies individual units of code in isolation, integration testing ensures
that integrated units work together seamlessly as a whole.
During integration testing, developers combine units of code and test their interactions to
identify any inconsistencies, communication issues, or integration errors. This phase helps
uncover integration-related bugs that may arise when integrating different modules or
subsystems.
By thoroughly testing the integration points and interfaces, integration testing ensures the
smooth functioning of the entire system and validates its ability to handle real-world
scenarios. It plays a crucial role in ensuring the overall reliability, stability, and performance
of the web-based learning platform.
27
environment. Unlike unit testing and integration testing, which focus on individual
components and their interactions, system testing examines the system as a whole.
During system testing, various aspects of the platform are evaluated, including its features,
functionalities, performance, security, and usability. Functional testing verifies that all
features and workflows work as expected, while non-functional testing assesses aspects such
as performance under load, security vulnerabilities, and user experience.
System testing validates the end-to-end functionality of the platform and helps identify any
defects or issues that may impact its usability or reliability. By conducting thorough system
testing, developers can ensure that the web-based learning platform meets user expectations
and performs effectively in real-world scenarios.
User Acceptance Testing (UAT) is a crucial phase in the software development process where
actual end-users evaluate the web-based learning platform to ensure it meets their needs and
expectations. During UAT, users perform various tasks and provide feedback on usability,
functionality, and overall user experience. This testing phase aims to validate that the
platform aligns with user requirements before deployment, helping to ensure user satisfaction
and reduce the risk of post-deployment issues.
5.5. DEPLOYMENT
Deployment is the final phase in the software development lifecycle where the web-based
learning platform is released into the production environment for use by end-users. This
process involves configuring the production environment, migrating data, and performing
final checks to ensure the platform is ready for use. Successful deployment marks the
culmination of the development process and signifies the platform's transition to its
operational phase. Ongoing monitoring and support are essential post-deployment to address
any issues and maintain the platform's performance and stability.
28
CHAPTER VI
CONCLUSION
29
CHAPTER VII
BIBILOGRAPHY
www.google.com
www.reactjs.dev
https://stackoverflow.com
www.chatgpt.com
www.githubcopilot.com
www.youtube.com
30
APPENDIX
Select Topic
Select Aptitude
Select subtopic
31
Answer the question:
Click next:
32
SOURCE CODE
JS:
import React, { useState } from 'react';
import './App.css';
const questions = {
aptitude: {
Average: [
{
question: "What is the average of first five multiples of 12?",
options: ["36", "38", "40","42"],
1/5=12*15*1/5=12*3=36."
},
{
question: "Average of five numbers is 20. If each number is
multiplied by 2, what will be the new average?",
options: ["30", "40", "50","60"],
},
{
question: "10 typists can type 600 pages in 8 hours. Find the
average number of pages typed by each typist in an hour.",
options: ["7 pages", "7.5 pages", "8 pages","8.5 pages"],
correctAnswer: "7.5 pages",
explanation: "Total pages typed by 10 typists in 8 hours = 600,
Pages typed by one typist in 8 hours = 600/10 = 60 pages, Pages typed
by one typist in one hour = 60/8 = 7.5 pages."
}
],
Problems_on_Ages: [
{
question: "A mother is twice as old as her son. If 20 years
ago, the age of the mother was 10 times the age of the son, what is the
present age of the mother?",
options: ["38 years", "40 years", "43 years","45 years"],
correctAnswer: "45 years",
explanation: "Let the age of son = X years,∴Age of mother would
be =2X,As per question 20 years ago;10 (X -20) = 2X - 20,10X - 200 = 2X
- 20,10X - 2X= - 20 + 200,8X = 180,X=180/8= 22.5 years,∴Age of mother =
22.5 * 2 = 45 years"
},
33
{
question: "The ratio of the ages of Minu and Meera is 4:2. If
the sum of their ages is 6 years, find the ratio of their ages after 8
years.",
options: ["8.6", "6.5","6.4","7.5"],
correctAnswer: "6.5",
explanation: "Let the age of Minu is 4X and age of Meera 2X;As
per question; 4X + 2X = 6,6X = 6,X = 1,∴Minu's age = 4*1= 4
years,Meera's age = 2*1= 2 years.Ratio of their ages after 8 years;=
(4+8): (2+8)= 12: 10= 6:5"
},
{
question: " Ten years ago, the sum of ages of a father and his
son was 34 years. If the ratio of present ages of the father and son is
7:2, find the present age of the son.",
options: ["12 years","11 years", "10 years","8 years"],
correctAnswer: "12 years",
explanation: "Let the present age of the father is 7X and
present age of son is 2X.As per question, ten years ago;(7X - 10)+ (2X
- 10) = 34.7X - 10 + 2X - 10= 34.9X = 34 + 20.9X = 54,X = 6.∴Present
age of son = 2 * 6= 12 years"
}
],
calender: [
{
question: "If January 1, 1996, was Monday, what day of the week
was January 1, 1997?",
options: ["Thursday", "wednesday", "friday","sunday"],
correctAnswer: "wednesday",
explanation: "The year 1996 is divisible by 4, so it is a leap
year with 2 odd days.As per the question, the first day of the year
1996 was Monday, so the first day of the year 1997 must be two days
after Monday. So, it was Wednesday."
},
{
question: "On February 5, 1998, it was Thursday. The day of the
week on February 5, 1997, was",
options: ["wednesday", "monday","friday","sunday"],
correctAnswer: "wednesday",
explanation: "1997 was an ordinary year, it had 1 odd day. So,
beyond the day on February 5, 1997, so the day on February 5, 1997, was
Wednesday."
},
{
question:"Today is Wednesday, after 68 days, it will be",
options: ["friday","sunday", "monday","thursday"],
34
correctAnswer: "monday",
explanation: "Each day of a week is repeated after 7 days, so
after 70 days, it will be Wednesday.Therefore, after 68 days, it will
be Monday."
}
],
percentage: [
{
question: "40 % of 280 =?",
options: ["112", "116", "115","120"],
correctAnswer: "112",
},
{
question: "Whose 35% is 280?",
options: ["750", "700","800","850"],
correctAnswer: "800",
explanation: "Let the required value is x.As per question; 35%
of x = 280. 35/100*x=280, x=280*100/35=800"
},
{
question:"45 *? = 35% of 900",
options: ["6","7", "9","4"],
35
explanation: "The given series consists of consecutive prime
numbers in increasing order, so the next number (prime number) would be
31."
},
{
question: "What comes next in the series: 1, 1, 2, 3, 5, ...?",
options: ["6", "7", "8"],
correctAnswer: "8",
explanation: "This is the Fibonacci series where each number is
the sum of the two preceding ones: 1, 1, 2, 3, 5, 8."
}
],
Letterseries: [
{
question: "RQP, ONM, _, IHG, FED, find the missing letters.",
options: ["CDE", "LKI", "LKJ","BAE"],
correctAnswer: "LKJ",
explanation: "The series consists of letters in reverse
alphabetical order. Therefore, the missing letters are LKJ.."
},
{
question: "CKDL, EKFL, GKHL, _, KKLL, find the missing
letters.",
options: ["IJKL","IKJL","MNOP","MNPQ"],
correctAnswer: "IKJL",
explanation: "The second and fourth letters (K and L) in the
series are static. The first and third letters are in alphabetical
order starting with the letter C. So, the missing letters are IKJL."
},
{
question: " Find the missing letters in the series, GAH, IBJ,
KCL, MDN, _.",
options: ["OEG","OEP","OEB","OEA"],
correctAnswer: "OEP",
explanation: "The middle letters in this series follow the
order ABCDE. The first and third letters are in alphabetical order
starting with the letter G."
}
],
Bloodrelations: [
{
question: "Pointing to a photograph, a man said, 'I have no
brother, and that man's father is my father's son.' Whose photograph
was it?",
options: ["His son", "His own", "His father","His nephew"],
correctAnswer: "His son",
explanation: "The narrator has no brother, so he is the only
son of his father, and his father's son is he himself. Hence, the
36
narrator is the father of the man in the photograph, so the man in the
photograph is his son."
},
{
question: "Pointing to a photograph of a man, Pooja said,'He is
the only son of the mother of my sister's brother'. How is that person
related to Pooja?",
options: ["Father","Maternal Uncle","Cousin","None of these"],
correctAnswer: "None of these",
explanation: "The person in the photograph is the only son of
the mother of Pooja's sister's brother. So, he is the brother of
Pooja."
},
{
question: " Sunil is the brother of Anil. Anil is the son of
Sohan. Meena is Sohan's mother. How is Sunil related to Meena? ",
options: ["Son","Grandson","Brother","Grandfather"],
correctAnswer: "Grandson",
explanation: "Sunil is the brother of Anil and Anil is the son
of Sohan. So, Sunil is the son of Sohan. Now, Meen is the mother of
Sohan. So, Sunil is the grandson of Meena."
}
],
Coding_Decoding: [
{
question: "If in a certain language, NOIDA is coded as OPJEB,
how is DELHI coded in that language?",
options: ["CDKGH", "EFMIJ", "FGNIJK","IHLED"],
correctAnswer: "EFMIJ",
explanation: "Each letter in the word NOIDA is moved one step
forward to form the code OPJEB. So, in DELHI, D will be coded as E, E
as F, L as M, H as I, I as J. Thus, the code becomes EFMIJ. "
},
{
question: "If HOT is coded as GNS, How is COLD coded?",
options: ["BNKC","DPME","EQNF","FROG"],
correctAnswer: "BNKC",
explanation: "The first letter of the word PAPER is moved one
step forward and the next two letters have exchanged their positions
and so on. So, following the same coding, T will be coded as U, A will
be coded as B, B will be coded as A, L will be coded as E and E will be
coded as L. Thus, TABLE is written as UBAEL in that code."
},
{
question: " In a certain code, PAPER is written as QPARE. How
is TABLE written in that code? ",
options: ["UBALE","UBCMF","UZAKD","UBAEL"],
correctAnswer: "UBAEL",
37
explanation: "Sunil is the brother of Anil and Anil is the son
of Sohan. So, Sunil is the son of Sohan. Now, Meen is the mother of
Sohan. So, Sunil is the grandson of Meena."
}
]
}
};
function App() {
const [selectedTopic, setSelectedTopic] = useState(null);
const [selectedSubTopic, setSelectedSubTopic] = useState(null);
const [questionIndex, setQuestionIndex] = useState(0);
const [selectedAnswer, setSelectedAnswer] = useState(null);
const [showExplanation, setShowExplanation] = useState(false);
38
setSelectedAnswer(null);
setShowExplanation(false);
};
return (
<div className="App">
<header className="App-header">
<h1>Learn Aptitude and Logical Reasoning, </h1>
<div className="topics">
<button onClick={() =>
handleTopicChange('aptitude')}>Aptitude</button>
<button onClick={() =>
handleTopicChange('logicalReasoning')}>Logical Reasoning</button>
</div>
{selectedTopic && (
<div className="subtopics">
{Object.keys(questions[selectedTopic]).map(subTopic => (
<button key={subTopic} onClick={() =>
handleSubTopicChange(subTopic)}>{subTopic}</button>
))}
</div>
)}
39
<button onClick={nextQuestion}>Next Question</button>
</div>
)}
</div>
</div>
)}
</header>
</div>
);
}
CSS:
body {
margin: 0;
font-family: Arial, Helvetica, sans-serif;
background-size: cover;
}
.App {
text-align: center;
color: #fff;
}
.App-header {
background-color: rgba(0, 0, 0, 0.7);
padding: 20px;
border-radius: 10px;
margin: 20px auto;
max-width: 800px;
}
40
.topics button {
background-color: #007BFF;
color: white;
}
.subtopics button {
background-color: #28A745;
color: white;
}
.questions button {
background-color: #FFC107;
color: black;
}
.questions button.selected {
background-color: #FF5733;
color: white;
}
.correct {
color: #28A745;
}
.wrong {
color: #DC3545;
}
41