0% found this document useful (0 votes)
4 views21 pages

Function CreateQuiz Coding1

Uploaded by

Reveetha A
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views21 pages

Function CreateQuiz Coding1

Uploaded by

Reveetha A
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 21

function createQuiz() {

var form = FormApp.create('Quiz');

form.setDescription('This is a quiz generated using Google Form script. It contains


reasoning, quantitative, and verbal questions.');

// Add Reasoning Questions

form.addSectionHeaderItem().setTitle('Reasoning Questions');

form.addMultipleChoiceItem()

.setTitle('1. What comes next in the series? 2, 6, 12, 20, 30, ___')

.setChoices([

form.createChoice('a) 42', true),

form.createChoice('b) 56'),

form.createChoice('c) 44'),

form.createChoice('d) 48')

]);

form.addMultipleChoiceItem()

.setTitle('2. If in a certain code, TEA is written as VGC, how is POT written?')

.setChoices([

form.createChoice('a) RQV'),

form.createChoice('b) RVS', true),

form.createChoice('c) QRS'),

form.createChoice('d) RPU')

]);

form.addMultipleChoiceItem()

.setTitle('3. Pointing to a photograph, Ravi said, "The boy in the photograph is the only son
of my father’s son." How is the boy related to Ravi?')
.setChoices([

form.createChoice('a) Brother'),

form.createChoice('b) Son'),

form.createChoice('c) Himself', true),

form.createChoice('d) Cousin')

]);

form.addMultipleChoiceItem()

.setTitle('4. Choose the odd one out:')

.setChoices([

form.createChoice('a) Mango'),

form.createChoice('b) Apple'),

form.createChoice('c) Potato', true),

form.createChoice('d) Banana')

]);

form.addMultipleChoiceItem()

.setTitle('5. A clock is set at 12:00. How many times will the hands overlap in 12 hours?')

.setChoices([

form.createChoice('a) 10'),

form.createChoice('b) 11', true),

form.createChoice('c) 12'),

form.createChoice('d) 13')

]);

form.addMultipleChoiceItem()

.setTitle('6. If DOG = 26, CAT = 24, then COW = ?')

.setChoices([
form.createChoice('a) 28', true),

form.createChoice('b) 36'),

form.createChoice('c) 29'),

form.createChoice('d) 35')

]);

form.addMultipleChoiceItem()

.setTitle('7. Which of the following can replace the question mark? 13, 25, 41, 61, ?')

.setChoices([

form.createChoice('a) 85', true),

form.createChoice('b) 78'),

form.createChoice('c) 90'),

form.createChoice('d) 100')

]);

form.addMultipleChoiceItem()

.setTitle('8. If 8 × 4 = 32, 6 × 5 = 35, then 7 × 3 = ?')

.setChoices([

form.createChoice('a) 24'),

form.createChoice('b) 21'),

form.createChoice('c) 28', true),

form.createChoice('d) 30')

]);

form.addMultipleChoiceItem()

.setTitle('9. Find the missing number in the series: 3, 9, 27, 81, ?')

.setChoices([

form.createChoice('a) 240'),
form.createChoice('b) 243', true),

form.createChoice('c) 162'),

form.createChoice('d) 326')

]);

form.addMultipleChoiceItem()

.setTitle('10. If CAT = 3120, DOG = 4157, then BAT = ?')

.setChoices([

form.createChoice('a) 2120'),

form.createChoice('b) 2140'),

form.createChoice('c) 2130', true),

form.createChoice('d) 2132')

]);

form.addMultipleChoiceItem()

.setTitle('11. If 5 + 3 = 28, 7 + 2 = 49, then 6 + 4 = ?')

.setChoices([

form.createChoice('a) 36'),

form.createChoice('b) 40'),

form.createChoice('c) 64', true),

form.createChoice('d) 48')

]);

form.addMultipleChoiceItem()

.setTitle('12. Complete the analogy: Pencil : Write :: Knife : ?')

.setChoices([

form.createChoice('a) Sharp'),

form.createChoice('b) Cut', true),


form.createChoice('c) Weapon'),

form.createChoice('d) Slice')

]);

form.addMultipleChoiceItem()

.setTitle('13. A cube has all its sides painted. If it is cut into 64 smaller cubes, how many
cubes have no paint on them?')

.setChoices([

form.createChoice('a) 8', true),

form.createChoice('b) 16'),

form.createChoice('c) 24'),

form.createChoice('d) 32')

]);

form.addMultipleChoiceItem()

.setTitle('14. Find the missing number: 8, 27, 64, ?, 216')

.setChoices([

form.createChoice('a) 100'),

form.createChoice('b) 81'),

form.createChoice('c) 125', true),

form.createChoice('d) 144')

]);

form.addMultipleChoiceItem()

.setTitle('15. If in a code language, ‘MANGO’ is written as ‘12345’ and ‘APPLE’ as ‘67889’,


what is the code for ‘PLANE’?')

.setChoices([

form.createChoice('a) 76889'),

form.createChoice('b) 67895'),
form.createChoice('c) 76895', true),

form.createChoice('d) 76589')

]);

form.addMultipleChoiceItem()

.setTitle('16. Find the odd one out:')

.setChoices([

form.createChoice('a) 121', true),

form.createChoice('b) 343'),

form.createChoice('c) 512'),

form.createChoice('d) 1331')

]);

form.addMultipleChoiceItem()

.setTitle('17. In a certain code language, ‘ROAD’ is written as ‘URDG’. How will ‘MILK’ be
written?')

.setChoices([

form.createChoice('a) PLNJ'),

form.createChoice('b) PKNJ'),

form.createChoice('c) OLOJ'),

form.createChoice('d) OLNJ', true),

]);

form.addMultipleChoiceItem()

.setTitle('18. What will replace the question mark? A1B, D2E, G3H, J4K, ?')

.setChoices([

form.createChoice('a) M5N', true),

form.createChoice('b) M6N'),
form.createChoice('c) L5M'),

form.createChoice('d) L5N')

]);

form.addMultipleChoiceItem()

.setTitle('19. Which figure does not belong in the series?')

.setChoices([

form.createChoice('a) Square'),

form.createChoice('b) Triangle'),

form.createChoice('c) Pentagon', true),

form.createChoice('d) Rectangle')

]);

form.addMultipleChoiceItem()

.setTitle('20. If 3 × 2 = 11, 5 × 4 = 41, then 6 × 3 = ?')

.setChoices([

form.createChoice('a) 27'),

form.createChoice('b) 33', true),

form.createChoice('c) 36'),

form.createChoice('d) 39'),

]);

// Add Quantitative Questions

form.addSectionHeaderItem().setTitle('Quantitative Questions');

form.addMultipleChoiceItem()

.setTitle('1. A train travels 60 km at a speed of 30 km/h and the next 60 km at a speed of


60 km/h. What is the average speed?')
.setChoices([

form.createChoice('a) 40 km/h', true),

form.createChoice('b) 45 km/h'),

form.createChoice('c) 50 km/h'),

form.createChoice('d) 48 km/h')

]);

form.addMultipleChoiceItem()

.setTitle('2. If x + y = 12 and x × y = 35, find x² + y².')

.setChoices([

form.createChoice('a) 114', true),

form.createChoice('b) 120'),

form.createChoice('c) 144'),

form.createChoice('d) 148')

]);

form.addMultipleChoiceItem()

.setTitle('3. A man bought a chair for $750 and sold it at a profit of 20%. What is the selling
price?')

.setChoices([

form.createChoice('a) $900', true),

form.createChoice('b) $850'),

form.createChoice('c) $920'),

form.createChoice('d) $890')

]);

form.addMultipleChoiceItem()

.setTitle('4. Find the remainder when 5215^{21} is divided by 3.')


.setChoices([

form.createChoice('a) 1'),

form.createChoice('b) 2', true),

form.createChoice('c) 0'),

form.createChoice('d) None of these')

]);

form.addMultipleChoiceItem()

.setTitle('5. Simplify: 48 + 12√48 + √12.')

.setChoices([

form.createChoice('a) 838√3'),

form.createChoice('b) 636√3', true),

form.createChoice('c) 525√2'),

form.createChoice('d) 103√3')

]);

form.addMultipleChoiceItem()

.setTitle('6. The sum of three consecutive odd numbers is 111. What is the largest
number?')

.setChoices([

form.createChoice('a) 35'),

form.createChoice('b) 37'),

form.createChoice('c) 39', true),

form.createChoice('d) 41')

]);

form.addMultipleChoiceItem()

.setTitle('7. A person travels half the distance at 40 km/h and the other half at 60 km/h.
What is the average speed?')
.setChoices([

form.createChoice('a) 50 km/h'),

form.createChoice('b) 48 km/h', true),

form.createChoice('c) 52 km/h'),

form.createChoice('d) 56 km/h')

]);

form.addMultipleChoiceItem()

.setTitle('8. Find the smallest number that leaves a remainder of 3 when divided by 7, 11,
and 13.')

.setChoices([

form.createChoice('a) 1005'),

form.createChoice('b) 1001', true),

form.createChoice('c) 1008'),

form.createChoice('d) 1021')

]);

form.addMultipleChoiceItem()

.setTitle('9. Solve: 4x − 7 = 13.')

.setChoices([

form.createChoice('a) 2'),

form.createChoice('b) 3'),

form.createChoice('c) 5', true),

form.createChoice('d) 6')

]);

form.addMultipleChoiceItem()

.setTitle('10. The ratio of the ages of two friends is 4:5. The sum of their ages is 81. What is
the age of the elder one?')
.setChoices([

form.createChoice('a) 36'),

form.createChoice('b) 40'),

form.createChoice('c) 45', true),

form.createChoice('d) 48')

]);

form.addMultipleChoiceItem()

.setTitle('11. The LCM of 12, 15, and 18 is:')

.setChoices([

form.createChoice('a) 120'),

form.createChoice('b) 180', true),

form.createChoice('c) 240'),

form.createChoice('d) 360')

]);

form.addMultipleChoiceItem()

.setTitle('12. If x^2 − 5x + 6 = 0, find the value of x.')

.setChoices([

form.createChoice('a) 2, 3', true),

form.createChoice('b) -2, -3'),

form.createChoice('c) 3, 5'),

form.createChoice('d) 1, 6')

]);

form.addMultipleChoiceItem()

.setTitle('13. A can complete a task in 12 days, B can complete the same task in 18 days.
How many days will it take for A and B together to complete the task?')
.setChoices([

form.createChoice('a) 6 days'),

form.createChoice('b) 7.2 days', true),

form.createChoice('c) 8 days'),

form.createChoice('d) 9 days')

]);

form.addMultipleChoiceItem()

.setTitle('14. If the circumference of a circle is 44 cm, what is its radius?')

.setChoices([

form.createChoice('a) 5 cm'),

form.createChoice('b) 7 cm', true),

form.createChoice('c) 14 cm'),

form.createChoice('d) 11 cm')

]);

form.addMultipleChoiceItem()

.setTitle('15. If the ratio of ages of A and B is 3:5 and A’s age is 27, what is B’s age?')

.setChoices([

form.createChoice('a) 35'),

form.createChoice('b) 45', true),

form.createChoice('c) 55'),

form.createChoice('d) 50')

]);

form.addMultipleChoiceItem()

.setTitle('16. If a car travels 210 km in 3.5 hours, what is its speed?')

.setChoices([
form.createChoice('a) 60 km/h'),

form.createChoice('b) 50 km/h'),

form.createChoice('c) 70 km/h', true),

form.createChoice('d) 80 km/h')

]);

form.addMultipleChoiceItem()

.setTitle('17. The simple interest on ₹5000 at a rate of 5% for 2 years is:')

.setChoices([

form.createChoice('a) ₹250'),

form.createChoice('b) ₹500', true),

form.createChoice('c) ₹750'),

form.createChoice('d) ₹1000')

]);

form.addMultipleChoiceItem()

.setTitle('18. If x + 1/x = 7, find x^2 + 1/x^2.')

.setChoices([

form.createChoice('a) 45'),

form.createChoice('b) 47', true),

form.createChoice('c) 49'),

form.createChoice('d) 51')

]);

form.addMultipleChoiceItem()

.setTitle('19. A rectangular park is 60 m long and 40 m wide. What is the area of the
park?')

.setChoices([
form.createChoice('a) 2000 m²'),

form.createChoice('b) 2400 m²', true),

form.createChoice('c) 2500 m²'),

form.createChoice('d) 2200 m²')

]);

form.addMultipleChoiceItem()

.setTitle('20. What is the value of 25 × 25 + 75 × 75?')

.setChoices([

form.createChoice('a) 6250'),

form.createChoice('b) 6875', true),

form.createChoice('c) 7562'),

form.createChoice('d) 8125')

]);

// Add the rest of the quantitative questions similarly.

// Add Verbal Questions

form.addSectionHeaderItem().setTitle('Verbal Questions');

form.addMultipleChoiceItem()

.setTitle('1. Choose the word opposite in meaning to “Abundant”:')

.setChoices([

form.createChoice('a) Scarce', true),

form.createChoice('b) Plentiful'),

form.createChoice('c) Excessive'),

form.createChoice('d) Adequate')

]);
form.addMultipleChoiceItem()

.setTitle('2. Fill in the blank: He is very ___ in his manners.')

.setChoices([

form.createChoice('a) Curt'),

form.createChoice('b) Polite', true),

form.createChoice('c) Generous'),

form.createChoice('d) Inconsiderate')

]);

form.addMultipleChoiceItem()

.setTitle('3. Which of the following sentences is grammatically correct?')

.setChoices([

form.createChoice('a) She don’t like to read novels.'),

form.createChoice('b) She doesn’t likes to read novels.'),

form.createChoice('c) She doesn’t like to read novels.', true),

form.createChoice('d) She don’t likes to read novels.')

]);

form.addMultipleChoiceItem()

.setTitle('4. Find the synonym for "Taciturn":')

.setChoices([

form.createChoice('a) Talkative'),

form.createChoice('b) Reserved', true),

form.createChoice('c) Loud'),

form.createChoice('d) Cheerful')

]);

form.addMultipleChoiceItem()
.setTitle('5. Identify the part of speech of the underlined word: She speaks very clearly.')

.setChoices([

form.createChoice('a) Noun'),

form.createChoice('b) Adjective'),

form.createChoice('c) Adverb', true),

form.createChoice('d) Verb')

]);

form.addMultipleChoiceItem()

.setTitle('6. Rearrange the sentence: like / I / reading / books / interesting.')

.setChoices([

form.createChoice('a) I reading books like interesting.'),

form.createChoice('b) Like interesting books I reading.'),

form.createChoice('c) I like reading interesting books.', true),

form.createChoice('d) Reading I interesting books like.')

]);

form.addMultipleChoiceItem()

.setTitle('7. Which word fits in both blanks?\nThe teacher gave a ___ lecture. The hill was
___.')

.setChoices([

form.createChoice('a) Steep', true),

form.createChoice('b) Deep'),

form.createChoice('c) Tall'),

form.createChoice('d) Vast')

]);

form.addMultipleChoiceItem()
.setTitle('8. Spot the error: Neither of the boys have completed their task.')

.setChoices([

form.createChoice('a) Neither'),

form.createChoice('b) Boys'),

form.createChoice('c) Have', true),

form.createChoice('d) Task')

]);

form.addMultipleChoiceItem()

.setTitle('9. Find the correctly spelt word:')

.setChoices([

form.createChoice('a) Conscience', true),

form.createChoice('b) Consiense'),

form.createChoice('c) Conciens'),

form.createChoice('d) Consceince')

]);

form.addMultipleChoiceItem()

.setTitle('10. Fill in the blank with the correct idiom: He is always finding faults; he loves to
___ a dead horse.')

.setChoices([

form.createChoice('a) Kick'),

form.createChoice('b) Beat', true),

form.createChoice('c) Pull'),

form.createChoice('d) Ride')

]);

form.addMultipleChoiceItem()
.setTitle('11. Identify the error: The weather report says that there will be heavy rains
tomorrow.')

.setChoices([

form.createChoice('a) Weather report'),

form.createChoice('b) Says'),

form.createChoice('c) Will be'),

form.createChoice('d) Heavy rains', true),

]);

form.addMultipleChoiceItem()

.setTitle('12. Which word is similar in meaning to "Plausible"?')

.setChoices([

form.createChoice('a) Unlikely'),

form.createChoice('b) Reasonable', true),

form.createChoice('c) Unrealistic'),

form.createChoice('d) Impossible')

]);

form.addMultipleChoiceItem()

.setTitle('13. Choose the correct sentence:')

.setChoices([

form.createChoice('a) Everyone are happy today.'),

form.createChoice('b) Everyone is happy today.', true),

form.createChoice('c) Everyone were happy today.'),

form.createChoice('d) Everyone has happy today.')

]);

form.addMultipleChoiceItem()
.setTitle('14. Find the correctly spelt word:')

.setChoices([

form.createChoice('a) Accomodation'),

form.createChoice('b) Accommodation', true),

form.createChoice('c) Acommodation'),

form.createChoice('d) Accomodasion')

]);

form.addMultipleChoiceItem()

.setTitle('15. Choose the word that best fits: He is so arrogant that he looks ___ upon
everyone.')

.setChoices([

form.createChoice('a) up'),

form.createChoice('b) out'),

form.createChoice('c) down', true),

form.createChoice('d) into')

]);

form.addMultipleChoiceItem()

.setTitle('16. Find the error: The team members discussed about the new project.')

.setChoices([

form.createChoice('a) The team'),

form.createChoice('b) Discussed about', true),

form.createChoice('c) The new project'),

form.createChoice('d) No error')

]);

form.addMultipleChoiceItem()
.setTitle('17. Rearrange the sentence: often / is / honesty / the / rewarded.')

.setChoices([

form.createChoice('a) Honesty is the often rewarded.'),

form.createChoice('b) Often rewarded is the honesty.'),

form.createChoice('c) Honesty is often rewarded.', true),

form.createChoice('d) Rewarded is often honesty.')

]);

form.addMultipleChoiceItem()

.setTitle('18. Choose the word most opposite in meaning to "Shallow":')

.setChoices([

form.createChoice('a) Deep', true),

form.createChoice('b) Wide'),

form.createChoice('c) Narrow'),

form.createChoice('d) Full')

]);

form.addMultipleChoiceItem()

.setTitle('19. Fill in the blank: I can’t ___ with his rude behavior.')

.setChoices([

form.createChoice('a) Put on'),

form.createChoice('b) Put out'),

form.createChoice('c) Put up', true),

form.createChoice('d) Put off')

]);

form.addMultipleChoiceItem()

.setTitle('20. Find the synonym of "Vague":')


.setChoices([

form.createChoice('a) Clear'),

form.createChoice('b) Indistinct', true),

form.createChoice('c) Precise'),

form.createChoice('d) Exact')

]);

// Log the form's URL

Logger.log('Form created: ' + form.getEditUrl());

You might also like