Monday 19 October 2015

CA Hour 15

L/O 1 - To learn how to use READ() and ISFILE() to check and read a file

L/O 2 - To be able to show evidence of your testing

Outcomes:

Red - You will have used Python Code to ask for the file name
Amber - You will have used Python Code to read the contents of the file
Green - You will have used Python code to make your code more robust by checking the file name exists and you will be able to add all testing to the table under the Testing and Evaluating section of your CA

Starter - 10 min

Look at the RAG worksheet. What do you think each line of code does? Add a hashtag next to each line with a comment stating what it does


Main Task - 50 min

RED TASK - 20 minutes


  1. Open your Python menu in IDLE (Python)
  2. Open your Controlled Assessment document in Microsoft Word
  3. Make sure that the import code from last lesson is added to your Python menu
  4. Make sure that the code to read the file is added to your Python menu
  5. Create a new file in Python..
  6. Add the GREEN TASK code into it and run it. What does it do??



AMBER TASK

Using the AMBER TASK code, update your code and run it again

GREEN TASK

Using the GREEN TASK code, update your code and run it again


EXT TASKS

What do the following words mean:

  1. Erroneous
  2. Extreme
  3. Valid
  4. Invalid

Add a new column to your Testing & Evaluating table with the heading Erroneous/Extreme/Valid/Invalid



Add your new testing results to the Testing & Evaluating table

In your Controlled Assessment document, under the heading Testing & Evaluating, make sure you have inserted a table like the one below and added AT LEAST 4 entries 

Now add all of your NEW testing to the table



Plenary - 5 minutes

Save the code as CA_Task2

No comments:

Post a Comment

Elite of the Week

Create your free online surveys with SurveyMonkey , the world's leading questionnaire tool.

Year 10/11 Deadlines