Week 4 - Graded Assignment 4 - (Sep 2025 - CT - Qualifier)

The due date for submitting this assignment has passed. Due on 2025-10-22, 23:59 IST. You may submit any number of times before the due date. The final submission will be considered for grading.

Last Submitted: You have last submitted on: 2025-10-22, 21:52 IST


Question 1

The following pseudocode is executed using the “Words” dataset. What will A represent at the end of the execution?

  • Number of words with at most one letter followed by a vowel
  • Number of words with exactly one letter followed by a vowel
  • Number of words without any letters followed by a vowel
  • Number of words with at least one letter followed by a vowel

Status: Yes, the answer is correct. Score: 1

Accepted Answers:

  • Number of words with at least one letter followed by a vowel

Question 2

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.

  • Number of players from the same country with different medals
  • Number of players from different countries with the same medals
  • Number of pairs of players from the same country with different medals
  • Number of pairs of players from different countries with the same medals

Status: Yes, the answer is correct. Score: 1

Accepted Answers:

  • Number of pairs of players from the same country with different medals

Question 3

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.

 What will N represent at the end of execution?

  • Maximum number of books published by an author
  • Maximum number of books published by a pair of authors
  • Maximum number of books published by an author in a year
  • Maximum number of books published by a pair of authors in a year

Status: Yes, the answer is correct. Score: 1

Accepted Answers:

  • Maximum number of books published by an author

Question 4

What will count represent at the end of execution?

  • Total number of books
  • Number of authors
  • Number of books of same genre
  • Number of authors who wrote books of same genre

Status: Yes, the answer is correct. Score: 1

Accepted Answers:

  • Number of authors

Question 5

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”).

Status: Yes, the answer is correct. Score: 1

Accepted Answers:


Question 6

The following pseudocode is executed using the “Words” dataset. What will count represent at the end of execution?

  • Number of pairs of words with exactly two consonants
  • Number of pairs of words with at least two consonants
  • Number of pairs of words with exactly two consecutive consonants
  • Number of pairs of words with at least two consecutive consonants

Status: Yes, the answer is correct. Score: 1

Accepted Answers:

  • Number of pairs of words with at least two consecutive consonants

Question 7

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.

  • Line 8: Invalid parameter is used to call the procedure inside the conditional statement
  • Line 8: Incorrect condition to update count as the number of consonants are not being compared
  • Line 17: Incorrect initialization of vowelCount
  • Line 17: Incorrect initialization of i
  • No mistake

Accepted Answers:

  • Line 17: Incorrect initialization of i

Question 8

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.

Which club can a student join if he/she gets 92 marks in Physics and Mathematics but 84 in Chemistry?

  • Physics club
  • Chemistry club
  • Mathematics
  • The student cannot join any club

Accepted Answers:

  • The student cannot join any club

Question 9

When can a student join more than one club?

  • If the student gets more than 90 marks in at least two subjects
  • If the student gets more than 90 marks in Physics and Chemistry
  • If the student gets more than 90 marks and the same marks in Physics and Chemistry
  • A student cannot join more than one club

Accepted Answers:

  • A student cannot join more than one club

Question 10

The following pseudocode is executed using the “Words” dataset. What will A represent at the end of execution?

  • Number of adverbs before the first adverb in every sentence
  • Number of words after the first adverb in every sentence
  • Number of words before the first adverb or full stop in every sentence
  • Number of adjectives before the first adverb in every sentence
  • Number of words before the first adverb in every sentence

Accepted Answers:

  • Number of words before the first adverb or full stop in every sentence