WorksheetsJ277 1.5 and 2.5
Total questions: 80
Worksheet time: 40mins
Which of the following is considered low level code?
Machine Code
Assembly Code
High Level Code
Which is a lower level language?
Machine Code
Assembly Code
Which level of language is this true for?
Most difficult to program in
Machine Code
Assembly Code
High Level Code
Which level of language is this true for?
Example Uses mnemonics (e.g. ADD, DIV, STORE LOAD)
Machine Code
Assembly Code
High Level Code
Which level of language is this true for?
Easier to program in than Machine Code but still difficult.
Machine Code
Assembly Code
High Level Code
Which level of language is this true for?
It is most commonly used to program Device Drivers
Machine Code
Assembly Code
High Level Code
Which level of language is this true for?
Example Code01010101010100101010100101010101010011111001000100001010100101
Machine Code
Assembly Code
High Level Code
Which level of language is this true for?
Easiest to find errors, easier to de-bug
Machine Code
Assembly Code
High Level Code
Which level of language is this true for?
Each instruction has a one to one relationship with Machine Code
Machine Code
Assembly Code
High Level Code
Which level of language is this true for?
Hardest to De-Bug
Machine Code
Assembly Code
High Level Code
Which level of language is this true for?
Uses English-Like Keywords
Machine Code
Assembly Code
High Level Code
Which level of language is this true for?
Hardest to understand
Machine Code
Assembly Code
High Level Code
Which level of language is this true for?
Directly Executable by CPU
Machine Code
Assembly Code
High Level Code
Which level of language is this true for?
One instruction translates into many machine code instructions
Machine Code
Assembly Code
High Level Code
Which level of language is this true for?
Example:
LOAD r1, c
LOAD r2, d
ADD r1, r2
DIV r1, #2
Machine Code
Assembly Code
High Level Code
Which level of language is this true for?
Needs to be translated for the computer to be able to execute it
Machine Code
Assembly Code
High Level Code
Which level of language is this true for?
Easier to understand for the programmer
Machine Code
Assembly Code
High Level Code
Which level of language is this true for?
Doesn't need a translator
Machine Code
Assembly Code
High Level Code
Which level of language is this true for?
Examle Code:
Dim Num1, Num2, Tot as Integer
Num1 = Console.Readline()
Num2 = Console.Readline()
Tot = Num1 + Num2
Console.Writelein("Total is: " & Tot)
Machine Code
Assembly Code
High Level Code
Which level of language is this true for?
Stored as 0's and 1's
Machine Code
Assembly Code
High Level Code
Which level of language is this true for?
Uses an Assembler
Machine Code
Assembly Code
High Level Code
What is the purpose of translators?
Used to translate a language into a form that the will be able to directly execute
Used to translate a language into a form machine code so that it can be understood by humans
Which of the following are examples of translators?
Answers: 3
Assemblers
Compilers
Interpreters
Compilators
Interationers
Which statements best describe assemblers?
Answers: 4
Translate Assembly Language code into Machine Code
Used for Device Drivers
Used when fast execution is required or limited memory/file size
Difficult to write in (easier than Machine code)
Translates and executes source code line by line at run time
Which statements best describes Interpreters?
Answers: 3
Translate entire source code all in one go into Machine Code
Translate and execute source code Line by Line, Statement by Statement
Source code is checked for syntax - if correct, code is executed. If incorrect interpreting is stopped.
Used at the end of development (ready for shipping)
Used for development (aide debugging)
Which of the statements best describes Compilers?
Answers: 3
Translate entire source code all in one go into Machine Code
Translate and execute source code Line by Line, Statement by Statement
Optimise code
Used at the end of development (ready for shipping)
Used for development (aide debugging)
Common features of IDE's (Integrated Development Environment can include:
- text editors
-error diagnostics
- run-time environment
-translators
-versioning tools
Which explanation below best matches the feature: text editor?
...highlight key words
...auto-indent
...to type / edit source code
...Auto-complete
...highlight syntax errors
... highlight errors / suggest changes
... Lets you run / test the program
...compiler/interpreter
...To allow for tracing back
...To create new files with changes
Common features of IDE's (Integrated Development Environment can include:
- text editors
-error diagnostics
- run-time environment
-translators
-versioning tools
Which explanation below best matches the feature: error diagnostics?
...highlight key words
...auto-indent
...to type / edit source code
...Auto-complete
...highlight syntax errors
... highlight errors / suggest changes
... Lets you run / test the program
...compiler/interpreter
...To allow for tracing back
...To create new files with changes
Common features of IDE's (Integrated Development Environment can include:
- text editors
-error diagnostics
- run-time environment
-translators
-versioning tools
Which explanation below best matches the feature: run-time environment?
...highlight key words
...auto-indent
...to type / edit source code
...Auto-complete
...highlight syntax errors
... highlight errors / suggest changes
... Lets you run / test the program
...compiler/interpreter
...To allow for tracing back
...To create new files with changes
Common features of IDE's (Integrated Development Environment can include:
- text editors
-error diagnostics
- run-time environment
-translators
-versioning tools
Which explanation below best matches the feature: translators?
...highlight key words
...auto-indent
...to type / edit source code
...Auto-complete
...highlight syntax errors
... highlight errors / suggest changes
... Lets you run / test the program
...compiler/interpreter
...To allow for tracing back
...To create new files with changes
Common features of IDE's (Integrated Development Environment can include:
- text editors
-error diagnostics
- run-time environment
-translators
-versioning tools
Which explanation below best matches the feature: versioning tools?
...highlight key words
...auto-indent
...to type / edit source code
...Auto-complete
...highlight syntax errors
... highlight errors / suggest changes
... Lets you run / test the program
...compiler/interpreter
...To allow for tracing back
...To create new files with changes
