Prasnya
Prasnya
Prasnya
Continue with Google
Question 5 - Week 3 Practice | Prasnya
Q5
00:00
20 Nov 2022
Q5.
Which statement(s) are true about `nSub` based on the parent pseudocode?
@passage
A
`nSub` is a procedure which accepts the sequence number of a student and returns `True` if the student has scored more than 80 marks in at least two subjects; otherwise it returns `False`.
B
`nSub` is a procedure which accepts the sequence number of a student and returns the number of subjects in which the student scored more than 80 marks.
C
`nSub` is a dictionary with sequence numbers mapped to the number of subjects in which the student scored more than 80 marks.
D
`nSub` is a dictionary with sequence numbers mapped to `True` if the student scored more than 80 marks in at least two subjects; otherwise mapped to `False`.
Save
Read
Check
Details
Q5
00:00
20 Nov 2022
Q5.
Which statement(s) are true about `nSub` based on the parent pseudocode?
@passage
A
`nSub` is a procedure which accepts the sequence number of a student and returns `True` if the student has scored more than 80 marks in at least two subjects; otherwise it returns `False`.
B
`nSub` is a procedure which accepts the sequence number of a student and returns the number of subjects in which the student scored more than 80 marks.
C
`nSub` is a dictionary with sequence numbers mapped to the number of subjects in which the student scored more than 80 marks.
D
`nSub` is a dictionary with sequence numbers mapped to `True` if the student scored more than 80 marks in at least two subjects; otherwise mapped to `False`.
Save
Read
Check
Details