Preview

07 - Practice Test

 1. Name one example of a high level language

  Python

  Assembly Language

  Machine Code

  Binary

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

  Binary representation of instructions

  Code in a format that the CPU can process

  All of the above

  Made up of opcode and operand

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

  FALSE

  TRUE

 4. Low level languages are closer to natural English

  TRUE

  FALSE

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

  None of these apply

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

  There is no difference

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

 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

  Error checking and Online help

  None of the items on the list are valid

  Syntax highlighting and Automatic documentation

  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?

  variable induction

  code completion

  marrying IDE

  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?

  Interpreter

  Compiler

  Assembler

  Translatexutor

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

  101010101

  ADD

  print(Now)xx001

  xOR/One

 14. Each command 'word' translates ….

  directly into a machine code number

  directly into python code

  indirectly into programming code

  directly into electricity signals

 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 _________________

  assembly junk of the operating system

  mindset of the computer

  Fond butterfly code

  instruction set of the CPU

 17. The instructions within assembly language are called Mnuecats

  TRUE

  FALSE

 18. Programming in asssembly language is considered:

  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

  the fastest approach to solving a problem that involves the internet

 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 re-write the code using a different version of assembly language

  need to make a copy of your old CPU

  None of the above

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

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

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

  is soft and cuddly, and therefore programmer's favourite

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

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

  Assembler

  Compiler

  None of these answers apply

  Interpreter

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

  Interpreter

  None of these answers apply

  Assembler

  Compiler

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

  Compiler

  None of these answers apply

  Assembler

  Interpreter

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

  machine code

  source code

  embedded code

  firmware software

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

  Translators and Currency

  Translators and Binary

  Translators and IDEs

  Translators and ASCII