All posts by Mr Stratton

Computing teacher and a PT at Coltness High School.

Past paper check list

I have updated this and I will give you a paper copy on Tuesday. Use it with traffic light stickers/high lighters, to record your progress. The Section 2 questions have not been broken down in part or the spreadsheet would have gotten out of hand. However, feel free to create one yourself and post me a copy 🙂

I have also posted the sample question paper and the Section 1, 2 & 3 PDFs in the past papers page (at top of page). There are no marking schemes on the blog so you will need to look elsewhere for the answers.

Arrays

An array is a data structure that can store a number of pieces of data of the same type. While a normal variable can only store one piece of data at a time an array can store more than one.

Array need to be setup before they are used in VB, you also need to specify the size of the array in advance. i.e. DIM LastName(10) as String would create a ten item array of type String.

Types of Translator

The function of the translator is to change the source (program) code into object (machine) code.  There are two main types

  • Interpreter – This checks each line as it as typed for syntax errors. When the program is executed it is translated line by line and the resultant object code is stored in RAM while executed. The Interpreter needs to be present in memory while the program executes.
  • Compiler – This only checks for syntax error when the program is executed. The compiler changes the whole program to object code that is then stored on backing store where it can be executed without the compiler being loaded into RAM.

Functions

A function is a sub program that returns a single piece of information. This makes it useful for mathematical operations as well as validation of inputs.

There two types of function

  • Predefined functions are built into the language. i.e.  Sin,Cos,Tan…
  • User Defined functions are created by the programer to aid in execution of a program.