Preview

07 - Practice Test

 1. Name one example of a high level language

  Binary

  Assembly Language

  Machine Code

  Python

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

  Code in a format that the CPU can process

  Made up of opcode and operand

  Binary representation of instructions

  All of the above

 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

  FALSE

  TRUE

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

  None of these apply

  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/

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

  FALSE

  TRUE

 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

  None of the items on the list are valid

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

  Error checking and Online help

  Syntax highlighting and Automatic documentation

 8. Both machine code and assembly language are machine specific

  TRUE

  FALSE

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

  variable induction

  marrying IDE

  code completion

  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.

  TRUE

  FALSE

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

  Translatexutor

  Assembler

  Interpreter

  Compiler

 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 electricity signals

  directly into python code

  indirectly into programming 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 _________________

  mindset of the computer

  assembly junk of the operating system

  Fond butterfly code

  instruction set of the CPU

 17. The instructions within assembly language are called Mnuecats

  FALSE

  TRUE

 18. Programming in asssembly language is considered:

  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

  incredibly easy

  the best sort of programming in use for web development

 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

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

  None of the above

  not need to rewrite the code at all

  need to make a copy of your old CPU

 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)

  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

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

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

  None of these answers apply

  Compiler

  Assembler

  Interpreter

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

  None of these answers apply

  Interpreter

  Compiler

  Assembler

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

  None of these answers apply

  Assembler

  Interpreter

  Compiler

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

  firmware software

  embedded code

  machine code

  source code

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

  Translators and Currency

  Translators and ASCII

  Translators and IDEs

  Translators and Binary