Home

Exam papers

image

Contents

1. Variable List lt Variable gt lt Constant gt lt Variable gt lt Constant Structure Assignment Statement lt Variable gt lt Variable gt lt Operand gt lt Variable gt lt Constant gt Conditional IF lt Condition Exp gt THEN ELSE ENDIF Repetition DOWHILE lt Condition Exp gt ENDDO File Operations FILEOPEN lt File Name gt FILECLOSE lt File Name gt RECORDFIND lt File Name gt KEY lt Variable gt RECORDUPDATE lt File Name gt Screen Operations SCREENREAD lt Variable gt PRINTSCREEN lt Variable List gt Print Operations LINEPRINT lt Variable List gt Program Structure PROGRAM lt Variable gt DECLARE VARIABLES lt Variable gt NUMERIC CHARACTER DECLARE FILES lt File Name gt RECORD lt Variable List gt KEY lt Variable gt BEGIN MAIN Main program logic goes here END MAIN END PROGRAM 17 QUESTION 22 Continued Marks Rules 1 ALL program variables must be declared in the DECLARE VARIABLES statement 2 ALL files must be declared in the DECLARE FILES statement 3 ALL files must be opened before any operation can be performed on them 4 ALL files must be closed before a program finishes 5 An EXIT statement in the MAIN Section ends the program 6 When a RECORDFIND statement is obeyed the Boolean system Variable amp FOUND which does not have to be declared is set to True if the matching record is found other
2. COUNTER REDVALUE ADD 1 TO COUNTER ENDWHILE PRINT TOTAL What will be the output of this algorithm A B C D 10 11 18 25 18 19 20 10 The following diagram describes the seating layout of a small theatre A B C D E F G a nr A U N Ra The most appropriate data structure for representing this seating layout in a program is A arecord B aone dimensional array C a two dimensional array D a string The type of validation used to check that the total weekly pay for an employee does not exceed 3000 is a A completeness check B reasonableness check C boundary check D type check Which of the following may be included in intrinsic documentation A A tutorial B Details of the operation of subprograms C Appropriate names for modules and variables D Comments appearing at appropriate places in the source code 11 SECTION II Marks 30 Marks Attempt BOTH questions QUESTION 21 Use a SEPARATE Writing Booklet 15 marks a i You have been given the user manual for three software packages 3 What criteria would you use to evaluate these manuals Justify your choice of criteria ii It has been suggested that the algorithm for the program be included in the user manual Would you agree or disagree with this suggestion Give reasons for your answer iii High level languages are said to be machine
3. independent Explain what is meant by the term machine independent and describe how machine independence is achieved Question 21 continues on page 12 12 QUESTION 21 Continued Marks b 5 VERIFY CREDIT CARD formatted card ns nn eun response CARD GEL PRESENT DETAILS AUTHORITY RESPONSE formatted card card record response details i is ati thorit er card number ok number format details limit responses CALCULATE FORMAT READ FORMAT TRANSMIT DETAILS ae ee RESPONSE RESPONSE ok enquiry GENERATE NUMBER i Describe in words the sequence of system processes shown in the chart above ii Use another method of system representation to describe the system processes shown above 13 QUESTION 21 Continued Marks c S6 is a screen from an adventure game 5 The player enters selection G and screen S7 is then displayed S6 SELECT YOUR DIRECTION a FORWARD b NORTH c UP d BACK e DOWN WRONG INCORRECT CHOICE CHOOSE YOUR SELECTION ONLY BY USING THE J OR T ARROW AND DEPRESSING THE ENTER KEY OR BY TYPING THE CORRESPONDING LETTER AND PRESSING THE RETURN KEY i Evaluate the effectiveness of these screens with reference to the major screen design principles ii Redesign both screens so that they adhere to acceptable design principles Annotate and justify your changes 14 BLANK PAGE 15 QUESTION 22 Use a SEPARATE Writing Booklet 15 ma
4. a ee BOARD OF STUDIES NEW SOUTH WALES HIGHER SCHOOL CERTIFICATE EXAMINATION 2000 COMPUTING STUDIES 3 UNIT ADDITIONAL Time allowed One hour and a half Plus 5 minutes reading time DIRECTIONS TO CANDIDATES e No calculators are to be used Section I 20 marks e Attempt ALL questions e Write your Student Number and Centre Number on the Answer Sheet provided e Complete your answers in either blue or black pen on the Answer Sheet provided Section II 30 marks e Attempt BOTH questions e Answer each question in a SEPARATE Writing Booklet 533 SECTION I 20 marks Attempt ALL questions Instructions for answering multiple choice questions e Complete your answers in either blue or black pen e Select the alternative A B C or D that best answers the question Fill in the response oval completely Sample 2 4 A 2 B 6 C 8 D 9 AO BO cO D O If you think you have made a mistake put a cross through the incorrect answer and fill in the new answer AO B W cO D O If you change your mind and have crossed out what you consider to be the correct answer then indicate the correct answer by writing the word correct and drawing an arrow as follows correct x AM B W cO D O A machine language instruction consists of two basic parts The first is the numerical operation code What is the other part A Addresses B Branch codes C Op codes D Operands Main Module Module Mo
5. dule 1 2 3 Which system representation method has been employed to construct the diagram A IPO chart B Linear storyboard C Function chart D Case diagram An interactive computer based system is to be developed for a dinosaur park to display the site map and to give directions Which is the most appropriate method for representing this system A Storyboard B Function chart C Hierarchy chart D Structure diagram Which generation of computing languages marked the transition from the traditional programmer dependent approach to end user programming A First generation B Second generation C Third generation D Fourth generation A large complex program is to be developed in a modular approach Some of the modules are already completed and tested while others are still being developed Which is the most efficient translation process for developing this program so that only the changed modules need to be re translated A Interpretative compilation B Independent compilation C Incremental compilation D Modular compilation The following EBNF rules completely describe the syntax of a computer language lt digit gt 0 1 2 3 4 5 6 7 8 9 lt digit gt lt digit gt B lt digit gt lt expression gt Which of the following is a valid expression in that language CO E 6 4 B 3 C 0 33 D 33 B B 7 The following railroad diagrams define an identifier Sy
6. llowing is the correct output A 1111333333 B 111113333333 C 555555557 D 555555557222 Errors that cause a program to repeat commands indefinitely are called A logical errors B syntax errors C run time errors D structural errors What kind of error is most likely to be found during a desk check A Syntax B Logic C Design D Mathematical 15 Which software development process has requirements design and construction occurring almost simultaneously A Top down B Bottom up C Logical D Prototyping 16 IF TEMP gt 35 C THEN SET CONDITION TO HOT ELSE IF TEMP gt 25 C THEN SET CONDITION TO WARM ELSE IF TEMP gt 20 C THEN SET CONDITION TO NORMAL ELSE SET CONDITION TO COLD ENDIF ENDIF ENDIF How many values would be required to form a minimum set of test data for checking this algorithm A B C D Nn nr A Q 17 The following diagram shows the contents of an array of records used for mixing colours The name of the array is COLOUR RW N e NAME OF COLOUR REDVALUE GREENVALUE BLUEVALUE CHARTREUSE 1 3 1 VERMILION 5 3 3 TURQUOISE 2 4 7 CRIMSON 6 1 2 The algorithm below is used to calculate colour values using an array BEGIN END SET TOTAL TO 0 SET COUNTER TO 1 WHILE COUNTER lt 4 TOTAL TOTAL COLOUR COUNTER GREENVALUE ADD 1 TO COUNTER ENDWHILE WHILE COUNTER lt 4 TOTAL TOTAL COLOUR
7. mbol Identifier Which identifier is valid according to the diagrams A http www B pat hat C www apt com D t_hat p 8 In constructing a structure diagram what is the conventional symbol used to show a control parameter A E B O 0 O gt D O 10 11 A program includes a calculation routine that is called from many points in the main program The calculation result is not always correct What would be the best technique for the programmer to use to trace the source of the errors A Using stubs B Using flags C Run time checking D Debugging output statements A window that appears on a computer screen displaying information and allowing the user to make a selection is known as A acheck box B an option box C a dialogue box D an information box Array A 7 21 8 7 23 11 27 Array B a b c d e f g h 1 j k 1 m n O p q 1 S t u V W X y z B l a Using the data in Array A and Array B what will be the output of the following algorithm BEGIN FINAL A 3 COUNT 2 REPEAT DISPLAY B A COUNT COUNT COUNT COUNT 1 UNTIL COUNT FINAL END A select B second C secret D seconds 12 13 14 The set of numbers 8 5 1 7 3 2 was read into the following program BEGIN SET COUNT TO 1 READA REPEAT READA READ B WHILE A gt 0 DISPLAY B A A 1 ENDWHILE COUNT COUNT 1 UNTIL COUNT 3 END Which of the fo
8. rks a A tollgate at a bridge is controlled by a set of red and green lights Conditions e Redlight no passage e Green light passage for one vehicle Operations e A sensor in the road detects the presence of a vehicle the presence of a pre paid pass on a vehicle e A pre paid pass automatically switches the light from red to green There is a toll of 2 50 for each vehicle without a pre paid pass e Only 2 1 and 50c coins are accepted e Once the 2 50 is paid the light switches from red to green e After each vehicle passes through the tollgate on a green light the light is reset to red e An alarm is sounded and a photograph is taken if a vehicle passes through the tollgate while the light is red Using EITHER pseudocode OR a flowchart write a simple and elegant algorithm including at least ONE sub program to describe the control of the tollgate Question 22 continues on page 16 Marks 16 QUESTION 22 Continued Marks b A programming language has the following syntax structure and rules 8 Syntax Letter A Z a z Digit 0 9 Operand Condition lt lt gt gt lt gt Variable lt Letter gt lt Letter gt lt Digit gt Constant lt Letter gt lt Digit gt lt Digit gt File Name lt Constant gt Condition Exp lt Variable gt lt Condition gt lt Variable gt lt Constant gt
9. wise it is set to False A record must be found before it can be updated 8 Program comments begin with a single apostrophe The following is an algorithm which describes the process of adjusting the quantity of parts held in a database file BEGIN Inventory Program OPEN Parts File READ Part Number from screen input WHILE Part Number lt gt 9999 READ Parts File using Part Number IF record found THEN READ Quantity from screen PARTQTY PARTQTY Quantity UPDATE record PRINT PARTNO PARTDESC PARTQTY to report ELSE Display Error Message on screen ENDIF READ Part Number from screen input ENDWHILE CLOSE Parts File END Inventory Program Convert the algorithm into a program using the programming language described above The name of the file holding the parts data is PARTS The structure is as follows PARTNO NUMERIC Part number PARTDESC CHARACTER Part description PARTQTY NUMERIC Quantity of the part in warehouse The KEY of the file is PARTNO End of paper 18 BLANK PAGE 19 BLANK PAGE 20 BLANK PAGE Board of Studies NSW 2000

Download Pdf Manuals

image

Related Search

Related Contents

Accu-Tech 12804-701 hardware cooling accessory  308 KB - ComBlock  GPSMAP 60CSx Owners Manual CFR.indd  User Manual OpenStage 20 SIP  Manual - WiDMX    GlucoTel Handbuch  Guía de instalación del servidor SPARC T3-1  

Copyright © All rights reserved.
Failed to retrieve file