Lab 1.1 Exercises
1.1.1 Understand the Nature of Computer Programs and Programming Languages
What is a program?
For the next two questions, consider this scenario: You have been hired to work for the ABC Company. One of your responsibilities is to produce a daily report that contains complicated calculations.
Without using a computer program to fulfill this responsibility, what potential problems do you foresee in generating this report every day?
Based on your observations in question b, how do you think a computer program would make that task easier?
What is a programming language?
For the next question, consider the following code:
0010 0000 1110 0110 0000 0001 0000 0011 0000 0110 1000 0000 1010 0001 1111 0110 0000 0001
What type of programming language is this code written in?
For the next question, consider the following code:
MOV AX, [01E9] ADD AX, 0010 MOV [01E6], AX
What type of programming language is this code written in?
For the next question, consider the following code:
variable := 2 * variable - 10;
What type of programming language is this code written in?
1.1.2 Understand the Differences Between Interpreted and Compiled Languages
What is an interpreted language?
What is a compiled language?
Which do you think will run quicker, an interpreted or a compiled program?