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

The due date for submitting this assignment has passed. Due on 2025-10-01, 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-01, 16:27 IST


Question 1

The value of A is _ _ ? It is a Numerical Answer Type Question. Your Answer: 7

Accepted Answers:

(Type: Numeric) 6


Question 2

The value of B is _ _ ? It is a Numerical Answer Type Question. Your Answer: 15

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

Accepted Answers:

(Type: Numeric) 15


Question 3

The value of C is _ _ ? It is a Numerical Answer Type Question. Your Answer: 8

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

Accepted Answers:

(Type: Numeric) 8


Question 4

The following procedure is executed using the “Shopping Bills” dataset. What will X represent at the end of execution? It is a Multiple Choice Question (MCQ).

Step 1: Arrange all cards in a single pile called Pile 1

Step 2: Initialize variables A ,B and X to 0

Step 3: If Pile 1 is empty then stop the iteration and execute Step 7

Step 4: Read the top card in Pile 1

Step 5: If the Shop Name is “SV Stores” then add total bill amount to A and increment B

Step 6: Move the current card to another pile called Pile 2 and repeat from Step 3

Step 7: Divide A by B and store the result in X

  • Total bill amount from “SV Stores”
  • Number of bills from “SV Stores”
  • Average of total bill amount from “SV Stores”
  • Average of total bill amount from all shops other than “SV Stores”

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

Accepted Answers:

  • Average of total bill amount from “SV Stores”

Question 5

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

Step 1: Arrange all cards in a single pile called Pile 1

Step 2: Maintain two variables A, B and initialize them to 0

Step 3: If Pile 1 is empty then stop the iteration

Step 4: Read the top card in Pile 1

Step 5: If the Part of Speech is “Verb” then add Letter Count to variable A

Step 6: If the Part of Speech is “Adverb” then add Letter Count to variable B

Step 7: Move the current card to another pile called Pile 2 and repeat from Step 3

  • 35 & 13
  • 35 & 17
  • 32 & 13
  • 32 & 17

Accepted Answers:

  • 35 & 13

Question 6

The following procedure is executed using the “Scores” dataset. January to June and July to December are known as first and second half of the year respectively. When will the value of C be 1? It is a Multiple Choice Question (MCQ).

Step 1: Arrange all cards in a single pile called Pile 1

Step 2: Maintain variables A, B, C and initialize them to 0

Step 3: If Pile 1 is empty then stop the iteration and go to Step 8

Step 4: Read the top card in Pile 1

Step 5: If Date of Birth is from 1st January to 30th June then increment A

Step 6: If Date of Birth is from 1st July to 31st December then increment B

Step 7: Move the current card to another pile called Pile 2 and repeat from Step 3

Step 8: If A < B then set C to 1

  • When there are more students born in the first half than the second half of the year.
  • When there are more students born in the second half than the first half of the year.
  • When there are an equal number of students born in both, the first and the second half of the year.
  • When all students are born in the second half of the year.

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

Accepted Answers:

  • When there are more students born in the second half than the first half of the year.

Question 7

What will the given procedure compute and store in variable X, if executed on the “Shopping Bills” dataset? Assume that there are total 3 shops in the dataset. It is a Multiple Choice Question (MCQ).

Step 1: Arrange all cards in a single pile called Pile 1
Step 2: Maintain four variables A, B, C, X and initialize them to 0
Step 3: If Pile 1 is empty then stop the iteration and start from Step 9
Step 4: Read the top card in Pile 1
Step 5: If the Shop name is “SV Stores” and Customer name is “Neeraja” then set A equal to 1
Step 6: If the Shop name is “Big Bazaar” and Customer name is “Neeraja” then set B equal to 1
Step 7: If the Shop name is “Sun General” and Customer name is “Neeraja” then set C equal to 1
Step 8: Move the current card to another pile called Pile 2 and repeat from Step 3
Step 9: Update the value of X as X = A + B + C

  • Number of bills in the dataset which belong to Neeraja
  • Number of times Neeraja has visited Sun General
  • Number of distinct stores which Neeraja has never visited
  • Number of distinct stores which Neeraja has visited

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

Accepted Answers:

  • Number of distinct stores which Neeraja has visited

Question 8

The following procedure is executed using the “Shopping Bills” dataset. At the end of the execution, count stores the number of bills generated from “SV Stores” with total bill amount more than 500. But the programmer may have made mistakes in one or more steps. Identify all such steps (if any). It is a Multiple Choice Question (MCQ).

Step 1: Arrange all cards in a single pile called Pile 1

Step 2: Maintain a variable count and initialize it to 0

Step 3: If Pile 1 is empty then stop the iteration

Step 4: Read the top card in Pile 1

Step 5: If Shop Name is “SV Stores” and Total Bill Amount > 500 then increment count

Step 6: Move the current card to another pile called Pile 2 and repeat from Step 2

  • Step 2: Incorrect initialization of the variable count
  • Step 3: Incorrect step for stopping the iteration
  • Step 5: Incorrect condition to update count
  • Step 6: Incorrect step indicated from where the procedure has to be repeated
  • No mistake

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

Accepted Answers:

  • Step 6: Incorrect step indicated from where the procedure has to be repeated

Question 9

The given information represents a “Words” dataset and it may have some mistakes with respect to the sanity of data. Identify all rows with such mistakes.
 
  

  • Row 1: Incorrect data type of card number
  • Row 2: Incorrect data type of Word
  • Row 3: Incorrect data type of Part of Speech
  • Row 3: Invalid value of Part of Speech
  • Row 4: Incorrect data type of Letter Count
  • Row 4: Invalid value of Letter Count

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

Accepted Answers:

  • Row 1: Incorrect data type of card number
  • Row 4: Invalid value of Letter Count

Question 10

The following pseudocode is executed using the “Words” dataset. What will A represent at the end of execution? It is a Multiple Choice Question (MCQ).

Step 1: Arrange all cards in a single pile called Pile 1

Step 2: Initialize variable A to 0

Step 3: If Pile 1 is empty then stop the iteration

Step 4: Read the top card in Pile 1

Step 5: If the Word ends with a full stop and Part of Speech is “Adjective” then increment A

Step 6: Move the current card to another pile called Pile 2 and repeat from Step 3

  • Total number of adjective
  • Total number of words
  • Number of adjectives which are at the end of a sentence
  • Number of adjectives which are not at the end of a sentence

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

Accepted Answers:

  • Number of adjectives which are at the end of a sentence