Lab 1.1 Exercises


1.1.1 Understand the Nature of Computer Programs and Programming Languages

a)

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.

b)

Without using a computer program to fulfill this responsibility, what potential problems do you foresee in generating this report every day?

c)

Based on your observations in question b, how do you think a computer program would make that task easier?

d)

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 
e)

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 
f)

What type of programming language is this code written in?


For the next question, consider the following code:

 
 variable := 2 * variable - 10; 
g)

What type of programming language is this code written in?


1.1.2 Understand the Differences Between Interpreted and Compiled Languages

a)

What is an interpreted language?

b)

What is a compiled language?

c)

Which do you think will run quicker, an interpreted or a compiled program?




Oracle PL[s]SQL by Example
Oracle PL[s]SQL by Example
ISBN: 3642256902
EAN: N/A
Year: 2003
Pages: 289

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net