informatika angol nyelvendload.oktatas.educatio.hu/erettsegi/feladatok_2015osz_emelt/e_infa… ·...

16
Informatika angol nyelven emelt szint — gyakorlati vizsga 1421 Azonosító jel: INFORMATIKA ANGOL NYELVEN EMELT SZINTŰ GYAKORLATI VIZSGA 2015. október 16. 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 EMBERI ERŐFORRÁSOK MINISZTÉRIUMA ÉRETTSÉGI VIZSGA 2015. október 16.

Upload: others

Post on 17-Oct-2020

1 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: INFORMATIKA ANGOL NYELVENdload.oktatas.educatio.hu/erettsegi/feladatok_2015osz_emelt/e_infa… · Lazarus Perl 5 ... line so that it does not touch picture metro.png and does not

Informatika angol nyelven emelt szint — gyakorlati vizsga 1421

Azonosító jel:

INFORMATIKA ANGOL NYELVEN

EMELT SZINTŰ GYAKORLATI VIZSGA

2015. október 16. 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

EMBERI ERŐFORRÁSOK MINISZTÉRIUMA

ÉR

ET

TS

ÉG

I V

IZ

SG

A ●

20

15

. o

któ

be

r 1

6.

Page 2: INFORMATIKA ANGOL NYELVENdload.oktatas.educatio.hu/erettsegi/feladatok_2015osz_emelt/e_infa… · Lazarus Perl 5 ... line so that it does not touch picture metro.png and does not

gyakorlati vizsga 1421 2 / 16 2015. október 16.

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 to the identification number found on the exercise sheet. Check that the directory that corresponds to the number found on the exercise sheet is accessible; if it is not accessible, notify the supervising 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 can not be evaluated. If you solve the database management exercise with LibreOffice Base, you should submit the SQL commands describing update queries either as part of the LibreOffice Base database file or as a separate text file. If you submit them as a text file, the name of the text file should refer to its contents clearly (e.g. SQL-commands.txt) and the required query name should be displayed next to the command. The submitted program can be evaluated only if the candidate created the source file(s) that correspond to the chosen programming environment in the exam directory and it/they contain(s) the source codes that belong to the solution of the exercise parts. The source files can be found in the exam directory. It is suggested that you read through the exercises first and 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 duration of the exam. If the problem is not of computer nature, the examiner should take the description of the case in the record into consideration. (The system administrator cannot help the candidate with the solution of the exercises.) At the end of the exam you should indicate the number and the 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 Programming environment:

FreePascal GCC Visual Studio 2013 Express Lazarus Perl 5 JAVA SE Python

Page 3: INFORMATIKA ANGOL NYELVENdload.oktatas.educatio.hu/erettsegi/feladatok_2015osz_emelt/e_infa… · Lazarus Perl 5 ... line so that it does not touch picture metro.png and does not

gyakorlati vizsga 1421 3 / 16 2015. október 16.

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

1. Metro history

The metro network of the capital is the backbone of mass transit. The history of the construction of the lines dates back to the end of the 19th century. Your task is to create the document that presents the history of the four metro lines according to the example and the description.

The text required for the preparation of the document can be found in file metro_source.txt. The pictures to be inserted into the document are metro.png, m1.png, m1_hosoktere.jpg, m2_blaha.jpg, m3_nagyvaradter.jpg and m4_tbm.jpg.

Create the document using a word processor program and file metro_source.txt. Save your work as metrohistory in the default format of the program.

1. The page size of the document is A4 and the orientation is portrait. Set the top and bottom margins to 2.5 cm (if in the word processor used by you the header and the footer decrease the size of the text body, then set the top and bottom margins to 1 cm). Set the right and left margins to 2.2 cm.

2. Use font type Times New Roman (Nimbus Roman) and font size 12 points throughout the document if it is not specified else in the exercise. Use a spacing of 6 points before the paragraphs. Set single line spacing.

3. Set the alignment of the paragraphs according to the example. Set the indent of the first lines of the required paragraphs to 1 cm according to the example.

4. The font type of the titles in the document is Arial (Nimbus Sans) and the font style is bold. Set the font size of the main title to 20 points and the subtitles to 14 points. Set a spacing of 12 points before the titles and 6 points after them.

5. Ensure that the description of the history of metro lines 3 and 4 starts on a new page according to the example without using empty paragraphs.

6. Insert picture metro.png into the header of the document and align it left, then set its width to 1.5 cm keeping the aspect ratio.

7. Create a drawing next to the picture according to the example. The length of the line with rounded ends is 14 cm, its width is at least 10 points and its colour is dark blue. Place the line so that it does not touch picture metro.png and does not extend beyond the margin.

8. Fit 7 circles on the line. The sides of the containing square of the circles is 0.8 cm. Each circle is dark gray and their border is red. Distribute the circles evenly on the line in horizontal direction according to the drawing. Align the line, the circles and picture metro.png in vertical direction.

9. Use automatic page numbering centered in the footer. The font type and the size of the page numbers should be the same as of the text body.

The exercise continues on the next page.

Page 4: INFORMATIKA ANGOL NYELVENdload.oktatas.educatio.hu/erettsegi/feladatok_2015osz_emelt/e_infa… · Lazarus Perl 5 ... line so that it does not touch picture metro.png and does not

gyakorlati vizsga 1421 4 / 16 2015. október 16.

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

10. Create a footnote to the first occurrence of shallow subway. Type text “Popular name” into the footnote. Set the font size of the footnote to 11 points.

11. Convert the text part that belongs to subtitle “Lines” into a table. The table is aligned centered and its width is 15.5 cm. Set the column widths so that the text in them fits into one line.

12. Align the text in the table centered or left in horizontal direction according to the example. The background colour of the first row is light blue and the font style of the text is bold. Do not use spacing for the text in the table.

13. Insert picture m1.png into the second cell of the first column of the table. Set the width and the height of the picture to 0.4 cm.

14. Insert the symbols (special characters) similar to picture m1.png representing the numbers of metro lines 2, 3 and 4 into the remaining cells of the first column. The colour of the symbol should be red, RGB(199,25,27) for line 2, blue, RGB(0,83,151) for line 3 and green, RGB(65,165,51) for line 4. Set the size of the symbols to 14 points.

15. Insert one picture for the history of each metro into the document according to the example. Align the pictures to the right margin on odd sides and to the left margin on even sides. Set the width of the pictures to 8 cm keeping the aspect ratio.

Metro line 1 m1_hosoktere.jpg

Metro line 2 m2_blaha.jpg

Metro line 3 m3_nagyvaradter.jpg

Metro line 4 m4_tbm.jpg

16. Place the captions under the pictures. You can find the text of the captions in the source file between “**” (asterisk) symbols. Insert these texts aligned centered relative to the pictures in horizontal direction (without the “*” characters). The font size of the captions is 10 points, the font style is italics.

30 marks

Page 5: INFORMATIKA ANGOL NYELVENdload.oktatas.educatio.hu/erettsegi/feladatok_2015osz_emelt/e_infa… · Lazarus Perl 5 ... line so that it does not touch picture metro.png and does not

gyakorlati vizsga 1421 5 / 16 2015. október 16.

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

Example for the Metro history exercise:

The example continues on the next page.

Page 6: INFORMATIKA ANGOL NYELVENdload.oktatas.educatio.hu/erettsegi/feladatok_2015osz_emelt/e_infa… · Lazarus Perl 5 ... line so that it does not touch picture metro.png and does not

gyakorlati vizsga 1421 6 / 16 2015. október 16.

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

Example for the Metro history exercise:

Page 7: INFORMATIKA ANGOL NYELVENdload.oktatas.educatio.hu/erettsegi/feladatok_2015osz_emelt/e_infa… · Lazarus Perl 5 ... line so that it does not touch picture metro.png and does not

gyakorlati vizsga 1421 7 / 16 2015. október 16.

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

Example for the Metro history exercise:

Page 8: INFORMATIKA ANGOL NYELVENdload.oktatas.educatio.hu/erettsegi/feladatok_2015osz_emelt/e_infa… · Lazarus Perl 5 ... line so that it does not touch picture metro.png and does not

gyakorlati vizsga 1421 8 / 16 2015. október 16.

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

2. Trade

The trade relationship between countries holds mutual economic benefits. Usually one of the countries makes a proposal for buying and if an agreement is concluded, then the other country delivers the goods in the predefined period.

File deliveries.txt, which is a UTF-8 encoded file tagged by tabs contains the details of the trade relationships of countries trading with each other in an imaginary economic region in years 2012 and 2013. The table contains the data of these two years only. Your task is to process these data based on the description and the example.

During the solution take the followings into consideration. • Use a formula or function in the solution. • If required, you can perform auxiliary calculations to the right of column J. • The solution should give the correct result even if the source data are modified or the

parameters are changed. • There are exercise parts that use the results from a previous question. If you could not

solve the previous part entirely, use its solution as it is, or instead of an expression resulting in a number enter a number of the correct magnitude and work on with it. This way you can receive marks for these exercise parts as well.

1. Import text file deliveries.txt, which is UTF-8 encoded and tagged by tabs into the spreadsheet processor starting from cell A1. Save your work as trade in the default format of the spreadsheet processor.

2. In the cells of range F14:F219 determine the length of the delivery time in days.

3. In the cells of range B2:C11 determine the number of purchases and the number of sales of each country in the given period using a single formula that is copied in the whole range.

4. In the cells of range D2:D11 give the number of trades, that is, the sum of purchases and sales.

5. In the cells of range E2:E11 determine the average number of days set in the agreements for the delivery of the sold goods for each country. If a country does not appear as seller in any trade relationship, then leave the cell blank. Display the result with two decimal figures.

6. In cell H2 determine the name of the country with the highest number of trades. As a preparation for the solution, display the maximum of the trade relationships of the countries in cell G2.

7. In cells G6 and H6 determine the number of deliveries that fall into 2012 and 2013 completely. In cell I6 determine the number of deliveries that span over the two years.

Page 9: INFORMATIKA ANGOL NYELVENdload.oktatas.educatio.hu/erettsegi/feladatok_2015osz_emelt/e_infa… · Lazarus Perl 5 ... line so that it does not touch picture metro.png and does not

gyakorlati vizsga 1421 9 / 16 2015. október 16.

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

8. Format the table according to the example taking the followings into consideration:

a. All text in rows 1 and 13 should have bold font style. Set the alignment and the line break according to the example.

b. Merge the cells of range G4:I4, set bold font style for its content and align the cells of range G1:I6 centered horizontally.

c. Set a thin border for each cell of the worksheet that contains data or formula. The cells to the right of column J and blank cells should not have a border.

Example:

15 marks

Page 10: INFORMATIKA ANGOL NYELVENdload.oktatas.educatio.hu/erettsegi/feladatok_2015osz_emelt/e_infa… · Lazarus Perl 5 ... line so that it does not touch picture metro.png and does not

gyakorlati vizsga 1421 10 / 16 2015. október 16.

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

3. Sound films

Between the two World Wars the film industry prospered in Hungary. With the spreading of sound film more and more, even several dozens of films, were produced each year. The database processes the main data of these films.

1. Create a new database named sound. Import the three text files, which are UTF-8 encoded and tagged by tabs (films.txt, roles.txt, people.txt) into the database with the same name as the file name (films, roles, people). (Table roles contains the roles in the films. It establishes connection between table films and the people participating in the production of the films.) The first line of the files contains the field names. Upon creation set the suitable types and the primary keys.

Tables:

films (id, title, production, length, firstshown, youtube)

id The identifier of the film (number), this is the key title The title of the film (text), each film has a unique title production The year when the production of the film started (number) length The length of the film measured in minutes (number) – in the case of

films that can be found on Youtube the length of the video rounded to minutes, if the film is not available anywhere else, then it is blank

firstshown The date of the first showing (premiere) of the film (date) – if it is not available, then it is blank

youtube The film was available on Youtube at the time of data capture (Boolean)

roles (id, filmid, personid, role)

id The identifier of the role (number), this is the key filmid The identifier of the film that the role is connected with (number), it

serves as a foreign key personid The identifier of the person that the role is connected with (number), it

serves as a foreign key role The name of the role (text), for example director, actor etc.

people (id, pname, gender)

id The identifier of the person (number), this is the key pname The name of the person (text), in the solution you can make use of the

fact that each name is unique gender The gender of the person (text) – its value is man or woman

Page 11: INFORMATIKA ANGOL NYELVENdload.oktatas.educatio.hu/erettsegi/feladatok_2015osz_emelt/e_infa… · Lazarus Perl 5 ... line so that it does not touch picture metro.png and does not

gyakorlati vizsga 1421 11 / 16 2015. október 16.

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

In the solution of the following exercises save the queries with the names given in brackets. Pay attention to displaying exactly the required fields in the solution.

2. Create a query that gives the title and the year of production of the films whose date of first showing or length is not known. Display the films in the order of their year of production. (2notknown)

3. Create a query that gives the titles of the films that were shown in the year when their production started. (3sameyear)

4. Create a query that gives the number of days required to watch the films available on Youtube, if you devoted 10 hours a day to it. (4days)

5. On 24 December 1944 the Soviet troops surrounded the capital, which opened a new stage in the siege of Budapest. Create a query that gives the date of the last film premiere before the siege. (5siege)

6. Kabos Gyula was one of the most famous actors of his era. The database contains each film he played a role in. Create a query that gives the average number of films he played a role in per year from the beginning to the end of his film career. Use the years of production to determine the length of the film career. (6kabos)

7. The members of a secondary school film club decided to watch film “Pesti mese” in which Turay Ida played. However, before the watching it turned out that almost everybody saw the film, so they would like to choose another one. Use a query to create a list of the title of films that are available on Youtube, Turay Ida plays in them and are not longer than Pesti mese. (7turay)

8. Pethes Ferenc was also employed by directors gladly, he played in a considerable number of films. Are there any people whom he did not work with? Create a query that gives these people when fit into the following query. (8pethes)

SELECT pname FROM people WHERE id NOT IN ( 8pethes )

30 marks

Page 12: INFORMATIKA ANGOL NYELVENdload.oktatas.educatio.hu/erettsegi/feladatok_2015osz_emelt/e_infa… · Lazarus Perl 5 ... line so that it does not touch picture metro.png and does not

gyakorlati vizsga 1421 12 / 16 2015. október 16.

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

4. Heads or tails

If an unbiased coin is tossed, then the value of the coin (Tails, T) has the same probability of showing after falling as the other side that contains the coat of arms (heads, H). Because of this decision by “tossing a coin” if used frequently, for example this method is used to decide which team starts a football match.

Your task is the simulation of the tossing of a coin and the analysis of sequences acquired by tossing a coin. In the exercises T stands for tails and H stands for heads. For example a sequence of 5 tosses can be:

T T H T H

Create a program named headsortails to solve the following exercises. Before displaying the exercise parts that display data on the screen or request data from the user display the exercise number on the screen as well as the data displayed or requested. Displaying without accents is acceptable.

1. Simulate the tossing of a coin where heads and tails have the same probability. Display the result on the screen according to the example.

2. Request a bet from the user and then simulate the tossing of a coin. Display the user’s guess and the result of the toss on the screen, then inform the user about his/her result in the following format: “You got it.” or “You did not get it.”.

File trial.txt contains the outcome of a sequence of tosses. As the length of the sequence is not known, solve the following exercises without storing all data simultaneously in the primary memory. You can assume that you will not have more than one million data.

3. Determine the number of tosses in the trial and display the answer according to the example.

4. What is the relative frequency of heads in the trial? (The relative frequency of heads is the ratio of the number of tosses resulting in a head and the total number of tosses.) Display the relative frequency on the screen according to the example with an accuracy of two decimal figures in percent format.

5. How many times did it occur in the trial that exactly two heads were tossed after each other? Display the answer on the screen according to the example. (You can assume that the trial contains at least 3 tosses.)

For example in sequence THHHHTTHHTHHHTHH it occurred twice that exactly two heads were thrown after each other.

6. Find the length of the longest subsequence that contained only heads. Display the answer on the screen according to the example and give the position of the first toss of such a sequence. (The numbering of the members of the trial starts with one.)

Page 13: INFORMATIKA ANGOL NYELVENdload.oktatas.educatio.hu/erettsegi/feladatok_2015osz_emelt/e_infa… · Lazarus Perl 5 ... line so that it does not touch picture metro.png and does not

gyakorlati vizsga 1421 13 / 16 2015. október 16.

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

It is assumed by many that if many heads have been tossed after each other, then the next toss is more likely to show tails than heads. The following exercise checks this assumption.

7. Create and store in the memory 1000 sequences consisting of four tosses. Count the cases where a three-element “all-heads” sequence was followed by another heads and by tails. Write the results into file tosses.txt such that the first line contains the results and the second line contains the toss sequences in a single line separated by single spaces.

For example:

HHHH: 12, HHHT: 14 HTHT TTTH THTH TTTT HHTT HHHH TTHT HHTT HHHT …

Example (created based on the source file, contains real data):

45 marks

Page 14: INFORMATIKA ANGOL NYELVENdload.oktatas.educatio.hu/erettsegi/feladatok_2015osz_emelt/e_infa… · Lazarus Perl 5 ... line so that it does not touch picture metro.png and does not

gyakorlati vizsga 1421 14 / 16 2015. október 16.

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

Page 15: INFORMATIKA ANGOL NYELVENdload.oktatas.educatio.hu/erettsegi/feladatok_2015osz_emelt/e_infa… · Lazarus Perl 5 ... line so that it does not touch picture metro.png and does not

gyakorlati vizsga 1421 15 / 16 2015. október 16.

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

Sources:

1. Metro history

http://hu.wikipedia.org/wiki/Budapesti_metr%C3%B3 http://www.klimaguru.hu/2010/04/4-metro-epitese-klimatechnikaja/ http://eduline.hu/segedanyagtalalatok/letolt/3691 http://fortepan.hu

3. Sound films

http://hu.wikipedia.org/wiki/1945_előtt_készült_magyar_hangos_filmek_listája http://youtube.com http://port.hu http://hangosfilm.hu http://mandarchiv.hu/film

Page 16: INFORMATIKA ANGOL NYELVENdload.oktatas.educatio.hu/erettsegi/feladatok_2015osz_emelt/e_infa… · Lazarus Perl 5 ... line so that it does not touch picture metro.png and does not

gyakorlati vizsga 1421 16 / 16 2015. október 16.

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

maximum

mark achieved

mark Word processing, presentation, graphics, web page creation 1. Metro history

30

Spreadsheet processing 2. Trade

15

Database management 3. Sound films

30

Algorithmisation, data modelling 4. Heads or tails

45

Mark of the practical exam part 120

examiner Date: ……………………….

__________________________________________________________________________

elért pontszám egész számra

kerekítve/ achieved mark

rounded to an integer

programba beírt egész pontszám/

mark written into program as an integer

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

Táblázatkezelés/ Spreadsheet processing

Adatbázis-kezelés/ Database management

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

javító tanár/examiner jegyző/registrar Dátum/Date: ............................................ Dátum/Date: .................................................