{"id":4908,"date":"2025-04-13T04:12:51","date_gmt":"2025-04-13T04:12:51","guid":{"rendered":"https:\/\/tawjihy.com\/?p=4908"},"modified":"2025-04-13T16:24:53","modified_gmt":"2025-04-13T16:24:53","slug":"%d8%a7%d9%85%d8%aa%d8%ad%d8%a7%d9%86-%d8%a7%d9%84%d8%a5%d9%82%d9%84%d8%a7%d8%a8-%d8%a7%d9%84%d9%84%d8%ba%d8%a9-%d8%a7%d9%84%d8%a5%d9%86%d8%ac%d9%84%d9%8a%d8%b2%d9%8a%d8%a9-%d8%a7%d9%84%d8%a3%d9%88","status":"publish","type":"post","link":"https:\/\/tawjihy.com\/?p=4908","title":{"rendered":"\u0627\u0645\u062a\u062d\u0627\u0646 \u0627\u0644\u0625\u0642\u0644\u0627\u0628  \u0627\u0644\u0644\u063a\u0629 \u0627\u0644\u0625\u0646\u062c\u0644\u064a\u0632\u064a\u0629 \u0627\u0644\u0623\u0648\u0644 \u062b\u0627\u0646\u0648\u064a \u0627\u0644\u0623\u0643\u0627\u062f\u064a\u0645\u064a 2008"},"content":{"rendered":"\n\n\n\n<p>\u0627\u0645\u062a\u062d\u0627\u0646 \u0627\u0644\u0625\u0642\u0644\u0627\u0628  \u0627\u0644\u0644\u063a\u0629 \u0627\u0644\u0625\u0646\u062c\u0644\u064a\u0632\u064a\u0629 \u0627\u0644\u0623\u0648\u0644 \u062b\u0627\u0646\u0648\u064a \u0627\u0644\u0623\u0643\u0627\u062f\u064a\u0645\u064a 2008<\/p>\n\n\n\n<!DOCTYPE html>\n<html lang=\"ar\" dir=\"rtl\">\n<head>\n    <meta charset=\"UTF-8\">\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n    <title>\u0627\u062e\u062a\u0628\u0627\u0631 \u0642\u0648\u0627\u0639\u062f \u0627\u0644\u0644\u063a\u0629 \u0627\u0644\u0625\u0646\u062c\u0644\u064a\u0632\u064a\u0629 &#8211; Inversions<\/title>\n    <link rel=\"preconnect\" href=\"https:\/\/fonts.googleapis.com\">\n    <link rel=\"preconnect\" href=\"https:\/\/fonts.gstatic.com\" crossorigin>\n    <link href=\"https:\/\/fonts.googleapis.com\/css2?family=Tajawal:wght@400;700&#038;family=Roboto:wght@400;700&#038;display=swap\" rel=\"stylesheet\">\n    <style>\n        :root {\n            --primary-color: #007bff;\n            --secondary-color: #6c757d;\n            --success-color: #28a745;\n            --danger-color: #dc3545;\n            --light-color: #f8f9fa;\n            --dark-color: #343a40;\n            --background-color: #eef2f7;\n            --text-color: #333;\n            --border-radius: 8px;\n        }\n        html { box-sizing: border-box; }\n        *, *:before, *:after { box-sizing: inherit; }\n        body {\n            font-family: 'Tajawal', sans-serif;\n            background-color: var(--background-color);\n            color: var(--text-color);\n            margin: 0;\n            padding: 15px;\n            display: flex;\n            justify-content: center;\n            align-items: flex-start;\n            min-height: 100vh;\n            line-height: 1.6;\n        }\n        .quiz-container {\n            background-color: #fff;\n            padding: 25px;\n            border-radius: var(--border-radius);\n            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);\n            width: 100%;\n            max-width: 800px;\n            text-align: center;\n            margin-top: 20px;\n            margin-bottom: 20px;\n        }\n        h1, h2 { color: var(--primary-color); margin-bottom: 15px; font-size: 1.8em; }\n        h2 { font-size: 1.5em; }\n        #start-screen, #results-screen { display: flex; flex-direction: column; align-items: center; }\n        #start-screen p { font-size: 1.1em; margin-bottom: 25px; }\n        #quiz-screen { display: none; }\n        .question-header { margin-bottom: 15px; font-size: 1em; color: var(--secondary-color); }\n\n        #question-text {\n            font-family: 'Roboto', sans-serif;\n            direction: ltr;\n            text-align: left;\n            font-size: 1.3em;\n            font-weight: bold;\n            margin-bottom: 25px;\n            min-height: 50px;\n        }\n        .options-container {\n            display: grid;\n            grid-template-columns: 1fr;\n            gap: 10px;\n            margin-bottom: 20px;\n        }\n        @media (min-width: 600px) { .options-container { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 15px; } }\n        .option-btn {\n            font-family: 'Roboto', sans-serif;\n            direction: ltr;\n            text-align: left;\n            background-color: var(--light-color);\n            border: 1px solid #ddd;\n            color: var(--text-color);\n            padding: 10px 12px;\n            border-radius: var(--border-radius);\n            cursor: pointer;\n            transition: all 0.3s ease;\n            font-size: 1em;\n            width: 100%;\n            word-wrap: break-word;\n        }\n\n        .option-btn:hover:not(:disabled) { background-color: #e2e6ea; border-color: #adb5bd; }\n        .option-btn:disabled { cursor: not-allowed; opacity: 0.8; }\n        .option-btn.correct { background-color: var(--success-color); border-color: var(--success-color); color: white; font-weight: bold; }\n        .option-btn.incorrect { background-color: var(--danger-color); border-color: var(--danger-color); color: white; }\n        .navigation-buttons { display: flex; justify-content: space-between; margin-top: 25px; }\n        .nav-btn, #start-btn, #restart-btn { background-color: var(--primary-color); color: white; border: none; padding: 10px 20px; border-radius: var(--border-radius); cursor: pointer; font-size: 1em; transition: background-color 0.3s ease; font-family: 'Tajawal', sans-serif; }\n        #start-btn { padding: 12px 35px; font-size: 1.2em; margin-top: 20px; }\n        .nav-btn:hover, #start-btn:hover, #restart-btn:hover { background-color: #0056b3; }\n        .nav-btn:disabled { background-color: var(--secondary-color); cursor: not-allowed; opacity: 0.7; }\n        .progress-container { width: 100%; background-color: #e9ecef; border-radius: var(--border-radius); margin-top: 25px; overflow: hidden; }\n        #progress-bar { height: 12px; width: 0%; background-color: var(--primary-color); border-radius: var(--border-radius); transition: width 0.4s ease-in-out; }\n        #progress-text { margin-top: 6px; font-size: 0.9em; color: var(--secondary-color); }\n        #results-screen h2, #results-screen h3 { margin-bottom: 15px; font-size: 1.6em; }\n        #score { font-size: 1.6em; font-weight: bold; color: var(--dark-color); margin-bottom: 25px; }\n        .review-container { margin-top: 20px; text-align: right; max-height: 350px; overflow-y: auto; border: 1px solid #ddd; padding: 10px; border-radius: var(--border-radius); }\n        .review-item { margin-bottom: 20px; padding-bottom: 10px; border-bottom: 1px dashed #ccc; font-size: 0.95em; }\n        .review-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }\n        .review-item p { margin: 4px 0; }\n\n        .review-question, .review-user-answer, .review-correct-answer {\n             font-family: 'Roboto', sans-serif;\n             direction: ltr;\n             text-align: left;\n        }\n        .review-user-answer span, .review-correct-answer span {\n            font-family: 'Tajawal', sans-serif;\n        }\n\n        .review-question { font-weight: bold; }\n        .review-user-answer.correct span { color: var(--success-color); }\n        .review-user-answer.incorrect span { color: var(--danger-color); }\n        .review-correct-answer { font-weight: bold; }\n        .review-correct-answer span { color: var(--success-color); }\n\n        #feedback { min-height: 20px; margin-top: 10px; font-weight: bold; font-size: 1em; }\n        #feedback.correct { color: var(--success-color); }\n        #feedback.incorrect { color: var(--danger-color); }\n        #restart-btn { margin-top: 20px; background-color: var(--secondary-color); }\n        #restart-btn:hover { background-color: #5a6268; }\n\n        @media (max-width: 600px) {\n            body { padding: 10px; }\n            .quiz-container { padding: 15px; margin-top: 10px; margin-bottom: 10px; }\n            h1 { font-size: 1.6em; }\n            h2 { font-size: 1.3em; }\n            #start-screen p { font-size: 1em; }\n            #question-text { font-size: 1.15em; margin-bottom: 20px; }\n            .option-btn { font-size: 0.95em; padding: 8px 10px; }\n            .nav-btn, #start-btn, #restart-btn { font-size: 0.95em; padding: 8px 15px; }\n            #start-btn { font-size: 1.1em; padding: 10px 30px; }\n            #score { font-size: 1.4em; }\n            .review-container { max-height: 300px; }\n            .review-item { font-size: 0.9em; }\n        }\n    <\/style>\n<\/head>\n<body>\n    <div class=\"quiz-container\">\n        <div id=\"start-screen\">\n            <h1>\u0627\u062e\u062a\u0628\u0627\u0631 Inversions<\/h1>\n            <h2>\u0642\u0648\u0627\u0639\u062f \u0627\u0644\u0644\u063a\u0629 \u0627\u0644\u0625\u0646\u062c\u0644\u064a\u0632\u064a\u0629<\/h2>\n            <p>\u0647\u0630\u0627 \u0627\u0644\u0627\u062e\u062a\u0628\u0627\u0631 \u064a\u062d\u062a\u0648\u064a \u0639\u0644\u0649 37 \u0633\u0624\u0627\u0644 \u0645\u062a\u0639\u062f\u062f \u0627\u0644\u062e\u064a\u0627\u0631\u0627\u062a.<\/p>\n            <button id=\"start-btn\">\u0627\u0628\u062f\u0623 \u0627\u0644\u0627\u0645\u062a\u062d\u0627\u0646<\/button>\n        <\/div>\n\n        <div id=\"quiz-screen\">\n            <div class=\"question-header\">\n                <span id=\"question-number\"><\/span>\n            <\/div>\n            <div id=\"question-text\"><\/div>\n            <div class=\"options-container\" id=\"options-container\">\n                <\/div>\n            <div id=\"feedback\"><\/div>\n            <div class=\"navigation-buttons\">\n                <button id=\"prev-btn\" class=\"nav-btn\" onclick=\"prevQuestion()\">\u0627\u0644\u0633\u0627\u0628\u0642<\/button>\n                <button id=\"next-btn\" class=\"nav-btn\" onclick=\"nextQuestion()\">\u0627\u0644\u062a\u0627\u0644\u064a<\/button>\n            <\/div>\n            <div class=\"progress-container\">\n                <div id=\"progress-bar\"><\/div>\n            <\/div>\n             <div id=\"progress-text\">0 \/ 37<\/div>\n        <\/div>\n\n        <div id=\"results-screen\" style=\"display: none;\">\n            <h2>\u0646\u062a\u0627\u0626\u062c \u0627\u0644\u0627\u0645\u062a\u062d\u0627\u0646<\/h2>\n            <div id=\"score\"><\/div>\n            <h3>\u0645\u0631\u0627\u062c\u0639\u0629 \u0627\u0644\u0623\u0633\u0626\u0644\u0629:<\/h3>\n            <div class=\"review-container\" id=\"review-container\">\n                <\/div>\n             <button id=\"restart-btn\" onclick=\"restartQuiz()\">\u0625\u0639\u0627\u062f\u0629 \u0627\u0644\u0627\u062e\u062a\u0628\u0627\u0631<\/button>\n        <\/div>\n    <\/div>\n\n    <script>\n        \/\/ Fisher-Yates (Knuth) Shuffle Algorithm\n        function shuffleArray(array) {\n            for (let i = array.length - 1; i > 0; i--) {\n                const j = Math.floor(Math.random() * (i + 1));\n                [array[i], array[j]] = [array[j], array[i]];\n            }\n        }\n\n        \/\/ --- English Questions Data (Inversions) ---\n        const englishQuizQuestions = [\n          { originalIndex: 1, question: \"We had eaten dinner than he got up and left.\", options: [\"No sooner have we eaten dinner than he got up and left.\", \"No sooner we had eaten dinner than he got up and left.\", \"No sooner had we eaten dinner than he got up and left.\", \"No sooner has we eaten dinner than he got up and left.\"], correctAnswer: \"No sooner had we eaten dinner than he got up and left.\", userAnswer: null, isCorrect: null },\n          { originalIndex: 2, question: \"I had opened the newspaper when I saw a sensational story.\", options: [\"No sooner I had opened the newspaper I saw a sensational story.\", \"No sooner had I opened the newspaper when I saw a sensational story.\", \"No sooner I had opened the newspaper when I saw a sensational story.\", \"No sooner had I opened the newspaper I saw a sensational story.\"], correctAnswer: \"No sooner had I opened the newspaper when I saw a sensational story.\", userAnswer: null, isCorrect: null },\n          { originalIndex: 3, question: \"We claimed we were right.\", options: [\"At no time did we claim we were right.\", \"At no time did we claimed we were right.\", \"At no time we did claim we were right.\", \"At no time we did claimed we were right.\"], correctAnswer: \"At no time did we claim we were right.\", userAnswer: null, isCorrect: null },\n          { originalIndex: 4, question: \"She had seen such a weird story.\", options: [\"Never She has seen such a weird story.\", \"Never She had seen such a weird story.\", \"Never has she seen such a weird story.\", \"Never had she seen such a weird story.\"], correctAnswer: \"Never had she seen such a weird story.\", userAnswer: null, isCorrect: null },\n          { originalIndex: 5, question: \"He got so much attention.\", options: [\"Rarely he did got so much attention.\", \"Rarely did he get so much attention.\", \"Rarely did he got so much attention.\", \"Rarely get did he so much attention.\"], correctAnswer: \"Rarely did he get so much attention.\", userAnswer: null, isCorrect: null },\n          { originalIndex: 6, question: \"He agreed to give an interview.\", options: [\"In no way he did agreed so much attention.\", \"In no way did he agree so much attention.\", \"In no way did he agreed so much attention.\", \"In no way he did agree so much attention.\"], correctAnswer: \"In no way did he agree so much attention.\", userAnswer: null, isCorrect: null },\n          { originalIndex: 7, question: \"The story was false, but it went viral.\", options: [\"Not only was the story false, but it also went viral.\", \"Not only the story was false, but it also went viral.\", \"Not only was the story false, but it went viral.\", \"Not only the story was false, but it went viral.\"], correctAnswer: \"Not only was the story false, but it also went viral.\", userAnswer: null, isCorrect: null },\n          { originalIndex: 8, question: \"I have never heard such a heart-warming story.\", options: [\"Seldom has I heard such a heart - warming story.\", \"Seldom I have heard such a heart - warming story.\", \"Seldom have I heard such a heart - warming story.\", \"Seldom I has heard such a heart - warming story.\"], correctAnswer: \"Seldom have I heard such a heart - warming story.\", userAnswer: null, isCorrect: null },\n          { originalIndex: 9, question: \"I had clicked on the headline and I knew it was fake.\", options: [\"Hardly I had clicked on the headline when I knew it was fake.\", \"Hardly had I clicked on the headline when I knew it was fake.\", \"Hardly had I clicked on the headline I knew it was fake.\", \"Hardly I had clicked on the headline I knew it was fake.\"], correctAnswer: \"Hardly had I clicked on the headline when I knew it was fake.\", userAnswer: null, isCorrect: null },\n          { originalIndex: 10, question: \"He didn't realise the problems he'd caused.\", options: [\"Little didn't he realise the problems he'd caused.\", \"Little he did realise the problems he'd caused.\", \"Little he didn't realise the problems he'd caused.\", \"Little did he realise the problems he'd caused.\"], correctAnswer: \"Little did he realise the problems he'd caused.\", userAnswer: null, isCorrect: null },\n          { originalIndex: 11, question: \"We had revealed the truth and then we uncovered more lies.\", options: [\"No sooner had we revealed the truth than we uncovered more lies.\", \"No sooner we had revealed the truth than we uncovered more lies.\", \"No sooner have we revealed the truth than we uncovered more lies.\", \"No sooner hadn't we revealed the truth than we uncovered more lies.\"], correctAnswer: \"No sooner had we revealed the truth than we uncovered more lies.\", userAnswer: null, isCorrect: null },\n          { originalIndex: 12, question: \"You can never expose the truth.\", options: [\"Under no circumstances you can never expose the truth.\", \"Under no circumstances can you never expose the truth.\", \"Under no circumstances you can ever expose the truth.\", \"Under no circumstances can you ever expose the truth.\"], correctAnswer: \"Under no circumstances can you ever expose the truth.\", userAnswer: null, isCorrect: null },\n          { originalIndex: 13, question: \"I have heard such a weird story!\", options: [\"Never I have heard such a weird story!\", \"Never have I heard such a weird story!\", \"Never had I heard such a weird story!\", \"Never has I heard such a weird story!\"], correctAnswer: \"Never have I heard such a weird story!\", userAnswer: null, isCorrect: null },\n          { originalIndex: 14, question: \"you should leave the building.\", options: [\"Under no circumstances should you leave the building.\", \"Under no circumstances you should leave the building.\", \"Under no circumstances you leave should the building.\", \"Under no circumstances leave you should the building.\"], correctAnswer: \"Under no circumstances should you leave the building.\", userAnswer: null, isCorrect: null },\n          { originalIndex: 15, question: \"he ran a marathon, but he did it alone!\", options: [\"Not only he did ran a marathon, but he did it alone!\", \"Not only he run did a marathon, but he did it alone!\", \"Not only didn't he run a marathon, but he did it alone!\", \"Not only did he run a marathon, but he did it alone!\"], correctAnswer: \"Not only did he run a marathon, but he did it alone!\", userAnswer: null, isCorrect: null },\n          { originalIndex: 16, question: \"she had made the statement than she realised she had made a big mistake.\", options: [\"No sooner she had made the statement than she realised she had made a big mistake.\", \"No sooner had she made the statement than she realised she had made a big mistake.\", \"No sooner has she made the statement than she realised she had made a big mistake.\", \"No sooner she made had the statement than she realised she had made a big mistake.\"], correctAnswer: \"No sooner had she made the statement than she realised she had made a big mistake.\", userAnswer: null, isCorrect: null },\n          { originalIndex: 17, question: \"he knew what a lucky escape he had had.\", options: [\"Little did he knew what a lucky escape he had had.\", \"Little didn't he know what a lucky escape he had had.\", \"Little did he know what a lucky escape he had had.\", \"Little didn't he knew what a lucky escape he had had.\"], correctAnswer: \"Little did he know what a lucky escape he had had.\", userAnswer: null, isCorrect: null },\n          { originalIndex: 18, question: \"She had started reading then she realised it was a hoax.\", options: [\"Scarcely had she started reading then she realised it was a hoax.\", \"Scarcely she had started reading when she realised it was a hoax.\", \"Scarcely had she started reading when she realised it was a hoax.\", \"Scarcely she had started reading then she realised it was a hoax.\"], correctAnswer: \"Scarcely had she started reading when she realised it was a hoax.\", userAnswer: null, isCorrect: null },\n          { originalIndex: 19, question: \"As well as winning the race, she also broke a world record.\", options: [\"Not only did she win the race, but she also broke a world record.\", \"Not only didn't she win the race, but she also broke a world record.\", \"Not only she did win the race, but she also broke a world record.\", \"Not only did win she the race, but she also broke a world record.\"], correctAnswer: \"Not only did she win the race, but she also broke a world record.\", userAnswer: null, isCorrect: null },\n          { originalIndex: 20, question: \"They had only just left when the house exploded.\", options: [\"Scarcely had they left then the house exploded.\", \"Scarcely had they left when the house exploded.\", \"Scarcely they had left then the house exploded.\", \"Scarcely they had left when the house exploded.\"], correctAnswer: \"Scarcely had they left when the house exploded.\", userAnswer: null, isCorrect: null },\n          { originalIndex: 21, question: \"You should not approach the animal, which is dangerous.\", options: [\"Under no circumstances you should approach the animal, which is dangerous.\", \"Under no circumstances approach should you the animal, which is dangerous.\", \"Under no circumstances should you approach the animal, which is dangerous.\", \"Under no circumstances approach should you the animal, which is dangerous.\"], correctAnswer: \"Under no circumstances should you approach the animal, which is dangerous.\", userAnswer: null, isCorrect: null },\n          { originalIndex: 22, question: \"He didn't imagine that his friend was a spy!\", options: [\"Little didn't he imagine that his friend was a spy!\", \"Little he didn't imagine that his friend was a spy!\", \"Little he did imagine that his friend was a spy!\", \"Little did he imagine that his friend was a spy!\"], correctAnswer: \"Little did he imagine that his friend was a spy!\", userAnswer: null, isCorrect: null },\n          { originalIndex: 23, question: \"No sooner Ibrahim arrives at work than people start knocking on his office door.\", options: [\"No sooner does Ibrahim arrive at work than people start knocking on his office door\", \"No sooner Ibrahim does arrive at work than people start knocking on his office door\", \"No sooner does Ibrahim arrives at work than people start knocking on his office door\", \"No sooner Ibrahim does arrives at work than people start knocking on his office door\"], correctAnswer: \"No sooner does Ibrahim arrive at work than people start knocking on his office door\", userAnswer: null, isCorrect: null },\n          { originalIndex: 24, question: \"At no circumstances are students allowed to take exam papers out of the room.\", options: [\"At no circumstances are students allowed to take exam papers out of the room.\", \"At no circumstances students are allowed to take exam papers out of the room.\", \"Under no circumstances are students allowed to take exam papers out of the room.\", \"Under no circumstances students are allowed to take exam papers out of the room.\"], correctAnswer: \"Under no circumstances are students allowed to take exam papers out of the room.\", userAnswer: null, isCorrect: null },\n          { originalIndex: 25, question: \"In no way this article represents my views.\", options: [\"In no way does this article represent my views.\", \"Under no way does this article represent my views.\", \"In no sooner does this article represent my views.\", \"In no circumstances does this article represent my views.\"], correctAnswer: \"In no way does this article represent my views.\", userAnswer: null, isCorrect: null },\n          { originalIndex: 26, question: \"Scarcely the film had started when members of the audience began to walk out of the cinema.\", options: [\"Scarcely had the film started when members of the audience began to walk out of the cinema.\", \"Scarcely had the film started then members of the audience began to walk out of the cinema.\", \"Scarcely the film had started when members of the audience began to walk out of the cinema.\", \"Scarcely the film had started then members of the audience began to walk out of the cinema.\"], correctAnswer: \"Scarcely had the film started when members of the audience began to walk out of the cinema.\", userAnswer: null, isCorrect: null },\n          { originalIndex: 27, question: \"Unscramble: (time\/at\/no\/did\/ believe \/ I) he would actually turn up on our doorstep.\", options: [\"At no time I did believe he would actually turn up on our doorstep.\", \"At time no did I believe he would actually turn up on our doorstep.\", \"At no time did I believe he would actually turn up on our doorstep.\", \"Did I believe at no time he would actually turn up on our doorstep.\"], correctAnswer: \"At no time did I believe he would actually turn up on our doorstep.\", userAnswer: null, isCorrect: null },\n          { originalIndex: 28, question: \"Unscramble: (way\/no\/is\/she\/in\/saying) she won't take part in the debate.\", options: [\"In way no is she saying she won't take part in the debate.\", \"In no way is she saying she won't take part in the debate.\", \"In way no she is saying she won't take part in the debate.\", \"In no way she is saying she won't take part in the debate.\"], correctAnswer: \"In no way is she saying she won't take part in the debate.\", userAnswer: null, isCorrect: null },\n          { originalIndex: 29, question: \"Unscramble: (think\/little \/ they \/ did) someone was recording everything.\", options: [\"Little did think they someone was recording everything.\", \"Little think did they someone was recording everything.\", \"Little they did think someone was recording everything.\", \"Little did they think someone was recording everything.\"], correctAnswer: \"Little did they think someone was recording everything.\", userAnswer: null, isCorrect: null },\n          { originalIndex: 30, question: \"Unscramble: (do\/see\/seldom \/ you) such beautiful animals up close.\", options: [\"Seldom you do see such beautiful animals up close.\", \"Seldom do you see such beautiful animals up close.\", \"Seldom you see do such beautiful animals up close.\", \"Seldom see do you such beautiful animals up close.\"], correctAnswer: \"Seldom do you see such beautiful animals up close.\", userAnswer: null, isCorrect: null },\n          { originalIndex: 31, question: \"Unscramble: (so many \/ never\/people\/ have) turned up at the meeting.\", options: [\"Never have so many people turned up at the meeting.\", \"Never so many people have turned up at the meeting.\", \"Never people have so many turned up at the meeting.\", \"Never people so many have turned up at the meeting.\"], correctAnswer: \"Never have so many people turned up at the meeting.\", userAnswer: null, isCorrect: null },\n          { originalIndex: 32, question: \"At no time ___ the use of such language acceptable.\", options: [\"is it\", \"it is\"], correctAnswer: \"is it\", userAnswer: null, isCorrect: null },\n          { originalIndex: 33, question: \"Not only ___ relaxed, but also happy and safe.\", options: [\"felt I\", \"did I feel\"], correctAnswer: \"did I feel\", userAnswer: null, isCorrect: null },\n          { originalIndex: 34, question: \"Under no circumstances ___ do that again.\", options: [\"I will ever\", \"will I ever\"], correctAnswer: \"will I ever\", userAnswer: null, isCorrect: null },\n          { originalIndex: 35, question: \"Seldom ___ such a lucky escape.\", options: [\"I had seen\", \"had I seen\"], correctAnswer: \"had I seen\", userAnswer: null, isCorrect: null },\n          { originalIndex: 36, question: \"Little ___ that I had more money in my back pocket.\", options: [\"did they know\", \"they did know\"], correctAnswer: \"did they know\", userAnswer: null, isCorrect: null },\n          { originalIndex: 37, question: \"Scarcely ___ on sale when they were sold out.\", options: [\"the tickets had gone\", \"had the tickets gone\"], correctAnswer: \"had the tickets gone\", userAnswer: null, isCorrect: null }\n        ];\n        \/\/ --- End of English Questions Data ---\n\n\n        \/\/ --- JavaScript Logic ---\n        let questions = [...englishQuizQuestions];\n        let currentQuestionIndex = 0;\n        let score = 0;\n        const totalQuestions = questions.length;\n\n        const startScreen = document.getElementById('start-screen');\n        const quizScreen = document.getElementById('quiz-screen');\n        const resultsScreen = document.getElementById('results-screen');\n        const startBtn = document.getElementById('start-btn');\n        const questionNumberEl = document.getElementById('question-number');\n        const questionTextEl = document.getElementById('question-text');\n        const optionsContainer = document.getElementById('options-container');\n        const feedbackEl = document.getElementById('feedback');\n        const prevBtn = document.getElementById('prev-btn');\n        const nextBtn = document.getElementById('next-btn');\n        const progressBar = document.getElementById('progress-bar');\n        const progressTextEl = document.getElementById('progress-text');\n        const scoreEl = document.getElementById('score');\n        const reviewContainer = document.getElementById('review-container');\n\n        startBtn.addEventListener('click', startQuiz);\n\n        function startQuiz() {\n            shuffleArray(questions);\n            startScreen.style.display = 'none';\n            resultsScreen.style.display = 'none';\n            quizScreen.style.display = 'block';\n            currentQuestionIndex = 0;\n            score = 0;\n            questions.forEach(q => {\n                q.userAnswer = null;\n                q.isCorrect = null;\n            });\n            progressTextEl.textContent = `0 \/ ${totalQuestions}`;\n            loadQuestion(currentQuestionIndex);\n        }\n\n        function loadQuestion(index) {\n            feedbackEl.textContent = '';\n            feedbackEl.className = '';\n            const currentQuestion = questions[index];\n            questionNumberEl.textContent = `\u0627\u0644\u0633\u0624\u0627\u0644 ${index + 1} \u0645\u0646 ${totalQuestions}`;\n            questionTextEl.textContent = currentQuestion.question;\n\n            optionsContainer.innerHTML = '';\n            const shuffledOptions = [...currentQuestion.options];\n            shuffleArray(shuffledOptions);\n            const alreadyAnswered = currentQuestion.userAnswer !== null;\n\n            shuffledOptions.forEach(option => {\n                const button = document.createElement('button');\n                button.textContent = option;\n                button.classList.add('option-btn');\n                button.disabled = alreadyAnswered;\n\n                if (alreadyAnswered) {\n                    if (option === currentQuestion.userAnswer) {\n                        button.classList.add(currentQuestion.isCorrect ? 'correct' : 'incorrect');\n                    } else if (option === currentQuestion.correctAnswer && !currentQuestion.isCorrect) {\n                        button.classList.add('correct');\n                    }\n                } else {\n                     button.onclick = () => handleAnswer(button, option);\n                }\n                optionsContainer.appendChild(button);\n            });\n\n            updateProgressBar();\n            updateNavigationButtons();\n        }\n\n         function handleAnswer(selectedButton, selectedAnswer) {\n              const currentQuestion = questions[currentQuestionIndex];\n              if (currentQuestion.userAnswer !== null) return;\n\n              currentQuestion.userAnswer = selectedAnswer;\n              const isCorrect = selectedAnswer === currentQuestion.correctAnswer;\n              currentQuestion.isCorrect = isCorrect;\n\n              const optionButtons = optionsContainer.querySelectorAll('.option-btn');\n              optionButtons.forEach(btn => btn.disabled = true);\n\n              if (isCorrect) {\n                  score++;\n                  selectedButton.classList.add('correct');\n                  feedbackEl.textContent = '\u0625\u062c\u0627\u0628\u0629 \u0635\u062d\u064a\u062d\u0629!';\n                  feedbackEl.className = 'correct';\n              } else {\n                  selectedButton.classList.add('incorrect');\n                  feedbackEl.textContent = '\u0625\u062c\u0627\u0628\u0629 \u062e\u0627\u0637\u0626\u0629!';\n                  feedbackEl.className = 'incorrect';\n                  optionButtons.forEach(btn => {\n                      if (btn.textContent === currentQuestion.correctAnswer) {\n                          btn.classList.add('correct');\n                      }\n                  });\n              }\n         }\n\n         function updateProgressBar() {\n              const progressPercentage = ((currentQuestionIndex + 1) \/ totalQuestions) * 100;\n              progressBar.style.width = `${progressPercentage}%`;\n              progressTextEl.textContent = `${currentQuestionIndex + 1} \/ ${totalQuestions}`;\n         }\n\n         function updateNavigationButtons() {\n              prevBtn.disabled = currentQuestionIndex === 0;\n              if (currentQuestionIndex === totalQuestions - 1) {\n                  nextBtn.textContent = '\u0625\u0646\u0647\u0627\u0621 \u0648\u0639\u0631\u0636 \u0627\u0644\u0646\u062a\u064a\u062c\u0629';\n              } else {\n                  nextBtn.textContent = '\u0627\u0644\u062a\u0627\u0644\u064a';\n              }\n         }\n\n        function nextQuestion() {\n            if (currentQuestionIndex < totalQuestions - 1) {\n                currentQuestionIndex++;\n                loadQuestion(currentQuestionIndex);\n            } else {\n                showResults();\n            }\n        }\n\n        function prevQuestion() {\n            if (currentQuestionIndex > 0) {\n                currentQuestionIndex--;\n                loadQuestion(currentQuestionIndex);\n            }\n        }\n\n        function showResults() {\n            quizScreen.style.display = 'none';\n            resultsScreen.style.display = 'block';\n            const scorePercentage = ((score \/ totalQuestions) * 100).toFixed(1);\n            scoreEl.textContent = `\u0646\u062a\u064a\u062c\u062a\u0643: ${score} \u0645\u0646 ${totalQuestions} (${scorePercentage}%)`;\n            reviewContainer.innerHTML = '';\n\n             const sortedQuestionsForReview = [...questions].sort((a, b) => a.originalIndex - b.originalIndex);\n\n            sortedQuestionsForReview.forEach((q, index) => {\n                const reviewItem = document.createElement('div');\n                reviewItem.classList.add('review-item');\n\n                const questionP = document.createElement('p');\n                questionP.classList.add('review-question');\n                questionP.textContent = `${index + 1}. ${q.question}`;\n\n\n                const userAnswerP = document.createElement('p');\n                userAnswerP.classList.add('review-user-answer');\n                if (q.userAnswer === null) {\n                    userAnswerP.innerHTML = `<span>\u0625\u062c\u0627\u0628\u062a\u0643:<\/span> \u0644\u0645 \u062a\u062a\u0645 \u0627\u0644\u0625\u062c\u0627\u0628\u0629`;\n                    userAnswerP.classList.add('incorrect');\n                } else {\n                    const correctnessText = q.isCorrect ? '\u0635\u062d\u064a\u062d\u0629' : '\u062e\u0627\u0637\u0626\u0629';\n                    userAnswerP.innerHTML = `<span>\u0625\u062c\u0627\u0628\u062a\u0643:<\/span> ${q.userAnswer} (<span>${correctnessText}<\/span>)`;\n                    userAnswerP.classList.add(q.isCorrect ? 'correct' : 'incorrect');\n                }\n\n                reviewItem.appendChild(questionP);\n                reviewItem.appendChild(userAnswerP);\n\n                 if (!q.isCorrect || q.userAnswer === null) {\n                    const correctAnswerP = document.createElement('p');\n                    correctAnswerP.classList.add('review-correct-answer');\n                    correctAnswerP.innerHTML = `<span>\u0627\u0644\u0625\u062c\u0627\u0628\u0629 \u0627\u0644\u0635\u062d\u064a\u062d\u0629:<\/span> ${q.correctAnswer}`;\n                    reviewItem.appendChild(correctAnswerP);\n                }\n\n                reviewContainer.appendChild(reviewItem);\n            });\n        }\n\n         function restartQuiz() {\n             questions = [...englishQuizQuestions];\n             startQuiz();\n         }\n\n        \/\/ Initial setup\n        quizScreen.style.display = 'none';\n        resultsScreen.style.display = 'none';\n\n    <\/script>\n<\/body>\n<\/html>\n","protected":false},"excerpt":{"rendered":"<p>\u0627\u0645\u062a\u062d\u0627\u0646 \u0627\u0644\u0625\u0642\u0644\u0627\u0628 \u0627\u0644\u0644\u063a\u0629 \u0627\u0644\u0625\u0646\u062c\u0644\u064a\u0632\u064a\u0629 \u0627\u0644\u0623\u0648\u0644 \u062b\u0627\u0646\u0648\u064a \u0627\u0644\u0623\u0643\u0627\u062f\u064a\u0645\u064a 2008 \u0627\u062e\u062a\u0628\u0627\u0631 \u0642\u0648\u0627\u0639\u062f \u0627\u0644\u0644\u063a\u0629 \u0627\u0644\u0625\u0646\u062c\u0644\u064a\u0632\u064a\u0629 &#8211; Inversions \u0627\u062e\u062a\u0628\u0627\u0631 Inversions \u0642\u0648\u0627\u0639\u062f \u0627\u0644\u0644\u063a\u0629 \u0627\u0644\u0625\u0646\u062c\u0644\u064a\u0632\u064a\u0629 \u0647\u0630\u0627 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_sitemap_exclude":false,"_sitemap_priority":"","_sitemap_frequency":"","site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[1],"tags":[],"reaction":[],"class_list":["post-4908","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"aioseo_notices":[],"wps_subtitle":"","_links":{"self":[{"href":"https:\/\/tawjihy.com\/index.php?rest_route=\/wp\/v2\/posts\/4908","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tawjihy.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tawjihy.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tawjihy.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tawjihy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4908"}],"version-history":[{"count":3,"href":"https:\/\/tawjihy.com\/index.php?rest_route=\/wp\/v2\/posts\/4908\/revisions"}],"predecessor-version":[{"id":4937,"href":"https:\/\/tawjihy.com\/index.php?rest_route=\/wp\/v2\/posts\/4908\/revisions\/4937"}],"wp:attachment":[{"href":"https:\/\/tawjihy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4908"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tawjihy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4908"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tawjihy.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4908"},{"taxonomy":"reaction","embeddable":true,"href":"https:\/\/tawjihy.com\/index.php?rest_route=%2Fwp%2Fv2%2Freaction&post=4908"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}