12
Informatika angol nyelven emelt szint — gyakorlati vizsga 0803 Azonosító jel: INFORMATIKA ANGOL NYELVEN EMELT SZINTŰ GYAKORLATI VIZSGA 2009. május 15. 8:00 A gyakorlati vizsga időtartama: 240 perc Beadott dokumentumok Piszkozati pótlapok száma Beadott fájlok száma A beadott fájlok neve OKTATÁSI ÉS KULTURÁLIS MINISZTÉRIUM ÉRETTSÉGI VIZSGA 2009. május 15.

INFORMATIKA ANGOL NYELVEN - oktatas.hu...Informatika angol nyelven — emelt szint Azonosító jel: 4. Set the colours of the page and the parameters of the table forming the frame

  • Upload
    others

  • View
    3

  • Download
    0

Embed Size (px)

Citation preview

Page 1: INFORMATIKA ANGOL NYELVEN - oktatas.hu...Informatika angol nyelven — emelt szint Azonosító jel: 4. Set the colours of the page and the parameters of the table forming the frame

Informatika angol nyelven emelt szint — gyakorlati vizsga 0803

Azonosító jel:

INFORMATIKA ANGOL NYELVEN

EMELT SZINTŰ

GYAKORLATI VIZSGA

2009. május 15. 8:00

A gyakorlati vizsga időtartama: 240 perc Beadott dokumentumok

Piszkozati pótlapok száma Beadott fájlok száma

A beadott fájlok neve

OKTATÁSI ÉS KULTURÁLIS MINISZTÉRIUM

ÉR

ET

TS

ÉG

I V

IZS

GA

● 2

00

9.

jus

15

.

Page 2: INFORMATIKA ANGOL NYELVEN - oktatas.hu...Informatika angol nyelven — emelt szint Azonosító jel: 4. Set the colours of the page and the parameters of the table forming the frame

gyakorlati vizsga 0803 2 / 12 2009. május 15.

Informatika angol nyelven — emelt szint Azonosító jel:

Page 3: INFORMATIKA ANGOL NYELVEN - oktatas.hu...Informatika angol nyelven — emelt szint Azonosító jel: 4. Set the colours of the page and the parameters of the table forming the frame

gyakorlati vizsga 0803 3 / 12 2009. május 15.

Informatika angol nyelven — emelt szint Azonosító jel:

Important information

You have 240 minutes to solve the practical exercises.

Devices allowed for the exam: computer assigned to the student, paper, pen, pencil, ruler, sealed notepaper.

You can take notes on the internal sides of the exercise sheet and the notepaper, these should be submitted at the end of the exam but their content will not be evaluated.

The exercises can be solved in any order.

Please pay attention to frequent saving (every 10 minutes); it is suggested that you save your work every time you start a new exercise.

You should save your exam work in the exam directory that corresponds with the identifi-cation number found on the exercise sheet. Check that the directory that corresponds with the number found on the exercise sheet is accessible; if it is not accessible, notify the super-vising teacher at the beginning of the exam.

Save your works in the exam directory and at the end of the exam check that every solution is in the given directory because only those solutions can be evaluated. Check that the files to be submitted are readable, because files that can not be opened will not be evaluated.

The source files can be found in the exam directory.

It is suggested that you read through the exercises first, then solve the individual exercise parts one by one.

If your computer has technical problems, indicate it to the supervising teacher. The fact of indication and the observed problem will be recorded. The lost time will be added to the dura-tion of the exam. If the problem is not of computer nature, the examiner should take the de-scription of the case in the record into consideration. (The system administrator can not help the candidate with the solution of the exercises.)

At the end of the exam you should indicate the number and name of files created and submitted by you and located in the exam directory and its subdirectories on the first page of the exam document. When finishing the exam, do not leave the room until you have done so and have shown it to the supervising teacher.

Please indicate the operating system and the programming environment you work with.

Operating system: Windows Linux MacOS X

Programming environment: Turbo Pascal 7.0 FreePascal 2.0 Delphi 6.0 Borland C++ 6 GCC …….. Visual C# 2008 Express Visual Basic 6 Perl Visual Basic 2008 Express

Page 4: INFORMATIKA ANGOL NYELVEN - oktatas.hu...Informatika angol nyelven — emelt szint Azonosító jel: 4. Set the colours of the page and the parameters of the table forming the frame

gyakorlati vizsga 0803 4 / 12 2009. május 15.

Informatika angol nyelven — emelt szint Azonosító jel:

1. Puffballs

Puffballs are one of the most well-known families of Hungarian mushrooms. Some pic-tures, texts and templates are available to introduce some of their representatives:

forrasweb.txt szoveg.txt minta.html gomba1.jpg

gomba2.jpg gomba3.jpg kortealaku.jpg

Create a web page and a word document to introduce one species of puffballs each using the source files according to the description and the example.

1. Create the image to be inserted at the top of the web page. The name of the image file should be fejlec.jpg. The size of the image to be created is given by the tag parameter that can be found in the code of file minta.html. Pictures gomba1.jpg, gomba2.jpg and gomba3.jpg should be placed in image fejlec.jpg in any order (you do not have to follow the order shown in the example)! Create the given size from this image through cutting and/or resizing.

Example:

2. Create file pofeteg.html. The source text of the page can be found in file forrasweb.txt. The text of the title appearing in the header of the browser should be “The mushrooms”.

3. Insert picture fejlec.jpg at the top of the page and the title, “Gem-studded puffball” below it using the heading style shown in the source text of file minta.html.

Page 5: INFORMATIKA ANGOL NYELVEN - oktatas.hu...Informatika angol nyelven — emelt szint Azonosító jel: 4. Set the colours of the page and the parameters of the table forming the frame

gyakorlati vizsga 0803 5 / 12 2009. május 15.

Informatika angol nyelven — emelt szint Azonosító jel:

4. Set the colours of the page and the parameters of the table forming the frame of the page (sizes, cell spacing, cell padding, colour) according to the parameters given in the source text of file minta.html.

5. Place and arrange the source text in the cells of the table according to the example. The text in the cells of the first column should be aligned right.

6. Set bold style for sentence beginning as “Be careful, it…”. The name “death cap” should appear in red colour.

7. Convert text “pear-shaped puffball” into a link that leads to picture kortealaku.jpg.

8. Create file orias using a word processor program and save it in the default format of the program. The unformatted text is located in file szoveg.txt, the picture is located in file gomba2.jpg.

Example:

9. The source file contains word processing errors, correct these. Delete every space from the

beginning of the paragraphs and remove the redundant spaces from between the words. Set an indent of 0.5 cm for the first line of each paragraph and a spacing of 6 points (0.21 cm) instead of the redundant empty lines throughout the document.

10. The format of the title: spacing before and after it is 30 points (1.05 cm), the paragraph is underlined with a double line, the font size is 24 points and the font style is bold.

11. Insert file gomba2.jpg in front of the title and align it left; reduce its size proportionally so that its height becomes 3 cm.

12. After the first paragraph the puffball species should appear in a list. After that, the name “giant puffball” should appear in bold and the Latin name should appear in italics.

30 marks

Page 6: INFORMATIKA ANGOL NYELVEN - oktatas.hu...Informatika angol nyelven — emelt szint Azonosító jel: 4. Set the colours of the page and the parameters of the table forming the frame

gyakorlati vizsga 0803 6 / 12 2009. május 15.

Informatika angol nyelven — emelt szint Azonosító jel:

2. Car wash

Steam Razor Car Wash Ltd. works in the area of car cleaning (exterior, chassis and engine wash). The car wash can serve one car at a time. The work is done in a tight order, according to regulations in every aspect. The data of the clients who use the services, namely the license plate number, the name of the required service, the time of arrival and departure of the client are given in file ugyfel.txt tagged by tabs. All data given in the source concern the morn-ing of a single day.

Solve the following exercises using a worksheet processing program. Perform the format-ting operations not given in the worded description according to the example. During the solution take the followings into consideration.

• Whenever possible, use a formula, function or reference in the solution. • There are parts in the exercise that use the results from a previous question. If you could not

solve the previous part completely, use its solution as it is, or instead of a formula resulting in a number enter integral numbers between “0” and “5” and instead of a time data enter the value “00:01:00” and work on with that value. This way you may receive marks for these ex-ercise parts as well.

1. Import file ugyfel.txt into the worksheet processor and save it as kocsimoso in the default format of the worksheet processor.

2. Display the content of the cells containing times in format hour:minute:second unless it is specified else in the exercise.

3. The corresponding cells of the table are filled in the order of the work done, so they print the order of arrival on the worksheet prepared. Insert a column with name “Order of arrival” before the column “License plate”. Fill the column with the order of the arrival of the cars starting with 1.

4. Enter text “Clients in queue” into the heading of the first empty column. Below it create a formula that can be copied flawlessly in the whole column and can be used to determine the number of clients waiting for a wash – including the arriving client – at the time of the arrival of the given car.

5. Display the number of cars in queue as the function of the time of arrival in a chart with-out legend. The title of the chart should be “Number of cars in queue”. Set the major scale of the value axis to 1. Place the chart below the data, in the width of the columns contain-ing the data.

6. In the first empty column after the “Departed” column give the time the operator of the machine could rest after the car that has just left until the arrival of the next one. If he had no time to rest, do not display anything in the cells. The name of the column should be “Resting time”. Leave a blank row below the data of the table and then calculate the sum of the resting times in the next row. When giving the resting times – with the exception of the sum – display only minutes and seconds.

7. Determine the time of the arrival when the number of cars in queue was the highest. (If there are several such values, it is enough to display any one of them.) Display the value in the “Arrived” column, in the place shown in the example.

Page 7: INFORMATIKA ANGOL NYELVEN - oktatas.hu...Informatika angol nyelven — emelt szint Azonosító jel: 4. Set the colours of the page and the parameters of the table forming the frame

gyakorlati vizsga 0803 7 / 12 2009. május 15.

Informatika angol nyelven — emelt szint Azonosító jel:

8. In each cell of the first row use the same alignment, break the cells containing more than one word into two lines. Set the column widths so that they are wide enough for the words of the first row. Use the same alignment in the cells of the last row as well. Pay attention to the example when setting the above characteristics and formatting the other parts of the table.

Example for the Car wash exercise:

15 marks

Page 8: INFORMATIKA ANGOL NYELVEN - oktatas.hu...Informatika angol nyelven — emelt szint Azonosító jel: 4. Set the colours of the page and the parameters of the table forming the frame

gyakorlati vizsga 0803 8 / 12 2009. május 15.

Informatika angol nyelven — emelt szint Azonosító jel:

3. Prime Ministers

Files elnokok.txt and szemely.txt contain the data of the Prime Ministers of Hun-gary between 1848 and 2004.

1. Create a new database with name miniszter. Import the attached data tables that contain the time the Prime Ministers spent in office and their biographical data into the database as elnokok and szemely. The txt-type data files are tagged by tabs and their first lines con-tain the field names.

2. After importing set the suitable data formats and keys. Add a new field with name azon to table elnokok to ensure the unique identification of the records.

Table: elnokok (azon, szem, mettol, meddig)

azon Unique identifier (autonumber), this is the key szem The identifier of the Prime Minister’s person (number) mettol The first year of the time in office (number) meddig The last year of the time in office (number)

szemely (nev, szem, hely, szul, hal)

nev The Prime Minister’s name (text) szem The identifier of his/her person (number), this is the key hely The place of birth (text) szul The year of birth (number) hal The year of death (number)

Create the solution of the following exercises. Save the solution with the name given in brackets.

3. Using a query, display the Prime Ministers’ names and years of birth in ascending order according to their year of birth. Do not display any other fields. (A)

4. Using a query, list the names and years of birth and death of those whose last year in of-fice was the same as the year of their death. (B)

5. Using a query, determine who was (were) the Prime Minister(s) in 1905. (C)

6. Using a query, give the name of those who became Prime Ministers more than once and the number of times they were elected. (D)

7. Who spent the longest uninterrupted time in office? Determine his name and the length of the time he spent in office. (E)

Page 9: INFORMATIKA ANGOL NYELVEN - oktatas.hu...Informatika angol nyelven — emelt szint Azonosító jel: 4. Set the colours of the page and the parameters of the table forming the frame

gyakorlati vizsga 0803 9 / 12 2009. május 15.

Informatika angol nyelven — emelt szint Azonosító jel:

8. Using a query, list the names of the Prime Ministers who were born in the same place as Teleki Pál. (Determine Teleki Pál’s place of birth using a query as well!) (F)

9. Give the names and the ages upon entering into office of those who became Prime Minis-ters before the age of 50. (G)

10. Create a report based on query G that displays the records in ascending order in the alpha-betical order of the names. The title in the header should be this: “Young Prime Minis-ters”. (H)

30 marks

Page 10: INFORMATIKA ANGOL NYELVEN - oktatas.hu...Informatika angol nyelven — emelt szint Azonosító jel: 4. Set the colours of the page and the parameters of the table forming the frame

gyakorlati vizsga 0803 10 / 12 2009. május 15.

Informatika angol nyelven — emelt szint Azonosító jel:

4. Vending machine

Chocolate Store Ltd. operates chocolate vending machines in several places in the city. One can buy many different types of chocolates from the machines by inserting coins into the machines. 1, 2, 5, 10, 20, 50 and 100 pinny-penny coins can be used for the purchase. Only one type of chocolate can be bought at a time. During the purchase one must select the choco-late first, then set the required number of chocolates and finally insert the money into the ma-chine. If more money was inserted than required, the machine gives back the change together with the chocolate. If the machine does not contain the required number of chocolates or an insufficient amount of money was inserted into the machine, then the purchase fails.

File csoki.txt contains the important data of the chocolates sold in one of the vending machines. The first line contains the number of the compartments of the machine (at most 100). From the second line onwards each line contains three numbers, the data series of one compartment in each line. The first number is the serial number of the compartment, the sec-ond is the number of chocolates in the compartment and the third is the unit price. One com-partment can hold at most 100 bars of chocolate, the price of one bar is at most 300 pinny-penny. The numbering of the compartments starts from one and is continuous.

The data of the purchases are given in file vasarlas.txt. The first line contains the number of purchases, at most 100. The following lines contain 9 numbers each that represent the data of a purchase as follows: the first number is the number of compartment selected, the second is the required number of chocolates, the following numbers show the number of the different types of coins inserted into the machine. The first stands for the 1 pinny-penny coins and the others follow in increasing order, the last being the number of the 100 pinny-penny coins. No number in the file can be greater than 100.

For example: csoki.txt

23 1 23 76 2 8 111 3 0 0 …

The 3rd line shows that the 2nd compartment contains 8 chocolates whose unit price is 111 pinny-penny. vasarlas.txt

19 2 3 1 1 0 1 1 0 3 2 6 0 0 0 0 0 0 7 1 2 2 0 0 0 0 0 2 …

The 3rd line shows that the second customer chose 6 chocolates from the 2nd compartment, inserted 7 100-pinny-penny coins and no other types of coins into the machine.

Create a program that answers the following questions. Save the source code of the pro-gram as automata.

Before the solution of each exercise part display the number of the exercise on the screen. If you ask a data from the user, display the value that you ask (for example in the case of Ex-ercise 4 display “Exercise 4: Enter the amount of money.”).

Page 11: INFORMATIKA ANGOL NYELVEN - oktatas.hu...Informatika angol nyelven — emelt szint Azonosító jel: 4. Set the colours of the page and the parameters of the table forming the frame

gyakorlati vizsga 0803 11 / 12 2009. május 15.

Informatika angol nyelven — emelt szint Azonosító jel:

1. Load the data found in files csoki.txt and vasarlas.txt and solve the following exercises using them. If you can not load the files, enter the data in the first 8 lines of the files into the program and work with those.

2. What is the total value of the chocolate in the machine? Write the answer on the screen in a form similar to the following: “The total value of the chocolate in the ma-chine is 24817 pinny-penny.”.

3. Write the number of the compartments which someone attempted to buy chocolate from. Display the number of each compartment only once. Display the numbers with spaces be-tween them.

4. Ann would like to buy herself and her friends 7 identical chocolates. Ask the amount of money intended for the chocolates. Write the number of the compartments from which she can choose on the screen. Display the numbers of the compartments with spaces between them.

5. Peter Smart always wants to pay exactly as much as the required sum. Besides this, he wants to pay in such a way that he hands over the smallest number of coins, notes possi-ble. Ask the number of a compartment and the number of chocolates and then display how many of the different coins used Peter should insert into the machine. Display only the re-quired coin types. One line should contain one coin type; first the value of the coin and then the number of coins should be displayed. You do not have to examine whether the compartment contains enough chocolates. During the solution you can use the following algorithm as a hint: Find the type with the largest value that does not exceed the sum to be paid. You should use one of this coin type. Decrease the sum to be paid by the value of the coin type and then start the algorithm again if the sum is not zero. This algorithm works in the case of the coin types used in the exercise, but there may be sets of types where it can not be used.

6. Write into file rekesz7.txt the number of the purchases during which chocolates were bought from the 7th compartment and the number of chocolates bought as well. Do not forget that the number of chocolates in the compartment decreases with each successful purchase. Display one purchase attempt per line. The number of the purchase attempt should appear in the beginning of the line and next to it, separated by a tab (ASCII code: 9) the result of the purchase should be displayed. In the case of a successful purchase the result is the number of chocolates. If the number of chocolates was less than required, write the message “not enough chocolate” next to the number of the purchase. If the sum inserted by the customer into the machine is less than required, write text “not enough money was inserted” into the file. If a purchase can fail due to several reasons, it is enough to display only one of these.

45 marks

Page 12: INFORMATIKA ANGOL NYELVEN - oktatas.hu...Informatika angol nyelven — emelt szint Azonosító jel: 4. Set the colours of the page and the parameters of the table forming the frame

gyakorlati vizsga 0803 12 / 12 2009. május 15.

Informatika angol nyelven — emelt szint Azonosító jel:

Maximum

mark Achieved

mark Signature of examiner

Word processing, presentation, graphics, web page composition 1. Puffballs

30

Worksheet processing 2. Car wash 15

Database management 3. Prime Ministers 30

Algorithmisation, data modelling 4. Vending machine 45

TOTAL MARK OF THEPRACTICAL EXAM PART 120

Date: ………………………. __________________________________________________________________________

Elért pontszám/ Achieved

mark

Javító tanár aláírása/ Signature of

examiner

Programba beírt pontszám/Mark written into program

Szövegszerkesztés, prezentáció, grafika, weblapkészítés/ Word processing, presentation, graphics, web page composition

Táblázatkezelés/ Worksheet processing

Adatbázis-kezelés/ Database management

Algoritmizálás, adatmodellezés/ Algorithm, data modelling

jegyző/registrar

of the Board of Examiners Dátum/Date: ……………………….