Preview

03 - Assembly Language

 1. Language Translators are used to translate a language into a form that the computer will …

  manage

  be able to directly execute

  eat

  process

 2. Which of the following statements is true of Assembly Language?

  All of the above

  Has symbolic names for addressing

  Offers mnemonics

  Is one step up from machine code (it is not in 1s and 0s)

 3. What is used to translate assembly code?

  Assembler

  Compiler

  Interpreter

  Translatexutor

 4. What translates the entire source code in one go?

  Translatexutor

  Assembler

  Compiler

  Interpreter

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

  Translatexutor

  Compiler

  Assembler

  Interpreter

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

  print(Now)xx001

  ADD

  101010101

  xOR/One

 7. Each command 'word' translates ….

  directly into a machine code number

  directly into python code

  indirectly into programming code

  directly into electricity signals

 8. 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)

  TRUE

  FALSE

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

  instruction set of the CPU

  mindset of the computer

  Fond butterfly code

  assembly junk of the operating system

 10. The instructions within assembly language are called Mnuecats

  FALSE

  TRUE

 11. Programming in asssembly language is considered:

  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

  incredibly easy

  the fastest approach to solving a problem that involves the internet

 12. 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

  not need to rewrite the code at all

  None of the above

  need to make a copy of your old CPU

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

  is soft and cuddly, and therefore programmer's favourite

  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

 14. An example of a program that is typically written in assembly language is:

  a device driver

  an online shop

  a personal fitness app for Android

  a website for a government

 15. Device drivers need to be as ______________ as possible which is why assembly language is perfect

  None of the above

  easily understandable in terms of the code

  fast and efficient

  slow and careful

 16. Which of the following is NOT a typical assembly language command.
add
lock
subtract
load
compare
branch
store

  load

  subtract

  add

   lock

 17. An example of an assembly code mneumonic is LDA 50 which…

  adds the value 50 to the loaded value before it

  stores (loads) the value 50 into a register in the CPU

  None of the above

  stores the value 50, fifty times into fifty registers in the CPU

 18. In this example: LOAD 0004, it can be said that 'LOAD' is the opcode and the second part 0004 is the memory address

  TRUE

  FALSE

 19. In the command MOV AL 34h…the opcode is the __________ instruction and the other parts are called OPERANDS.

  MOV instruction

  34h part of the code

  None of the above

  AL instruction

 20. Operands are…

  tiny bits that are used to code in assembly language

  manipulated directly by a high level language command

  little bits of beauty

  manipulated by the opcode