Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Q14,,d Q15%, d,d Each line of the input has a format , , candidate response . If the candidate does not attempt a question, then

image text in transcribed

Q14,,d Q15\%, d,d Each line of the input has a format , , candidate response . If the candidate does not attempt a question, then is present for the candidate response. Question \# is of the format Qq no type Based on the above rules, let us consider the following inputs: - Q1%,a,a - here Q1\% is the question number, % indicates that the question belongs to part 1,a is the actual response, and the second a is the candidate response. As it belongs to Part \#1 of the question paper, and it is correct, 1 mark will be awarded - Q2$,a,b - here Q2$ is the question number, $ indicates that the que ytion belongs to part 2,a is the actual response, b is the candidate response. As it belongs to Part \#1 of the question paper and is incorrect, 0.25 marks will be deducted from the already obtained score. - Q3^, b, - here Q3, is the question number, indicates that the question belongs to part 3,b is the actual response, and as candidate has not attempted a is passed to denote that the question is not attempted. No marks will be deducted/awarded in this case. Applying the same rules to all the questions of Part \#1 and Part \#2, Part \#3, we get the computed score as 8.25 out of 30 , which means that the candidate has failed, as the pass percentage in this case is 50% Function Description Complete the function calculatescore in the editor below and print the computed score and result. calculatescore has the following parameter(s): Q14,,d Q15\%, d,d Each line of the input has a format , , candidate response . If the candidate does not attempt a question, then is present for the candidate response. Question \# is of the format Qq no type Based on the above rules, let us consider the following inputs: - Q1%,a,a - here Q1\% is the question number, % indicates that the question belongs to part 1,a is the actual response, and the second a is the candidate response. As it belongs to Part \#1 of the question paper, and it is correct, 1 mark will be awarded - Q2$,a,b - here Q2$ is the question number, $ indicates that the que ytion belongs to part 2,a is the actual response, b is the candidate response. As it belongs to Part \#1 of the question paper and is incorrect, 0.25 marks will be deducted from the already obtained score. - Q3^, b, - here Q3, is the question number, indicates that the question belongs to part 3,b is the actual response, and as candidate has not attempted a is passed to denote that the question is not attempted. No marks will be deducted/awarded in this case. Applying the same rules to all the questions of Part \#1 and Part \#2, Part \#3, we get the computed score as 8.25 out of 30 , which means that the candidate has failed, as the pass percentage in this case is 50% Function Description Complete the function calculatescore in the editor below and print the computed score and result. calculatescore has the following parameter(s)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

OCA Oracle Database SQL Exam Guide Exam 1Z0-071

Authors: Steve O'Hearn

1st Edition

1259585492, 978-1259585494

More Books

Students also viewed these Databases questions

Question

List the fundamental steps involved in planning a static survey.

Answered: 1 week ago

Question

=+Does it present new cocktails or review restaurants?

Answered: 1 week ago

Question

=+Is the message on-strategy?

Answered: 1 week ago