paper 2

Cards (52)

  • What is meant by high-level language?
    Language which is close to English and is easy to code and read
  • what is meant by low-level language?
    In binary where its easy for a computer to read
  • Whats an example of high-level language?
    Python
  • What is the difference between assembly language and machine code?
    assembly language is mnemonics based low -level language, while machine code is binary.
  • What is source code?
    Source code is high level language written by the programmer
  • What is object code?
    Object code is code that's been compiled and is ready to run through the processer
  • What is translation?
    Translation is the process of turning code, which is high -level, into machine code by taking a line at a time
  • what is compilation?
    Compilation is the process of turning your source code into object code ready for the processor , compilation happens in the compiler, compilation turns source code into object code in one go and not one line at a time
  • What is interpretation?
    Interpretation is the interpreter translating source code into object code one line at a time
  • What is an assembler?
    An Assembler translates assembly language into machine code.
  • interpretation makes debugging easier as it stops when there's an error
  • machine code is written in binary and is easy for the computer to decode and execute
  • mnemonics have equal instructions to machine code
  • what are three feauturs of an IDE (integrated development environment)?
    Auto-indentation
    Colour coding
    De-bugging
  • what are 2 advantages of using a compiler over an interpreter?
    No translator required
    Compiled code is faster
  • When creating an algorithm, what is meant by “selection”?
    Selection is a decision or a question
  • NumA = 5 NumB = 4what will be the output of , PRINT(NumA MOD NumB)?
    1
  • A business is writing a program to manage the stock in their warehouse. Each shelf will have  
    a unique reference code which will contain a specific type of product. 
     
    Should the shelf reference code be stored in a Variable or Constant?
    Constant
  • what is a boolean?
    a logical data type that can have only the values true or false
  • name 3 sorting algorithms?
    Bubble Insertion Merge
  • what is defensive design?
    Defensive design is contingency planning using validation, sanitisation, authentication, maintenance and testing.
  • Validation is the automatic checking of entered data by a computer program
  • What is using a person’s physical characteristics to prove their identity commonly known as?
    Biometric verification
  • Authentication checks to see if a user is allowed access to a system and that they are who they claim to be
  • x = integer
    firstname == "boolean"
  • High-level language can be used on computers that use different hardware
  • Low-level language allows the user to directly manipulate memory
  • The current health is randomly generated as a whole number between 0 and 100 inclusive. Write a program statement to randomly generate a value for health and store it in a variable named health?
    health = randint ( 0 , 100 )
  • Units from smallest to largest: Bit, Nibble, Byte, KB, MB, GB
  • What does a parallelogram represent in a flow chart?

    Input/Output
  • What does a diamond shaped symbol represent in a flow chart?

    Decision
  • What is an example of authentication?

    Does the user exist?
    Does the password entered match the stored value for that user?
  • Why do we use Testing?
    To check you have met the original requirements, there are no logic errors, no unauthorised access, acceptable usability
  • What is iterative testing?

    Done while the program is being written; checks each new module is not making any new errors, tests for erroneous data and exceptional situations
  • What is Final testing?

    Done when the program is completed; tests that all of the modules work together; testing the program meets the original requirements
  • A syntax error doesn't follow the rules of the programming language (not spelling mistakes)
  • A logic error is an error which brings about unexpected results but the program will still run
  • What is maintainability of code?
    Comments explain what is happening at each stage. Indentation shows selection and iteration code branches. Use of Whitespace to easily see where functions begin and end. Descriptive variables and function names. Use of functions and/or procedures
  • what is (A) 0 AND (B) 1?
    0
  • What is (A) 1 AND (B) 1?
    1