JYSS 2019 P2 Solution
Uploaded by IDKWHYBUTIAM · 3 November 2024
Preview
1 Marking Scheme JYSS Computing (Paper 2) Prelim Exam 2019 Task 1 Qn Answer 1 =MID(B7,9,1) OR =RIGHT(B7,1) 2 one mark for working top formula, one mark for the rest =VLOOKUP(F7,$E$21:$F$27,2,FALSE) 3 In the top formula, one mark for the simple interest calculation, one mark for the addition to principal and one mark for the rest =E7*F7*G7+E7 4 one mark for working top formula, one mark for the rest =H7/(12*F7) 5 one mark for working top formula, one mark for the rest =IF(AND(H7>15000,D7="Online"),"YES","NO") Task 2 Qn Answer 6 (a) while counter < 5: (b) largest = 0 if number > largest: largest = number print("The largest integer is ", largest) (c) while number <= 0: number = int(input("Enter a positive integer: ")) 7 num_inputs = int(input("Enter total number of inputs: ")) while counter < num_inputs:
2 Task 3 Qn Answer 8 Single errors are underlined age, results, eligible = 0, 0, 0 rejected = 100 age = int(input"Please enter student's age:" )) result = float(input("Please enter overall exam results:")) while age <> 0 and result <> 0: if age < 16 or age > 17 or result == 70: if age < 15: print("Age must be at least 15 years old") elif age > 17: print("Age must not be more than 17 years old") elif result < 70: print("Overall exam results must be more than 70%") rejected = rejected - 1 print("Student is NOT eligible for attachment programme.") else: print("Student is eligible for attachment programme.") Eligible = eligible + 1 age = int(input("Please enter student's age:" ) result = float(input("Please enter overall exam results:")) print("Number of students eligible is " eligible) print("Number of students rejected is ", rejected) Corrected lines. rejected = 0 age = int(input("Please enter student's age:" )) while age != 0 and result != 0: if age < 15 or age > 17 or result < 70: if result > 70: rejected = rejected + 1 eligible = eligible + 1 age = int(input("Please enter student's age:" )) print("Number of students eligible is ", eligible)
3 Task 4 Qn Answer 10 Test: nine lines of output (3) (-1 for each line with an error) Test: output matches stored program Qn Answer 11 Extend: correct test for less than 15 jeans sold Correct output (-1 for each line with error) Qn Answer 12 Extend: entry of number of days Correct loop control Qn Answer 9 Program: input jeans_sold validation for between 0 to 10 variable set up for average and total variables set up and initialised for totaljeans_day (1) and totaljeans_week (1) use of loops for 7 days (1) for 4 jeans sizes (1) Correct calculation of average rounded to nearest whole number Correct calculation of totals for totaljeans_day (1) and totaljeans_week (1)
Content continues in the PDF.
Related notes
- Computing o level notes Notes/Practices · 2023
- BVSS Prelim P1 CPExam Papers · 2024
- CWSS Prelim P1 CPExam Papers · 2024
- CWSS Prelim P1 MSExam Papers · 2024
- BVSS Prelim P1 MSExam Papers · 2024
- computing notesNotes/Practices

