AP Computer Science A 2004 Scoring Commentary

Similar documents
AP Computer Science A 2003 Scoring Guidelines

AP Computer Science AB 2005 Scoring Guidelines

AP Computer Science A 2008 Scoring Guidelines

Student Performance Q&A:

AP Calculus BC 2009 Free-Response Questions Form B

AP Computer Science AB 2002 Free-Response Questions

AP Computer Science AB 2007 Free-Response Questions

AP Computer Science A

Student Performance Q&A:

SCourse Description. Includes important information regarding the introduction of the language Java. MAY 2004, MAY 2005

AP Computer Science A 2013 Free-Response Questions

NEXT-GENERATION Arithmetic

Computer. Course Description. Computer Science AB. M a y , M a y

AP COMPUTER SCIENCE AB 2008 SCORING GUIDELINES

Chief Reader Report on Student Responses:

AP Computer Science A

AP Computer Science A

AP COMPUTER SCIENCE AB 2006 SCORING GUIDELINES

AP Physics 2: Algebra-Based

AP Computer Science. Peeking at Programming with JavaScript Student Guide. Martin Callaghan John Leggott College Scunthorpe, UK

AP PHYSICS B 2009 SCORING GUIDELINES

AP COMPUTER SCIENCE A 2010 GENERAL SCORING GUIDELINES

Preface A Brief History Pilot Test Results

AP Computer Science A

Computer. Course Description

Note that if both p1 and p2 are null, equals returns true.

AP COMPUTER SCIENCE A 2006 SCORING GUIDELINES

B. Subject-specific skills B1. Problem solving skills: Supply the student with the ability to solve different problems related to the topics

Student Performance Q&A:

Programming Exercise 14: Inheritance and Polymorphism

AP COMPUTER SCIENCE A 2008 SCORING GUIDELINES

Countdown to your final Maths exam part 8 (2017) Examiners Report & Markscheme

Example Candidate Responses. Cambridge International AS & A Level Computer Science. Paper 2

Linear Functions. Connection to AP*: AP Calculus Topic: Analysis of Functions

----- o Implicit Differentiation ID: A. dy r.---; d 2 Y 2. If- = '" 1-y- then - = dx 'dx 2. a c. -1 d. -2 e.

AP Computer Science A (Java) Scope and Sequence

Ch. 11: References & the Copy-Constructor. - continued -

MP3 Recording Guidelines

Student Performance Q&A:

AB Student Notes: Area and Volume

GCSE German 2016: Exemplars for Paper 4 Foundation Tier

Your students next job starts with LCCI. A centre s guide to LCCI qualifications

AP COMPUTER SCIENCE A 2009 SCORING GUIDELINES

TeenCoder : Java Programming (ISBN )

AP Computer Science A

AP Computer Science AB

Account joeacct = new Account (100, new Account (500)); Account joeacct = new Account (100, new Account (500, null));

b. Remediation will only be offered for courses offered at the home school.

Your students next job starts with LCCI. A centre s guide to Pearson LCCI qualifications

Results from!the!2011 AP!Computer!Science A Exam Administration

Broadband internet connection ipad, Android tablet, Windows Surface RT or Pro, Chromebook Safari, Google Chrome, Microsoft Edge, Mozilla Firefox

Your Essential Skills Online program is a web application, which runs in your web browser on a Windows PC or Macintosh computer.

Switched-On Schoolhouse 2014 User Guide Reports & Application Functions

Assessment Plan. Academic Cycle

DOWNLOAD PDF CORE JAVA APTITUDE QUESTIONS AND ANSWERS

Object-Oriented Systems Analysis and Design Using UML

Student Performance Q&A:

AP Computer Science Course Syllabus

Syllabus Honors Java Programming 1 & 2

Computing and ICT YEAR 10 ICT ICT (ICT101)

DynEd Pro Certification. Getting Started

3D Graphics Programming Mira Costa High School - Class Syllabus,

Recent Developments in Career and Technical Education. New York State Education Department November 2016

This course supports the assessment for Scripting and Programming Applications. The course covers 4 competencies and represents 4 competency units.

Activity 6: Loops. Content Learning Objectives. Process Skill Goals

Bulk Registration File Specifications

AP Computer Science Principles

COMPUTER SCIENCE A. Course Description

e-subs: Centre Marks Submission (CMS) FAQs

AP COMPUTER SCIENCE AB 2007 SCORING GUIDELINES

PARALEGAL CERTIFICATIONS. National Professional Standard for Paralegals

PARALEGAL CERTIFICATIONS. National Professional Standard for Paralegals

CS110D: PROGRAMMING LANGUAGE I

Unit Assessment Plan. College of Education. Master of Education in Counseling

Beecher Community School District

Activity 6: Loops. Content Learning Objectives. Process Skill Goals

CENTRAL TEXAS COLLEGE COSC 1315 INTRODUCTION TO COMPUTER PROGRAMMING. Semester Hours Credit: 3 INSTRUCTOR: OFFICE HOURS:

GCSE Computer Science

Marking Period 1. Marking Period 2

Introduction to Programming. June Marking Scheme

CompuScholar, Inc. 9th - 12th grades

Marine Biology Simulation Case Study C O M P U T E R S C I E N C E

English Language Proficiency Overview and Updates. Office of Graduate and Professional Studies August 2018

Perceptive Intelligent Capture for Transcripts

Title of Resource Introduction to SPSS 22.0: Assignment and Grading Rubric Kimberly A. Barchard. Author(s)

Java for Programmers Course (equivalent to SL 275) 36 Contact Hours

2017 Mathematics Paper 1 (Non-calculator) Finalised Marking Instructions

Field Testing. *NEW Benefits of Field Testing

TIES Student Information System. Attendance, Report Card Grading, Tests and Assessments

Language Features. 1. The primitive types int, double, and boolean are part of the AP

IN THE PORTAL GET ACCESS TO THE FOLLOWING

Java Software Solutions for AP Computer Science 3rd Edition, Lewis et al. 2011

PRESENCE. Photo Gallery Guide. SchoolMessenger 100 Enterprise Way, Suite A-300 Scotts Valley, CA

First year courses and prerequisites Notes Previously offered ** See catalog for important notes.

Response to the Validation Panel for the DIT Foundation Programmes

Quick Guide to TIDE: Adding Users, Students, and Student Test Settings

CS 142 Style Guide Grading and Details

You can import data from a CSV file into an existing table or to a new table. The steps are almost identical:

Assignment Marks (Campus Instruction)

16. How quickly will the Level 1 and Level 2 examinations be marked? NOCN markers have a five-day turnaround for marking examination papers.

Transcription:

AP Computer Science A 2004 Scoring Commentary The materials included in these files are intended for noncommercial use by AP teachers for course and exam preparation; permission for any other use must be sought from the Advanced Placement Program. Teachers may reproduce them, in whole or in part, in limited quantities, for face-to-face teaching purposes but may not mass distribute the materials, electronically or otherwise. This permission does not apply to any third-party copyrights contained herein. These materials and any copies made of them may not be resold, and the copyright notices must be retained as they appear here. The College Board is a not-for-profit membership association whose mission is to connect students to college success and opportunity. Founded in 1900, the association is composed of more than 4,500 schools, colleges, universities, and other educational organizations. Each year, the College Board serves over three million students and their parents, 23,000 high schools, and 3,500 colleges through major programs and services in college admissions, guidance, assessment, financial aid, enrollment, and teaching and learning. Among its best-known programs are the SAT, the PSAT/NMSQT, and the Advanced Placement Program (AP ). The College Board is committed to the principles of excellence and equity, and that commitment is embodied in all of its programs, services, activities, and concerns. For further information, visit www.collegeboard.com Copyright 2004 College Entrance Examination Board. All rights reserved. College Board, Advanced Placement Program, AP, AP Central, AP Vertical Teams, APCD, Pacesetter, Pre-AP, SAT, Student Search Service, and the acorn logo are registered trademarks of the College Entrance Examination Board. PSAT/NMSQT is a registered trademark of the College Entrance Examination Board and National Merit Scholarship Corporation. Educational Testing Service and ETS are registered trademarks of Educational Testing Service. Other products and services may be trademarks of their respective owners. For the College Board s online home for AP professionals, visit AP Central at apcentral.collegeboard.com.

Question 1 Score: 8 This solution lost ½ point in part (a) for failing to return the counter. It also lost the check length correctness ½ point in part (b) for failing to call the length method. This solution uses array notation throughout which will cause a missed ½ point in parts (a) and (b) on get string. This solution also uses the.equals command on parts (a) and (b) which does not work for primitive data types, so it will lose the correctness ½ points in parts (a) and (b) on check length. This solution makes the very common mistake of using a for loop to delete, thereby skipping items. In both parts, the student used array notation to access an element in mylist and so loses the correct ½ point for get string. The student also has a single 1-point usage deduction for the println statements in both parts. In part (a), the student loses the ½ point initialize counter point because count is not set to 0. The loop correctness is lost in both parts due to the <= check. The student also increments k twice per loop iteration. In part (a), the student does not attempt to check len against anything. There is no return in part (a). In part (b), the length check is done correctly (once we assume a string has been gotten). The student tries to remove the item by setting the string to an empty string, but this is not sufficient for even the ½ attempt point on remove. 2

Question 2 Solutions were mostly canonical. All of these declare a local Pet variable in part (c), avoiding the need to cast twice. This was the most commonly-found 6-point solution; its complete absence of super kept it from explicitly invoking any of the parent class s methods. It lost points for attempting to access the Pet class s private data in both constructors. It lost all speak points in part (b). The solution for the speak method in part (b) demonstrates a common misunderstanding of the question s illustration ( If the String dog-sound is returned by the Dog method speak ). No deduction was made for missing casts in part (c), which was otherwise correct. Showing another variation on the constructor problems in parts (a) and (b), this solution declares private instance variables for the pet name and sets them in the constructors, ignoring the inheritance structure. Part (b) has a hard-coded two-word dog sound in the speak method, losing all associated points. No deduction was made for missing casts in part (c), which was otherwise correct. Sample: D Both constructors have incorrect calls to super, also attempting to access private Pet class data. Part (b) s speak method invokes Pet s speak method but neglects to assign the result, losing the correctness ½ point for the returned value. Part (c) earned no points. 3

Question 3 This solution is completely correct. Part (a) implements an alternate algorithm we found. It implements the while loop algorithm with fish count incremented one by one until the fish density exceeds mindensity. Part (b) is a canonical solution. Part (c) uses nested for-while loop combination. Part (a) uses the looping paradigm. However, the loop should use a test for less than or equal to so the answer is sure to exceed the minimum density; this is similar to the rounding error in other papers. The logic in part (b) is correct, but the student does not use RandNumGenerator.getInstance() to obtain a random number generator consistent with the case study simulation. Part (c) has a typical wrong answer in which the student uses only a single loop. The student needs to adjust the loop bounds when a fish is not added to the environment. The loop also goes one more time than necessary. Additionally, there is a double add where the student calls theenv.add() as well as the Fish constructor. Score: 4 In part (a) the attempt to calculate the total number of fish needed using mindensity is off by one. The attempt to return the correct number of additional fish incorrectly uses the Environment method allobjects(). In part (b) no instance of Random is created and the attempts to create a random row and column give values that could be out of bounds. There is no location created. Part (c) has a loop that executes the correct number of times and tries to add the correct number of fish. There is no attempt to generate random locations until one is empty. 4

Question 4 In part (a), the student correctly identifies both situations in which the robot would be blocked (the two ends of the hall). In part (b), the robot correctly picks up a single item from the current tile (if there are any). The student then checks again whether the tile is empty, since it might have become empty as a result of the robot picking up an item. If the tile is now empty, the robot moves or turns correctly based on its direction and whether a forward move is blocked. In part (c), the student correctly calls the relevant methods, hallisclear and move, to clear the hall. The student also correctly calculates and returns the number of times the move method was called. Score: 7 In part (a), the student attempts to identify both situations in which the robot would be blocked (the two ends of the hall), but is off by one in checking the high end of the array. In part (b), the student correctly decrements the number of items from the current tile (if there are any). The student then checks again whether the tile is now empty before attempting to turn or move. The robot moves correctly when not blocked but does not receive either of the two half points for turning, because the lack of assignment means that the direction is not in fact changed. In part (c), the student receives ½ point for calling the move method in the context of a loop and three half points for declaring, initializing, incrementing, and returning a counter that correctly represents the number of times the move method was called. The student does not, however, receive the loop points because the code provided reimplements the functionality provided by the hallisclear method defined in the Robot class. In part (a), the student correctly identifies both situations in which the robot would be blocked (the two ends of the hall). This student does not receive any points for picking up items and moving forward or turning in part (b). In part (c), the student receives ½ point for calling the move method in the context of a loop and three half points for declaring, initializing, incrementing, and returning a counter that correctly represents the number of times the move method was called. The student does not, however, receive the loop points because the code does not use the hallisclear method to correctly control the number of times the move method is called. 5