computer science standard level mastery aspects. mastery item claimed justificationwhere listed...

24
Computer Science Standard Level Mastery Aspects

Upload: antonia-rich

Post on 28-Dec-2015

218 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Computer Science Standard Level Mastery Aspects. Mastery Item Claimed JustificationWhere Listed Arrays Used to store the student data Lines 200-230 P

Computer ScienceStandard Level

Mastery Aspects

Page 2: Computer Science Standard Level Mastery Aspects. Mastery Item Claimed JustificationWhere Listed Arrays Used to store the student data Lines 200-230 P

Mastery ItemClaimed

Justification Where Listed

Arrays Used to store the student data Lines 200-230 P. 53

User-Defined Objects Lines 310-350 P. 56

Objects as Data Records Lines 310-350 P. 56

Simple Selection Lines 510-540 P. 58

Complex Selection Lines 250-260P. 52

Loops etc

User-Defined Methods

Mastery Items

Page 3: Computer Science Standard Level Mastery Aspects. Mastery Item Claimed JustificationWhere Listed Arrays Used to store the student data Lines 200-230 P

Arrays

• What’s ok

• Arrays of objects are good

• Avoiding the calling of null elements or elements outside of the array boundaries

Page 4: Computer Science Standard Level Mastery Aspects. Mastery Item Claimed JustificationWhere Listed Arrays Used to store the student data Lines 200-230 P

Arrays

• What’s not

• Using library classes such as java.io.ArrayList

Page 5: Computer Science Standard Level Mastery Aspects. Mastery Item Claimed JustificationWhere Listed Arrays Used to store the student data Lines 200-230 P

User-defined objects

• What’s ok

• Creating a class(es) and calling it (them) from another class

Page 6: Computer Science Standard Level Mastery Aspects. Mastery Item Claimed JustificationWhere Listed Arrays Used to store the student data Lines 200-230 P

User-defined objects

• What’s not

• Creating classes from standard (built-in) Java classes will not count

Page 7: Computer Science Standard Level Mastery Aspects. Mastery Item Claimed JustificationWhere Listed Arrays Used to store the student data Lines 200-230 P

Objects as Data Records

• What’s ok

• Using a class whose data members correspond to the fields of a record (e.g inner class)

• Using different types for the fields

Page 8: Computer Science Standard Level Mastery Aspects. Mastery Item Claimed JustificationWhere Listed Arrays Used to store the student data Lines 200-230 P

Objects as Data Records

• What’s not

• Storing data within the main program.

Page 9: Computer Science Standard Level Mastery Aspects. Mastery Item Claimed JustificationWhere Listed Arrays Used to store the student data Lines 200-230 P

Simple selection

• What’s ok

• A number of if / if... else statements

• Only need to document a couple of these (within the coding)

Page 10: Computer Science Standard Level Mastery Aspects. Mastery Item Claimed JustificationWhere Listed Arrays Used to store the student data Lines 200-230 P

Simple selection

• What’s not

• try … catch construct would not satisfy this aspect

Page 11: Computer Science Standard Level Mastery Aspects. Mastery Item Claimed JustificationWhere Listed Arrays Used to store the student data Lines 200-230 P

Complex Selection

• What’s ok

• if statement with multiple conditions

• Nested if statements

• Multiple chained if … else statements

• Switch statements

• Documented within the coding

Page 12: Computer Science Standard Level Mastery Aspects. Mastery Item Claimed JustificationWhere Listed Arrays Used to store the student data Lines 200-230 P

Complex Selection

• What’s not

• Try … catch would not qualify

Page 13: Computer Science Standard Level Mastery Aspects. Mastery Item Claimed JustificationWhere Listed Arrays Used to store the student data Lines 200-230 P

Loops

• more than one example would be required

Nested Loops

• one example would be sufficient

Page 14: Computer Science Standard Level Mastery Aspects. Mastery Item Claimed JustificationWhere Listed Arrays Used to store the student data Lines 200-230 P

User-defined Methods

• What’s ok

• Method created by the user

• Called more than once

Page 15: Computer Science Standard Level Mastery Aspects. Mastery Item Claimed JustificationWhere Listed Arrays Used to store the student data Lines 200-230 P

User-defined Methods

• What’s not

• The main method

• The constructor(s)

• Methods from standard Java interfaces

• A method that is only called once

Page 16: Computer Science Standard Level Mastery Aspects. Mastery Item Claimed JustificationWhere Listed Arrays Used to store the student data Lines 200-230 P

User-defined Methods with Parameters

• What’s ok

• Parameters passed into a method and used within the body in a non-trivial way

• What’s not

• Using methods from standard libraries

Page 17: Computer Science Standard Level Mastery Aspects. Mastery Item Claimed JustificationWhere Listed Arrays Used to store the student data Lines 200-230 P

User-defined methods with appropriate return values

• What’s ok

• Methods that return values for a non-trivial purpose

• What’s not

• Methods that are only called once

• Methods from standard libraries

Page 18: Computer Science Standard Level Mastery Aspects. Mastery Item Claimed JustificationWhere Listed Arrays Used to store the student data Lines 200-230 P

Sorting

• What’s ok

• The sort routine must be a valid addition to the program

Page 19: Computer Science Standard Level Mastery Aspects. Mastery Item Claimed JustificationWhere Listed Arrays Used to store the student data Lines 200-230 P

Searching

• What’s ok

• The search routine must be a valid addition to the program

• Must use loops (or recursion), not a series of if statements on a small data set

Page 20: Computer Science Standard Level Mastery Aspects. Mastery Item Claimed JustificationWhere Listed Arrays Used to store the student data Lines 200-230 P

File I/O

• What’s ok

• Data must be written to and read from a file (e.g. text file)

• Data must not be lost between sessions• Can use SQL database (Excel) and the

java.sql functions• Must be a valid reason for long-term

storage

Page 21: Computer Science Standard Level Mastery Aspects. Mastery Item Claimed JustificationWhere Listed Arrays Used to store the student data Lines 200-230 P

File I/O

• What’s not

• If SQL database is used, other mastery aspects cannot be claimed (e.g. searching, objects as data records etc)

Page 22: Computer Science Standard Level Mastery Aspects. Mastery Item Claimed JustificationWhere Listed Arrays Used to store the student data Lines 200-230 P

Use of Additional Libraries

• What’s ok

• Use of built-in classes/utilities such as:

Abstract Windows Toolkit, StringTokeniser

• Interfaces can be implemented

• Libraries imported (e.g. ActionListener)

Page 23: Computer Science Standard Level Mastery Aspects. Mastery Item Claimed JustificationWhere Listed Arrays Used to store the student data Lines 200-230 P

Use of Additional Libraries

• What’s not

• Classes created by the user

• Math or String methods

Page 24: Computer Science Standard Level Mastery Aspects. Mastery Item Claimed JustificationWhere Listed Arrays Used to store the student data Lines 200-230 P

Use of Sentinels or Flags

• What’s ok

• An end-of-data marker in a data set (e.g. “XXX” or 999)

• A Boolean variable that changes when a condition is met