Skip to content
geeksforgeeks
  • Courses
    • DSA to Development
    • Get IBM Certification
    • Newly Launched!
      • Master Django Framework
      • Become AWS Certified
    • For Working Professionals
      • Interview 101: DSA & System Design
      • Data Science Training Program
      • JAVA Backend Development (Live)
      • DevOps Engineering (LIVE)
      • Data Structures & Algorithms in Python
    • For Students
      • Placement Preparation Course
      • Data Science (Live)
      • Data Structure & Algorithm-Self Paced (C++/JAVA)
      • Master Competitive Programming (Live)
      • Full Stack Development with React & Node JS (Live)
    • Full Stack Development
    • Data Science Program
    • All Courses
  • Tutorials
    • Data Structures & Algorithms
    • ML & Data Science
    • Interview Corner
    • Programming Languages
    • Web Development
    • CS Subjects
    • DevOps And Linux
    • School Learning
  • Practice
    • GfG 160: Daily DSA
    • Problem of the Day
    • Practice Coding Problems
    • GfG SDE Sheet
  • Quantitiative Aptitude
  • Logical Reasoning
  • Verbal Ability
  • Aptitude Quiz
  • Quantitiative Aptitude Quiz
  • Verbal Ability Quiz
  • Aptitude For Placements
  • Interview Corner
  • Practice Sets
Open In App
Next Article:
What are Numbers?
Next article icon

Aptitude Questions and Answers

Last Updated : 20 Apr, 2025
Comments
Improve
Suggest changes
Like Article
Like
Report

Aptitude questions can be challenging, but with the right preparation and practice, you can tackle them with ease. Our comprehensive guide to aptitude questions and answers covers all the essential topics of Aptitude, including Quantitative Aptitude, Logical Reasoning, and Verbal Ability. Whether you’re a student preparing for an examination or looking for a job to improve your problem-solving skills, with our step-by-step guide and sample questions, you will easily gain the confidence to tackle aptitude questions in interviews and competitive exams.

Quantitative Aptitude Topics

Quantitative aptitude covers a wide range of topics and questions, including:-

  • Numbers [Practice]
  • LCM and HCF [Practice LCM & HCF]
  • Work and Wages [Practice]
  • Pipes and Cistern [Practice]
  • Time, Speed, and Distance [Practice]
  • Trains, Boats, and Streams [Practice]
  • Percentages [Practice]
  • Ratio, Proportion, and Partnership [Practice]
  • Mixture and Alligations [Practice]
  • Algebra [Practice]
  • Average [Practice]
  • Age [Practice]
  • Profit and Loss [Practice]
  • Simple Interest [Practice]
  • Compound Interest [Practice]
  • Mensuration 2D [Practice]
  • Mensuration 3D [Practice]
  • Trigonometry & Height and Distances [Practice]
  • Progressions [Practice]
  • Logarithms [Practice]
  • Permutation and Combination [Practice]
  • Probability [Practice]
  • Geometry [Practice]
  • Clocks [Practice]
  • Calendars [Practice]
  • Coding-Decoding [Practice]
  • Race [Practice]
  • Simplification and Approximation [Practice]
  • Data Interpretation [Practice]

Logical Reasoning Topics

Logical Reasoning covers a wide range of topics and questions, including:-

  • Number Series [Practice]
  • Letter and Symbol Series [Practice]
  • Verbal Classification [Practice]
  • Analogies [Practice]
  • Logical Problems [Practice]
  • Course of Action [Practice]
  • Statement and Conclusion [Practice]
  • Theme Detection [Practice]
  • Blood Relations [Practice]
  • Directions [Practice]
  • Statement and Argument [Practice]
  • Logical Deduction [Practice]
  • Letter Series [Practice]
  • Coding Decoding [Practice]
  • Statement and Assumptions [Practice]
  • Logical Venn Diagram [Practice]

Rarely Asked Topics in Aptitude Exams

  • Artificial Language
  • Matching Definitions
  • Making Judgments
  • Logical Games
  • Verification of the Truth of the Statement
  • Assertion and Reason

Verbal Ability Topics

Verbal Ability covers a wide range of topics and questions, including:-

  • Spotting Errors [Practice]
  • Synonyms [Practice]
  • Antonyms [Practice]
  • Selecting Words [Practice]
  • Spellings [Practice]
  • Sentence Formation [Practice]
  • Ordering of Words [Practice]
  • Sentence Correction [Practice]
  • Sentence Improvement [Practice]
  • Completing Statements [Practice]
  • Ordering of Sentences [Practice]
  • Paragraph Formation [ Practice]
  • Closet Test [Practice]
  • Comprehension [Practice]
  • One Word Substitutes [Practice]
  • Idioms and Phrases [Practice]
  • Change of Voice [Practice]
  • Change of Speech [Practice]
  • Verbal Analogies [Practice]
  • Articles [Practice]
  • Preposition [Practice]
  • Adjectives [Practice]

Next Article
What are Numbers?

D

deepanshusajwan1
Improve
Article Tags :
  • Aptitude

Similar Reads

  • Aptitude Questions and Answers
    Aptitude questions can be challenging, but with the right preparation and practice, you can tackle them with ease. Our comprehensive guide to aptitude questions and answers covers all the essential topics of Aptitude, including Quantitative Aptitude, Logical Reasoning, and Verbal Ability. Whether yo
    3 min read
  • Quantitative Aptitude

    • What are Numbers?
      Numbers are symbols we use to count, measure, and describe things. They are everywhere in our daily lives and help us understand and organize the world.Numbers are like tools that help us:Count how many things there are (e.g., 1 apple, 3 pencils).Measure things (e.g., 5 meters, 10 kilograms).Show or
      15+ min read

    • HCF and LCM - Aptitude Questions
      HCF (Highest Common Factor) or GCD and LCM (Least Common Multiple) concepts are the foundation of many mathematical operations and are essential in solving complex problems. Prerequisites:HCF / GCDLCMInteresting Facts about HCF / GCDTips and Tricks for LCMTips and Tricks to Find HCF / GCDRelation be
      14 min read

    • Pipes and Cistern - Aptitude Questions and Answers
      Pipes and Cisterns are an important part of the quantitative aptitude syllabus for various competitive exams such as banking, SSC, RRB, and Insurance exams conducted in India.Prerequisite: Pipes and Cistern - FundamentalsAptitude Questions on Pipes and CisternsQ 1. Two pipes A and B can fill a tank
      10 min read

    • Speed, Time and Distance – Formulas & Aptitude Questions
      Speed, Time & Distance topic is some of the most important quantitative aptitude topics asked in the exams. The questions involving speed, time, and distance are to be solved using the distance formulas and concepts that you can refer to solve the questions.Prerequisites: Speed, Time & Dista
      9 min read

    • Boats and Streams - Aptitude Questions and Answers
      In this article, we will discuss the boat and stream concept, and provide sample questions to help you understand the topic better.Prerequisites: Boats and Streams Aptitude Questions on Boats and StreamsQ 1. A 100 m long train moving at a speed of 60 km/hr passes a man standing on the pavement near
      8 min read

    • Percentages - Aptitude Questions and Answers
      Percentage is one of the most important concepts in mathematics. Thus making it necessary while solving quantitative aptitude questions. In this article, we will discuss solved & unsolved problems on percentages. Prerequisite: Percentages - Formula, Examples, How to FindShort Tricks to Find Perc
      9 min read

    • Ratio and Proportion - Aptitude Questions and Answers
      Ratio and proportion are two fundamental concepts for anyone preparing for competitive exams. In this article, we’ll provide you with solved examples and practice questions to help you master the topic.Prerequisite: Ratio and Proportions - FundamentalsAptitude Questions on Ratios and ProportionQ 1.
      6 min read

    • Alligation or Mixture - Aptitude Questions and Answers
      Mixture and allegation are important concepts in quantitative aptitude used to determine the ratio and cost of sale for a mixture made up of two or more materials. Prerequisite: Mixture and AlligationAptitude Questions on Mixture and AlligationQ1: From a vessel of 20 liters of pure milk, 1 liter is
      5 min read

    • Algebra Practice Questions Easy Level
      Algebra questions basically involve modeling word problems into equations and then solving them. Some of the very basic formulae that come in handy while solving algebra questions are : (a + b) 2 = a 2 + b 2 + 2 a b(a - b) 2 = a 2 + b 2 - 2 a b(a + b) 2 - (a - b) 2 = 4 a b(a + b) 2 + (a - b) 2 = 2 (
      3 min read

    • Average in Maths
      An average is the middle value of a group of numbers. The average is calculated by adding up all the numbers in a group and dividing the total by how many of numbers there are. The image below shows three rows of apples with 6, 11, and 7 apples, and if we take the average of all three rows, we get 8
      15 min read

    • Problems on Ages - Aptitude Questions and Answers
      Ages is an important topic in quantitative aptitude commonly encountered in competitive exams. It involves calculating the present or future ages of individuals based on given relationships and conditionsPrerequisite: Ages - FundamentalsAptitude Questions on AgesQ 1. A’s age after 15 years would be
      5 min read

    • Profit and Loss - Aptitude Questions and Answers
      Profit and loss are crucial topics in Quantitative Aptitude sections of various competitive exams. To succeed in these exams, candidates must have a solid understanding of the cost price (CP) and selling price (SP) formulas, as well as the different types of profit and loss questions.Prerequisite: P
      7 min read

    • Simple Interest - Aptitude Questions and Answers
      Simple Interest is an important topic in Quantitative Aptitude, which involves calculating the interest earned or paid on a principal amount over a specified period of time. This chapter is an essential part of many competitive exams, such as SSC and Bank exams, and can be challenging for some candi
      6 min read

    • Compound Interest - Aptitude Questions and Answers
      Compound Interest is one of the most important topics in Quantitative Aptitude and is frequently asked in competitive exams in India. This article covers all the basic to advanced-level concepts and formulas of Compound Interest that a candidate needs to learn about.Pre-requisites: Compound Interest
      7 min read

    • Mensuration 2D - Aptitude Questions and Answers
      Mensuration 2D is an important topic in Quantitative Aptitude, which mainly deals with problems related to the perimeter and area of two-dimensional shapes such as triangles, squares, rectangles, circles, parallelograms, etc.Mensuration (2D) deals with measuring length, area, and perimeter of 2-dime
      7 min read

    • Mensuration 3D Aptitude Questions & Answers
      Mensuration 3D is all about measuring and calculating the size and volume of objects in three dimensions. It involves using the Mensuration 3D Formula and Quantitative Aptitude skills to determine the size, volume, and surface area of shapes such as cubes, spheres, cones, frustum, prism, pyramids, a
      5 min read

    • Height and Distances - Aptitude Questions and Answers
      Solving height and distance questions requires a strong knowledge of trigonometric principles. These types of problems come up frequently on various competitive examinations, like the SSC, Bank PO, and other government job exams, and are an integral part of Quantitative Aptitude. Prerequisite: Heigh
      9 min read

    • Progression - Aptitude Questions and Answers
      Progression (or Sequences and Series) are mathematical concepts that involve arranging numbers in a particular order based on a repeatable pattern. The topic of Progressions is frequently asked in various competitive exams like SSC, Bank PO, and other government job exams and is a crucial part of Qu
      6 min read

    • Logarithm: Aptitude Questions and Answers
      Logarithm is an important topic that needs to be prepared well for the Quantitative Aptitude section of exams. It requires practicing a lot of questions within a time limit. The logarithmic function is the inverse of the exponential function. It is defined as:y = logax, if and only if x = ay; for x
      3 min read

    • Permutation and Combination - Aptitude Questions and Answers
      Permutation and Combination are fundamental concepts in mathematics that deal with arranging and selecting objects from a set. These concepts are crucial in various fields, including probability theory, and statistics. There are different types of questions that you can use to test your understandin
      4 min read

    • Probability - Aptitude Questions and Answers
      Are you preparing for a job interview or an entrance exam, or want to improve your quantitative skills? If so, then it is important to have a good understanding of probability and how it works.In this article, we will discuss the most common probability question types commonly asked on quantitative
      12 min read

    • Introduction to Geometry
      Geometry is the branch of mathematics that deals with the shapes, angles, dimensions, and sizes of various things that we see in everyday life. It is mainly divided into plane and solid geometry. In plane geometry, 2d shapes such as triangles, squares, rectangles, and circles are studied. Whereas, i
      9 min read

    • Clock - Aptitude Questions and Answers
      Clock questions are commonly included in quantitative aptitude exams. These questions typically require the application of basic arithmetic and algebraic concepts to solve problems related to time and time difference between two events.Prerequisites: Clock - FundamentalsAptitude Questions on ClocksQ
      5 min read

    • Calendar - Aptitude Questions and Answers
      Calendars are one of the most important topics for government sector entrance exams. The topic “Calendar” falls under the category of Logical Reasoning as it involves a lot of logical discussion and analysis.In this article, solved questions on Calendars in the aptitude section are given.Prerequisit
      7 min read

    • Coding Decoding Question and Answers
      Coding decoding is an important part of the Quantitative Aptitude section in most of the competitive examinations in India. Coding and decoding questions are a common feature in the reasoning ability section of major Government exams such as those conducted by banks, insurance companies, SSC, and RR
      3 min read

    • Races and Games - Aptitude Questions and Answers
      Race and Games is a very important concept for quantitative aptitude in various competitive exams. In this article, we will explore some of the fundamental concepts of races and games and provide examples of frequently asked questions in these exams.Prerequisite: Races and Games - FundamentalsAptitu
      5 min read

    • Data Interpretation - Aptitude Question and Answers
      Data interpretation questions are an essential part of the Quantitative Aptitude section. Data Interpretation questions require the ability to analyze and interpret different forms of data, including tables, graphs, charts, and more. With a focus on percentage, ratio and proportion, data interpretat
      8 min read

    Logical Reasoning

    • Number Series - Reasoning Questions and Answers
      Number Series is a widely asked topic in the Logical Reasoning section of competitive examinations held in India. In these types of questions, there will be a series of numbers given, along with a blank to be filled out. You are given the task of finding out the answer to the blank by figuring out t
      12 min read

    • Alphanumeric Series | Reasoning Questions and Answers
      Alphanumeric series is formed by combining both alphabets and numbers. Alphanumeric series sometimes include symbols such as @,&,#, etc. So we can say that the Alphanumeric series is the combination of alphabets, numbers and symbols. This is an important topic that needs to be covered for the Lo
      11 min read

    • Analogy Reasoning Questions and Answers
      Analogy is a topic of Logical Reasoning where the two things are compared and conclusions are drawn based on their similarities. Analogies questions are asked in various forms. These questions are also very important in the for the Verbal Ability section of the competitive examinations like SSC, Ban
      6 min read

    • Making Judgements: Reasoning Questions
      Judgement questions are part of the Logical Reasoning section in most of the competitive examinations. Judgement questions are solved by combining the knowledge given in the question and through common sense. Judgement questions must be prepared comprehensively as this is a scoring section in the re
      11 min read

    • Course of Action: Logical Reasoning Questions
      Course of Action is an important topic that needs to be covered for the Logical Reasoning section of the competitive examinations. It tests the analytical and logical ability of a candidate. The following article covers the concepts and Questions and Answers related to the topic. Practicing Statemen
      4 min read

    • Statement and Conclusion Logical Reasoning
      The Statement and Conclusion section is a part of logical and analytical reasoning, which is frequently asked in all competitive exams, especially in banking sector exams. Statement and conclusion questions is a set of statement followed by conclusions. The general idea to solve such questions is ju
      6 min read

    • Cause and Effect: Logical Reasoning Questions and Answers
      Cause and Effect Reasoning Section is one of the most tricky topics of Logical Reasoning section. The questions which come in this section are very easy in nature but they are designed in such a way that they are tricky. Candidates often get confused while solving these problems. It is asked in many
      10 min read

    • Statement and Argument-Analytical Reasoning
      Introduction :The argument is a very important part of analytical reasoning expressing different opinions for or against something. In competitive examinations, different types of questions are asked from this section in the form of inferences, assumptions, course of action, syllogism, etc. This is
      4 min read

    • Reasoning Tricks to Solve Coding -Decoding
      Coding -Decoding is one of the most common sections included in all the types of competitive exams basically designed for hiring processes and higher education. Many candidates find Coding-Decoding questions challenging to solve, and as a result, they avoid attempting these scoring questions and los
      5 min read

    • Statement and Assumption in Logical Reasoning
      Statement and Assumption in Logical Reasoning is the most generally asked topic in competitive exams. The fundamental behind such topics is to test the applicant's critical thinking skills. There are number of statement and assumption questions asked in the various exams like SSC, Banking, etc. One
      9 min read

    • Venn Diagram
      Venn Diagrams are used for the visual representation of relationships as they provide a clear, visual method for showing how different sets intersect, overlap, or remain distinct. They are essential tools in mathematics and logic for illustrating the relationships between sets. By employing intersec
      14 min read

    Logical Reasoning: Verbal Reasoning

    • Placement | Reasoning | Blood Relationship
      While solving the questions on blood relationship, one should be familiar with basic concepts like various relations. Mother's or Father's Brother - Uncle Mother's or Father's Sister - Aunt Mother's or Father's Father - Grand Father Mother's or Father's Mother - Grand Mother Grand Father's or Grand
      2 min read

    • Syllogism: Verbal Reasoning Questions and Answers
      Syllogism is an essential part of various competitive exams in India. It is generally a part of the Verbal Ability section, and plays a vital role in examinations sharing 3 or 4 marks out of the total marks. There are many ways of reaching the final solution to questions of syllogisms. The most popu
      5 min read

    • Cubes: Verbal Reasoning Questions and Answers
      Cubes is an important topic that needs to be prepared for the Logical Reasoning section of the competitive examinations. Candidates needs to practice questions in order to score well in these exams. The following article covers concepts, formulas and questions that are often asked. So try and practi
      4 min read

    • Seating Arrangement : Aptitude Questions and Answers
      Seating arrangement is the logical arrangement of people or objects. This concept involves arrangement of people in many possible ways. Seating Arrangement is a common category of Logical Reasoning that is asked in competitive exams.In these types of questions, you will have to arrange a group of pe
      6 min read

    • Puzzles
      Puzzles are commonly asked in exams and interviews to test logical and analytical thinking. Here is a list of most asked Puzzles divided into four categories as per examination pattern. 1. Analytical / Mathematical PuzzlesPuzzle TitleAsked in CompanyFind ages of daughtersGoogle, MicrosoftCalculate t
      4 min read

    • Data Sufficiency in Logical Reasoning
      Data Sufficiency in Logical Reasoning is an important topic to prepare for competitive exams in India. It tests the logical, analytical and thinking capacity or ability of a candidate. Candidates need to practice the questions for scoring well in the examinationThe following article contains various
      6 min read

    Logical Reasoning: Non-Verbal Reasoning

    • Mirror Image: Verbal Reasoning
      Mirror Image Questions are mostly asked in the Logical Reasoning section of competitive examinations. So candidates need to prepare well by practicing some Mirror Images Questions given below. When we see ourselves in a mirror or see anything in a mirror, the way we see ourselves in a mirror or the
      5 min read

    • Dice
      A Dice is a cube with 6 faces each of which contains a digit or a pattern denoting a digit from 1 to 6. It is, however, not uncommon for the faces of a dice to have different kinds of symbols. These puzzles based on dice are quite common in aptitude sections of various tests including GATE. Therefor
      5 min read

    Verbal Ability

    • Spellings: Verbal Ability Questions and Answers
      Spelling Correction is an important topic that needs to be practiced well for the verbal ability section of the competitive exams. Following is the practice set of questions for spelling correction. It is quite an easy topic if you have correct knowledge of English Vocabulary. It is a scoring topic
      9 min read

    • Sentence Completion: Verbal Ability Questions and Answers
      Sentence completion is a type of question that can be found in the Verbal Ability section of many competitive tests and exams. The aim is to determine the ability to pick out the right word or words to complete a sentence. To answer this type of question as quickly and as accurately as possible, we
      11 min read

    • Ordering Of Sentences: Verbal Ability Questions
      Re-arrangement questions are of two types: Sentence re-arrangement and passage re-arrangement. In sentence re-arrangement, we are given a sentence whose words/group of words are jumbled and we have to make a meaningful sentence out of it. In passage re-arrangement, we are given multiple sentences an
      6 min read

    • Reading Comprehension Questions & Answers
      Comprehension passages are sure-shot scoring questions that are usually asked in competitive examinations. Candidates must practice questions on this topic to score well in the exams. Reading Comprehension is a fundamental skill often tested as part of Verbal Ability in competitive examinations. It
      15+ min read

    • Idioms and Phrases Questions and Answers
      Idioms and phrases is an important concept of English comprehension which is often asked in competitive exams in India. Practicing questions from each topic within the time limit will help candidates in preparation. Candidates preparing for these exams must practice the questions of idioms and phras
      7 min read

    • Definite and Indefinite Articles ( A, An, The)
      Definite and Indefinite Articles ( A, An, The)Table of ContentWhat is an Article? Definite and Indefinite ArticlesWhat are Definite Articles?What are Indefinite Articles?Definite and Indefinite Articles ExamplesDifference Between Definite and Indefinite Articles Definite and Indefinite Articles Ques
      9 min read

    • Adjective - Definition, List, Types, Uses and Examples
      When we discuss Adjectives, it means those words which well describe a Noun or a Place, Person, Thing, or Idea. An adjective is the only word that can create a major difference between the two.Let's discuss this topic in detail and also bookmark it to get back to the article whenever we want to revi
      7 min read

    Data Interpretation

    • Data Interpretation - Aptitude Question and Answers
      Data interpretation questions are an essential part of the Quantitative Aptitude section. Data Interpretation questions require the ability to analyze and interpret different forms of data, including tables, graphs, charts, and more. With a focus on percentage, ratio and proportion, data interpretat
      8 min read

    Misc

    • 15 Most Important Aptitude Topics For Placements [2025]
      If you are a student and getting ready for off-campus or on-campus placement, then working on aptitude is quite essential. In many colleges, companies like TCS, Infosys, Capgemini, and Accenture sort students through the mass-hiring process on the basis of aptitude tests. Also, if you are going for
      7 min read

    • How to Prepare for Aptitude Test for Campus Placements in 2024
      Aptitude Tests are used by many recruiters around the world. Their purpose is to test technical skills, attitudes, and soft skills related to the search for a figure to be included in the company. Beyond specific professional skills, Aptitude tests are generally designed to assess a candidate's logi
      8 min read

geeksforgeeks-footer-logo
Corporate & Communications Address:
A-143, 7th Floor, Sovereign Corporate Tower, Sector- 136, Noida, Uttar Pradesh (201305)
Registered Address:
K 061, Tower K, Gulshan Vivante Apartment, Sector 137, Noida, Gautam Buddh Nagar, Uttar Pradesh, 201305
GFG App on Play Store GFG App on App Store
Advertise with us
  • Company
  • About Us
  • Legal
  • Privacy Policy
  • In Media
  • Contact Us
  • Advertise with us
  • GFG Corporate Solution
  • Placement Training Program
  • Languages
  • Python
  • Java
  • C++
  • PHP
  • GoLang
  • SQL
  • R Language
  • Android Tutorial
  • Tutorials Archive
  • DSA
  • Data Structures
  • Algorithms
  • DSA for Beginners
  • Basic DSA Problems
  • DSA Roadmap
  • Top 100 DSA Interview Problems
  • DSA Roadmap by Sandeep Jain
  • All Cheat Sheets
  • Data Science & ML
  • Data Science With Python
  • Data Science For Beginner
  • Machine Learning
  • ML Maths
  • Data Visualisation
  • Pandas
  • NumPy
  • NLP
  • Deep Learning
  • Web Technologies
  • HTML
  • CSS
  • JavaScript
  • TypeScript
  • ReactJS
  • NextJS
  • Bootstrap
  • Web Design
  • Python Tutorial
  • Python Programming Examples
  • Python Projects
  • Python Tkinter
  • Python Web Scraping
  • OpenCV Tutorial
  • Python Interview Question
  • Django
  • Computer Science
  • Operating Systems
  • Computer Network
  • Database Management System
  • Software Engineering
  • Digital Logic Design
  • Engineering Maths
  • Software Development
  • Software Testing
  • DevOps
  • Git
  • Linux
  • AWS
  • Docker
  • Kubernetes
  • Azure
  • GCP
  • DevOps Roadmap
  • System Design
  • High Level Design
  • Low Level Design
  • UML Diagrams
  • Interview Guide
  • Design Patterns
  • OOAD
  • System Design Bootcamp
  • Interview Questions
  • Inteview Preparation
  • Competitive Programming
  • Top DS or Algo for CP
  • Company-Wise Recruitment Process
  • Company-Wise Preparation
  • Aptitude Preparation
  • Puzzles
  • School Subjects
  • Mathematics
  • Physics
  • Chemistry
  • Biology
  • Social Science
  • English Grammar
  • Commerce
  • World GK
  • GeeksforGeeks Videos
  • DSA
  • Python
  • Java
  • C++
  • Web Development
  • Data Science
  • CS Subjects
@GeeksforGeeks, Sanchhaya Education Private Limited, All rights reserved
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our Cookie Policy & Privacy Policy
Lightbox
Improvement
Suggest Changes
Help us improve. Share your suggestions to enhance the article. Contribute your expertise and make a difference in the GeeksforGeeks portal.
geeksforgeeks-suggest-icon
Create Improvement
Enhance the article with your expertise. Contribute to the GeeksforGeeks community and help create better learning resources for all.
geeksforgeeks-improvement-icon
Suggest Changes
min 4 words, max Words Limit:1000

Thank You!

Your suggestions are valuable to us.

'); // $('.spinner-loading-overlay').show(); let script = document.createElement('script'); script.src = 'https://assets.geeksforgeeks.org/v2/editor-prod/static/js/bundle.min.js'; script.defer = true document.head.appendChild(script); script.onload = function() { suggestionModalEditor() //to add editor in suggestion modal if(loginData && loginData.premiumConsent){ personalNoteEditor() //to load editor in personal note } } script.onerror = function() { if($('.editorError').length){ $('.editorError').remove(); } var messageDiv = $('
').text('Editor not loaded due to some issues'); $('#suggestion-section-textarea').append(messageDiv); $('.suggest-bottom-btn').hide(); $('.suggestion-section').hide(); editorLoaded = false; } }); //suggestion modal editor function suggestionModalEditor(){ // editor params const params = { data: undefined, plugins: ["BOLD", "ITALIC", "UNDERLINE", "PREBLOCK"], } // loading editor try { suggestEditorInstance = new GFGEditorWrapper("suggestion-section-textarea", params, { appNode: true }) suggestEditorInstance._createEditor("") $('.spinner-loading-overlay:eq(0)').remove(); editorLoaded = true; } catch (error) { $('.spinner-loading-overlay:eq(0)').remove(); editorLoaded = false; } } //personal note editor function personalNoteEditor(){ // editor params const params = { data: undefined, plugins: ["UNDO", "REDO", "BOLD", "ITALIC", "NUMBERED_LIST", "BULLET_LIST", "TEXTALIGNMENTDROPDOWN"], placeholderText: "Description to be......", } // loading editor try { let notesEditorInstance = new GFGEditorWrapper("pn-editor", params, { appNode: true }) notesEditorInstance._createEditor(loginData&&loginData.user_personal_note?loginData.user_personal_note:"") $('.spinner-loading-overlay:eq(0)').remove(); editorLoaded = true; } catch (error) { $('.spinner-loading-overlay:eq(0)').remove(); editorLoaded = false; } } var lockedCasesHtml = `You can suggest the changes for now and it will be under 'My Suggestions' Tab on Write.

You will be notified via email once the article is available for improvement. Thank you for your valuable feedback!`; var badgesRequiredHtml = `It seems that you do not meet the eligibility criteria to create improvements for this article, as only users who have earned specific badges are permitted to do so.

However, you can still create improvements through the Pick for Improvement section.`; jQuery('.improve-header-sec-child').on('click', function(){ jQuery('.improve-modal--overlay').hide(); $('.improve-modal--suggestion').hide(); jQuery('#suggestion-modal-alert').hide(); }); $('.suggest-change_wrapper, .locked-status--impove-modal .improve-bottom-btn').on('click',function(){ // when suggest changes option is clicked $('.ContentEditable__root').text(""); $('.suggest-bottom-btn').html("Suggest changes"); $('.thank-you-message').css("display","none"); $('.improve-modal--improvement').hide(); $('.improve-modal--suggestion').show(); $('#suggestion-section-textarea').show(); jQuery('#suggestion-modal-alert').hide(); if(suggestEditorInstance !== null){ suggestEditorInstance.setEditorValue(""); } $('.suggestion-section').css('display', 'block'); jQuery('.suggest-bottom-btn').css("display","block"); }); $('.create-improvement_wrapper').on('click',function(){ // when create improvement option clicked then improvement reason will be shown if(loginData && loginData.isLoggedIn) { $('body').append('
'); $('.spinner-loading-overlay').show(); jQuery.ajax({ url: writeApiUrl + 'create-improvement-post/?v=1', type: "POST", contentType: 'application/json; charset=utf-8', dataType: 'json', xhrFields: { withCredentials: true }, data: JSON.stringify({ gfg_id: post_id }), success:function(result) { $('.spinner-loading-overlay:eq(0)').remove(); $('.improve-modal--overlay').hide(); $('.unlocked-status--improve-modal-content').css("display","none"); $('.create-improvement-redirection-to-write').attr('href',writeUrl + 'improve-post/' + `${result.id}` + '/', '_blank'); $('.create-improvement-redirection-to-write')[0].click(); }, error:function(e) { showErrorMessage(e.responseJSON,e.status) }, }); } else { if(loginData && !loginData.isLoggedIn) { $('.improve-modal--overlay').hide(); if ($('.header-main__wrapper').find('.header-main__signup.login-modal-btn').length) { $('.header-main__wrapper').find('.header-main__signup.login-modal-btn').click(); } return; } } }); $('.left-arrow-icon_wrapper').on('click',function(){ if($('.improve-modal--suggestion').is(":visible")) $('.improve-modal--suggestion').hide(); else{ } $('.improve-modal--improvement').show(); }); const showErrorMessage = (result,statusCode) => { if(!result) return; $('.spinner-loading-overlay:eq(0)').remove(); if(statusCode == 403) { $('.improve-modal--improve-content.error-message').html(result.message); jQuery('.improve-modal--overlay').show(); jQuery('.improve-modal--improvement').show(); $('.locked-status--impove-modal').css("display","block"); $('.unlocked-status--improve-modal-content').css("display","none"); $('.improve-modal--improvement').attr("status","locked"); return; } } function suggestionCall() { var editorValue = suggestEditorInstance.getValue(); var suggest_val = $(".ContentEditable__root").find("[data-lexical-text='true']").map(function() { return $(this).text().trim(); }).get().join(' '); suggest_val = suggest_val.replace(/\s+/g, ' ').trim(); var array_String= suggest_val.split(" ") //array of words var gCaptchaToken = $("#g-recaptcha-response-suggestion-form").val(); var error_msg = false; if(suggest_val != "" && array_String.length >=4){ if(editorValue.length { jQuery('.ContentEditable__root').focus(); jQuery('#suggestion-modal-alert').hide(); }, 3000); } } document.querySelector('.suggest-bottom-btn').addEventListener('click', function(){ jQuery('body').append('
'); jQuery('.spinner-loading-overlay').show(); if(loginData && loginData.isLoggedIn) { suggestionCall(); return; } // script for grecaptcha loaded in loginmodal.html and call function to set the token setGoogleRecaptcha(); }); $('.improvement-bottom-btn.create-improvement-btn').click(function() { //create improvement button is clicked $('body').append('
'); $('.spinner-loading-overlay').show(); // send this option via create-improvement-post api jQuery.ajax({ url: writeApiUrl + 'create-improvement-post/?v=1', type: "POST", contentType: 'application/json; charset=utf-8', dataType: 'json', xhrFields: { withCredentials: true }, data: JSON.stringify({ gfg_id: post_id }), success:function(result) { $('.spinner-loading-overlay:eq(0)').remove(); $('.improve-modal--overlay').hide(); $('.create-improvement-redirection-to-write').attr('href',writeUrl + 'improve-post/' + `${result.id}` + '/', '_blank'); $('.create-improvement-redirection-to-write')[0].click(); }, error:function(e) { showErrorMessage(e.responseJSON,e.status); }, }); });
"For an ad-free experience and exclusive features, subscribe to our Premium Plan!"
Continue without supporting
`; $('body').append(adBlockerModal); $('body').addClass('body-for-ad-blocker'); const modal = document.getElementById("adBlockerModal"); modal.style.display = "block"; } function handleAdBlockerClick(type){ if(type == 'disabled'){ window.location.reload(); } else if(type == 'info'){ document.getElementById("ad-blocker-div").style.display = "none"; document.getElementById("ad-blocker-info-div").style.display = "flex"; handleAdBlockerIconClick(0); } } var lastSelected= null; //Mapping of name and video URL with the index. const adBlockerVideoMap = [ ['Ad Block Plus','https://media.geeksforgeeks.org/auth-dashboard-uploads/abp-blocker-min.mp4'], ['Ad Block','https://media.geeksforgeeks.org/auth-dashboard-uploads/Ad-block-min.mp4'], ['uBlock Origin','https://media.geeksforgeeks.org/auth-dashboard-uploads/ub-blocke-min.mp4'], ['uBlock','https://media.geeksforgeeks.org/auth-dashboard-uploads/U-blocker-min.mp4'], ] function handleAdBlockerIconClick(currSelected){ const videocontainer = document.getElementById('ad-blocker-info-div-gif'); const videosource = document.getElementById('ad-blocker-info-div-gif-src'); if(lastSelected != null){ document.getElementById("ad-blocker-info-div-icons-"+lastSelected).style.backgroundColor = "white"; document.getElementById("ad-blocker-info-div-icons-"+lastSelected).style.borderColor = "#D6D6D6"; } document.getElementById("ad-blocker-info-div-icons-"+currSelected).style.backgroundColor = "#D9D9D9"; document.getElementById("ad-blocker-info-div-icons-"+currSelected).style.borderColor = "#848484"; document.getElementById('ad-blocker-info-div-name-span').innerHTML = adBlockerVideoMap[currSelected][0] videocontainer.pause(); videosource.setAttribute('src', adBlockerVideoMap[currSelected][1]); videocontainer.load(); videocontainer.play(); lastSelected = currSelected; }

What kind of Experience do you want to share?

Interview Experiences
Admission Experiences
Career Journeys
Work Experiences
Campus Experiences
Competitive Exam Experiences