Quiz 2
Registry Synced

May 2026 - CT - Week 4 - Week 4 - Graded Assignment 4

1063 words
5 min read

Week 4 - Graded Assignment 4

Course: May 2026 - CT
Week 4 - Graded Assignment 4 WEEK 4 Due Jul 15, 2026 11:59 PM IST Overdue

Introduction

Week 4 - Graded Assignment 4Week 4
15th Jul

Week 4 - Graded Assignment 4

Week 4
Due Jul 15, 202611:59 PM ISTOverdue

Question 1 / 10

1 mark
The following pseudocode is executed using the “Words” dataset. What will A represent at the end of the execution?
image
Answer is Correct Score: 1 / 1
Options:
  • A. Number of words with at most one letter followed by a vowel
  • B. Number of words with exactly one letter followed by a vowel
  • C. Number of words without any letters followed by a vowel
  • D. Number of words with at least one letter followed by a vowel ✅

Question 2 / 10

1 mark
The following pseudocode is executed using the “Olympics” dataset. What will E represent at the end of the execution? Assume that none of the players have won more than one medal.
image
Answer is Correct Score: 1 / 1
Options:
  • A. Number of players from the same country with different medals
  • B. Number of players from different countries with the same medals
  • C. Number of pairs of players from the same country with different medals ✅
  • D. Number of pairs of players from different countries with the same medals

Question 3 / 10

1 mark
The following pseudocode is executed using the “Library” dataset. Assume that all authors have distinct names and each book is written by a single author.
image
What will N represent at the end of execution?
Answer is Wrong Score: 0 / 1
Options:
  • A. Maximum number of books published by an author
  • B. Maximum number of books published by a pair of authors
  • C. Maximum number of books published by an author in a year ❌ (your answer)
  • D. Maximum number of books published by a pair of authors in a year

Question 4 / 10

1 mark
image
What will count represent at the end of execution?
Answer is Wrong Score: 0 / 1
Options:
  • A. Total number of books
  • B. Number of authors
  • C. Number of books of same genre
  • D. Number of authors who wrote books of same genre ❌ (your answer)

Question 5 / 10

1 mark
The given pseudocode is executed using the “Shopping Bills” dataset. frac stores the ratio of the number of customers who purchased both “Soap” and “Facewash” to the number of customers who purchased “Facewash”. Choose the correct code fragment to complete the pseudocode. (Assume there is at least one customer who has purchased “Facewash”).
image
Answer is Correct Score: 1 / 1
Options:

Question 6 / 10

1 mark
The following pseudocode is executed using the “Words” dataset. What will count represent at the end of execution?
image
Answer is Correct Score: 1 / 1
Options:
  • A. Number of pairs of words with exactly two consonants
  • B. Number of pairs of words with at least two consonants
  • C. Number of pairs of words with exactly two consecutive consonants
  • D. Number of pairs of words with at least two consecutive consonants ✅

Question 7 / 10

1 mark
Two words are said to be conjugate if they fulfill following conditions:
Number of vowels are same in both the words
Number of consonants are same in both the words
The given pseudocode is executed using the “Words” dataset. The variable count in the given
pseudocode counts the number of conjugate pairs. But the pseudocode may have mistakes in one
or more lines. Identify all such lines (if any). Assume that all statements not listed in the options
below are free of errors. It is a Multiple Select Question.
image
Answer is Wrong Score: 0 / 1
Options:
  • A. Line 8: Invalid parameter is used to call the procedure inside the conditional statement
  • B. Line 8: Incorrect condition to update count as the number of consonants are not being compared
  • C. Line 17: Incorrect initialization of vowelCount ❌ (your answer)
  • D. Line 17: Incorrect initialization of i
  • E. No mistake

Question 8 / 10

1 mark
The following pseudocode is executed using the “Scores” dataset. A student can join a subject club if his/her subject score is above the score mentioned. The variables M, P and C store the number of students in Mathematics, Physics and Chemistry clubs respectively.
image
Which club can a student join if he/she gets 92 marks in Physics and Mathematics but 84 in Chemistry?
Answer is Wrong Score: 0 / 1
Options:
  • A. Physics club
  • B. Chemistry club
  • C. Mathematics ❌ (your answer)
  • D. The student cannot join any club

Question 9 / 10

1 mark
The following pseudocode is executed using the “Scores” dataset. A student can join a subject club if his/her subject score is above the score mentioned. The variables M, P and C store the number of students in Mathematics, Physics and Chemistry clubs respectively.
image
When can a student join more than one club?
Answer is Correct Score: 1 / 1
Options:
  • A. If the student gets more than 90 marks in at least two subjects
  • B. If the student gets more than 90 marks in Physics and Chemistry
  • C. If the student gets more than 90 marks and the same marks in Physics and Chemistry
  • D. A student cannot join more than one club ✅

Question 10 / 10

1 mark
The following pseudocode is executed using the “Words” dataset. What will A represent at the end of execution?
image
Answer is Correct Score: 1 / 1
Options:
  • A. Number of adverbs before the first adverb in every sentence
  • B. Number of words after the first adverb in every sentence
  • C. Number of words before the first adverb or full stop in every sentence ✅
  • D. Number of adjectives before the first adverb in every sentence
  • E. Number of words before the first adverb in every sentence

Document outline

Keep your place and jump directly to a heading.

Table of Contents
System Normal // Awaiting Context

Intelligence Hub

Navigate the knowledge graph to generate context. The Hub adapts dynamically to surface backlinks, related notes, and metadata insights.