Preview

07 - Practice Test

 1. Name one example of a high level language

  Machine Code

  Assembly Language

  Binary

  Python

 2. What is meant by the term 'machine code'?

  Made up of opcode and operand

  Binary representation of instructions

  All of the above

  Code in a format that the CPU can process

 3. Maintaining a program is easier with High Level as opposed to Low Level languages

  TRUE

  FALSE

 4. Low level languages are closer to natural English

  FALSE

  TRUE

 5. What is one difference between machine code and assembly language?

  There is no difference

  Machine code has simple letters where as Assembly language has 1s and 0s

  Machine code is binary / assembly language uses text. Machine code can be directly processed / assembly language must be translated/

  None of these apply

 6. A compiler produces a machine code file but an interpreter does not

  TRUE

  FALSE

 7. What on the following list is a useful feature of an IDE?
•	Built in translator
•	Syntax highlighting / colour coding
•	Code completion
•	Automatic indentation
•	Automatic documentation
•	Error checking
•	Online help

  Syntax highlighting and Automatic documentation

  None of the items on the list are valid

  Error checking and Online help

  All of the items on the list are valid useful features of an IDE

 8. Both machine code and assembly language are machine specific

  FALSE

  TRUE

 9. Sometimes an IDE will suggest variable / function names while typing. What is this called?

  marrying IDE

  code completion

  variable induction

  helpful injunction

 10. Compiled code can be executed again without being re-translated … interpreted code needs to be translated each time it is run.

  TRUE

  FALSE

 11. Compiled machine code keeps the source code secret … interpreted programs mean that the source code is visible.

  FALSE

  TRUE

 12. Which language translator is used for low level languages?

  Translatexutor

  Interpreter

  Assembler

  Compiler

 13. Assembly language is made up of predetermined set of commands that can be understood by a human such as:

  ADD

  xOR/One

  print(Now)xx001

  101010101

 14. Each command 'word' translates ….

  directly into a machine code number

  indirectly into programming code

  directly into electricity signals

  directly into python code

 15. Assembly language has a low level of abstraction and is very similar to machine code (e.g there is a direct link between the instruction and machine code it represents)
Note: If you're really interested at this stage, perhaps give this video a watch (and try it out yourself)

  FALSE

  TRUE

 16. The complete set of commands available is called the _________________

  Fond butterfly code

  assembly junk of the operating system

  instruction set of the CPU

  mindset of the computer

 17. The instructions within assembly language are called Mnuecats

  FALSE

  TRUE

 18. Programming in asssembly language is considered:

  the fastest approach to solving a problem that involves the internet

  incredibly easy

  the best sort of programming in use for web development

  still quite difficult as the programmer needs to know about the hardware in the CPU

 19. One disadvantage or issue with assembly language is that the code only works on a specific CPU family. If you use a different CPU you would

  not need to rewrite the code at all

  need to make a copy of your old CPU

  need to re-write the code using a different version of assembly language

  None of the above

 20. The main advantage of assembly language is that it :

  runs slow compared to high level languages which makes it easy to follow

  is robust and hardy and cannot ever make a mistake (hence it's popular use in spacecraft)

  runs fast compared to programs written in a high level language as there is less code overall

  is soft and cuddly, and therefore programmer's favourite

 21. What is NOT used to translate high level languages?

  Compiler

  None of these answers apply

  Assembler

  Interpreter

 22. Which translator stops when it encounters an error and goes line by line?

  Compiler

  None of these answers apply

  Interpreter

  Assembler

 23. What type of translator is used to translate assembly language

  Assembler

  Interpreter

  None of these answers apply

  Compiler

 24. When working with a high level language, ________ needs to be converted into machine code to run in a CPU

  source code

  machine code

  firmware software

  embedded code

 25. Two tools that are necessary for both writing and converting high level language code are:

  Translators and Binary

  Translators and ASCII

  Translators and Currency

  Translators and IDEs