GoConqr has a new look! Let us know what you think.

Flashcards

Chapter 4 Flash Cards

Karl Taylor Computing Science AS - Level English 3.0Average rating 3.0 out of 5 (1 rating) 12 cards

Cards in this deck (12)

  1. 1What is selection ?Selection is where the flow through a
    program is interrupted and control is passed to another point in the program. The decision is based on a Boolean expression.
  2. 2What is iteration ?Controlled by the state of a Boolean expression, a section of code is repeated.
  3. 3What is sequence ?The execution of statements one
    after another. This usually forms
    the bulk of the code in any program.
  4. 4What is recursion ?When a procedure or function calls itself.
  5. 5What are the differences between a global and local variable ?A local variable is declared within a subprogram but a global variable is declared outside any subprograms; functions or procedures. A local variable is also only accessible within the subprogram it is declared in but a global variable is accessible to code written anywhere in the program.
  6. 6What are the requirements when defining a function ? There are 41: A function name.
    2: Any parameters needed by the function; that is, the data that must be fed into the function.
    3: The processing code itself.
    4:The output - usually one output but
    there can be zero or many outputs.
  7. 7What does by value (by val) do ?It passes a copy of the original data to the
    function and any changes made are lost as
    soon as the function is no longer in use.
  8. 8What does by reference (by ref) do ?It gives the actual memory address of where the data for the variable is being stored to the function.
  9. 9What is BRA ?BRA (Branch always): This is a jump instruction that is always executed.
  10. 10What is BRP ?BRP (Branch if positive): This is a jump instruction that occurs when
    the value in the accumulator is positive.
  11. 11What are the main differences between a function and a procedure ? The 2 main differencesA function must be written as part of an equation but a procedure does not have to. A function returns a value but a procedure does not have to.
  12. 12What is IDE ?IDE (Integrated development environment) is a text editor used for
    writing source code and is also used as a debugger. It has Facilities for
    automating the build and features to help with code writing, such
    as pretty printing and code completion.

Information

Description
AS - Level Computing Science Flashcards on Chapter 4 Flash Cards, created by Karl Taylor on 11/10/2016.
Created by
Karl Taylor · Oct 2016
Updated
Oct 14, 2016
Views
4
Rating
Average rating 3.0 out of 5 (1 rating)

Feedback

What is it about?

What do you think of the new look?

How do you like it?