12
Informatika angol nyelven emelt szint — gyakorlati vizsga 1621 EMBERI ERŐFORRÁSOK MINISZTÉRIUMA Azonosító jel: INFORMATIKA ANGOL NYELVEN EMELT SZINTŰ GYAKORLATI VIZSGA 2017. október 25. 8:00 Időtartam: 300 perc Beadott dokumentumok Piszkozati pótlapok száma Beadott fájlok száma A beadott fájlok neve ÉRETTSÉGI VIZSGA • 2017. október 25.

INFORMATIKA ANGOL NYELVEN - …dload.oktatas.educatio.hu/erettsegi/feladatok_2017osz_emelt/e...SQL commands describing update queries either as part of the LibreOffice ... (e.g. SQL_commands.txt)

Embed Size (px)

Citation preview

Page 1: INFORMATIKA ANGOL NYELVEN - …dload.oktatas.educatio.hu/erettsegi/feladatok_2017osz_emelt/e...SQL commands describing update queries either as part of the LibreOffice ... (e.g. SQL_commands.txt)

Informatika angol nyelven emelt szint — gyakorlati vizsga 1621

EMBERI ERŐFORRÁSOK MINISZTÉRIUMA

Azonosító jel:

INFORMATIKA ANGOL NYELVEN

EMELT SZINTŰ GYAKORLATI VIZSGA

2017. október 25. 8:00

Időtartam: 300 perc

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

A beadott fájlok neve

ÉR

ET

TS

ÉG

I V

IZS

GA

• 2

01

7.

ok

tób

er 2

5.

Page 2: INFORMATIKA ANGOL NYELVEN - …dload.oktatas.educatio.hu/erettsegi/feladatok_2017osz_emelt/e...SQL commands describing update queries either as part of the LibreOffice ... (e.g. SQL_commands.txt)

Informatika angol nyelven emelt szint

1621 gyakorlati vizsga 2 / 12 2017. október 25.

Azonosító jel:

Important information You have 300 minutes to solve the practical exercises. Devices allowed for the exam: computer assigned to the candidate, 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 code 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(s) to the chosen programming environment in the exam directory and it contains the source code that belongs 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, 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 correcting teacher should take the description 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 you work with and the programming environment you use. Operating system: Windows Linux Programming environment:

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

Page 3: INFORMATIKA ANGOL NYELVEN - …dload.oktatas.educatio.hu/erettsegi/feladatok_2017osz_emelt/e...SQL commands describing update queries either as part of the LibreOffice ... (e.g. SQL_commands.txt)

Informatika angol nyelven emelt szint

1621 gyakorlati vizsga 3 / 12 2017. október 25.

Azonosító jel:

1. Fig Fig is a Mediterranean fruit that grows better and better in Hungary due to the slow climate

change. Create a web page and a word document that introduces the fruit and its use. Creation of the web page Sources: base.html, figsource.txt, fruit.jpg and figdrawing.png.

1. Use file base.html for the creation of the web page. Save the finished web page as fig.html. File base.html contains a table with two columns and three rows. You have to insert the texts and the pictures into this table.

2. Display text “Everything about the fig” in the header of the browser. The background colour is light grey (colour with code #F0F0F0) and the colour of the links is grey (colour with code #747474) in each state.

3. Convert the existing table according to the followings. The table should be aligned centred horizontally, its width should be 1000 pixels, within that the width of the left column should be 150 pixels. The table should not have a border. Set the cell padding to 2 points.

4. In the second row of the table set the background colour of the left cell to light green (colour with code #9BCE11).

5. Insert all text from file figsource.txt into the corresponding cells of the table. The title should be displayed in the left cell of the first row, the table of contents in the right cell of the second row, the remaining text in the right cell of the third row.

6. Set that in the first row of the table: a. word “Fig” is displayed with style Heading 1 aligned centred horizontally in the

left cell,

b. three copies of picture figdrawing.png are displayed in the right cell with a horizontal alignment shown in the example.

7. Create the table of contents in the right cell of the second row of the table using style Heading 2. Convert the text tagged by “\” marks into a table with two columns and four rows that does not have a border. Do not display the tag mark “\” in the text.

8. Insert picture fruit.jpg into the left cell of the third row of the table. Align the picture vertically according to the example.

9. Set style Heading 2 for the subtitles in the text in the right cell of the third row of the table according to the table of contents. Create a style setting that changes the font colour of the titles with style Heading 2 to light green (colour with code #9BCE11).

10. Insert bookmarks for the first four subtitles in the text. The names of the bookmarks are arbitrary but they should not contain accents.

11. Convert the first four subtitles in the table of contents into links that lead to the corresponding part of the page. For the other four subtitles set links to document use, which is described below.

The exercise continues on the next page.

Page 4: INFORMATIKA ANGOL NYELVEN - …dload.oktatas.educatio.hu/erettsegi/feladatok_2017osz_emelt/e...SQL commands describing update queries either as part of the LibreOffice ... (e.g. SQL_commands.txt)

Informatika angol nyelven emelt szint

1621 gyakorlati vizsga 4 / 12 2017. október 25.

Azonosító jel:

Example:

fig.html

Creation of the word document Sources: figsource.txt, plant.jpg and aplate.jpg.

12. Create file use using a word processor in the default format of the program. The unformatted text can be found in file figsource.txt from subtitle “HOW TO COOK?” to the end of the file.

13. Set a uniform font type Times New Roman (Nimbus Roman) and a font size of 13 points for the text. Use a spacing of 0 points before and 3 points after the paragraphs where the exercise does not specify else. Set single line spacing in the document, align the paragraphs justified.

14. Set page size A4 and uniform margins of 1.4 cm in the document. 15. Type in the title: “Questions about the use of figs”, format the text using font style small

caps and font size 23 points. Set a uniform spacing of 6 points before and after the title. 16. Modify style Heading 2 according to the followings:

set the font size to 19 points, the font colour to black, the font type to Times New Roman (Nimbus Roman);

set a spacing of 6 points before and after it; border the paragraph from the bottom using a thin black line through the whole

width of the text body. 17. Format the four subtitles using style Heading 2. 18. Set automatic hyphenation in the document.

19. Insert picture aplate.jpg after the title and picture plant.jpg for the last paragraph using the alignment shown in the example. Change the width of picture plant.jpg to 6 cm keeping the aspect ratio. Decrease the size of picture aplate.jpg keeping the aspect ratio so that the document fits on one page but the width of the picture should not be smaller than 9 cm.

30 marks

Page 5: INFORMATIKA ANGOL NYELVEN - …dload.oktatas.educatio.hu/erettsegi/feladatok_2017osz_emelt/e...SQL commands describing update queries either as part of the LibreOffice ... (e.g. SQL_commands.txt)

Informatika angol nyelven emelt szint

1621 gyakorlati vizsga 5 / 12 2017. október 25.

Azonosító jel:

Example for the Fig exercise:

use

Page 6: INFORMATIKA ANGOL NYELVEN - …dload.oktatas.educatio.hu/erettsegi/feladatok_2017osz_emelt/e...SQL commands describing update queries either as part of the LibreOffice ... (e.g. SQL_commands.txt)

Informatika angol nyelven emelt szint

1621 gyakorlati vizsga 6 / 12 2017. október 25.

Azonosító jel:

2. Plough-land In order to determine the exact size, condition and the expected yield of cultivated areas,

aerial photos are taken about agricultural areas. By combining several overlapping aerial photos map sections are created and then these are evaluated.

File aerialphoto.txt contains the partially processed data of a map section with north-south orientation. One character in the file corresponds to an area of 12x12 metres. The characters mark the corresponding utilization:

Utilization Character Colour Wheat plantation W light green Sunflower plantation S orange Maize plantation M dark green Cartway C black Uncultivated area o

Solve the following exercises using a spreadsheet processor. 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 enter a reasonable result and work on with that. This way you can receive marks for these exercise parts as well.

1. Import text file aerialphoto.txt, which is tagged by tabs and has UTF-8 encoding, into the spreadsheet processor starting from cell A1. Set the name of the worksheet to aerialphoto. Save your work as ploughland in the default format of the spreadsheet processor.

The visual display of data facilitates the evaluation of the utilization of the land area. Format the cells representing the 50×50 area units to display them in a map-like way and colour them depending on their content according to the followings. 2. Set the font size in the cells of range A1:AX50 to 8 points. Set the width of columns A:AX

and the height of rows 1:50 to 16 pixels (0.42 cm). 3. Use conditional formatting to display the coloured map. With the exception of

“Uncultivated area” (marked by character “o”) set the background colour and the character colour of the cells according to the table above.

4. Insert a new worksheet named results into the table. Insert the texts shown in the example, which can also be found in the UTF-8 encoded file text.txt, into the worksheet. Solve the following exercises on this worksheet.

5. In the cells of range C2:C6 give the number of area units per forms of utilization on the map using a single formula that can be copied flawlessly.

6. With reference to cells C2:C6, in the cells of range D2:D6 calculate the equivalent area of the different forms of utilization in hectares. Round the result to two decimal figures using a function. (Help for conversion: 1 area unit is 12×12 metres on the map, and 1 ha = 10 000 m2.)

An area can be uncultivated for several reasons, for example soil with low fertility, inland waters or soil with rocks and pebbles.

Page 7: INFORMATIKA ANGOL NYELVEN - …dload.oktatas.educatio.hu/erettsegi/feladatok_2017osz_emelt/e...SQL commands describing update queries either as part of the LibreOffice ... (e.g. SQL_commands.txt)

Informatika angol nyelven emelt szint

1621 gyakorlati vizsga 7 / 12 2017. október 25.

Azonosító jel:

7. The southern part of the map section contains a single uncultivated area covered by varying amount of inland waters. In cell E2 determine the ordinal number of the column of the first such area unit in row 40.

8. Set the alignment, text wrapping and cell width of the cells in range A1:E1 on worksheet results according to the example.

9. Create a pie chart to show the size of the areas of different forms of utilization. Set the title and the structure of the chart according to the example. The percentage labels should appear in the sectors. Place the chart on a separate worksheet.

Example:

15 marks

Page 8: INFORMATIKA ANGOL NYELVEN - …dload.oktatas.educatio.hu/erettsegi/feladatok_2017osz_emelt/e...SQL commands describing update queries either as part of the LibreOffice ... (e.g. SQL_commands.txt)

Informatika angol nyelven emelt szint

1621 gyakorlati vizsga 8 / 12 2017. október 25.

Azonosító jel:

3. National team The Hungarian national soccer team has earned many nice victories since it first played in

1902. In the beginning the appointed team manager only compiled the team, but later he also provided professional management. This database contains the matches played by the Hungarian national team and its managers until the end of the European Championship of 2016.

1. Create a new database named nationalteam. Import the three text files provided (matches.txt, appointments.txt, managers.txt) into the database with table names that corresponds to the file names (matches, appointments, managers). Each text file is tagged by tabs and is UTF-8 encoded. The first line of the files contains the field names. Upon creation set the suitable types and the primary keys.

Tables: matches (id, mdate, time, city, stadium, spectators, opponent, goalsfor, goalsagainst, tournament)

id The identifier of the match (number), this is the key. The value is also the chronological ordinal number of the match, this can be used in the solution.

mdate The date of the match (date) time The starting time of the match (time) – if not known, then empty city The city where the match was played (text) stadium The stadium where the match was played (text) spectators The number of spectators on the match (number) opponent The opponent of the Hungarian national team on the match (text) goalsfor Number of goals scored by the Hungarian team on the match (number) goalsagainst Number of goals scored against the Hungarian team on the match (number) tournament Gives the tournament the given match belongs into (text). In the case of a

tournament it gives the tournament type, in every other case – such as a friendly match – it is empty.

appointments (id, managerid, first, last) id The identifier of the team manager’s appointment (number), this is the key managerid The team manager’s identifier (or of the committee that consists of

several people) that was appointed to compile the national team for a period (number), it serves as a foreign key

first The identifier and ordinal number of the match where the appointment was in effect for the first time(number), it serves as a foreign key

last The identifier and ordinal number of the match where the appointment was in effect for the last time (number), it serves as a foreign key

managers (id, mname, born, died) id The national team manager’s identifier (number), this is the key mname The national team manager’s name, who compiled the Hungarian

national team (text) – in two cases it was a committee, then it contains the list of members. You may use the fact that names are unique.

born The national team manager’s year of birth (number) – if not known or in the case of a committee it is empty

died The national team manager’s year of death (number) – if not known or in the case of a living person or a committee it is empty

Page 9: INFORMATIKA ANGOL NYELVEN - …dload.oktatas.educatio.hu/erettsegi/feladatok_2017osz_emelt/e...SQL commands describing update queries either as part of the LibreOffice ... (e.g. SQL_commands.txt)

Informatika angol nyelven emelt szint

1621 gyakorlati vizsga 9 / 12 2017. október 25.

Azonosító jel:

When solving the following exercises, save the queries and the report with the name given

in brackets. Pay attention to displaying exactly the required fields in the solution. 2. The most prestigious matches are the ones connected to the World Championship, WC.

Create a query using field tournament that displays all data of these matches. (For example the qualification for the World Championship of 1938 is marked as WC-qual-1938.) (2wc)

3. Create a query to determine the manager of the national team on the 500th match. Display only the name. (3500)

4. Create a query that determines which country’s national team the Hungarian team played against on the tournament match that had the most spectators in this millennium (from 2001). Display the date, the name of the opponent and the number of spectators. If there are several such matches, it is enough to display only one. (4most)

5. The national team of Austria usually had a game strength similar to the Hungarian team, but in some cases there was a huge difference in the result. Create a query that lists the Hungary-Austria matches where one team won with a difference of at least 5 goals. Display the date, the city, the number of goals for and goals against. (5austria)

6. Create a query to display the opponents who were always beaten by the Hungarian national team. Display the name of each opponent in concern once. (6always)

7. Create a report that lists the matches played by the Hungarian national team under manager Bicskei Bertalan. The matches should be displayed grouped by year, for textual content use the following example. Ensure that each value is readable. Create a query in preparation for the report. (7bicskei)

30 marks

Page 10: INFORMATIKA ANGOL NYELVEN - …dload.oktatas.educatio.hu/erettsegi/feladatok_2017osz_emelt/e...SQL commands describing update queries either as part of the LibreOffice ... (e.g. SQL_commands.txt)

Informatika angol nyelven emelt szint

1621 gyakorlati vizsga 10 / 12 2017. október 25.

Azonosító jel:

4. Absences File classregister.txt contains the absences in a class in the second semester. The

absences are grouped by days, each day starts with character #, then comes the ordinal number of the month and then the ordinal number of the day separated by one space each. The absences for a given day are given in separate lines per student, the student’s daily absences are described by a character sequence consisting of seven characters. Each character of the character sequence stands for one lesson. Its value is letter O if the student was present on the given lesson, X stands for justified, I stands for unjustified absence, finally letter N stands for the student not having a class at the given time. For example:

# 01 15 Galagonya Alfonz OXXXXXN # 01 16 Alma Hedvig OOOOOIO Galagonya Alfonz XXXXXXX

The above example contains the absences for 15th and 16th January. Galagonya Alfonz would have had six lessons on 15th January, but he was present only on the first lesson, then he missed the other lessons in a justified way. Alma Hedvig would have had seven lessons on 16th January but she missed the 6th lesson in an unjustified way.

The file contains at most 600 lines and the class has at most 50 students. You can assume that there are no two students with the same name in the class and that each student has only one first name and surname. You can make use of the fact that an entry for an absence always consists of 7 characters.

Create a program that uses the data in the file to answer the following questions. Save the source code of the program as absences. (When you write the program, you do not have to check the correctness or the validity of the data given by the user and you can assume that the provided data correspond to the description.)

When you display results of exercise parts that require displaying data on the screen, display the number of the exercise before the data (for example: Exercise 3:). If you request data from the user, display the type and nature of the data to be entered on the screen. When you display results, refer to the meaning of the displayed data. Displays with format different from the example and without accents are also accepted.

1. Import and store the contents of file classregister.txt. 2. Determine and display the number of lines that describe absences in the file. (The above

example contains 3 such entries.) 3. Count and display the total number of justified and the total number of unjustified missed

lessons in the semester. Some teachers assume that students miss certain lessons more frequently. In the next three

exercises you have to prepare for this investigation. 4. Create a function with name dayofweek that determines the day of the week (Monday,

Tuesday etc. for a date (month, day) given as parameter. We know that the given year was not a leap-year and that 1st January was Monday. You can use the following algorithm where the indexing of arrays starts with 0, but you can also create a function that solves the problem in a different way.

Page 11: INFORMATIKA ANGOL NYELVEN - …dload.oktatas.educatio.hu/erettsegi/feladatok_2017osz_emelt/e...SQL commands describing update queries either as part of the LibreOffice ... (e.g. SQL_commands.txt)

Informatika angol nyelven emelt szint

1621 gyakorlati vizsga 11 / 12 2017. október 25.

Azonosító jel:

Function dayofweek(month:integer, day:integer): text daynames[]:= ("Sunday", "Monday", "Tuesday", "Wednesday",

"Thursday", "Friday", "Saturday") startingday[]:= (0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 335) ordinalday:= (startingday[month-1]+day) MOD 7 dayofweek:= daynames[ordinalday] End of function

5. Request a date (month, day) and display the day of the week corresponding to the entered date using function dayofweek.

6. Request the name of a school day of the week and the ordinal number of a lesson on that day (for example: Tuesday 3). Display the total number of absences on the given lesson during the semester.

7. Display the name(s) of the students(s) who missed the most lessons on the screen. If there are several such students, then display the name of each student separated by a single space.

Example for laying out the text outputs:

Exercise 2. The class register contains 139 entries. Exercise 3. Number of missed lessons: justified: 788, unjustified: 18. Exercise 5. Ordinal number of month=2 Ordinal number of day=3 That day was Saturday. Exercise 6. Name of the day=Wednesday Ordinal number of the lesson=3 Then a total of 49 lessons were missed. Exercise 7. Students who missed the most lessons: Kivi Adrienn Jujuba Ibolya

Sources:

1. Fig

http://www.mindmegette.hu/hatarozo/42 Last access: 2016.09.25. http://www.desenhosparacolorireimprimir.com/wp-content/uploads/2013/08/fig-fruit-pictures-coloring-pages-for-kids-boys-girls-35.jpg Last access: 2016.09. 25. http://1.bp.blogspot.com/-4wcA6NbB3xQ/ThXR2gQ_EmI/AAAAAAAAAQA/zgy_LtXFul4/s1600/Fig%2BHarvest.JPG Last access: 2016.09. 25. http://www.deelish.ie/wp-content/uploads/2014/05/Ficus-carica-Bornholm.jpg Last access: 2016.09. 25.

3. National team

http://nela.hu/sel_mch.php Last access: 2016.10.18.

45 marks

Page 12: INFORMATIKA ANGOL NYELVEN - …dload.oktatas.educatio.hu/erettsegi/feladatok_2017osz_emelt/e...SQL commands describing update queries either as part of the LibreOffice ... (e.g. SQL_commands.txt)

Informatika angol nyelven emelt szint

1621 gyakorlati vizsga 12 / 12 2017. október 25.

Azonosító jel:

mark

maximum achieved Word processing, presentation, graphics, web page composition 1. Fig

30

Spreadsheet processing 2. Plough-land 15

Database management 3. National team 30

Algorithmization, data modelling 4. Absences 45

Mark of the practical exam part 120

date examiner

__________________________________________________________________________

pontszáma egész számra kerekítve

elért programba beírt

Szövegszerkesztés, prezentáció, grafika, weblapkészítés

Táblázatkezelés Adatbázis-kezelés Algoritmizálás, adatmodellezés

dátum dátum

javító tanár jegyző