informatika angol nyelvendload.oktatas.educatio.hu/erettsegi/feladatok_2016osz_emelt/e...informatika...

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

Upload: vannguyet

Post on 13-Mar-2018

219 views

Category:

Documents


4 download

TRANSCRIPT

Page 1: INFORMATIKA ANGOL NYELVENdload.oktatas.educatio.hu/erettsegi/feladatok_2016osz_emelt/e...Informatika angol nyelven emelt szint — gyakorlati vizsga 1412 ... (e.g. SQL_commands.txt)

Informatika angol nyelven emelt szint — gyakorlati vizsga 1412

EMBERI ERŐFORRÁSOK MINISZTÉRIUMA

Azonosító jel:

INFORMATIKA ANGOL NYELVEN

EMELT SZINTŰ

GYAKORLATI VIZSGA

2016. október 21. 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

ÉR

ET

TS

ÉG

I V

IZS

GA

• 2

01

6.

ok

tób

er 2

1.

Page 2: INFORMATIKA ANGOL NYELVENdload.oktatas.educatio.hu/erettsegi/feladatok_2016osz_emelt/e...Informatika angol nyelven emelt szint — gyakorlati vizsga 1412 ... (e.g. SQL_commands.txt)

gyakorlati vizsga 1412 2 / 12 2016. október 21.

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 code 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 the 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_2016osz_emelt/e...Informatika angol nyelven emelt szint — gyakorlati vizsga 1412 ... (e.g. SQL_commands.txt)

gyakorlati vizsga 1412 3 / 12 2016. október 21.

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

1. Notification In the course of postal deliveries, if the deliverer does not find the addressee at home, they

leave a notification about the arrival of postal mail in the letterbox. As the service develops, the deliverer equipped with a mobile printing facility can prepare the notifications in advance and prints them only if they are required.

Create the notification according to the description and the example and then generate all notifications based on the mailing data provided. Use the method of mail merge.

Some parts of the text that should appear on the notification are available in file printsource.txt, which is UTF-8 encoded. Create the graphical elements and the other parts of the text based on the example and the description. Pay attention to not including empty paragraphs in the main document.

File mails.csv, which is UTF-8 encoded and tagged by semicolons contains the following information about the mails. The field names are in the first line of the file.

name The addressee’s name address The address to be displayed on the notification sender The sender’s name id The identifier of the mail l, p, o, m, ls Mail type (letter, parcel, postal order, postal matter, large-sized) fields p1, p2, p3 Information on the post office where the mail can be received deliverer The deliverer’s identifier

1. Create the mail merge using file printsource.txt according to the example and the following description. Save the main document as notification in the default format of the word processor.

2. Set the page size of the document to A6, that is, 10.5×14.8 cm and the orientation to landscape. Set the left, right, top and bottom margins to 1.1 cm.

3. The font type of the text body is Arial (Nimbus Sans) and the font size is 8 points if not specified else. In the document the line spacing is single, the paragraphs are aligned justified. Set a spacing of 0 point before and 3 points after the paragraphs (where the description or the example does not require something else). Set bold font style for the fields inserted from the data source.

4. Set the font size of the title to 9 points, the font colour to red and the font style to all caps. Align the title centered horizontally.

The exercise continues on the next page.

Page 4: INFORMATIKA ANGOL NYELVENdload.oktatas.educatio.hu/erettsegi/feladatok_2016osz_emelt/e...Informatika angol nyelven emelt szint — gyakorlati vizsga 1412 ... (e.g. SQL_commands.txt)

gyakorlati vizsga 1412 4 / 12 2016. október 21.

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

5. Create the logo that symbolises postal service shown at the top on the right in the example using the graphical tools of the word processor.

a. Each line of the drawing has dark green colour and a line width of 1.5 points. b. Set the size of the rectangle with rounded corners and without filling to

1.6×1 cm. c. Create the envelope from a rectangle and two triangles. The size of the rectangle

is 1×0.65 cm and the size of the containing box of the two triangles is 0.9×0.43 cm.

d. Set the alignment and the overlapping of the graphical elements according to the example and group the elements.

e. Place the created logo in the top right corner so that it can cover the margins partially but cannot touch the text and the edges of the page. Pay attention to the logo not interfering with the centered alignment of the title.

6. Set the format of the four lines after the title using the fact that the source text is tagged by tabs. Set the position of the tab that corresponds to the alignment shown in the example and fills the space with dotted line to 12.5 cm. Display the text data of the mail by inserting fields name, address, sender and id of the data source with one data per line.

7. Use a table to display the data in the paragraph indicating the type of the mail. Convert the line in the source text that is tagged by tabs into a table according to the example.

a. The table should have 1 row and 10 columns. The cells that are bordered with a thin line in the example have a size of 0.6×0.6 cm. Set the size of the other cells so that the text in them fits into one line.

b. Display the type of the mail in the bordered cells by inserting the contents of fields l, p, o, m and ls of the data source one per cell.

c. Align the contents of the cells centered horizontally and to the bottom vertically. 8. Create a text box (frame) next to the paragraph that contains “Upon delivery payable:” .

a. The size of the text box is 7×2.1 cm and it is aligned left. b. Set the width of the line bordering the text box to 1.25 points and its colour to

red. c. Set a font size of 9 points and a font style of bold in the text box. d. Type in the text “The mail can be received at post office:” using red font colour.

The font colour of the other paragraphs of the text box should be black. Insert the contents of field p1 into the second paragraph. Type the text: “It can be received from the next working day” into the third paragraph. Insert the contents of fields p2 and p3 into the fourth and fifth paragraphs. There should be no spacing between the paragraphs.

9. Set bold font style for the text “Date of notification:” and insert an automatically updated date field into the following line in the format shown in the example, align it centered.

Page 5: INFORMATIKA ANGOL NYELVENdload.oktatas.educatio.hu/erettsegi/feladatok_2016osz_emelt/e...Informatika angol nyelven emelt szint — gyakorlati vizsga 1412 ... (e.g. SQL_commands.txt)

gyakorlati vizsga 1412 5 / 12 2016. október 21.

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

10. Insert field deliverer of the data source after the text “Deliverer’s identifier:”. 11. Set red background and white font colour to highlight the paragraph that is under the text

box in the example. Highlighting should start under the text box in any case, so you can increase the spacing after the previous paragraph if required.

12. Set red font colour and bold font style for the last paragraph of the document. 13. Use hyphenation in the document.

14. Save the created main document as notification. Create a separate file by merging the main document and the data and save it as filledsheets in the default format of the word processor.

Example for the Notification exercise:

30 marks

Page 6: INFORMATIKA ANGOL NYELVENdload.oktatas.educatio.hu/erettsegi/feladatok_2016osz_emelt/e...Informatika angol nyelven emelt szint — gyakorlati vizsga 1412 ... (e.g. SQL_commands.txt)

gyakorlati vizsga 1412 6 / 12 2016. október 21.

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

2. Timetable The timetable of coaches is displayed at each stop: these tables contain the times of

departures of the given service towards the terminal (in the case of terminals the table contains the arrival times). It is possible that a given service does not stop at a given stop, in such cases passing is indicated by a vertical line. In this exercise you have to analyse the timetable of a given coach service. During the solution take the followings into consideration.

Use formulas, functions in the solution. You can perform auxiliary calculations in row 37 or below it. You should get the correct result even if the base data are modified or the parameters are

changed. There are parts in the exercise 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 reasonable number and work on with it. This way you can receive marks for these exercise parts as well.

1. Import the data from file buses.txt, which is UTF-8 encoded and tagged by tabs into the worksheet of the spreadsheet processor according to the example. (Pay attention to displaying the departure times as numbers, in hour:minute format.) Save the table as timetable in the default format of the spreadsheet processor.

You can find the names of the bus stops in column B of the table under each other starting from row 3. Column A gives the distance of the given stop from the initial stop. The other columns of the table contain the departure times of the individual services from the given stop in hour:minute format. Row 2 above the individual services gives the days when the given service is available, for example letter M stands for services available on working days. The description of the notations can be found in range A31:B34. 2. In row 24, in the cells next to Journey time calculate the time required for the individual

services to get from the initial stop to the terminal stop using a formula. Display the results in hour:minute format.

3. In row 25, in the cells next to Number of stops determine the number of stops where the individual services stop (include the initial and the terminal stops as well).

4. You can find the name of a stop in cell B27. In the given row display the times when the bus departs from the given stop using a formula that can be copied flawlessly. Pay attention to the formula remaining correct even if the name of the stop changes and display the result in hour:minute format. (If the given service only passes the stop, then it should be indicated by a vertical line in accordance with the data in the table.)

5. In cell A28 display the current time (the last time when the contents of the table were updated) in hour:minute format using a formula. In the cell next to Next departure determine the time when the next service departs from the given stop after the given time. (Do not take the current day into consideration and you can assume that there is a next service.)

6. Border the cells with horizontal lines under and above rows 3 and 22 and to the right of column B. Set the cell widths so that every data is visible. Align the cells of columns A and B to the right and align the contents of all other cells containing data centered.

Page 7: INFORMATIKA ANGOL NYELVENdload.oktatas.educatio.hu/erettsegi/feladatok_2016osz_emelt/e...Informatika angol nyelven emelt szint — gyakorlati vizsga 1412 ... (e.g. SQL_commands.txt)

gyakorlati vizsga 1412 7 / 12 2016. október 21.

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

7. Create a line chart (line graph) that shows when the first service departs from each stop. The chart should not have a legend and its title should be “The first service”. The chart should cover some data as shown in the example.

Example:

15 marks

Page 8: INFORMATIKA ANGOL NYELVENdload.oktatas.educatio.hu/erettsegi/feladatok_2016osz_emelt/e...Informatika angol nyelven emelt szint — gyakorlati vizsga 1412 ... (e.g. SQL_commands.txt)

gyakorlati vizsga 1412 8 / 12 2016. október 21.

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

3. Merited artists The Merited Artist of the Republic of Hungary prize is a state award that is conveyed

annually. The prize can be received only once even if somebody works in several fields of art. Files people.txt, professions.txt and connecting.txt contain the data of those who received the prize between 2000 and 2013.

1. Create a new database named merited. Import the provided files into the database with table names that correspond to the file names. The files are UTF-8 encoded text files tagged by tabs, their first line contains the field names. Upon creation set the suitable types and the keys.

Tables: people (id, pname, pyear, previous)

id The identifier of the person who received the prize (number), this is the key pname The name of the person who received the prize (text) pyear The year in which he/she received the prize (number) previous The name of the highest award of the person before he/she received the

prize, if he/she had one (text) professions (id, profname)

id The identifier of the records of the table (number), this is the key profname The name of the artistic profession (text)

connecting (profid, persid) profid The identifier of the profession (number), this is the key persid The identifier of the person who received the prize (number), this is the key

Upon solving the following exercises save the queries and the report with the names given in brackets. Pay attention to displaying exactly the required fields in the solution, do not display unnecessary fields. 2. List the names of those who received the prize in 2013 in alphabetical order using a query.

(2prize2013) 3. We are interested in the prize winners who work in the field of ballet, but there are several

professions in this field. Display the name and the profession of those whose profession name contains the word segment “ballet” using a query. (3ballet)

4. Create a query that gives the year in which the highest number of people received the prize and the number as well. (4most)

Page 9: INFORMATIKA ANGOL NYELVENdload.oktatas.educatio.hu/erettsegi/feladatok_2016osz_emelt/e...Informatika angol nyelven emelt szint — gyakorlati vizsga 1412 ... (e.g. SQL_commands.txt)

gyakorlati vizsga 1412 9 / 12 2016. október 21.

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

5. Give the number of artists who belong to the different profession names using a query. In the list display the profession names and the numbers in descending order according to the number. (5numberprof)

6. List the names of those who have the same profession as Pitti Katalin and the year in which they received the prize; list Pitti Katalin as well. (6pitti)

7. Determine the other professions graphics have using a query. The list should not contain the profession name “graphic” and each profession name should be displayed only once. (7graphic)

8. Create a report showing the previous awards of the artists in alphabetical order if this data is available in the database. The list should contain the years in descending order and within them the names in alphabetical order. Create a query or a temporal table to prepare for the creation of the report. Upon creating the report pay attention to the order of the fields, the title and the displayed field names in the example. The format of the report may be different from the example. (8prev)

9. You have to give the name of the artists who have a unique profession, that is, no other

person appears with the same profession in the database, and the year in which they received the prize. Create the query that – used at the suitable place in the following SQL command – gives the correct solution. (9uniquepart) SELECT pname, pyear FROM people WHERE id in ( 9uniquepart );

30 marks

Page 10: INFORMATIKA ANGOL NYELVENdload.oktatas.educatio.hu/erettsegi/feladatok_2016osz_emelt/e...Informatika angol nyelven emelt szint — gyakorlati vizsga 1412 ... (e.g. SQL_commands.txt)

gyakorlati vizsga 1412 10 / 12 2016. október 21.

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

4. Call centre The call centre of a small company accepts the calls of those interested between 8 and

12 o’clock. They can accept only one call at a time. At the end of the calls the next call is switched to immediately.

The calls are managed by an automatic exchange. Upon opening and also later, when the operator becomes free, it switches to the call with the longest waiting time. In the case of calls that come in during working hours – if the caller has to wait – it informs the caller about the number of waiting calls. In the case of calls that come in outside working hours the exchange indicates the next working hour to the client, who can even wait online until then. The operator should accept each call that comes in before the end of the working hours – that is, he/she does not have to accept the one that comes in at 12:00:00 – even if it is switched to only after the end of the working hours.

File calls.txt contains the data of the calls (the time of connection and of disconnection) in the order of the starting time of the call. Each line contains two times in hour, minute, second format. The six numbers are separated from each other by exactly one space. The number of lines is at most 1000. The data relate to one day, they may contain values outside the working hours, each call started on the given day and finished by the end of the day. You can assume that there are – at least two – calls during the working hours. To make handling easier, the caller is identified by the serial number of the time data in the exercise. For example:

7 57 36 7 59 59 7 58 5 8 1 39 7 58 33 7 58 47 8 0 1 8 4 17 8 0 21 8 2 13 …

The example shows the first 5 lines of a file. In this case line 2 shows that the call came in before the start of the working hours but the caller waited until the call centre operator accepted the call. Their conversation started at 8:0:0 and ended at 8:1:39, that is, its duration was exactly 99 seconds. Caller 4 waited until caller 2 finished the call, he/she talked to the call centre operator from 8:1:39 to 8:4:17. Caller 5 was informed by the exchange that there are 2 waiting calls including his/her own. He/she did not wait until being accepted.

It can be seen that a caller could talk to the call centre operator only if the caller started the call before 12 o’clock and finished it after 8 o’clock and later than the end of all earlier calls.

Create a program that uses the data in file calls.txt to answer the following questions. Save the source code of the program as phone. (Upon creating the program you do not have to check the correctness and the validity of the data given by the user, you can assume that the available data are according to the description.)

Before displaying the results of exercise parts that require displaying data on the screen, display the number of the exercise (for example Exercise 3.). If you request data from the user, display the requested data type on the screen. Displays without accents are also accepted.

1. Create function intosecond, which converts a time given in hour, minute, second format into seconds. You should incorporate the function into the solution. Function intosecond(hour, minute, second:integer):integer

2. Read the data in file calls.txt and solve the following exercises using them.

Page 11: INFORMATIKA ANGOL NYELVENdload.oktatas.educatio.hu/erettsegi/feladatok_2016osz_emelt/e...Informatika angol nyelven emelt szint — gyakorlati vizsga 1412 ... (e.g. SQL_commands.txt)

gyakorlati vizsga 1412 11 / 12 2016. október 21.

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

3. Create a statistics that gives the number of incoming calls per hour. You should display one hour-number pair per line on the screen. Display only the hours when there was an incoming call.

4. Display the serial number of the longest call and its duration in seconds on the screen – regardless of whether the caller could talk to the operator or not. In the case of several calls with the same duration it is enough to display only one.

5. Request a point of time during working hours and then display the identifier of the caller the operator talked to and the number of waiting calls on the screen. If no caller was online, then display the message “No caller was online.”

6. Display the identifier of the caller the operator talked to last on the screen. Display the length of the waiting time in seconds as well. (If the caller did not have to wait, then the waiting time is 0.)

7. Create file successful.txt that contains the list of calls accepted by the operator. The lines of the file should contain the serial number of the caller, the start of the conversation (when the operator accepted the call) and its end in the format shown in the following example. For example, in the case of the input example shown at the beginning of the exercise the contents of the file are: 2 8 0 0 8 1 39 4 8 1 39 8 4 17 …

Example for formatting the output text: Exercise 3. Hour 6: 13 calls Hour 7: 89 calls … Exercise 4. The caller remaining online for the longest time is in line 152, the length of the call is 341 seconds. Exercise 5. Enter a time (hour minute second): 10 11 12 Number of calls in queue: 4, the caller online is caller 272. Exercise 6. The data of the last caller are in line 432, he/she waited for 184 seconds.

Sources: 1. Notification Form 3017505.. Értesítés küldemény érkezéséről –Magyar Posta Zrt. Nyomdaüzem

2. Timetable http://www.volanbusz.hu/hu/menetrend/helykozi

3. Merited artists http://hu.wikipedia.org/wiki/A_Magyar_Köztársaság_Érdemes_Művésze_díj

45 marks

Page 12: INFORMATIKA ANGOL NYELVENdload.oktatas.educatio.hu/erettsegi/feladatok_2016osz_emelt/e...Informatika angol nyelven emelt szint — gyakorlati vizsga 1412 ... (e.g. SQL_commands.txt)

gyakorlati vizsga 1412 12 / 12 2016. október 21.

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

maximum

mark achieved

mark Word processing, presentation, graphics, web page creation 1. Notification

30

Spreadsheet processing 2. Timetable 15

Database management 3. Merited artists 30

Algorithmisation, data modelling 4. Call centre 45

Mark of the practical exam part 120

date examiner __________________________________________________________________________

elért pontszám

egész számra

kerekítve

programba beírt egész pontszám

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ő