Best JavaScript code snippet using fast-check-monorepo
game.js
Source:game.js
12const question = document.querySelector('#question');3const choices = Array.from(document.querySelectorAll('.choice-text'));4const progressText = document.querySelector('#progressText');5const scoreText = document.querySelector('#score');6const progressBarFull = document.querySelector('#progressBarFull');78let currentQuestion = {}9let accpetingAnswers = true10let score= 011let questionCounter = 012let availableQuestions = []1314let questions = [15 16 {17 question: 'Jack is ______ a model airplane.', 18 choice1: 'build',19 choice2: 'builder',20 choice3: 'built',21 choice4: 'building',22 answer: 42324 },25 {26 question: 'We bought a ____ books.', 27 choice1: 'few ',28 choice2: 'little ',29 choice3: 'some ',30 choice4: 'lot',31 answer: 13233 },34 {35 question: 'The lady _______ in this city since 1997.', 36 choice1: 'lives ',37 choice2: 'is living ',38 choice3: 'lived ',39 choice4: 'has lived',40 answer: 44142 },43 {44 question: '_____ will you finish your work?', 45 choice1: 'What ',46 choice2: 'When ',47 choice3: 'Any time ',48 choice4: 'Why',49 answer: 25051 },52 {53 question: 'I am interested _____ receiving free samples of your product.', 54 choice1: 'in ',55 choice2: 'to ',56 choice3: 'on ',57 choice4: 'for',58 answer: 15960 },61 {62 question: 'This lake is much ______ than the one near my house.', 63 choice1: 'deep ',64 choice2: 'deeper ',65 choice3: 'deeply ',66 choice4: 'more deeply',67 answer: 26869 },70 {71 question: 'After you collect the money, you need to count ______ .', 72 choice1: 'it ',73 choice2: 'them ',74 choice3: 'itself ',75 choice4: 'they',76 answer: 17778 },79 {80 question: 'The _______ office is on Main Street.', 81 choice1: 'doctor ',82 choice2: 'doctorâs ',83 choice3: 'Adoctor whose ',84 choice4: 'of the doctor',85 answer: 28687 },88 {89 question: 'The meeting was ________ because no one has time to come.', 90 choice1: 'cancelled ',91 choice2: 'cancellation ',92 choice3: 'cancel ' ,93 choice4: 'canceling',94 answer: 19596 },97 {98 question: 'The party is on the _____ of January.', 99 choice1: 'two eight ',100 choice2: 'twenty-eight ',101 choice3: 'twenty-eighth ',102 choice4: 'twentieth and eighth',103 answer: 3104105 },106 {107 question: 'Jane became an English teacher and I did _____ .', 108 choice1: 'become',109 choice2: 'too ',110 choice3: 'well ' ,111 choice4: 'neither',112 answer: 2113114 },115 {116 question: 'You canât have dessert ______ you eat your dinner.', 117 choice1: 'but ',118 choice2: 'unless',119 choice3: 'therefore' ,120 choice4: 'whether',121 answer: 2122123 },124 {125 question: 'Buy a loaf of _____ when youâre at the supermarket.', 126 choice1: 'books ',127 choice2: 'boxes ',128 choice3: 'butter ' ,129 choice4: 'bread',130 answer: 4131132 },133 {134 question: 'The manager ______ to send this fax before noon today.', 135 choice1: 'liked ',136 choice2: 'is liking ',137 choice3: 'would like ' ,138 choice4: 'is being liked',139 answer: 3140141 },142 {143 question: 'You can either rent _____ buy this house.', 144 choice1: 'or ',145 choice2: 'and ',146 choice3: 'nor ' ,147 choice4: 'whether',148 answer: 1149150 },151 {152 question: '_______ these dishes will take at least an hour.', 153 choice1: 'I wash ',154 choice2: 'The wash ',155 choice3: 'Washing' ,156 choice4: 'Wash',157 answer: 3158159 },160 {161 question: 'You had _______ study for the exam.', 162 choice1: 'go ',163 choice2: 'supposed to ',164 choice3: 'better ' ,165 choice4: 'ought',166 answer: 3167168 },169 {170 question: 'We felt that the recent reports were not particularly _________ .', 171 choice1: 'informs ',172 choice2: 'information ',173 choice3: 'informative ' ,174 choice4: 'inform',175 answer: 3176177 },178 {179 question: 'Please call the travel agent this afternoon to ______ your travel plans.', 180 choice1: 'confirmation ',181 choice2: 'confirm ',182 choice3: 'confirmed ' ,183 choice4: 'confirming',184 answer: 2185186 },187 {188 question: 'Our team worked ______ hard that we finished the project two days before the deadline.', 189 choice1: 'too ',190 choice2: 'not ',191 choice3: 'so ' ,192 choice4: 'such',193 answer: 3194195 },196 {197 question:'Juan___________ in the library this morning.',198 choice1:'is study',199 choice2:'studying',200 choice3:'is studying',201 choice4:'are studying',202 answer: 3203 },204 {205 question:"Alicia, __________ the windows please. It's too hot in here. ",206 choice1:'opens',207 choice2:'open',208 choice3:'opened',209 choice4:'will opened',210 answer: 2211 },212 {213 question:'The movie was __________ the book.',214 choice1:'as',215 choice2:'as good',216 choice3:'good as',217 choice4:'as good as',218 answer: 4219 },220 {221 question:"Eli's hobbies include jogging, swimming, and __________.",222 choice1:'to climb mountains',223 choice2:'climb mountains',224 choice3:'to climb',225 choice4:'climbing mountains',226 answer: 4227 },228 {229 question:'Mr. Hawkins requests that someone _________ the data by fax immediately.',230 choice1:'sent',231 choice2:'sends',232 choice3:'send',233 choice4:'to send',234 answer: 3235 },236 {237 question:'Who is ____________ , Marina or Sachiko?',238 choice1:'tallest',239 choice2:'tall',240 choice3:'taller',241 choice4:'the tallest',242 answer: 3243 },244 {245 question:'The concert will begin ________ fifteen minutes.',246 choice1:'in',247 choice2:'on',248 choice3:'with',249 choice4:'with',250 answer: 1251 },252 {253 question:'I have only a ________ Christmas cards left to write',254 choice1:'few',255 choice2:'fewer',256 choice3:'less',257 choice4:'little',258 answer: 1259 },260 {261 question:'Each of the Olympic athletes ____________ for months, even years. ',262 choice1:'have been training',263 choice2:'were training',264 choice3:'has been training',265 choice4:'been training',266 answer: 3267 },268 {269 question:'Maria __________ never late for work.',270 choice1:'am',271 choice2:'are',272 choice3:'were',273 choice4:'is',274 answer: 4275 },276 {277 question:'The company will upgrade _________ computer information systems next month.',278 choice1:'there',279 choice2:'their',280 choice3:"it's",281 choice4:'its',282 answer: 4283 },284 {285 question:'Cheryl likes apples, _________ she does not like oranges. ',286 choice1:'so',287 choice2:'for',288 choice3:'but',289 choice4:'or',290 answer: 3291 },292 {293 question:'You were ____________ the New York office before 2 p.m. ',294 choice1:'suppose call',295 choice2:'supposed to call',296 choice3:'supposed calling',297 choice4:'supposed call',298 answer: 2299 },300 {301 question:'When I graduate from college next June, I _____________ a student here for five years.',302 choice1:'will have been',303 choice2:'have been',304 choice3:'has been',305 choice4:'will have',306 answer: 1307 },308 {309 question:'Ms. Guth _________ rather not invest that money in the stock market.',310 choice1:'has to',311 choice2:'could',312 choice3:'would',313 choice4:'must',314 answer: 3315 },316 {317 question: 'Accounting practice _______ by distinct accounting standards, rules, methods and procedures.', 318 choice1: 'guide',319 choice2: 'guides',320 choice3: 'is guided',321 choice4: 'was guiding',322 answer: 3323 },324 {325 question: "Our bodies expect a constant supply of sleep _______ they function best when provided a full night's sleep every 24 hours.", 326 choice1: 'and',327 choice2: 'but',328 choice3: 'or',329 choice4: 'yet',330 answer: 1331 },332 {333 question: '_____ and rapid economic growth in recent years, have put a large and increasing stress on he water resources and environment in Ho Chi Mint City, Vietnam.', 334 choice1: 'Increase population',335 choice2: 'Increased population',336 choice3: 'Increasing population',337 choice4: 'Having increased population',338 answer: 2339 },340 {341 question: 'The term "medical reversal" refers to the replacement ____ that was widely believed to be beneficial.', 342 choice1: 'of a medical practice',343 choice2: 'to a medical practice',344 choice3: 'by a medical practice',345 choice4: 'with a medical practice',346 answer: 1347 },348 {349 question: 'Tardigrades also known as water bears, are microscopic animals that live ____ watery environment and feed on juices from plant cells. ', 350 choice1: 'in',351 choice2: 'on',352 choice3: 'for',353 choice4: 'over',354 answer: 1355 },356 {357 question: 'History, it is often said, ___ by the winners - a saying that suggests bias in historical records.', 358 choice1: 'is written',359 choice2: 'was written',360 choice3: 'has been written',361 choice4: 'had been written',362 answer: 1363 },364 {365 question: 'Foods rich in folate, a form of Vitamin B, ____ reduce the risk of stroke and heart disease.', 366 choice1: 'help',367 choice2: 'helps',368 choice3: 'helped',369 choice4: 'is helping',370 answer: 1371 },372 {373 question: 'The family went for two-week cruise on a ____ ocean liner.', 374 choice1: 'incredible, brand-new, Italian',375 choice2: 'brand-new, incredible, Italian',376 choice3: 'Italian, incredible, brand-new',377 choice4: 'incredible, Italian, brand-new',378 answer: 2379 },380 {381 question: 'Over years, economic growth ___ of greater concern than environment preservation.', 382 choice1: 'has been',383 choice2: 'have been',384 choice3: 'had been',385 choice4: 'will have been',386 answer: 1387 },388 {389 question: 'They ____ a few crises in the past, so they were able to handle this situation fairly well.', 390 choice1: 'have managed',391 choice2: 'had managed',392 choice3: 'has been managed',393 choice4: 'have been managed',394 answer: 2395 },396{397question: 'The ceremony ___ by the top officials and national officials of big companies last year.', 398 choice1: 'is graced',399 choice2: 'was graced',400 choice3: 'has graced',401 choice4: 'had graced',402 answer: 2403},404{405question: 'A history of depression, denial, injustice and abuse ___ greatest detriment to people with color.', 406 choice1: 'has been',407 choice2: 'had been',408 choice3: 'have been',409 choice4: 'having been',410 answer: 1411},412{413question: '____ should help you be better informed about potential risks, but it should not be a source of alarm.', 414 choice1: 'Know your family history',415 choice2: 'Knowing your family history',416 choice3: 'To have your family history known',417 choice4: 'Having your family history known',418 answer: 2419},420{421question: "We become nervous, doubtful ____ we don't see our good coming as quickly as we think.", 422 choice1: 'while',423 choice2: 'when',424 choice3: 'because',425 choice4: 'therefore',426 answer: 3427},428{429question: 'The child was advised to stay away ____ because of trauma.', 430 choice1: 'completed from his father',431 choice2: 'completely from his father',432 choice3: 'completed with his father',433 choice4: 'completely with his father',434 answer: 2435},436{437question: "Leni ___ out against President Duterte's drug war, which saw the killings of suspected drug dealers in the slums of Manila.", 438 choice1: 'have spoke',439 choice2: 'have spoken',440 choice3: 'has spoke',441 choice4: 'has spoken',442 answer: 4443},444{445question: 'Edgar unnecessarily ____ a quarrel with Bryan and left the party immediately.', 446 choice1: 'picked on',447 choice2: 'picked out',448 choice3: 'picked',449 choice4: 'picked up',450 answer: 3451},452{453question: 'Robert pleased ____ his teacher to ask and give him a chance.', 454 choice1: 'with',455 choice2: 'to',456 choice3: 'from',457 choice4: 'in',458 answer: 2459},460{461question: "Water is a nature's big gift to man ____ quenches his thirst.", 462 choice1: 'although',463 choice2: 'hence',464 choice3: 'because',465 choice4: 'moreover',466 answer: 3467},468{469question: 'Success in this examination depends ___ the hard work alone.', 470 choice1: 'at',471 choice2: 'in',472 choice3: 'on',473 choice4: 'from',474 answer: 3475},476{477question: 'It is observed that some new aspiring politicians usually make a ___ before running in Congress with great hope of bringing changes in the system and progress in the country.', 478 choice1: 'two-hour important decision',479 choice2: 'two-hours important decision',480 choice3: 'two hour important decisions',481 choice4: 'two hours important decision',482 answer: 1483},484{485question: '____ the serene city of Italy is her lifelong dream.', 486 choice1: 'Have visited',487 choice2: 'Having visited',488 choice3: 'Shall have visit',489 choice4: 'To visit',490 answer: 4491},492{493question: 'Despite a plea from the management, employees ___ a massive protest.', 494 choice1: 'stage',495 choice2: 'should staged',496 choice3: 'have stage',497 choice4: 'would stage',498 answer: 2499},{500question: 'The debutant received ___ roses.', 501 choice1: 'several red big',502 choice2: 'several big red',503 choice3: 'red several big',504 choice4: 'big red several',505 answer: 2506},507{508question: 'You ___ to stop drinking alcohol now before it ___ you.', 509 choice1: 'must-kill',510 choice2: 'have-kill',511 choice3: 'should-kill',512 choice4: 'shall-kill',513 answer: 2514},515{516question: 'Disaster preparedness and disaster reduction management are slowly being taught in schools because of the ____ of floods, earthquakes and other natural calamities in the world.', 517 choice1: 'continually increasing incident',518 choice2: 'continually increasing incidence',519 choice3: 'continual increase incidents',520 choice4: 'continually increase incidence',521 answer: 2522},523{524question: 'The child who caught up cheating ___ the teacher not to tell his parents about the incident.', 525 choice1: 'has implored',526 choice2: 'has imploring',527 choice3: 'implored',528 choice4: 'had implored',529 answer: 3530},531{532question: 'He ___ a beautiful poem for his mother.', 533 choice1: 'writing',534 choice2: 'written',535 choice3: 'wrote',536 choice4: 'write',537 answer: 3538},539{540question: 'The test was hard for Fred and ___.', 541 choice1: 'I',542 choice2: 'me',543 choice3: 'himself',544 choice4: 'myself',545 answer: 2546},547{548question: 'The means of transportation ___ dramatically changed since the end of the 20th century.', 549 choice1: 'will changed',550 choice2: 'have changed',551 choice3: 'will have changed',552 choice4: 'has changed',553 answer: 4554},555{556question: ' The flowers smell ____', 557 choice1: 'more sweet',558 choice2: 'sweetly',559 choice3: 'sweet',560 choice4: 'sweeter',561 answer: 3562},563{564question: 'We had the ___ news when he came.', 565 choice1: 'last',566 choice2: 'last of all',567 choice3: 'very last',568 choice4: 'latest',569 answer: 4570},571{572question: 'The rate of ___________ has been fluctuating wildly this week.', 573 choice1: 'money',574 choice2: 'bills',575 choice3: 'coins',576 choice4: 'exchange',577 answer: 4578},579{580question: 'The bus ___________ arrives late during bad weather.', 581 choice1: 'every week',582 choice2: 'later',583 choice3: 'yesterday',584 choice4: 'always',585 answer: 4586},587{588question: 'Do you ____________ where the nearest grocery store is?', 589 choice1: 'know',590 choice2: 'no',591 choice3: 'now',592 choice4: 'not',593 answer: 1594},595{596question: 'Jerry Seinfeld, the popular American comedian, has his audiences___________.', 597 choice1: 'putting too many irons in the fire',598 choice2: "keeping their noses out of someone's business",599 choice3: 'rolling in the aisles',600 choice4: 'going to bat for someone',601 answer: 3602},603{604question: 'The chairperson will ____________ members to the subcommittee. ', 605 choice1: 'appoint',606 choice2: 'disappoint',607 choice3: 'appointment',608 choice4: 'disappointed',609 answer: 1610},611{612question: 'The critics had to admit that the ballet ______________ was superb.', 613 choice1: 'procrastinate',614 choice2: 'performance',615 choice3: 'pathology',616 choice4: 'psychosomatic',617 answer: 2618},619{620question: "Peter says he can't ___________ our invitation to dinner tonight.", 621 choice1: 'angel',622 choice2: 'across',623 choice3: 'accept',624 choice4: 'almost',625 answer: 3626},627{628question: 'We were __________ friends in that strange but magical country.', 629 choice1: 'upon',630 choice2: 'among',631 choice3: 'toward',632 choice4: 'in addition to',633 answer: 2634},635{636question: 'The hurricane caused ____________ damage to the city.', 637 choice1: 'extend',638 choice2: 'extended',639 choice3: 'extensive',640 choice4: 'extension',641 answer: 3642},643{644question: "Many cultures have special ceremonies to celebrate a person's _________ of passage into adulthood.", 645 choice1: 'right',646 choice2: 'rite',647 choice3: 'writ',648 choice4: 'write',649 answer: 2650},651{652question: '_____ name is John. And my _____ is Johnson.', 653 choice1: 'Your/surname',654 choice2: 'My/surname',655 choice3: 'I/surname',656 choice4: 'I/name',657 answer: 2658659},660661{662question: 'Pierre is a French boy. _____ from _____.', 663 choice1: "He's - France",664 choice2: 'His - France',665 choice3: "His's - French",666 choice4: 'He - France',667 answer: 1668669},670671{672question: 'English is _____ international languange.', 673 choice1: 'a',674 choice2: 'an',675 choice3: 'the',676 choice4: '*',677 answer: 2678679},680681{682question: '"Is your elder brother married?" "No, ______."', 683 choice1: "Brother isn't",684 choice2: "He isn't",685 choice3: "He is not",686 choice4: "She isn't",687 answer: 2688689},690691{692question: 'I live _____ a house ______ Los Angeles.', 693 choice1: 'on - in',694 choice2: 'in - in',695 choice3: 'in - at',696 choice4: 'at - in',697 answer: 2698699},700701{702question: "I'm _____ a class _____ eight other students.", 703 choice1: 'in - for',704 choice2: 'at - with',705 choice3: 'in - with',706 choice4: 'on - with',707 answer: 3708709},710711{712question: 'This is not just a computer. It is a 4 ____ computer.', 713 choice1: "students'",714 choice2: "students's",715 choice3: "student's",716 choice4: 'student',717 answer: 1718719},720721{722question: 'He ____ his car every weekend.', 723 choice1: 'wash',724 choice2: 'washing',725 choice3: 'washes',726 choice4: 'washed',727 answer: 3728729},730731{732question: "Most of the people, work at 8 o'clock every morning", 733 choice1: 'finishes',734 choice2: 'goes',735 choice3: 'does',736 choice4: 'starts',737 answer: 4738739},740741{742question: 'Every time he ____ a glass of lemonade before breakfast.', 743 choice1: 'is',744 choice2: 'have',745 choice3: 'has',746 choice4: 'does',747 answer: 3748},749{750question: 'He drives the children ____ school.', 751 choice1: 'on',752 choice2: 'at',753 choice3: 'to',754 choice4: 'in',755 answer: 3756757},758759{760question: 'She likes going _____ walks _____ summer.', 761 choice1: 'for - at',762 choice2: 'to - at',763 choice3: 'for - in',764 choice4: 'on - at',765 answer: 3766767},768769{770question: 'What ____ you ____ at the weekend?', 771 choice1: 'does - does',772 choice2: 'do - does',773 choice3: 'does - do',774 choice4: 'do - do',775 answer: 4776777},778779{780question: 'Do you like _____ in your free time?', 781 choice1: 'read',782 choice2: 'reads',783 choice3: 'reading',784 choice4: 'to read',785 answer: 3786787},788789{790question: 'A friend of mine likes ____ on picnic at weekends.', 791 choice1: 'to go',792 choice2: 'going',793 choice3: 'goes',794 choice4: 'go',795 answer: 3796797},798{799question: 'Every year millions of people _____ The London Museum.', 800 choice1: 'visit',801 choice2: 'go',802 choice3: 'come',803 choice4: 'want',804 answer: 1805806},{807question: "Visitors _____ to India's Independence Day from all over the world.", 808 choice1: 'visit',809 choice2: 'come',810 choice3: 'leave',811 choice4: 'want',812 answer: 2813814},{815question: 'Many foreigners in our country _____ to the Golden Bazaar.', 816 choice1: 'buy',817 choice2: 'go shopping',818 choice3: 'want',819 choice4: 'come',820 answer: 2821822},{823question: 'She loves _____ to music.', 824 choice1: 'listening',825 choice2: 'to listen',826 choice3: 'listens',827 choice4: 'listen',828 answer: 1829830},{831question: '_____ there three stereos in the living room? No, there _____', 832 choice1: "Are - aren't",833 choice2: 'Are - are',834 choice3: 'Are - not',835 choice4: 'Are - is',836 answer: 1837838},839840]841842const SCORE_POINTS = 1843const MAX_QUESTIONS = 15844845startGame = () =>{846 questionCounter = 0847 score = 0848 availableQuestions = [...questions]849 getNewQuestion()850}851852getNewQuestion = () => {853 if (availableQuestions.length === 0 || questionCounter > MAX_QUESTIONS){854 localStorage.setItem('mostRecentScore', score)855856 return window.location.assign('end.html')857 }858859 questionCounter++860 progressText.innerText = `Question ${questionCounter} of ${MAX_QUESTIONS}`861 progressBarFull.style.width = `${(questionCounter/MAX_QUESTIONS) * 100}%`862863 const questionIndex = Math.floor(Math.random() * availableQuestions.length)864 currentQuestion = availableQuestions[questionIndex]865 question.innerText = currentQuestion.question866867 choices.forEach(choice => {868 const number = choice.dataset['number']869 choice.innerText = currentQuestion['choice' + number]870 })871872 availableQuestions.splice(questionIndex, 1)873874 acceptingAnswers = true875}876877choices.forEach(choice =>{878 choice.addEventListener('click', e =>{879 if(!acceptingAnswers) return880881 acceptingAnswers = false882 const selectedChoice = e.target883 const selectedAnswer = selectedChoice.dataset['number']884885 let classToApply = selectedAnswer == currentQuestion.answer ? 'correct':886 'incorrect'887888 if(classToApply === 'correct'){889 incrementScore(SCORE_POINTS)890 }891892 selectedChoice.parentElement.classList.add(classToApply)893894 setTimeout(() =>{895 selectedChoice.parentElement.classList.remove(classToApply)896 getNewQuestion()897 }, 1000)898 })899})900901incrementScore = num => {902 score += num903 scoreText.innerText = score904}905
...
test.js
Source:test.js
123{4 question: 'The majority to the news is about violence or scandal.',5 choice1: 'The',6 choice2:'to',7 choice3:'news',8 choice4:'violence',9 answer: 210},11{12 question: 'Takeshi swimmed one hundred laps in the pool yesterday. ',13 choice1: 'swimmed',14 choice2: 'hundred',15 choice3: 'in',16 choice4: 'yesterday',17 answer: 118},19{20 question: 'When our vacation, we plan to spend three days scuba diving.',21 choice1: 'When',22 choice2: 'plan',23 choice3: 'days',24 choice4: 'diving',25 answer: 126},27{28 question: 'Mr. Feinauer does not take critical of his work very well.',29 choice1: 'does',30 choice2: 'critical',31 choice3: 'his',32 choice4: 'well',33 answer: 234},35{36 question: 'Yvette and Rinaldo send e-mail messages to other often.',37 choice1: 'and',38 choice2: 'send',39 choice3: 'other',40 choice4: 'often',41 answer: 342},43{44 question: 'Mr. Olsen is telephoning a American Red Cross for help. ',45 choice1: 'is',46 choice2: 'a',47 choice3: 'Red',48 choice4: 'for',49 answer: 250},51{52 question: 'I had a enjoyable time at the party last night.',53 choice1: 'a',54 choice2: 'time',55 choice3: 'at',56 choice4: 'last',57 answer: 158},59{60 question: "The doctor him visited the patient's parents.",61 choice1: 'The',62 choice2: 'him',63 choice3: 'visited',64 choice4: "patient's",65 answer: 266},67{68 question: 'Petra intends to starting her own software business in a few years.',69 choice1: 'intends',70 choice2: 'starting',71 choice3: 'software',72 choice4: 'few',73 answer: 274},75{76 question: 'Each day after school, Jerome run five miles.',77 choice1: 'Each',78 choice2: 'after',79 choice3: 'run',80 choice4: 'miles',81 answer: 382},83{84 question: 'He goes never to the company softball games.',85 choice1: 'never',86 choice2: 'the',87 choice3: 'softball',88 choice4: 'games',89 answer: 190},91{92 question: 'Do you know the student who books were stolen?',93 choice1: 'Do',94 choice2: 'know',95 choice3: 'who',96 choice4: 'were',97 answer: 398},99{100 question: 'Jean-Pierre will spend his vacation either in Singapore nor the Bahamas.',101 choice1: 'will',102 choice2: 'his',103 choice3: 'nor',104 choice4: 'Bahamas',105 answer: 3106},107{108 question: 'I told the salesman that I was not interesting in buying the latest model. ',109 choice1: 'told',110 choice2: 'that',111 choice3: 'interesting',112 choice4: 'buying',113 answer: 3114},115{116 question: 'Frederick used work for a multinational corporation when he lived in Malaysia. ',117 choice1: 'used work',118 choice2: 'multinational',119 choice3: 'when',120 choice4: 'lived in',121 answer: 1122},123124+++++++++++Writing++++++++++++++++125{126 question: '',127 choice1: 'Marc Chaggall, a painter,',128 choice2: 'was considered a forefather of the art of surrealism',129 choice3: 'an art on how can be characterized by incongruous imagery',130 choice4: 'produced by unnatural juxtapositions and combinations.',131 answer: 3132},133{134 question: '',135 choice1: 'Since the time the World Wide Fund for nature reported',136 choice2: 'that more than 22 species of wild felines have declining.',137 choice3: 'different non-government agencies have given their support',138 choice4: 'to the program that would protect the species',139 answer: 2140},141{142 question: '',143 choice1: 'The threat of deculturation',144 choice2: 'now hangs over many small ethnic minority',145 choice3: 'that are scattered',146 choice4: 'in the depths of many forests.',147 answer: 2148},149{150 question: '',151 choice1: 'Unclean water and improper disposal of waste',152 choice2: 'can be carried highly communicable diseases',153 choice3: 'because of their injurious effects',154 choice4: 'to human life.',155 answer: 2156},157{158 question: '',159 choice1: 'Language was brought into the spotlight',160 choice2: 'as a crucial factor',161 choice3: 'for Nigeriaâs social, economic, and the political future',162 choice4: ' because multilingualism inevitably results in communication problems.',163 answer: 3164},165{166 question: '',167 choice1: 'The failure of tree-planting project was due to the inconsistent reforestation program',168 choice2: 'haphazard community tree-planting schemes, and meddling practices of indifference individuals',169 choice3: 'who reduced the anti-erosion fences',170 choice4: 'just to benefit their pasture land businesses',171 answer: 2172}, 173{174 question: '',175 choice1: ' Because of new coffee growers',176 choice2: 'flooding the global market,',177 choice3: 'the official price of a pound of coffee in the United States',178 choice4: 'crashed into $6 in 1977 to 42 cents in 2001',179 answer: 4180},181{182 question: '',183 choice1: 'The navy contributes',184 choice2: ' to the protection of the environment and preservation of natural resources',185 choice3: 'by scuttle out cylindrical blocks',186 choice4: 'to serve as artificial reefs.',187 answer: 3188},189{190 question: '',191 choice1: 'Trinh Xuan Thuan, an astrophysicist from Vietnam',192 choice2: 'wrote The Birth of the Universe: The Big Bang and After, in 1993,',193 choice3: ' a book on how it elucidates',194 choice4: 'the information and evolution of galaxies.',195 answer: 3196},197{198 question: '',199 choice1: 'Susana earned money for her vacation',200 choice2: 'by working in an antique store all summer',201 choice3: 'but the amount was inefficient',202 choice4: 'for all that she needed',203 answer: 3204},205{206 question: '',207 choice1: 'The eruption of Mt. Pinatubo in 1991',208 choice2: 'was one of the many misfortunes',209 choice3: 'to wreak havoc',210 choice4: ' in Central Luzon.',211 answer: 3212},213{214 question: '',215 choice1: 'After participating the fertility rites,',216 choice2: 'the childless woman,',217 choice3: 'who was blessed with a healthy baby',218 choice4: 'experienced a blissful and contented life.',219 answer: 1220},221{222 question: '',223 choice1: 'Media produce',224 choice2: ' a sociology phenomenon',225 choice3: 'such as psychological, moral, and academic confusion',226 choice4: 'about the present culture.',227 answer: 2228},229{230 question: '',231 choice1: 'Concentrating on the physical intricacies',232 choice2: 'of different pose of the body',233 choice3: 'forces one to filter out',234 choice4: 'physiological anxieties.',235 answer: 2236},237{238 question: '',239 choice1: 'Any nation',240 choice2: 'that aspires to elevate morality',241 choice3: 'will have difficulty',242 choice4: 'stamp out prostitution.',243 answer: 4244},245{246 question: '',247 choice1: '',248 choice2: '',249 choice3: '',250 choice4: '',251 answer:252},253{254 question: '',255 choice1: '',256 choice2: '',257 choice3: '',258 choice4: '',259 answer:260},261{262 question: '',263 choice1: '',264 choice2: '',265 choice3: '',266 choice4: '',267 answer:268},269{270 question: '',271 choice1: '',272 choice2: '',273 choice3: '',274 choice4: '',275 answer:276},277{278 question: '',279 choice1: '',280 choice2: '',281 choice3: '',282 choice4: '',283 answer:284},285{286 question: '',287 choice1: '',288 choice2: '',289 choice3: '',290 choice4: '',291 answer:292},293{294 question: '',295 choice1: '',296 choice2: '',297 choice3: '',298 choice4: '',299 answer:300},301{302 question: '',303 choice1: '',304 choice2: '',305 choice3: '',306 choice4: '',307 answer:308},309{310 question: '',311 choice1: '',312 choice2: '',313 choice3: '',314 choice4: '',315 answer:316},317{318 question: '',319 choice1: '',320 choice2: '',321 choice3: '',322 choice4: '',323 answer:324},325{326 question: '',327 choice1: '',328 choice2: '',329 choice3: '',330 choice4: '',331 answer:332},333{334 question: '',335 choice1: '',336 choice2: '',337 choice3: '',338 choice4: '',339 answer:340},341{342 question: '',343 choice1: '',344 choice2: '',345 choice3: '',346 choice4: '',347 answer:348},349{350 question: '',351 choice1: '',352 choice2: '',353 choice3: '',354 choice4: '',355 answer:356},357{358 question: '',359 choice1: '',360 choice2: '',361 choice3: '',362 choice4: '',363 answer:364},365{366 question: '',367 choice1: '',368 choice2: '',369 choice3: '',370 choice4: '',371 answer:372},373374375+++++++++++++++++++++++376{377 question: '',378 choice1: '',379 choice2: '',380 choice3: '',381 choice4: '',382 answer:383},384{385 question: '',386 choice1: '',387 choice2: '',388 choice3: '',389 choice4: '',390 answer:391},392{393 question: '',394 choice1: '',395 choice2: '',396 choice3: '',397 choice4: '',398 answer:399},400{401 question: '',402 choice1: '',403 choice2: '',404 choice3: '',405 choice4: '',406 answer:407},408{409 question: '',410 choice1: '',411 choice2: '',412 choice3: '',413 choice4: '',414 answer:415},416{417 question: '',418 choice1: '',419 choice2: '',420 choice3: '',421 choice4: '',422 answer:423},424{425 question: '',426 choice1: '',427 choice2: '',428 choice3: '',429 choice4: '',430 answer:431},432{433 question: '',434 choice1: '',435 choice2: '',436 choice3: '',437 choice4: '',438 answer:439},440{441 question: '',442 choice1: '',443 choice2: '',444 choice3: '',445 choice4: '',446 answer:447},448{449 question: '',450 choice1: '',451 choice2: '',452 choice3: '',453 choice4: '',454 answer:455},456++++++++++++++++++++457{458 question: '',459 choice1: '',460 choice2: '',461 choice3: '',462 choice4: '',463 answer:464},465{466 question: '',467 choice1: '',468 choice2: '',469 choice3: '',470 choice4: '',471 answer:472},473{474 question: '',475 choice1: '',476 choice2: '',477 choice3: '',478 choice4: '',479 answer:480},481{482 question: '',483 choice1: '',484 choice2: '',485 choice3: '',486 choice4: '',487 answer:488},489{490 question: '',491 choice1: '',492 choice2: '',493 choice3: '',494 choice4: '',495 answer:496},497{498 question: '',499 choice1: '',500 choice2: '',501 choice3: '',502 choice4: '',503 answer:504},505{506 question: '',507 choice1: '',508 choice2: '',509 choice3: '',510 choice4: '',511 answer:512},513{514 question: '',515 choice1: '',516 choice2: '',517 choice3: '',518 choice4: '',519 answer:520},521{522 question: '',523 choice1: '',524 choice2: '',525 choice3: '',526 choice4: '',527 answer:528},529{530 question: '',531 choice1: '',532 choice2: '',533 choice3: '',534 choice4: '',535 answer:536},537+++++++++++++++++++++++538{539 question: '',540 choice1: '',541 choice2: '',542 choice3: '',543 choice4: '',544 answer:545},546{547 question: '',548 choice1: '',549 choice2: '',550 choice3: '',551 choice4: '',552 answer:553},554{555 question: '',556 choice1: '',557 choice2: '',558 choice3: '',559 choice4: '',560 answer:561},562{563 question: '',564 choice1: '',565 choice2: '',566 choice3: '',567 choice4: '',568 answer:569},570{571 question: '',572 choice1: '',573 choice2: '',574 choice3: '',575 choice4: '',576 answer:577},578{579 question: '',580 choice1: '',581 choice2: '',582 choice3: '',583 choice4: '',584 answer:585},586{587 question: '',588 choice1: '',589 choice2: '',590 choice3: '',591 choice4: '',592 answer:593},594{595 question: '',596 choice1: '',597 choice2: '',598 choice3: '',599 choice4: '',600 answer:601},602{603 question: '',604 choice1: '',605 choice2: '',606 choice3: '',607 choice4: '',608 answer:609},610{611 question: '',612 choice1: '',613 choice2: '',614 choice3: '',615 choice4: '',616 answer:
...
questions.js
Source:questions.js
1export const questionary =[2 {3 question: 'Who won Euro Cup 2020?',4 choice1: 'Germany',5 choice2: 'Italy',6 choice3: 'Portugal',7 choice4: 'France',8 answer: 2,9},10{11 question: 'Where was hosted the Euro 2004?',12 choice1: 'Greece',13 choice2: 'Portugal',14 choice3: 'Belgium',15 choice4: 'England',16 answer: 2,17},18{19 question: 'Who wrote the books about Harry Potter?',20 choice1: 'J.K. Rowling',21 choice2: 'Al Dor',22 choice3: 'Ans Frund',23 choice4: 'Laura Parker',24 answer: 1,25},26{27 question: 'What sport made Michael Schumacher famous?',28 choice1: 'Tennis',29 choice2: 'Football',30 choice3: 'Ice Hockey',31 choice4: 'Formula 1',32 answer: 4,33},34{35 question: 'Who played Neil Caffrey in the tv show White Collar?',36 choice1: 'Chris Hemsworth',37 choice2: 'Tom Hardy',38 choice3: 'Matt Boomer',39 choice4: 'Channing Tatum',40 answer: 3,41},42{43 question: 'What is the capital of Hungary?',44 choice1: 'Budapest',45 choice2: 'Bucharest',46 choice3: 'Prague',47 choice4: 'Debrecen',48 answer: 1,49},50{51 question: 'What is the smallest country in the world?',52 choice1: 'Vatican',53 choice2: 'San Marino',54 choice3: 'Andorra',55 choice4: 'Gibraltar',56 answer: 1,57},58{59 question: 'What is the capital of Canada?',60 choice1: 'Toronto',61 choice2: 'Vancouver',62 choice3: 'Montreal',63 choice4: 'Ottawa',64 answer: 4,65},66{67 question: 'When was it open the London Underground?',68 choice1: '1930',69 choice2: '1863',70 choice3: '1904',71 choice4: '1888',72 answer: 2,73},74{75 question: 'What was the official population of Portugal in 2021?',76 choice1: '10 347 892 inhabitants',77 choice2: '11 634 745 inhabitants',78 choice3: '9 004 875 inhabitants',79 choice4: '12 188 558 inhabitants',80 answer: 1,81},82{83 question: 'In what year it started the Second World War?',84 choice1: '1940',85 choice2: '1941',86 choice3: '1939',87 choice4: '1945',88 answer: 3,89},90{91 question: 'To what of this brands is Steve Jobs associated?',92 choice1: 'Apple',93 choice2: 'Microsoft',94 choice3: 'MCDonalds',95 choice4: 'Amazon',96 answer: 1,97},98{99 question: 'What is the chemical symbol of Gold?',100 choice1: 'Ag',101 choice2: 'Go',102 choice3: 'Gd',103 choice4: 'Au',104 answer: 4,105},106{107 question: 'What is the chemical symbol of Silver?',108 choice1: 'Sv',109 choice2: 'Au',110 choice3: 'Ag',111 choice4: 'S',112 answer: 3,113},114{115 question: 'From what city it comes The Beatles?',116 choice1: 'Manchester',117 choice2: 'Londres',118 choice3: 'Liverpool',119 choice4: 'Birmingham',120 answer: 3,121},122{123 question: 'In what year did Apollo 11 stepped the Moon?',124 choice1: '1967',125 choice2: '1969',126 choice3: '1971',127 choice4: '1973',128 answer: 2,129},130{131 question: 'What is the capital of USA?',132 choice1: 'Washington D.C.',133 choice2: 'New York',134 choice3: 'Los Angeles',135 choice4: 'Chicago',136 answer: 1,137},138{139 question: 'In what year born Cristiano Ronaldo?',140 choice1: '1989',141 choice2: '1985',142 choice3: '1983',143 choice4: '1990',144 answer: 2,145},146{147 question: 'What is the capital of Brazil?',148 choice1: 'Rio de Janeiro',149 choice2: 'Belo Horizonte',150 choice3: 'Sao Paulo',151 choice4: 'Brasilia',152 answer: 4,153},154{155 question: 'From what country is originally Nokia?',156 choice1: 'Finland',157 choice2: 'Sweden',158 choice3: 'USA',159 choice4: 'japan',160 answer: 1,161},162{163 question: 'How high is the Eiffel Tower?',164 choice1: '425m',165 choice2: '324m',166 choice3: '287m',167 choice4: '374m',168 answer: 2,169},170{171 question: 'Whose death sparked World War I?',172 choice1: 'Kaiser Wilhelm',173 choice2: 'Archbishop Ussher',174 choice3: 'Queen Victoria',175 choice4: 'Archduke Franz Ferdinand',176 answer: 4,177},178{179 question: 'World War I ended in:',180 choice1: '1925',181 choice2: '1918',182 choice3: '1920',183 choice4: '1916',184 answer: 2,185},186{187 question: 'How many republics made up the former Soviet Union?',188 choice1: '15',189 choice2: '18',190 choice3: '12',191 choice4: '10',192 answer: 1,193},194{195 question: 'When was the first Nobel Prize in economics awarded?',196 choice1: '1949',197 choice2: '1959',198 choice3: '1969',199 choice4: '1979',200 answer: 3,201},202{203 question: 'Who was the first U.S. president to appear on television?',204 choice1: 'Richard Nixon',205 choice2: 'Ronald Reagan',206 choice3: 'Abraham Lincoln',207 choice4: 'Franklin Delano Roosevelt',208 answer: 4,209},210{211 question: 'In which city would you find the Statue of Liberty?',212 choice1: 'San Francisco',213 choice2: 'Washington D.C.',214 choice3: 'New York City',215 choice4: 'Philadelphia',216 answer: 3,217},218{219 question: 'How many kings of England have been named Henry?',220 choice1: '10',221 choice2: '8',222 choice3: '11',223 choice4: '9',224 answer: 2,225},226{227 question: 'What were the pyramids of Egypt?',228 choice1: 'Administrative centers',229 choice2: 'Tombs',230 choice3: 'Command posts',231 choice4: 'Shrines',232 answer: 2,233},234{235 question: 'Who plays Alan Turing in 2014 movie Imitation Game',236 choice1: 'Matt Damon',237 choice2: 'Kevin Spacey',238 choice3: 'Benedict Cumberbatch',239 choice4: 'Brad Pitt',240 answer: 3,241},242{243 question: 'Who was the director of the movie The Departed?',244 choice1: 'Martin Scorsese',245 choice2: 'Tim Burton',246 choice3: 'Quentin Tarantino',247 choice4: 'Steven Spielberg',248 answer: 1,249},250{251 question: 'Which animal runs faster?',252 choice1: 'Cheetah',253 choice2: 'Lion',254 choice3: 'Pronghorn Antelope',255 choice4: 'Brown Hare',256 answer: 1,257},258{259 question: 'Which mammal is known to have the most powerful bite in the world?',260 choice1: 'Gorilla',261 choice2: 'Polar Bear',262 choice3: 'Hippopotamus',263 choice4: 'Jaguar',264 answer: 3,265},266{267 question: 'Why are flamingoes pink?',268 choice1: 'Pollution',269 choice2: 'Evolution',270 choice3: 'Their diet',271 choice4: 'the color pink scares away predators',272 answer: 3,273},274{275 question: 'Which is the slowest animal on Earth?',276 choice1: 'Ant',277 choice2: 'Three-toed Sloth',278 choice3: 'Snail',279 choice4: 'Garden Snail',280 answer: 2,281},282{283 question: 'When was founded the city of Moscow in Russia?',284 choice1: '1147',285 choice2: '1247',286 choice3: '1047',287 choice4: '1507',288 answer: 1,289},290{291 question: 'Which is the heaviest animal?',292 choice1: 'African bush elephant',293 choice2: 'Asian elephant',294 choice3: 'White rhinoceros',295 choice4: 'Indian rhinoceros',296 answer: 1,297},298{299 question: 'Who first discovered India?',300 choice1: 'Christopher Columbus',301 choice2: 'Ellen MacArthur',302 choice3: 'Vasco da Gama',303 choice4: 'Robin Knox-Johnston',304 answer: 3,305},306{307 question: 'Which team plays home games in Philips Stadion?',308 choice1: 'Ajax',309 choice2: 'PSG',310 choice3: 'Rosenborg',311 choice4: 'PSV',312 answer: 4,313},314{315 question: 'Who won champions league 2020-2021?',316 choice1: 'Chelsea',317 choice2: 'Tottenham',318 choice3: 'Man City',319 choice4: 'Real Madrid',320 answer: 1,321},322{323 question: 'What team has more football league titles in Portugal?',324 choice1: 'Sporting C.P.',325 choice2: 'F.C. Porto',326 choice3: 'S.L. Benfica',327 choice4: 'Boavista F.C.',328 answer: 3,329},...
Using AI Code Generation
1const { choice1 } = require("fast-check-monorepo");2const { choice2 } = require("fast-check-monorepo");3const { choice3 } = require("fast-check-monorepo");4const { choice4 } = require("fast-check-monorepo");5const { choice5 } = require("fast-check-monorepo");6const { choice6 } = require("fast-check-monorepo");7const { choice7 } = require("fast-check-monorepo");8const { choice8 } = require("fast-check-monorepo");9const { choice9 } = require("fast-check-monorepo");10const { choice10 } = require("fast-check-monorepo");11const { choice11 } = require("fast-check-monorepo");12const { choice12 } = require("fast-check-monorepo");13const { choice13 } = require("fast-check-monorepo");14const { choice14 } = require("fast-check-monorepo");15const { choice15 } = require("fast-check-monorepo");16const { choice16 } = require("fast-check-monorepo");17const { choice17 } = require("fast-check-monorepo");18const { choice18 } = require("fast-check-monorepo");
Using AI Code Generation
1import { choice1 } from 'fast-check-monorepo';2import { choice2 } from 'fast-check-monorepo';3import { choice3 } from 'fast-check-monorepo';4import { choice4 } from 'fast-check-monorepo';5import { choice5 } from 'fast-check-monorepo';6import { choice6 } from 'fast-check-monorepo';7import { choice7 } from 'fast-check-monorepo';8import { choice8 } from 'fast-check-monorepo';9import { choice9 } from 'fast-check-monorepo';10import { choice10 } from 'fast-check-monorepo';11import { choice11 } from 'fast-check-monorepo';12import { choice12 } from 'fast-check-monorepo';13import { choice13 } from 'fast-check-monorepo';14import { choice14 } from 'fast-check-monorepo';15import { choice15 } from 'fast-check-monorepo';16import { choice16 } from 'fast-check-monorepo';17import { choice17 } from 'fast-check-monorepo';18import { choice18 } from 'fast-check-monorepo';19import { choice19 } from 'fast-check-monorepo
Using AI Code Generation
1import {choice1} from 'fast-check-monorepo'2import {choice2} from 'fast-check-monorepo'3import {choice3} from 'fast-check-monorepo'4import {choice4} from 'fast-check-monorepo'5import {choice5} from 'fast-check-monorepo'6import {choice6} from 'fast-check-monorepo'7import {choice7} from 'fast-check-monorepo'8import {choice8} from 'fast-check-monorepo'9import {choice9} from 'fast-check-monorepo'10import {choice10} from 'fast-check-monorepo'11import {choice11} from 'fast-check-monorepo'12import {choice12} from 'fast-check-monorepo'13import {choice13} from 'fast-check-monorepo'14import {choice14} from 'fast-check-monorepo'15import {choice15} from 'fast-check-monorepo'16import {choice16} from 'fast-check-monorepo'17import {choice17} from 'fast-check-monorepo'18import {choice18} from 'fast-check-monorepo'19import {choice19} from 'fast-check-monorepo
Using AI Code Generation
1const { choice1 } = require("fast-check-monorepo");2const { choice2 } = require("fast-check-monorepo");3const { choice1 } = require("fast-check");4const { choice2 } = require("fast-check");5const { choice1 } = require("fast-check");6const { choice2 } = require("fast-check");7const { choice1 } = require("fast-check");8const { choice2 } = require("fast-check");9const { choice1 } = require("fast-check");10const { choice2 } = require("fast-check");11const { choice1 } = require("fast-check");12const { choice2 } = require("fast-check");13const { choice1 } = require("fast-check");14const { choice2 } = require("fast-check");15const { choice1 } = require("fast-check");16const { choice2 } = require("fast-check");17const { choice1 } = require("fast-check");18const { choice2 } = require("fast-check");19const { choice1 } = require("fast-check");20const { choice2 } = require("fast-check");21const { choice1 } = require("fast-check");22const { choice2 } = require("fast-check");23const { choice1 }
Using AI Code Generation
1const { choice1 } = require('fast-check-monorepo');2console.log(choice1());3const { choice2 } = require('fast-check-monorepo');4console.log(choice2());5const { choice3 } = require('fast-check-monorepo');6console.log(choice3());7const { choice4 } = require('fast-check-monorepo');8console.log(choice4());9const { choice5 } = require('fast-check-monorepo');10console.log(choice5());11const { choice6 } = require('fast-check-monorepo');12console.log(choice6());13const { choice7 } = require('fast-check-monorepo');14console.log(choice7());15const { choice8 } = require('fast-check-monorepo');16console.log(choice8());17const { choice9 } = require('fast-check-monorepo');18console.log(choice9());19const { choice10 } = require('fast-check-monorepo');20console.log(choice10());21const { choice11 } = require('fast-check-monorepo');22console.log(choice11());23const { choice12 } = require('fast-check-monorepo');24console.log(choice12());25const { choice13 } = require('fast-check-monorepo');26console.log(choice13());
Using AI Code Generation
1const fc = require('fast-check');2const choice1 = require('fast-check-monorepo').choice1;3fc.assert(4 fc.property(5 fc.array(fc.integer()),6);7module.exports = {8 choice1: require('./choice1')9};10module.exports = function choice1(arr) {11 return true;12};13const fc = require('fast-check');14const choice1 = require('fast-check-monorepo').choice1;15fc.assert(16 fc.property(17 fc.array(fc.integer()),18);19module.exports = {20 choice1: require('./choice1')21};22module.exports = function choice1(arr) {23 return false;24};
Using AI Code Generation
1const fc = require('fast-check');2const { choice1 } = require('fast-check-monorepo');3const gen = fc.integer(1, 100);4const arb = fc.array(gen).filter(ar => ar.length > 0);5fc.assert(6 fc.property(arb, ar => {7 const chosen = choice1(ar);8 return ar.includes(chosen);9 })10);
Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.
You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.
Get 100 minutes of automation test minutes FREE!!