Topic 2 Software Development Languages and Environments Past Paper Questions

waisttherapeuticSoftware and s/w Development

Nov 4, 2013 (3 years and 9 months ago)

76 views

Topic 2


Software Development Languages and Environments Past Paper Questions


1.

(
a
)

Describe what is meant by a
scripting language
.





1


(
b
)

Give
two
benefits of using a “scripting language”.





2


2.

(a)

The software company has decided to make us
e of module libraries.



Give
two
benefits to the software company of using module libraries.


2


(
b
)

During the production of the payroll system the software developers use both an



interpreter
and a
compiler
. Describe when each of these translator pro
grams are used


and give a reason for its use.








4


3.

One type of high level language is a
declarative language
. State
two
features of


a declarative language.









2


4.

A
macro
extends the functionality of a general
-
purpose package. State
two
m
ethods of


creating a macro.










2


5.

The data is imported into a spreadsheet to perform additional analysis using a
scripting

language
.


(a)

Describe
two
features of a scripting language.





2


(b)

Describe
two
advantages of using a scripting
language within the spreadsheet



compared to developing all of the code using a high level programming language.

2


(c)

Other than importing data suggest another use for a script.




1


6.

The software could be translated using a
compiler
or an
interpre
ter
. State
two
reasons


why a compiler is a more suitable translator for this application.




2


7.

A scripting language is a type of high level language.


Describe two characteristics of a scripting language not commonly found in a


procedural language.










2


8.

A bank manager uses a macro once a month to create an alphabetical list of customers


whose account balance is over £5000.


(a)

State two benefits of using macros for this type of task.




2


(b)

The macro is written in a HLL. State the typ
e of HLL that is used to write



macros.










1


9.

A program contain the following statement:




is_a(rover, dog).


State which type of programming language is being used.





1


10.

The software team maintains a module library. Describe two advantag
es of using a


module library over the creation of new code for each project.




2


11.

Entucom is a tv broadcaster that gives customers access to various services. Customers


will access these services using their tv and a set
-
top box with wireless keybo
ard and


mouse. The TV broadcaster employs a software development company to provide the


range of software required.


(a)

During implementation, the software development company consider the use of



either a procedural or an event
-
driven language.



(i)

Describe two similarities of procedural and event
-
driven languages.

2



(ii)

State two reasons why a programmer would use an event
-
driven language




to develop software.








2


(b)

During the development of the software, module libraries are used.



What is a module library?








1


12.

A group of students are working together to create a piece of software for a local playgroup.


The lecturer tells them that module libraries can be used.


Identify two benefits of using module libraries when constru
cting code.



2


13.

The software in Question 16 is to be written in a procedural language.


Give one reason why a procedural language has been chosen for this task.



1


14.


A mail order company requires a piece of software to be developed that will stor
e and process


customer details. The software house are considering creating a specialised program or using

an application package which supports scripting.


(a)

Describe two uses for scripting languages.






2


(b)

The software house decide to use a hi
gh level language to create the package.



Event driven and declarative languages could be used.



(i)

Describe what ‘event
-
driven’ and ‘declarative’ languages are.


2



(ii)

For each of the languages given in (i), give one reason why that type of




lang
uage may be suitable for the mail order company’s purpose.


2


(c)

The programmers use both a compiler and interpreter when constructing the code.



(i)

Why would an interpreter be used when developing the software?


2



(ii)

Explain in terms of efficiency

the difference between using a compiler




compared with an interpreter when translating code related to the pseudocode



below:






1

loop 300 times





2


ask user for name





3


store in array





4

end loop






Your answer should include both pro
cessor time and memory usage for each




type of translator.








2