Category: Old National 5

Computational Constructs

  • Expressions to assign values to variables
  • Expressions to return values using arithmetic operations (+, -, *, /, ^, mod)
  • Execution of lines of code in sequence demonstrating input – process- output
  • Expressions to concatenate strings and arrays using the & operator
  • Use of selection constructs including simple and complex conditional statements and logical operators.
  • Iteration and repetition using fixed and conditional loops Pre-defined functions (with parameters)

Read more

Using a message box to make a choice

It is possible to use a MsgBox to make a choice in your program. You first of all assign a integer variable to the MsgBox then you change the buttons attributes to vbYesNo. vbYesNo is a VB constant that represents a value, the use of the constant means that you do not need to memories the number, vbYes and vbNo are other examples of these VB constants. An IF statement is then used to make the selection.

N5

Prelim Revision

Please look over the following chapters from the book.

  • Chapter 3 – Reading and Interpreting Code
  • Chapter 6 – Creating an Information Systems
  • Chapter 7 (part) – Mark-up languages
  • Chapter 8 (part) – Compressing Graphics, text files, PDF
  • Chapter 9 – Hardware