W1PA Sep22
W1PA Sep22
W1PA Sep22
Computational Thinking
Week 1 Practice Assignment
Question 1 to 3
Statement
Question 1 [2 Marks]
Statement
Answer
Question 2 [2 Marks]
Statement
Answer
Question 3 [2 Marks]
Statement
Answer
Question 4 [4 Marks]
Statement
Options
(a)
(b)
(c)
(d)
Answer
Question 5 [4 Marks]
Statement
Options
(a)
(b)
(c)
(d)
Answer
Question 6 to 7
Statement
Question 6 [2 Marks]
Statement
Answer
Question 7 [2 Marks]
Statement
Answer: 45
Question 8 [4 Marks]
Statement
Options
(a)
(b)
(c)
(d)
Answer
Question 9 [4 Marks]
Statement
Options
(a)
(b)
(c)
(d)
(e)
Answer
Question 10 [5 Marks]
Statement
Options
(a)
(b)
(c)
(d)
(e)
(f)
Answer
Question 11 [5 Marks]
Statement
Options
(a)
(b)
(c)
(b)
Answer
Question 12 [4 Marks]
Statement
Answer
Question 1 to 3
Statement
What will be the values of A, B and C after execution of the following procedure using the "Scores"
dataset?
Step 6: If Date of Birth > "30 April" and Date of Birth < "1 September" then increment B
Step 8: Move the current card to another pile called Pile 2 and repeat from step 3
Question 1 [2 Marks]
Statement
The value of A is _ _ _ _ ?
Answer
10
Question 2 [2 Marks]
Statement
The value of B is _ _ _ _ ?
Answer
9
Question 3 [2 Marks]
Statement
The value of C is _ _ _ _ ?
Answer
11
Question 4 [4 Marks]
Statement
The following procedure is executed using the "Shopping Bills" dataset. What will X represent at
the end of execution?
Step 3: If Pile 1 is empty then stop the iteration and execute step 7
Step 5: If the Shop name is not "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
Options
(a)
(c)
(d)
Average of total bill amount from all shops other than "SV Stores"
Answer
(d)
Question 5 [4 Marks]
Statement
The following pseudocode is executed using the "Words" dataset. What will A represent at the
end of execution?
Step 5: If the Word does not end with a full stop and Part of Speech is "Noun" then increment A
Step 6: Move the current card to another pile called Pile 2 and repeat from step 3
Options
(a)
(b)
(c)
(d)
Answer
(c)
Question 6 to 7
Statement
The following pseudocode is executed using the "Scores" dataset.
Step 7: Move the current card to another pile called Pile 2 and repeat from step 3
Question 6 [2 Marks]
Statement
The value of A is _ _ _ _ ?
Answer
42
Question 7 [2 Marks]
Statement
The value of B is _ _ _ _ ?
Answer: 45
Question 8 [4 Marks]
Statement
The following pseudocode is executed using the "Words" dataset. What will count represent at
the end of execution?
Step 6: If the Word ends with a full stop and A > 0 then increment count
Step 8: Move the current card to another pile called Pile 2 and repeat from step 3
Options
(a)
(b)
(c)
Number of sentences that have at least one occurrence of the word "Monday"
(d)
Number of sentences that have at most one occurrence of the word "Monday"
Answer
(c)
Question 9 [4 Marks]
Statement
The given information represents a "Shopping Bill" and it may have some mistakes with respect to
the sanity of data. Identify all rows with such mistakes. It is a Multiple Select Question (MSQ).
Options
(a)
Row 1
(b)
Row 2
(c)
Row 3
(d)
Row 4
(e)
Row 5
Answer
(b), (d)
Question 10 [5 Marks]
Statement
Select the most appropriate datatype specific to "Words" dataset for the left column.
Field Datatype
Options
(a)
(b)
(c)
(d)
(f)
Answer
(b)
Question 11 [5 Marks]
Statement
Let A, B and C be three distinct integers of given as input. What will X represent at the end of
flowchart?
Options
(a)
(b)
Mean of A, B and C
(b)
Answer
(d)
Question 12 [4 Marks]
Statement
The following flow chart is executed using the "Shopping Bills" dataset. Interpret the flowchart
and answer the given question.
The value of count is _ _ _ _ ?
Answer
2