1.3.7 High - and Low Level Languages and Their Translators ANS
1.3.7 High - and Low Level Languages and Their Translators ANS
https://www.facebook.com/groups/OAComputers/
AHMED THAKUR [email protected], 0300-8268885
CAMBRIDGE COMPUTER SCIENCE AHMED THAKUR
Q1 2016-Nov, P13
https://www.facebook.com/groups/OAComputers/
AHMED THAKUR [email protected], 0300-8268885
CAMBRIDGE COMPUTER SCIENCE AHMED THAKUR
Q2 2016-Nov, P12
1
[5]
https://www.facebook.com/groups/OAComputers/
AHMED THAKUR [email protected], 0300-8268885
CAMBRIDGE COMPUTER SCIENCE AHMED THAKUR
Q3 2015-June, P12
[1]
[2]
https://www.facebook.com/groups/OAComputers/
AHMED THAKUR [email protected], 0300-8268885
CAMBRIDGE COMPUTER SCIENCE AHMED THAKUR
Q4 2015-June, P11
Q5 2012-June, P12
(d) – compiler produces object code / interpreter doesn’t produce object code
– compiler translates whole program in one go / interpreter translates and executes line at
a time
– compiler produces list of all errors / interpreter produces error message each time an
error encountered
– compiler produces “stand alone code” / interpreter doesn’t produce “stand alone code”
– compilation process is slow but resultant code runs very quickly / interpreted code runs
slowly
[2]
https://www.facebook.com/groups/OAComputers/
AHMED THAKUR [email protected], 0300-8268885
CAMBRIDGE COMPUTER SCIENCE AHMED THAKUR
Q6 2011-June,P12
– close to English
– one statement is equal to many low-level language statements
– portable
– easy to edit/debug/update
– problem oriented
– needs converting to machine code before execution [2]
Q7 2010-June, P11
compiler interpreter
(b) Any one high level advantage and any one low level advantage:
high-level language
– fewer instructions
– no need to understand registers/computer architecture
– instructions nearer to human language/English
– not machine specific/portable
– easier to debug programs
– easier to write programs
low-level language
https://www.facebook.com/groups/OAComputers/
AHMED THAKUR [email protected], 0300-8268885
CAMBRIDGE COMPUTER SCIENCE AHMED THAKUR
https://www.facebook.com/groups/OAComputers/
AHMED THAKUR [email protected], 0300-8268885