Computer Science, asked by liviya2002, 8 months ago

Week 2

L2.1: Conditional termination in iteration

LESSON

AQ2.1: Activity Questions 1 - Not Graded

ASSIGNMENT

L2.2: Local operations and max in single iteration (Part 1)

LESSON

AQ2.2: Activity Questions 2 - Not Graded

ASSIGNMENT

Week 2 Tutorial 2.1

LESSON

L2.3: Local operations and max in single iteration (Part 2)

LESSON

AQ2.3: Activity Questions 3 - Not Graded

ASSIGNMENT

Week 2 Tutorial 2.2

LESSON

L2.4: Local operations and max in single iteration (Part 3)

LESSON

AQ2.4: Activity Questions 4 - Not Graded

ASSIGNMENT

Week 2 Tutorial 2.3

LESSON

L2.5: Local operations and max in single iteration (Part 4)

LESSON

AQ2.5: Activity Questions 5 - Not Graded

ASSIGNMENT

Week 2 Tutorial 2.4

LESSON

L2.6: Max in a single iteration and max in two iterations (non-nested)

LESSON

AQ2.6: Activity Questions 6 - Not Graded

ASSIGNMENT

Week 2 Tutorial 2.5

LESSON

L2.7: Max in a single iteration without losing information and applications of frequency count

LESSON

AQ2.7: Activity Questions 7 - Not Graded

ASSIGNMENT

Week 2 Tutorial 2.6

LESSON

Week 2 Tutorial 2.7

LESSON

L2.8: Flowchart for max marks

LESSON

AQ2.8: Activity Questions 8 - Not Graded

ASSIGNMENT

L2.9: Introduction to pseudocodes

LESSON

AQ2.9: Activity Questions 9 - Not Graded

ASSIGNMENT

L2.10: Pseudocode for iteration with filtering

LESSON

AQ2.10: Activity Questions 10 - Not Graded

ASSIGNMENT

Week 2 Tutorial 2.8

LESSON

Practice Assignment 2 - Not Graded

ASSIGNMENT

Practice Assignment 2 - Video Solution

LESSON

Practice Assignment 2 - PDF Solution

LESSON

Graded Assignment 2

ASSIGNMENT

Graded Assignment 2

Due date for this assignment: 2020-10-26, 23:59 IST.

You may submit any number of times before the due date. The final submission will be considered for grading.

Click here to download the PDF version of the Questions.

**********************************************************
Here the below link for Datasets used in week 1. 
Click here to view the Data
**********************************************************

Note: Different font styles or punctuation symbols are used as follows
I. Italic + Underline: Steps of the procedure

II. Bold: Variables

III. Italic: A field from dataset

IV. “ ”: A value from dataset or dataset name

3.5 points

The following procedure finds the highest marks in Mathematics scored by a “male” student and a “female” student from the “Scores” dataset. But the programmer may have made mistakes in one or more steps. Identify all such steps (if any). It is a Multiple Select Question (MSQ).

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

Step 2. Maintain two variables Mmax, Fmax 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 Gender is “M” and Mmax > Mathematics marks then store Mathematics marks in Mmax
Step 6. If Gender is “F” and Fmax > Mathematics marks then store Mathematics marks in Fmax
Step 7. Move the current card to another pile called Pile 2 and repeat from step 3

 Step 1

 Step 2

 Step 3

 Step 4

 Step 5

 Step 6

 Step 7

 No mistake

3.5 points

What will variables A and B represent after execution of the following procedure on the “Paragraph Words” dataset?

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 Letter count > A then store A in B and Letter count in A

Step 6. If Letter count < A and Letter count > B then store Letter count in B
Step 7. Move the current card to another pile called Pile 2 and repeat from step 3

 A = Largest word length and B = Smallest word length

 A = Smallest word length and B = Largest word length

 A = Second largest word length and B = Largest word length

 A = Largest word length and B = Second largest word length

 None of the above

Answers

Answered by devigeeta1387
0

Answer:

rich I love it good morning mam please see the king's Lynn I love you so much for you and I will see you and your family and friends your voice mail message is intended only for the king's

Similar questions