1- (a) What is a module library?
(b) State 2 features which make modules portable.
2- (a) Explain what robust and fit for the purpose means.
(b) Describe 2 features of a structured listing.
3- Explain what is meant by the term "passed by value" in relation to paramters.
4- Use code of programming eviroment with which you are familiat to illustrate ONE example of a syntax error and ONE logic error.
*If you can help with some of the Qs, it'd be ok.
Software Development Qs Help please
Dave
Posted 15 September 2005 - 03:47 PM
a module library is a compiled collection of procedure which a programmer can link to there project and use the procedures contained in the library
2 features that make them portable is that they are external to any program and they compiled so can be used on any computer
2a) robust means the program can handle problems like unexpected data and other run time errors and not crash
fit for purpose means the program meets the specification for the project
3) passed by value means in parameter passing that when the procedure calling the variable asks for it a copy of the variable is made and used by the procedure. This means the variable isnt passed back out to the main part of the program
4) syntax error in comal would be number1 == 4
one logic error would be
repeat
number1 = 1
until number1 = 5
logic error as would creat an infinite loop, not good!
2 features that make them portable is that they are external to any program and they compiled so can be used on any computer
2a) robust means the program can handle problems like unexpected data and other run time errors and not crash
fit for purpose means the program meets the specification for the project
3) passed by value means in parameter passing that when the procedure calling the variable asks for it a copy of the variable is made and used by the procedure. This means the variable isnt passed back out to the main part of the program
4) syntax error in comal would be number1 == 4
one logic error would be
repeat
number1 = 1
until number1 = 5
logic error as would creat an infinite loop, not good!
gnulinux
Posted 21 September 2005 - 08:45 PM
QUOTE(Rocky @ Sep 15 2005, 03:13 PM)
1- (a) What is a module library?
(b) State 2 features which make modules portable.
2- (a) Explain what robust and fit for the purpose means.
(b) Describe 2 features of a structured listing.
3- Explain what is meant by the term "passed by value" in relation to paramters.
4- Use code of programming eviroment with which you are familiat to illustrate ONE example of a syntax error and ONE logic error.
*If you can help with some of the Qs, it'd be ok.
(b) State 2 features which make modules portable.
2- (a) Explain what robust and fit for the purpose means.
(b) Describe 2 features of a structured listing.
3- Explain what is meant by the term "passed by value" in relation to paramters.
4- Use code of programming eviroment with which you are familiat to illustrate ONE example of a syntax error and ONE logic error.
*If you can help with some of the Qs, it'd be ok.
gnulinux
Posted 21 September 2005 - 09:03 PM
1- (a) What is a module library?
(b) State 2 features which make modules portable.
A module library is a collection of pre-written procedures/functions which have been tested for correctness, reliability etc. These would be used to help create /modify other programs more quickly. The code in such libraries is generally high-level and so compilation is not involved.
Modules are portable if the code is high-level, and, if the procedures are closed and use parameter passing they are also easier to modify, so increasing their portability. High level code that conforms to some recognised standard for the language used also aids portability.
(b) State 2 features which make modules portable.
A module library is a collection of pre-written procedures/functions which have been tested for correctness, reliability etc. These would be used to help create /modify other programs more quickly. The code in such libraries is generally high-level and so compilation is not involved.
Modules are portable if the code is high-level, and, if the procedures are closed and use parameter passing they are also easier to modify, so increasing their portability. High level code that conforms to some recognised standard for the language used also aids portability.
Dave
Posted 21 September 2005 - 10:04 PM
are u sure they are not compiled and they are not portable because they are high level because high level code means nothing to a computer so would need to be interpreted.
i get the impression u see a module library as a file where u copy and paste procedures. Where it really is a file which to declare in the main part of ur project which library you will be calling to
a very good example of this is in JAVA but also VB uses this a lot when u wish to use parts of windows in your project
i get the impression u see a module library as a file where u copy and paste procedures. Where it really is a file which to declare in the main part of ur project which library you will be calling to
a very good example of this is in JAVA but also VB uses this a lot when u wish to use parts of windows in your project