Top Banner
188

Informatica, cl. X (in limba romana)

Aug 20, 2015

Download

Education

Elena Stanislav
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Informatica, cl. X (in limba romana)
Page 2: Informatica, cl. X (in limba romana)

����������� ����

������������������

� ����������� �����������������

������������ ��������������

� ����� �!�"���#�$"!�%�!#&�'%&!(�#)!*+������������������

���������� ���������������� ������������������������������������������ ������������������������������� ����������������������������������� �!��"�

����� �������� �� ������ ��� �����������,����-*#"�.!�!�������/�01��������2!3!�+4��5� 46&!*#�0%&"%7#/��&�8��9����� ��������/�)#:8��9����� �������/��.#!&8� �!�!;,�!!��#�#,.�."

�������������� �������������������

��������� ����������� ������ ���� ������ ���� � ���� � ������ ��������� ����� ������ ������� ������������� �������� �� ��� �����!�� " #�$ %���&���������� '��' ()���*�� +,� �-��. , �/� " �00 ��

�,-1 230�2234�53�0�0�5�������

���6���� ��7��� ������������ ���������� 8� !�*���� 9� ����6�� ���� :������ ����������� �������� (��� '�� ����� ������� '��'/� ������ ��� ������� 7�������� ��� ��� ��������� ������������� ��

� ���������������������������� ��� 8� ����*�*��� ��7��������� 9�7 #�����; )�����*�� ��7������������������� ������� �� ������������ &�6��; �� �� �8�*; &��9�������� ���6���� �����!�� ���������������������7� 9�� *��� ���� ��������� ����� )������ +���� �������.� <����� ������������� ���7� 9�� *��� ���� ������� )������ #������� ��� =��7���>��;

�������������������������� ��� �6������ 8� ��7������;� ���7���� ���!�������� ?��!��������� �� ,��� ��� �����!���� ����������� ��� 8� 7�@�; 9� ��������;� ��7�������� ���!�������� ?��!��������� �� ,��� +���� ����.� -;����������� ���������� ��� 8� ������*�� 9� ����*�*��� ��7�������� ���!�������� ?��!��������� ��6��; �������������; ��������!�� ������������� ����� ��� 8� 7�����*��� ��7�������� ���!�������� ?��!��������� &���*�*�; �� ,��� +���#����*;.� #�9��;�� � ������ ������� ������� 8� ����� ���7���� ���!�������� ������� �� ��@�;� )����� 9����� &������� #�9��;�

<�A?B� �$

%� ,�������� �� <�����6���� � #;���� !"#$"%���� ��6�������� ��� 'C���� �<�'�4�� #�9��;������$ (DC3C ''/ 4��50��3� 4��43�E2� 7�F$ (DC3C ''/ 4���4�0��������$ ��7�G���������� HHH����������

<%#���"�� �4�!&��#,4 �#�#*�,��!��"!=!!�# #�=!������� �!�"��!!�$"!�%�!#&�'%&!(�#)!*����������

Page 3: Informatica, cl. X (in limba romana)

�������� �

�� ����������� ��� ��� ��� ��������������� ����������������� � � ��������������� ������ ������ � � ���������������� ����������������� � � ���������������� ��� � � ���������������� �������� �� ��� � � ����������� ������������� �!��� � � �������"�!�������#���� �� � � �������"�!����� �� � � ��� ���� ����� ����� ����� � � ��

�� ���������������$ ���� �� ������ %& ��� � � �������$%�� �� � �!�����%�� �� � ��� %& ���� � � �'�����$%��� ��#��������( �� � � ��������� %& �� �&�� )��%��%����� � � �������$ ���( � ��& *����% � � �+�����,���(��� � �!��� ��&���� ��� %& ���� � � ��� ���� ����� ����� ����� � � ��

�� ���� ����� �� ����� �� �!����������� �� �����-����&������&� ��� � � �������$%�#����� ��&���%�����.�������&�/�� ��� � � �������$%�#����� �����0�� �/��%�� �1�2�3 (���& ��!����#�� � �������4�� ���� ��&������/��0�� � �������,���(��� � ��&���%�� � ���/��� ��� �% � �������,���(��� � ��&���%�/���*� � �'�����,���(��� � ��&���%�� �� � ��� ���� ����� ����� ����� � ��

"� � #�������� ���$�����5 � 0����!���3�������%*��� � �������"�������%*��� � '������"�������%*���� ��#��������( �� � '�� ���� ����� ����� ����� � '�

���%&�����&

�������

�'(�&)�

�(*

�(+&�(

Page 4: Informatica, cl. X (in limba romana)

,� ������ �� �#��������$�������%*�������&��� � � '������$� �� �� � ��������%��%*��� � �+������-& �%� � �+������$�������%&0�� ��%� ��� ��#��������( �� � �+������6��� 0������ � ��+�����$���������#���� ��� ��#��������( �� � ������������ �% ������&���� � ���� ���� ����� ����� ����� � ���

-� � ��� ����.����������������� �� � ��� �������-�2�& � ����%� ��� �� ��� �%�� � � ��������"%& �������������% � ������������������������� � ��������7�&0 )���%��� ��� �%�!����&0 )����� � &0� � � ��������,���������2�����!����������%* & ��� ���� ��� �%�� � � ��+�����8�&%����3��������0��(��!��������& *������ � � ��������8�&%����3��������������%����� � � ��������5�( ��( �%��!��� �� � � � ��'��'���&��& ����� � � ������+��$� �� �� � �� ��� �% ��% � � ���������8��%�%���%� � ���� ���� ����� ����� ����� � � ���

/� ���� ������� �� � ������������%�����/������� � � ��+�������2�%�%*�������%%�� ��/����� � � ���������%�%�%*� �!�� 2����� �������% � ��������,��� ���� � � � � ��������-�#�������� � � � � ���� ���� ����� ����� ���� � � ���

�0)1��)��&�*(��)�*���(���2(*�(� ��+

�&3*&�+�(4& ���

���%&�����&

�'(�&)�

�(*

�(+&�(

Page 5: Informatica, cl. X (in limba romana)

���������

�&����%� ������ � ��(��� /���%&����� �� %& �����1� �� � � ���� ��� �% ��%� !� �� ��� �% ��%����%� ��1� � ��� ���0��� ����1� �� ��������#�� ���!�� ��������.���������%���% !�����% ���� ����������%���� ����%� ��!�� ��������� ��� .�% ��%�&%������9���&%��#�� )��� �� ��1� ��������������� ���#����� %� ����(����&����� �% ��� /������ � /��.%� �&�� � ���&��� /�� ��2�&0 ��

8 � ������ ��� ���������%��/��!�� ������������#�� ���%!������%������ �����.������ � � �%& ��� ��� %& ������� )�%��� ��� �% ��%��&�����

�(1&��*�*������������ &���& ��� ����%�����!��� ������ ���%�� ��� ���� �!����.�� � �� ���%����� ��:� �� 0�%��%1� �!���%����� ����1� � ���%���%1� �&���.&��%�!�� �!����%��-/�����(��� ���&��%���������� ��!��������� �� � �!����%:� �%���.� � �!����%�;<-$<7��� �!�����3����1������ �!������� ��%&�%������%���� �!���

�(1&��*�*�����������3���� ��%���%!������ �� &��� ���������%� ��� %& ����1!�� �&�:�� ���� �� ������ %& ��������&�� )�����%������!���������1��%�� �� � �!�����%��. �� � ��� %& ����1���(��� � ��� %& �����/��� ��� �%�

=���(1&��*�*����/����3������%!������ �� &��� ��������%&����� ��&������������&�.�%����� ���:������&������&� ����!��%�� ���� ��&������/�������&��0�� 1����(��� � �&���%�� � ��1��&���%�/���*��!�� ��&���%�� ���/��� ��� �%�

�(1&��*�*�"���������������%!������ �� &��� ��������%&����� �*�0���0%%������-/����3�����%����������# � 0���1��%��� ����!�� ������0%%�����1�����3 &��� (�� ��������%*���� ��#��������( ���

=���(1&��*�*�,�������� (������������%*���� ������� ��� �%��&���:��& �%�1�%&� �%�1��%�� �� �%��!�����%�� �� �%�1�0��� 0���1��*����1��&���%�1�*��� .�%������&�����

-��� �!�� ����%� � �� ��� �%����/�����������/���(1&��*�*�-��8 ��� ��������3���/�� ! �&%��/��/������ ����� ��� �%��&�����% ��� ��/����� ���!��/��!���&��%���1����� ��%����%*���1�����%(���#��!���������� ������&������ �����4� ���������%��0������ �%��������������������������%���������& ��& �����!��� ��( � � �(���� ���2�� &����.�%���������&����� ���1������%��3����%����������������2�����!��������%* & ��� ��� ��� �%���

=���(1&��*�*�/�������� (�������������� ��� �% ���-/����3������2�%�%*���������%%��. ��/����� 1��%�%�%*� �!�� 2����� �������%��%� ��1��*�%� ���!��*�%0 ����;���� � ����.� ��3��% � ���0��� ����1� ������ ���%�����������%!������ �� &��� �������������.����!����#�������������� :�� �� ��� �!����%1��%!� ������%����1�� *������>�0�

8 � ��������� ��( ��/���%� %&�� �����!������������"����� ��#�����$�" ���

%��$�$�%������� ��1� �%0 ������4�����8���������?�� ����� ��,��0������8%��%# �������������� �������+�+��,�� ��( � �& ��� ��������% ����@�& �����!��� ��@����� � ���� ��� /�� �������& � ����

Page 6: Informatica, cl. X (in limba romana)

Page 7: Informatica, cl. X (in limba romana)

����� ���

����� �� ��� ��������

���� ����� �� ���� ������ �array�

8���&� ����# �%�� �������������� ���array�������%�������������� 0�%���� 0�.������ 0�%�����/��� %& �������.���&�� �3 ������%&�%��������� ��� !�����1����.&����&1���3(50��,� ��� ��%&�%������%���� ����� )�%�����&��&�

A���������� ��������������� ���!�������.%��%����������� %&

type B&�� ��"C = array�[��] of ��;

��������������������������� ����0������ ���%��� �1�� ���������������%&�%���.���%����������0 (���� ���% ��� ��������% �� ��

'� �"� (

�) type Vector = array [1..5] of real;var x : Vector;

�) type Zi = (L, Ma, Mi, J, V, S, D);Venit = array [Zi] of real;

var v : Venit;z : Zi;

�) type Ora = 0..23;Grade = -40..40;Temperatura = array [Ora] of Grade;

var t : Temperatura;h : Ora;

-��� �� ���%������3�&������/��������������(��� ���/��f*�������"��� ���%&�%������ �����# � 0�������������������% ��� ������� �� ����3������1

�����&����# � 0�����& ���������������������#�/�� � ������ ���(����� ���'� �"� (

�) x[1]� x[4]�

�) v[L]� v[Ma]� v[J]�

�) t[0]� t[15]� t[23]�

�) v[z]� t[h]�

Page 8: Informatica, cl. X (in limba romana)

<�� � �%&�%������%�� ���%���� ���� ������� ����%�� � ��� � �% ��� %�� ����� �&���������������0 (���������#��;%* &�����&� (�� �!� (������� ���& �%&�%������%�# � 0�����x��������Vector��5 �%�����%&�%������%�x[1]1�x[2]1����1x[5]��������������� �� �� ���

Program P77;{ Suma componentelor variabilei x de tip Vector }type Vector = array [1..5] of real;var x : Vector; i : integer; s : real;begin writeln(’����������� �); for i:=1 to 5 do readln(x [i]); writeln(������������ �); for i:=1 to 5 do writeln(x [i]); s:=0; for i:=1 to 5 do s:=s+x [i]; writeln(’Suma=’, s); readln;end.

;���� ��3������ � ���� ���� �� �����%* &1������%& ����� ��&������%&�%������ ���� ���%��������array���� �������� �� ��������%��� ����

9���3�&��1��%* &��P77� �% ��� ��&%�� �� ������� � /��& ����&��� ��1��≤�++:

������������ � ���������������Vector��Venit���Temperatura

Page 9: Informatica, cl. X (in limba romana)

Program P78;{ Extinderea domeniului de aplicare a programului P77 }const nmax = 100;type Vector = array [1..nmax] of real;var x : Vector; n : 1..nmax; i : integer; s : real;begin write(’n=’); readln(n); writeln(�������, n, ’ numere:’); for i:=1 to n do readln(x [i]); writeln(������������ �); for i:=1 to n do writeln(x [i]); s:=0; for i:=1 to n do s:=s+x[i]; writeln(’Suma=’, s); readln;end.

� 0�%����0���&����%� �������� �������� )�%���%��������

type B&�� ��"C = array [��1���] of ��;

�������!���������� ����������������%1�� ����@�������%&�%������%�;�����3�&��� �� �1�/��f*��+�����������(��� ������� �� ���%������:

Matrice = array [1..3, 1..4] of real

������������ � ���������������Matrice

$%&�%������������# � 0��������������������� ��������������� �����3�����������&����# � 0�����& ��������������������#����� �������#�*���!��/�� .� ������� ���(����� ���

9���3�&��1�/����(��� ����� ����

var m : Matrice;

Page 10: Informatica, cl. X (in limba romana)

��

�%� �� �m[1,1]������ �����%&�%���� ��������� ��1��%�% � ����#�(��f*�+����D��%� �� m[1,2]� ����� ���� �%&�%���� ����� ���� ��1� �%�% � ��D��%� �� �m[i,j]� ����� ����%&�%���� ��������� �i1��%�% � �j�

;%* &�����&� (�� �!� (������� ���& ��%&�%������%�# � 0�����m�������Matrice��5 �%�����%&�%������%�m[1,1]1�m[1,2]1����1�m[3,4]��������������� � �� ���

Program P79;{ Suma componentelor variabilei m de tip Matrice }type Matrice = array [1..3, 1..4] of real;var m : Matrice; i, j : integer; s : real;begin writeln(����������������������� �); for i:=1 to 3 do for j:=1 to 4 do begin write(’m[’, i, ’,’, j, ’]=’); readln(m[i,j]); end; writeln(������������ �); for i:=1 to 3 do begin for j:=1 to 4 do write(m[i,j]); writeln; end; s:=0; for i:=1 to 3 do for j:=1 to 4 do s:=s+m[i,j]; writeln(’Suma=’, s); readln;end.

=��*��� �1��� ���� �(3*����6�&'�)&��(*� ��EFE�1� �1� �� ������ ����� ���!��� � )�%���� * &��%����� �����������*��������<��0���packed��/&� �2�� �������������� ����%���&�( �� ��� ��������&�&%�����������&������������array��8����%��&����/��& )%�� �� ��%&��� �% ��%� �� �������( � � ����� ��0���� ��������� ���1�/���/��%���&�( � ����� ���� (��/��&%�� �%& ��

"������ ����%��# � 0��������������������� ��� !�����1��&����# � 0����%��%� ��� �/��.%�������������� ��0����<�� ���� ��0���/��� &����%���� ��.�%��%&�%������%�����&�&0�������/��������/�*�

9���3�&��1�/����(��� ����� ����%

var a, b : Matrice;

Page 11: Informatica, cl. X (in limba romana)

��

���������

a:=b

������%�����=���3�&���������& �������������0 (���������%&�%������%�� � %������ ��� �

� �����������&����9�% ������������0 (���% ��� �1�/��*��� �1������� 0�� 1��#�����%��0������ ���� �� 0�%��%����%&�%����������������� ���$%�����.�&� �&����3�&���/��� ����������0 (����������/��!��������array:

Type Linie = array [1..4] of real;Tabel = array [1..3] of Linie;

var L : Linie;T : Tabel;x : real;

5 � 0�� �T� ����� %& ������� �� �%&�%�����:�T[1]1�T[2]� !��T[3]� ��� ����Linie��5 � 0�� �L������ %& ����������%&�%�����:�L[1]1�L[2]1�L[3]�!��L[4]��������real�

;���& �1� ��0����

L[1]:=x� x:=L[3]� T[2]:=L� L:=T[1]

�/����%�����?��&�������# � 0�����T��%�� ������� �� �������T[i][j]�� ������ ��T[i,j]�

<����i���������&����%&�%��������������Linie�/��� ���# � 0�����T1�� �j�@�&����%&�%��������������real�/��� ����%&�%�������T[i]��������Linie�

-0�����&� ����������� ��������� %&

array [��+1����] of ��

!�

array [��] of array [��] of ��

���������������������� �!���� ����"

Page 12: Informatica, cl. X (in limba romana)

�#

�� ������������������������� ����;�& ����� ������ ���!���� 0�%��0���&����%.� ������%&�%����������������E��<��% ����� ������ ���!���� 0�%������&����.%� ������%&�%��������������array�G��H�of���E�

=���%* &����;<-$<7�� 0�%�����������(� (������� �*� ��0������*�&��& ��&����# � 0������� �������������������

��������� �� � ��!�"��

� ;���( ���������������%�!��������%&�%������%�����&��% �������� ���:

type P = array [1..5] of integer;Culoare = (Galben, Verde, Albastru, Violet);R = array [Culoare] of real;S = array [Culoare, 1..3] of boolean;T = array [boolean] of Culoare;

,���(��� ������� �� ���%���������P1�R1�S�!��T�������������f*�+����!�������� ����� �������� * & ����� ����������f*��+�����&����� ���%���������� .

����%������3���������� -������ %&�����&�� ���*#�������� ���%�������� * &������� ������,�"���-

����.�����f*��+����� -���%����������� �����:

type Vector = array [1..5] of real;var x, y : Vector;

-�������3���� � ��&������ ������# �% ������:�)��& ���&��%������%&�%������ ���# � 0�����xD�)��& ���%��%&�%������%�# � 0�����yD�)��%������%��%&�%������%�# � 0�����xD�)�# �% � � 0�%���� ��%&�%������� ���� � �# � 0�����yD )��& ���&��%��%&�%������ ���# � 0����%�x�!��y�

� -���%����������� �����

type Zi = (L, Ma, Mi, J, V, S, D);Venit = array [Zi] of real;

var v : Venit;

$%&�%��������# � 0�����v����(�����#������(������ ������/�����������?� .0% ������%* &�� �:�)�� ���� (��#�����������&/� �� ��/����������D�)�� ���� (��&��� �#�������(�����D�)��������(� �/��� ���. �%0���������& ��& ��#����D�)��������(� ���#����������& ��&���

� -���%����������� �����

type Ora = 0..23;Grade = -40..40;Temperatura = array [Ora] of Grade;

var t : Temperatura;

Page 13: Informatica, cl. X (in limba romana)

�$

$%&�%��������# � 0�����t����(�������&�� �����&�� �������%��/��%����� ���� �������%���?� 0% ������%* &�� �:�)�� ���� (����&�� � �&����D�)��������& 3�&��!��&���&����&�� ���D�)��������% ��%������ �� ���. �/��*��� ����&�� � �& 3�&�D�)��������% ��%������ �� ���. �/��*��� ����&�� � �&���&��

� -���%����������� �����

type Oras = (Chisinau, Orhei, Balti, Tighina, Tiraspol);Zi = (L, Ma, Mi, J, V, S, D);Consum = array [Oras, Zi] of real;

var C : Consum;r : Oras;z : Zi;

$%&�%���� �C[r,z]� �# � 0�����C����(������%��&��������*������������ % !�����/��(� ����?� 0% ������%* &�� �:�) � ���� (�����*� �����������%��& ������ ��� ��% !����� �����������.

��&/��D�) � ���� (�����*� �����������%��& ���(���������% !����/������D�) �������% !�������%��&������&/� ��& 3�&D�) �������% !�������%��&������&/� ��&���&D ) �������(� �/��� ��% !�����%��&���� �& ��&�������*�����������Df) �������(� �/��� ��% !���%��&���� �& �����������*������������

-���%����������� �����

type Vector = array [1..5] of real;Matrice = array [1..3, 1..4] of real;Linie = array [1..4] of real;Tabel = array [1..3] of Linie;

var V : Vector;M : Matrice;L : Linie;T : Tabel;x : real;i : integer;

$ �������� ��0��������&� (���/����%����I

�) T[3]:=T[1]� /) i:=M[1,2]�

�) M:=T� ) x:=V[4]�

�) L:=V� 0) L[3]:=V[4]�

�) L[3]:=x� 1) T[1]:=4�

) x:=i� �) T[2]:=V�

f) i:=x� �) L:=T[3]�

*) L[3]:=i� �) T[1,2]:=M[1,2]�

Page 14: Informatica, cl. X (in limba romana)

��

�) T[1,2]:=M[1,2]� �) x:=M[1]�

") M[1]:=4� �) L:=M[1]�

2) M[1,3]:=L[2]� �) V[5]:=M[3,4]�

) x:=T[1][2]� �) L:=M[3,4]�

A����(/������������� ���������1��� 0% ������%* &�� ��� ��(� (�� �*%��&����? �%������������ ��� � ��&���%���&��& ��&�������/�����&�� � ��� ������≤�++��

��#� ����� �� ���� ��� ������

=����&0 )�.�� �� ����������� ������ ������ ����(�������� (������ �� �������array�!������� ���!�������.%��%����������� %&

,&�� ��".�::F�packed array [1..n] of char�

8���&� ����# �%�� ������������� ���/������������ %& ��������% ���!��������%������3 ������ �����

'� �"��(

Program P80;{ ������������������������������� �������type Nume = packed array [1..8] of char;

Prenume = packed array [1..5] of char;var N : Nume;

P : Prenume;begin N:=’Munteanu’; P:=’Mihai’; writeln(N); writeln(P); readln;end.

,�(�� ��� �! ������� �:

MunteanuMihai

=���/��!����������*�&���� ����� � �����%�������������������� ��1�/�� ����%* &���P80����/��� �&���� ��0������*���:

N:= ’Olaru’�P:= ’Ion’�

Page 15: Informatica, cl. X (in limba romana)

��

=�� �� ������� (�1��%* & �%��# ��%&���� �� ������������#������ �����/��� ��&����� 0��������� ������1�����3�&��:

N:= ’Olaru ’�P:= ’Ion ’�

5 �%��������# � 0����v����tip packed array [1..n] of char �%�� ����%�������� �� �� ����& ����������� ���� ��� ��%&�%������%��������#�:

read(v[1]); read(v[2]); ...; read(v[n]).

=����2�&01�%� �� ������# �% ���% ��� �� �! ���/���%� ��� �� ��������.�����* ����write(v)�� ��writeln(v)�

-0�����&� �������!��������� ������������packed array [1..n] ofchar��%������3 ���n�� ����1� ������/���7&���&���*��+&'���)�(��0��?#�.����1� ��*�&� � �%����% ��� ��&%�� �� ������� ����������� �%* &���������#��<����� ����%&�������� 0% � ��%* &��%������� ������������%!��� 0�� ������ �����

;���� ����&�� � ������� )��1�#�������� �� ��� �����&0 )�����&�������.( � �!���%����� ����������*�&��# � 0�����=���0%�;<-$<7���������� ���7&����(�(�����*��+&'�2(�&(3&*0�������� ������.%��%���������� %& :

�J���,&�� ��".���string�

�J���,&�� ��".���string�[����]�

��������� ����� ��*�&� �& 3�&����� � �� %� �%�� #� � !����� �������#��� =����� �� &������������*�&� �& 3�&������� 0���!����&������1�/��&%��%0�!.����@��������� �����

<�� �!���%��������string�����% ���� ��� �%�� �� �����%�� ��� ���)3.� �����1��%� ���������&���KLM��7�*�&� ������� �����# �%��v��������string�% ��� �� � ����� )�%�� ����������� ������length(v)�� ������ (��%�# .�% ���������integer������ ����������*�&�1��% ���!��������� �����������string��/����%&� ��0����

'� �"��(

Program P81;{ �������������������������������������type Nume = string [8]; Prenume = string [5]; NumePrenume = string;var N : Nume; P : Prenume; NP : NumePrenume; L : integer;

Page 16: Informatica, cl. X (in limba romana)

��

beginN:=’Munteanu’; L:=length(N); writeln(N, L:4);P:=’Mihai’; L:=length(P); writeln(P, L:4);NP:=N+’ ’+P; L:=length(NP); writeln(NP, L:4);N:=’Olaru’; L:=length(N); writeln(N, L:4);P:=’Ion’; L:=length(P); writeln(P, L:4);NP:=N+’ ’+P; L:=length(NP); writeln(NP, L:4);readln;

end.

,�(�� ����� �! �������� �:

Munteanu 8Mihai 5Munteanu Mihai 14Olaru 5Ion 3Olaru Ion 9

-��%0��#��������� ������������%* &���/���������*�&� �!���%���� �����N1�P�!��NP������2�&0��

<�� �!���%����� ������/��� �&����%�� �������� ��%� ����1���1��1���1��1����N���������%&� ���%&�%���������%&�%���������� ���/�* �� ��� �� �/��%� %&�� ��� ��%�%� � � � �����%� /�� ��������� ���char��<&0��� %�� �(���0������ ����������packed array [1..n] of char� �� ��� !���&�����%&�%������� ��������string��?#�����1�%�� �(����������string��%�� #� ���.*�&�� 0�� ��

9���3�&��1��(�� ���%�� ����

’AC’ < ’BA’

�����true1�� ��(�� ���%�� ����

’AAAAC’ < ’AAAAB’

�����false�4�# � 0�������������� ������ ��% ��� �� %�%����� ���/���%� ��� �� ���1� ���� .

�� �1������ ��� ����� ��������!��9���3�&��1������P=’Mihai’� #�&�P[1]=’M’1�P[2]=’i’1�P[3]=’h’�!� �&���

9����3��� � ����#������������������

P[1]:=’P’;P[2]:=’e’;P[3]:=’t’;P[4]:=’r’;P[5]:=’u’

# � 0�� �P�# � #� �# �% � �’Petru’�

Page 17: Informatica, cl. X (in limba romana)

��

;%* &�����&� (������!������� �� �� ���!��� 0�� ������ �����!� �!� (������� ���&�������� ����/��!����������#��9�� � ��%* &�������&�����������%���� �!��������������

Program P82;������������� ������� ��� ����������������

var S : string; i, j : integer;begin writeln(������������������������ �); repeat readln(S); i:=0; for j:=1 to length(S) do if S[j]=’ ’ then i:=i+1; writeln(����������������’, i); until S=���������;end.

��������� �� � ��!�"��

� $&������ ���!������������� ������ ������ I� $��%�� �����%�� ��� ��� ��� �� �!���%����� ����I� $%&��� ���&��%���%* &:

Program P83;{ Eroare }var S : packed array [1..5] of char;begin S:=’12345’; writeln(S); S:=’Sfat’; writeln(S);end.

� ?� 0% ������%* &�� �:�) ����&�����&������ � ����� ���� ������’A’��/��.��!�D�) �0�������� �����’A’������ �����’*’D�) �� (������!��� �����’B’D�� ����&�����&������ � ����� ������ 0���’MA’�/��.��!�D ) �0���������� 0����’MA’�������� 0 �’TA’Df) �� (������!����� 0 �’TO’�

� ;���( ����(�� ���%�� ����%��� ��%� ��:

�) ’B’ < ’A’D �) ’BAAAA’ < ’AAAAA’D

�) ’BB’ > ’AA’D �) ’CCCCD’ > ’CCCCA’D

Page 18: Informatica, cl. X (in limba romana)

��

) ’A A’ = ’AA’D /) ’Aa’ > ’aA’D

f) ’BB ’ < ’B B’D ) ’123’ = ’321’D

*) ’A’ = ’a’D 0) ’12345’ > ’12345’�

� -���%�������!������� ����� %& ���������������& �� ��� � 0������ ����!���� ����?� 0% ������%* &�� �� �!� (��!�����/�����������&��% �����*��:@� ��� ������������ �’A’��/���� �’Y’����/��%���!�������&��% � ����������� � 0��D@� ��� ��������’Z’����/��%���!����������� �’A’D@� ��� ���� ������/��%���!�������’-’�

� ?� 0% ������%* &�� ������� � (��!������� ����%� %&��*���%������3�.��������

-���%��������1���≤��++�!������� ����� %& ���������������&���� ��� � 0�.����� �����?� 0% ������%* &�� �� �!� (������� ��!�����/�������/�%����� � 0������

N���S�������%&��������/��# ��%�%(����1� ��� ����&��/��.���������1���&�����3�� & ��� ���&���/���0�����?� 0% ������%* &�� �� �!� (������� ��&�������%�%(���������!���/�������

��$� ����� �� ���� ����� �record�

8���&� ����# �%�� �������������� ���record�������%������������� ���%���/��*��������<���%������/��� %& ��������%&�%�����1����&������������-����%��0�������%&�%������������ 0�%1��/&������%�� ������������ ������"��� .���/&�� �����&��������� �� �%�����/&���

A���������� �������������� ���!�������.%���������� %&

type�<&�� ��".�3 record,&�� ��%�"��.�:���;,&�� ��%�"��.�:����

���,&�� ��%�"��.�:����

end;

������E1���E1���1��������� ����������/&���%��������#������������&������/&������ 0�� 1� �� ������/&���% ������ ���� �/��������%����������������;���& .�1�����%���� ����������&0�� ���

'� �"� (

�) type Elev = recordNume : string;Prenume : string;NotaMedie : real;

end;var E1, E2 : Elev;

Page 19: Informatica, cl. X (in limba romana)

��

�) type Punct = recordx : real; { coordonata x }y : real; { coordonata y }

end;var P1, P2 : Punct;

�) type Triunghi = recordA : Punct; { ��!���" }B : Punct; { ��!���# }C : Punct; { ��!���$ }

end;var T1, T2, T3 : Triunghi;

-��� �� ���%������3�&������/��������������(��� ���/��f*��+����"������ ����%��# � 0�������������������� ��� !�����1��&����# � 0����%��%�

��� �/��.%�������������� ��0����<�� ���� ��0���/��� &����%���� ��.�%��/&���%�����&�&0�������/��&�&0����/�*��9���3�&��1���������.�������� ���!��# � 0���������� ���& ����������������

E1:=E2;T2:=T3;P2:=P1

�/����%�����"��� ���%&�%������ �����# � 0�����������record��% ��� ������� �� ����3���.

���1������&����# � 0�����!�����&���������/&��1���� �������������'� �"� (

�) E1.Nume� E1.Prenume� E1.NotaMedie�

�) E2.Nume� E2.Prenume� E2.NotaMedie�

������������ � ���������������Elev��Punct���Triunghi

Page 20: Informatica, cl. X (in limba romana)

#�

�) P1.x� P1.y� P2.x� P2.y�

�) T1.A� T1.B� T1.C� T2.A� T2.B� T2.C�

�) T1.A.x� T1.A.y� T2.B.x� T2.B.y�

?#�����1��%&�%���� �E1.Nume�������������stringD��%&�%���� �P1.x������������realD��%&�%���� �T1.A�������������PunctD��%&�%���� �T1.A.x������������real�!� �&���

<�� � �%&�%������%�� ���%���� ���������� ����%�� � ��� � �% ��� %�� ����� �&�������������/&�����������#��;%* &�����&� (���%&� ���%�����&���� ��%�����#��!�� �!� (������� ���&����!�����&�������#������%� �&�����& �0����-���%�������������#��� ��%���&������� �����

Program P84;{ Date de tipul Elev }type Elev = record Nume : string; Prenume : string; NotaMedie : real; end;var E1, E2, E3 : Elev;begin writeln(����������������������� �); write(’Numele:’); readln(E1.Nume); write(’Prenumele:’); readln(E1.Prenume); write(’Nota medie:’); readln(E1.NotaMedie);

writeln(����������������������������� �); write(’Numele:’); readln(E2.Nume); write(’Prenumele:’); readln(E2.Prenume); write(’Nota medie:’); readln(E2.NotaMedie);

if E1.NotaMedie > E2.NotaMedie then E3:=E1 else E3:=E2;

writeln(����������������� �� �); writeln(E3.Nume, ’ ’, E3.Prenume, ’:’, E3.NotaMedie : 5:2); readln;end.

4���� �������� ���record��% ��� ��#�� � � �������0 (������� %& � � ��%��������� ���

'� �"��(

type ListaElevilor = array [1..40] of Elev;var LE : ListaElevilor;

Page 21: Informatica, cl. X (in limba romana)

#�

?#�����1��%� �� �LE[i]������ �������#��i����������D��%� �� �LE[i].Nume������. �����&���� ���������#�!� �&����;%* &�����&� (������!������� �� �� ��� ������ ���% ��� ������#��!�� �!� (������� ���&���1����&����!���%� �&���� ������& ��0�����#��-���%�������������#��� ��%���&������� �����

Program P85;{ Tablou cu componente de tipul Elev }type Elev = record Nume : string; Prenume : string; NotaMedie : real; end; ListaElev = array [1..40] of Elev;var E : Elev; LE : ListaElev; n : 1..40; i : integer;begin write(’n=’); readln(n); for i:=1 to n do begin writeln(��������������������!�, i); write(’Numele: ’); readln(LE[i].Nume); write(’Prenumele: ’); readln(LE[i].Prenume); write(’Nota Medie: ’); readln(LE[i].NotaMedie); end; E.NotaMedie:=0; for i:=1 to n do if LE[i].NotaMedie > E.NotaMedie then E:=LE[i]; writeln(’Cel mai bun elev:’); writeln(E.Nume, ’ ’, E.Prenume, ’:’, E.NotaMedie : 5:2); readln;end.

=��*��� �1����������� �������������� ���!����� )�%���� * &��%����� ���.�������f*��+�����=���%&���� ��� � ���%����������&�� �3�����/&��1���&0 )�;<-$<7���&��������( � � ���%���%���# � �����<��������������� ��������.�� (��/�������� # �� �������� %& �����

��������� �� � ��!�"��

� $ �������&���&� ����# �%�� �������������� ��������I� ����� �������� * & ����� ����������f*��������&����� ���%�������� ���.

����%������%����� ��������������%* &����P84�!��P85�

Page 22: Informatica, cl. X (in limba romana)

##

� -������ %&�����&�� ���*#�������������� * & ����� ����������f*��+����� -���%�������&��% ������������� ��

type Data = record Ziua : 1..31; Luna : 1..12; Anul : integer; end; Persoana = record NumePrenume : string; DataNasterii : Data; end; ListaPersoane = array [1..50] of Persoana;

?� 0% ������%* &�� ������!���������� �� ���� ������ ���% ��� ������% .�����≤�+��!�� �!� (������� �:�) ���% ������������/��(� �4� �����D�) ���% ������������/���� ��� � ���D�) ���% ������������/�� ����D�) ���% ���������������� � �4����D ) ���% � ��� �& ��/��#/���D&) ���% � ��� �& ���/���D*) #/�� � ����������% ���/�� ��1����1�(���D/) ���� ����% ���%�� �� �& ��&�������� ��D) ���� ����% ���%�/��%����� � 0�����D0) ���� ����% ���%�%�%� ����%� %&�� ����� !����D1) ���� ����% ���%���� ��� !��#/������������/�� ��� !�� ���

� -���%�����������������≤�+��������� �������� ���"��� ��������������� ���������%%�%� ������ ����9��� �� ����������������!���0����� ���� (������ %&�

?� 0% ������%* &�� �� �!� (������� �������������� �� �������� ������& 3�&��

� <� ����*2���������� ������ %&� ����O�%�

1

����������������������� �!��� ������"

Page 23: Informatica, cl. X (in limba romana)

#$

����"� �������&����&���1� � ��5��� !���� �/��� ��*�&���� � ���%��������#��A����(/�������������� ���Punct�!��Triunghi������ * ��/������1��� 0%. ������%* &�� ������!������� �� �� ����� %& ������� ���% ��� ������.*2�����≤�+��!�� �!� (������� �:�) � � ���������*2�D�) �%%�%� �����#/ ��%����*2������ � �& 3�&�D�) �%%�%� �����#/ ��%����*2������ � �&���&�D�) �� %& ������� ���% ��� � ��� �����*2��/��%���� ���!����� ���%�

��%� ��&���!"����� with

$%&�%������������# � 0������������������������� �����3������������&���# � 0�����!�����&���������/&��1���� �������������

9���3�&��1�/����(��� ����� ����%

type Angajat = record NumePrenume : string; ZileLucrate : 1..31; PlataPeZi : real; PlataPeLuna : real; end;var A : Angajat;

�%&�%��������# � 0�����A��������� ��������A.NumePrenume1�A.ZileLucrate1A.PlataPeZi�!��A.PlataPeLuna�

=���/���&����A� ��# � 0������������������������������& ��&����%�1� ����&%������ ���� ��%&�%������%�����1�/�� �&������� ���1����%&%���,��������%0%���% ���%�� ���#�� ����� )�%�������������with�����

-��� 3 ������������/�����������:

,��������� �with.�::F�with�,6����$.�P%,6����$.Q�do�,��������� .

9� * & ����� �������������(��� ���/��f*�������=�������%����������������with��%&�%����������� �� � �& ��&����# � .

0������������������%�� ��� ����� %�%������& ���&�����/&���%��������#��'� �"��(

with A do PlataPeLuna:=PlataPeZi*ZileLucrate

����������������������� ������ �% ��with

Page 24: Informatica, cl. X (in limba romana)

#�

<�� ���������������������2�# ��������&��% � :

A.PlataPeLuna:=A.PlataPeZi*A.ZileLucrate

A����( � ������������with����������%� ���������%��������� �� ��%* & �%.��1�� �������%0��* ���������� ������#%���%&�%��������# � 0����%����������-�����=�������%����������������with1�� �/��/���� ���������� �� �%1���& � ����������� (��� �������% ��� ��������� ��� ����&������/&�� �� ���%����������#��9 ���� 1������� �� �%��# � ��������� ��� � � �1��2� �� ���/�� ���&%&��������� �����0����!��%�# � 0���� #/��� ��� !���&��

'� �"��(

type Punct = record x : real; y : real; end; Segment = record A : Punct; B : Punct; end;var P : Punct; S : Segment; x : integer;

=��� (���%��� ������ �� �%��x��% ���������(����� ���# � 0�� �x���� ���integer�� ����/&���P.x� �� ���%����P�

=�����������

x:=1

������ �� �%��x����� ���� �# � 0�� x��������integer�=�����������

with P do x:=1

������ �� �%��x����� ���� ��/&���P.x� ��# � 0������������ ���%��P&=���/��# � 0�� �������� ���%��S����%�������������/&�����&����S.x1�/�

���������

with S do x:=1

������ �� �%��x�# � ��������� ��� �# � 0�� �x������� integer�4�������������� %&

with ��1���1����1��� do�,��������� .1

������1���1����1�����/���# � 0����������������1��������2�# �����������������

with �� dowith �� do

Page 25: Informatica, cl. X (in limba romana)

#�

{...}with �� do�,��������� .�

?#�����1��%&�%��������# � 0����%���1���1����1������0�������� �� �����#%��������&������/&���%��������#��

9���3�&��1������# � 0������P�!��S1����� ���& ����1����&�����:

with P, S dobegin x:=1.0; { referire la P.x } y:=1.0; A.x:=0; { referire la S.A.x } A.y:=0; B.x:=2.0; { referire la S.B.x } B.y:=2.0;end;

=��&%��%0�!���1���������� �with��������(� (���& ��/��� (����/��� ���� )�*��� �%���������&�� �� ��#�� ���3��������%* &�

��������� �� � ��!�"��

� ����� �������� * & ����� ���������� f*��������&����� ���%������ ��.��������%�with������3�&������� * ���/�������

� $ ������������� �� ������������withI� A����(/������������ �with1��3������������%* &����P84�!��P85������ * .

�����������������������*���

E1.Nume, E1.Prenume, ...,LE[i].Nume, LE[i].Prenume.

� -���%�������&��% ������������� ��:

type Angajat = record NumePrenume : string; ZileLucrate : 1..31; PlataPeZi : real; PlataPeLuna : real; end; ListaDePlata = array [1..50] of Angajat;

;� � �������� � ������ �* ) ������ ���� (��/�&�������� � ����(�����&�����(������ ����?� 0% ������%* &�� �:�) � ���� (���� � �������� � ������ �* ) �D�) � ���� (��� � ���&���� �� �* ) ���%�����!��/�������D�) �!� (������� ��� ����������� �* ) �������� � ��� ��& 3�&�D�) �!� (������ � �* ) ���%�%�%� ��� � 0����D ) �!� (������ � �* ) ���%�/��%���� ���!�����������%����(�D

Page 26: Informatica, cl. X (in limba romana)

#�

&) %�%�� (������ � �* ) ���%�/��%���� ���!�����������%�������D*) �!� (������ � �* ) ���%�/��%���� ���!������&�������(������ ���

� A�������% ��� ���� ����������%%�%� ������5�7�!�� ( ���?� 0% ������%* &�� �����!������� �� �� ���� ������ ���% ��� ����������≤�+��!�� �!� (������� �:�) �%%�%� ������������!�� ( ��������� � �& 3�&�D�) �&������������������/��������� ( �& 3�&��!���%%�%� ����������.

�%��������#�D�) �%%�%� ������������!�� ( ��������� � �&���&�D�) �&�����������/��� �������������������� ( �&���&��!���%%�%� ����

������%��������#��

��'� ����� �� ���� ����� ���set�

A���������� �������� � �set������� ���!��� /�� �%�������������0 (��� ���0������ ���%��� �:

,�"������ .�::F�[packed] set of�,�".

5 �%��������������� ���set��/���&���&�� %& �������# �%�������������0 (��9 �����������0 (�� ����# �%�1����������� �# � #� ����# �%���=���&���&�����.�����&0 )���# �% � �������������&�� ��1�����*����≤����

=��;<-$<7�%�&���&���% ��� ������� �� �����&�/��.�.������&�������/���� ���(������� ���KGM�!��KHM1�� �������%��� �%� ���%�����& ��& �����

R%� �� �[]����(�����&���&� �#����

'� �"� (

type Indice = 1..10; Zi = (L, Ma, Mi, J, V, S, D); MultimeIndicii = set of Indice; ZileDePrezenta = set of Zi;var MI : MultimeIndicii; ZP : ZileDePrezenta;

�����%��� ��Indice� ���EFE�+�# �%�:�1, 2, 3, 4, 5, 6, 7, 8, 9, 10������MultimeIndicii� ����+�FE��+������# �%�1�!�� �&�:

[]� [1]� [2]� ���� [1, 2]� [1, 3]� ����[1, 2, 3, 4, 5, 6, 7, 8, 9, 10]�

;���& �1�# � 0�� �MI��% ������ �0��%�� ������ ������# �%�1�����3�&��'

MI:= [1, 3]&

�����%��� ��Zi� ���+FE��# �%�:�L, Ma, Mi, J, V, S, D&������(��)� *�������� ����EFE�������# �%�1�!�� �&�:

[]� [L]� [Ma]� [Mi]� ���� [L, Ma]� [L, Mi]� ����[L, Ma, Mi, J, V, S, D]�

Page 27: Informatica, cl. X (in limba romana)

#�

5 � 0�� �ZP��% ������ �0��%�� �������� ������# �%�1�����3�&��1

ZP:= [L, Ma, Mi, V]

4�# �% �������������� ��% ��� ������� �� �������.����)��������*��� .�%�����&���&���9� * & ����� ������ ���������* & ��� ���,!�������������-� .��������(��� ���/��f*����� �

����������������������� �!�������������������"

A���%�����%��%����������� �� � ����&�����%�&���&��1���� �������#�*.���!���������/����� ���(����� ����A�����&�����% ������ ���%�# �% ���%������ ���������0 (��� �������# ����� %& :

,'�" � ...,'�" � .�

5 �%�����3������%�/�����������(� (����&�������� ��% ��!������% �� ������# ����

'� �"� �(

�) []D

�) [1, 2, 3, 8]D

�) [1..4, 8..10]D

�) [i-k..i+k]D

�) [L, Ma, V..D]�

<�� �# �%��%������������ �������� �����%��� ��� �%�� ������( ��:+������ D*���������� D-��� ���� 1

�(�� ��� ����������������� �!��%�� �������� ��%� ��:=��* ��� �� D<>����* ��� �� D

Page 28: Informatica, cl. X (in limba romana)

#�

<=1�>=�����(��� Din� � ������ 1

�(�� ��� ������������boolean�;%* &�����&� (�� �!� (������� ���(�� �����%�� ����%�+1�*�!��-1�� ��.

� ��� �� �# �%��%��������MultimeIndicii�

Program P86;{ Date de tip MultimeIndicii }type Indice = 1..10; MultimeIndicii = set of Indice;var A, B, C : MultimeIndicii; i : integer;begin A:= [1..5, 8]; ��"��������+%�,%�-%�.%�/%�0�� B:= 1+&&-%�2%�+34����#��������+%�,%�-%�2%�+3�� C:= []; ��$�� �����������������

C:=A+B; ��$��������+%�,%�-%�.%�/%�0%�2%�+3�� writeln(’Reuniune’); for i:=1 to 10 do if i in C then write(i:3); writeln;

C:=A*B; ��$��������+%�,%�-�� writeln(�"�����������); for i:=1 to 10 do if i in C then write(i:3); writeln;

C:=A-B; ��$��������.%�/%�0�� writeln(�����������); for i:=1 to 10 do if i in C then write(i:3); writeln; readln;end.

-�����%��0������� 0�%��!�� ���%��1��%&�%����������% ��%�� ��� �������.���1��������#�������������!�����&�������/&��1����&�����������&���&����%�� ��� ������-�� �&�����& ��#�� �� � � � ������������&������� �%�&���.&���%�� �� ��� ��%� ���in���=���% �� � ������ ��1�����( � ������%����� ������� �&��!���#���( �����3������!�� /&0������!��� ��(�0���� �� ��%* &��%;<-$<7��9���3�&��1���������� :

if (c=’A’) or (c=’E’) or (c=’I’) or (c=’O’) or (c=’U’) then ...

Page 29: Informatica, cl. X (in limba romana)

#�

�% ��� ��/��%�������%�����������& ����&���:

if c in [’A’,’E’,’I’,’O’,’U’] then ...

A�� ����3�&����*����#����������( � ������%����� �������� �/��� ��� � �&���%���&��& ��&�������/�����&��� � ��� �����;���� �� �� ���� %�%.��!��� �*%��&��!����8���)����'����� � :

�)�/����������������&������1��1��1����1��D�)��������������3� *������& ��&����&��D�)��&����3� ������������/��&���&� ��&���%���&�D�)����������������&�����%���&���������� ���&����D�)��%��������/��2�����/������ ��. �*%����

Program P87;{ Ciurul (sita) lui Eratostene }const n = 50;type MultimeDeNumere = set of 1..n;var Sita, NumerePrime : MultimeDeNumere; i, m : integer;begin {1} Sita:= [2..n]; NumerePrime:=[]; i:=2; repeat {2} while not (i in Sita) do i:=succ(i); {3} NumerePrime:=NumerePrime+[i]; write(i:4); m:=i; {4} while m<=n do begin Sita:=Sita-[m]; m:=m+i; end; {5} until Sita=[]; writeln; readln;end.

$%���%����� ��������������� �*%��&���!��������������� ������3��&����������� ���/���%&��� ���������� �� ���/�*�� �������%�����%* &�

��������� �� � ��!�"��

� ?�&� ���# �%�����%��0���� ���# � 0����%��������� ���������&� (�:

var V : set of ’A’..’C’; S : set of (A, B, C); I : set of ’1’..’2’; J : set of 1..2;

Page 30: Informatica, cl. X (in limba romana)

$�

� $%&��� ���&��%���%* &�:

Program P88;{ Eroare }type Multime = set of integer;var M : Multime; i : integer;begin M:=[1, 8, 13]; for i:=1 to MaxInt do if i in M then writeln(i);end.

� -���%�������&��% �������� ���:

type Culoare = (Galben, Verde, Albastru, Violet); Nuanta = set of Culoare;var NT : Nuanta;

$ ���/���# �%�����%��0���� ���# � 0�����NTI� -������ %&� �&�� ���*#�������� ���%��������� * &������� ������,!������-

�������� .�����f*����� �� -���%���������������� ���MultimeIndicii������ * ��/��������;���( ��

&���&��������� �� �������%�����%������&� (�:

�) []D &) [4..3]D

�) [1..10]D *) [1..3, 7..6, 9]D

�) [1..3, 9..10]D /) [4-2..7+1]D

�) [1+1, 4..7, 9]D ) [7-5..4+4]D

) [3, 7..9]D 0) [6, 9, 1..2]�

� ?� 0% ������%* &�� �� �!� (������� ���% ����0&���&����&���&���P�1��1��1��Q�� ?� 0% ������%* &�� �� �!� (������� ���% ����0&���&����&���&��

P9:91�9;91�9!91�9<9Q� -�������!������ �����/��� ���#��������/������ ��� ��������� ��1� ������

� �������"����5��*��$5�"��������*��$5�� ����� �����$�!��� �����%�� -�$��?� 0% ������%* &�� �� �!� (������� ���#�������!�������� ���.������������ �� �� ���

-�������!������ ������?� 0% ������%* &�� �� �!� (������� ���&�.�����#%� �������!��

� ?� 0% ������%* &�� ������!������� �� �� ����%��!������� �����!� �!� (������� �:�)�� �������� �����/��/���������������/�����������!��D�)�� �������� �� � �/�� &0����!��D�)�� �������� �� � �/����&��!���� � �/��!��� ���%��� �-���������%* &�� ��#�� ����� ����&�����������% �����������%����%.������&�����������!������ �����������%�������� ���

Page 31: Informatica, cl. X (in limba romana)

$�

=���&���&�������� �� ��� �����&0 )����&���# �%��%����������0 (�� ������������� ��������&�� �1�%0�!�����≤�����=���%��������1��%* &��P87���% ���� ��� ��&�����&��& ��& �����/�����?� 0% ������%* &������ ��� � ��&���%���&����������# ����1����1��+�+++������� (�-�� ����� �*%��&�� ���? �%�������% ��� �� ���(��� �������.�� 0�%1��%&�%����������� ��/���&���&��

��(� )�����*���"� ��&��� +������

;���4&7&�����/�����*��%����������� ���� ���%���������.%����#���������%&.�%�������"��� ���%&�%�������������#����� �� ��� !�����1����&����"�� ���4$�R&����%&�%������%��������#������������ �3 �1�/����� /!�������#��������������� ���������&0%������� �1��%� ��'=>��'����f�>� �@�� /!������ �!�����"�!���� �����%����������%��%&�%����������&�!���f� ����

A���������� ���f� ������ ���!�������.%����� ������� %& :

,�"�f� .�::F�GpackedH file of�,�".�

����,�".��������������0 (�����������0 (������������� 0�� 1��3����/�������f� �����3�����K �!������ �!���M��

'� �"� (

�) type FisierNumere = file of integer;var FN : FisierNumere;

n : integer;

�) type FisierCaractere = file of char;var FC : FisierCaractere;

c : char;

�) type Elev = recordNume : string;Prenume : string;NotaMedie : real;

end;FisierElevi = file of Elev;

var FE : FisierElevi;E : Elev;

-��� �� ���%�/��������������(��� ���/��f*�����?��-0�����&� ���������&�����'=>1�� ���������� /!�������#�����1��������%��%&�%������ � �!�����

5 � 0������FN1�FC1�FE�!� ���������f� �����&���� �!�����%*���1�4&7&������� � 1���!����&��1�4&7&���-�����%��0����������� ������������� ��1�# �%������%. ��������� (��/��&�&%� �������� �� ��� �%��1�� ����� �!����%�;<-$<7�������� (�������%�������� �� %& ���� �����2�� &�����%���� ����� ������� !�0��(��& *������1�������%�����1�2/�� � �&��& ����� � � �����%(���#�����������

Page 32: Informatica, cl. X (in limba romana)

$#

�%�&�����!� ������ %& �� ������%�����/������������%* ��( ���/�� %&����4&7&��8����/���%� %&�� �������������������&������%�� ���;���& .�1�/� �������� � ������( ��1�%�# � 0���� �!�����0��� �%�� ������� �!����3����8��%�������� �%������/�������� �����&���&���������&0 )���!�������&������%��. �� ��� ��� �%��.* (���

=����&0 )�.�� �� �� �%���� ����� ��(� (������������� �# � 0����%�������f� �� � *&�����/�� ����������%* &�

=���0%�;<-$<7� �%���� �����# � 0�����������f� �f����� �!����3������� ��(� (������ ���������%����

assign(f, �);

�����������%��3�������������string�� ������� ����� �� ���� �����!���&���� �!��.����3����

'� �"� (

�) assign(FN, ’A:\REZULTAT\R.DAT’)

@� �!����FN���� �%�� (���� �!�����3����R.DAT����������%��REZULTAT������������A�

�) assign(FC, ’C:\A.CHR’)

@� �!����FC���� �%�� (���� �!����A.CHR����������%�.�������� ���������C�

�) ���56������������������� 67�

readln(str);assign(FE, str);

@� �!����FE���� �%�� (������ �!����3�����&������� ���������������� �� �.� ���!�������/��# � 0�� ��������string str�

9����3��� � ������������assign5f5��7��% ���%�� ������� ���% ��� � �.!����;<-$<7�f����#%�� ��� � �� � �!������3������

������������ � ���������������FisierNume��FisierCaractere���FisierElevi

Page 33: Informatica, cl. X (in limba romana)

$$

$����& ��( ���%�� ���� �� ���� �!����/�������� �!������� ������%&�%.�������&�&�(������%&�%���������� ��(� (������.�� ������� %&

read(�f���)1

�����������%�# � 0�������� �������������0 (�� �� �!�����f���&�(������%&�%���������� ��(� (������.�� ������� %& :

write( f�� )1

���� ������%��3������ �%�� �������������0 (�� �� �!�����f�

'� �"� (

�) read(FN, n)D

�) write(FC, c)D

�) read(FE, E)�

9����&1�*��1�(%&&*���1�'&)� �� ��%&�%������%1� �!����������� �� ����/�:@� �!���������� ����������&�����& ������� �D@� �!���������!�����������&�����& ������� �D@� �!������� �� ��( ����/�����&���� �/������� 1��/��!������� ��9���'���*���()�� ��%&�%�����1� �!����������� �� ����/�:@� �!������ ��������#���� ��� ����#���� ���� ������� ��%&�%���� ���������.

&�����������. ������S������%&�%���� �E@E��D@� �!������ ����� �� �%��� ��������%�����%&�%����������% ���� ��������

�����&���������%������/�� �!����8����%��&����/����&0 )�.�� �� ���/�����&�����& �� �!�������#���� �����

��� ��� ���!�������� �!������������ �1���!���� ���� �� ��( ���!��&%������ ���������#���� �

� ������������� 0����������.%�%�� �������# ��� �1��&�����)9&���(�4&7&��6*�&��;���� �� �� 1�/����&0 )�.�� �� ���������(� (��&��% �����%����:

reset( f) T���*���!����� �!����3�����������������Drewrite( f)�T���� (���� �!���#���!��/����*���!��������������$/������� � ��%&�%������%������&���1� �!������0���/��2����7 �:�9&6

��(���� �!��������&�����%�� ��/���������&�����'=>1�/��*���� (�� �!��.���3�����%.�� ��/�������%���������#�!� �&���

=����&0 )�.�� �� ������%���������� �!������#%� ��/��2�����&�������� ���&�.� � ��3��������%* &����������#��=���0%�;<-$<7� �!���� f����/��2������� ���������%�����close5 f��

=���%���(��1���(����&�%���� �/��� ����0��� ��� ����%������������� ����������� ���%��������f� :

�)�assign( f���)�T� �%���� � �!�����;<-$<7� f��� �!�����3���E�D�)�reset( f)�rewrite( f)T�����2���� � �!���� f�����������S�����D�)�read( f���)�write( f�� )�T������ S����� ������%&�%������ � �!����� fD�)�close( f)�T�/��2���� � �!����� f�

Page 34: Informatica, cl. X (in limba romana)

$�

9���/��2���� � �!����1�# � 0�� �f��% ��� �� �%�� ������� ��� �!����3.����

=���/��# �%����# � 0����%�������� �!����������� (�������%������3��������� %& ���1�/��;<-$<7�(��&3�&�&*���4&7&��):���&���5&)�

��������� �� � ��!�"��

� ?3���� �����&�����f� �@:�!:A5�f� � �� ��� A������������ (��� �������� �!���;<-$<7I�$ ������������� �� ��%�����

assignI� ,���(��� ������������������ �&��% ��%���������� ��:

�) type Tabel = array [1..5, 1..10] of real;FisierTabele = file of Tabel;

�) type Multime = set of ’A’..’C’;FisierMultimi = file of Multime;

�) type Punct = record x, y:real end;Segment = record A, B:Punct end;FisierSegmente = file of Segment;

� ;��������/�������� ��%�� �������������2�����!��/��2����� � �!����%I�$&���� ��(� (�� ������%�� ���I

� ?3���� ��������� �� ��%�����%�read�!��write��$��������0������ �0��# � 0�� ��/��.�� ������� %& �read5f5��7I�$��������0������ �0���3���� � �/��.�� ������ %& �write5f5� 7I

� $&������ �� ���� �!������/�� ���������%�� ��������&����!��&%������ ����I� 5 � 0������A�!��B��/������%������������ ��

var A, B : file of integer;

?����% ���%��������������

A:=B

<*&��� ����������

��,� -������ &�!.��"��*�

"����� ���������;<-$<7

type FT = file of T;var f : FT; � : T;

����� �� � %������%���������f� �FT�����������0 (��T1�# � 0�� ��������f� f !��# � 0�� �� ��������T�

Page 35: Informatica, cl. X (in limba romana)

$�

;���� �����2������ 4&7&��)2�%&(*��� &7&�1� ��� ���� (���%��� rewrite(f)��=���%���� ��/�� �!������/������%&�%���������������#���4��%&.�%���������/����������.�� ������� %&

write(f, )1

���� ������%��3��������������T��4�������������� %&

write(f5� �5� �5����5� �)

�������2�# �����������#��� �������������

write(f1� �) ; write(f1� �); ...; write(f1� �)�

9���/������ ����&����%&�%������ �!������0���/��2���

'� �"��(

Program P89;��$�����������! �������������������������8�����

type Elev = record Nume : string; Prenume : string; NotaMedie : real; end; FisierElevi = file of Elev;var FE : FisierElevi; E : Elev; str : string; i, n : integer;begin write(’Da������������������������� �’); readln(str);

assign(FE, str); ��� ������98�������������� ���� rewrite(FE); { deschide FE pentru scriere }

write(������������������� ��); readln(n);

for i:=1 to n do begin writeln(��������������������’, i);

����� �������������������8��������� ��������

write(’Numele: ’); readln(E.Nume);write(’Prenumele: ’); readln(E.Prenume);write(’Nota medie: ’); readln(E.NotaMedie);

�� ���������������������8���! �����98��

Page 36: Informatica, cl. X (in limba romana)

$�

write(FE, E); end; close(FE); ��������! �����98�� readln;end.

;���� ��)9&�����4&7&��)2�%&(*���&���(�1���� ���� (���%��� reset(f)��$%&�%���� ��������������!������� �!�������.�� ������� %& :

read(f5��)'

4�������������� %&

read(f5���1���1����1���)

�������2�# �����������#��� �������������

read(f1���); read (f1���); ..., read (f1���)�

- /!������� �!����������&� ��( ����� ���� �0%%�� ���eof(f)�� ��� �# �% � true���������� ����&����%&�%������

'� �"��(

Program P90;��$���������! �������������������������8�����

type Elev = record Nume : string; Prenume : string; NotaMedie : real; end; FisierElevi = file of Elev;var FE : FisierElevi; E : Elev; str : string;begin write(���������������������������� �!�); readln(str);

assign(FE, str); ��� ������98�������������� ���� reset(FE); { �� �����! �����98������������ }

while not eof(FE) do begin

����� ���8����!:�����98��

read(FE, E);���! �����8�����������

writeln(E.Nume, ’ ’, E.Prenume, ’:’,E.NotaMedie : 5:2);

end;

Page 37: Informatica, cl. X (in limba romana)

$�

close(FE); ��������! �����98�� readln;end.

-0�����&� ��������&�������%&�%������ ������ �!������������%����������� �� ��������������#����%����1�/��.�� �!������#���� �������!����% �� ��/���������&���� ���������%&�%�������; ����1��&����%&�%������%�������&�� ������ � ��� �� ����&�&% �� ���%�����3��������� %& �����$���� �%������#�� ��%&�%������%���� �!������#���� �������� �����/��2�����/����� )�*��� ����&�����'=>�

��������� �� � ��!�"��

� $/����%&�%�������% ��� #� ��� �!��I�=�����%�����������S��������%&�%���������� �!������#���� �I

� -���%�������&��% ������������� ��:

type Data = record Ziua : 1..31; Luna : 1..12; Anul : integer;

end; Persoana = record NumePrenume : string; DataNasterii : Data; end; FisierPersoane = file of Persoana;

?� 0% ������%* &�� ������!������� �� �� ���� ������ ���% ��� ������% .���!�����/������/��.�� �!����$� ��� �!������FILE1.PRS1�FILE2.PRS1�FILE3.PRS� ����0�������%������� ������ ���% �1��������#1�� ��1���!���+����% ���

� ?� 0% ������%* &�� ������!��� �!������ �������%* &�������3���������������!�� �!� (������� �:�) �% ������% ��������� �!��D�) ���% ������������/�� ����D�) ���% ���������������� � �4����D�) ���% � ��� �& ��/��#/���D ) ���% � ��� �& ���/����

� ?� 0% ������%* &�� �� �!� (������� ��&��� � ��&������ ��&���%�/�.������/��.�� �!�����������file of real�

� =��.�� �!�����������file of char��/���/�������� ����� 0�� ���?� 0%. ������%* &�� �� �!� (������� ���&���#%� ���%����� �!���

� $%&��� ���&��%���%* &:

Program P91;{ Eroare }type FisierNumere = file of integer;

Page 38: Informatica, cl. X (in limba romana)

$�

var FN : FisierNumere; i : integer; r : real; s : string;begin Writeln5����� ��������� � ������������7� readln(s); assign(FN, s); rewrite(FN); i:=1; write(FN, i); i:=10; write(FN, i); r:=20; write(FN, r); close(FN);end.

��/� -������ � ��

?���%���� �������� ����� �!����%�;<-$<7��������� (�������%��.����3���������� %& �����=��� (�� �!����%��� �������������� ������� %& file of ���%&�%������������������/������(��� ��������%������������#��/�4��'(�&����01�!�� �&�1��������#���������� ��0�� ���<�����&%��������(��.� �� �� ���%�������%�#�� 0��� /��� (��&�&%���%��3��������������!��0��(���& *������1� �������� %������ !� ���� =�� � (�� ��2�� &�����%� ��� ��� �@��!���� �� � 1��� ��1� �&��& �� �������� ������������#����0������(��� ��� /�4��'(�8���01�!�� �&�1��������#��������� �����

;���� � ����� � ���� ����� � /����%&�!�������&������ ���1� /��;<-$<7�� %& �� ������� �������( �%���������(�����/�� %&����� �!����� ����A�� �.!���� �������� %& ������.%����#��������� �������#�( ���/���������f*����B���7�*�.&� � ������%� ����� # � 0�����- /!���� ������� ������ ����� ����� �� ����� ���&�������� �1��%� ��'=A��'���=f�A� �@�� /!��������������=���/����*�&� �������%�����

������������ � ��� � �&������ �

Page 39: Informatica, cl. X (in limba romana)

$�

# � 0���1��%(��� �����������/��� ��� �!��������% ��� ��� ��� ���������&���=��%��������1� ������� ��%&�%�������� �!����%�� ��������)2�%&(*�

A�� �!���� �������� ���!�������.%����� ������� %& :

var f : text;

��������� �������;�� �������%����%������%* &�;<-$<7��-0�����&� �������������text�!��file of char��/������������1�/���/�� �!����file of char������������&�����'=A��f*����?��

"�!������� ����%�� ������ ����� )�%���%�����%���%����1� ���� 0���%������������ �!���:�assign1�reset1�rewrite1�read1�write1�close��=���%&���.� �1���&0 )����������%���������� ��1������� ��������������&�����%�'=A:

writeln(f)@�/������/�� �!������&�����'=A��� /!������������Dreadln(f)@������� ����� �&��% ��- /!��������������������&� � ����� ���� �0%%�� ���eoln(f) � ��� �# �% �

true���������� ����&���� ��������������4�������������� %&

writeln(f1� �1� �1����1� �)

�������2�# �����������#��� �������������

write(f1� �1� �1����1� �); writeln(f)�

4�������������� %&

readln(f1���1���1����1���)

�������2�# �����������#��� �������������

read(f1���1���1����1���); readln(f)�

;�������%���� �!���3� *�� �� ���%1�����*��1��������(� (�� �!������ ������� ������Input�!��Output��"�!����Input������������ ���& ������%�� �������������!������� �%�� ���� �!���������� �� �������&������%�� ������*��1�� �� � ���"�!����Output������������ ���& �������%�� ������������!������� �%�� ���� �!���.�� �� �������!��� �������&������%�� ������*����� �����<������ �!�����/�������2����!��/��2���� �%& ��� �/�������!�1�������#1�� �� /!�����3��������%* &����9 ����&���� �!���������������.�� �� ��/������ �� &����%���� ��������0 �*%��&1�������������� �!���� ����&������������Input�� �Output1�/�� ���������� � ��0 �*%��&����9��3�&��1�read(c)�������2�# �������read(Input,c)1�� �write(c)��������2�.# �������write(Output,c7�

;�����3�&��� �� ����(����&��%* &��P93�� ����� (��������������� �!������3��FILE.TXT��7������� �!������/������%�������� �� �� ���� �!���Input���- /!���� ���������� ����������� ���%� � �� �����,'&�'�.1� � �� /!��� �!��������� ���%� � �� ����%�,!��ACD�.1�,'&�'�.�

Page 40: Informatica, cl. X (in limba romana)

��

Program P93;��$�������! ��������;��9<=8&>?>��

var F : text; c : char;begin assign(F, ’FILE.TXT’); ��� ������9����9<=8&>?>�� rewrite(F); { deschide fisierul F pentru scriere } while not eof do { eof(Input) } begin while not eoln do { eoln(Input) } begin read(c); ����� ��������<������ write(F, c); �� ��������9�� end; writeln(F); �� ����8@=���9�� readln; ����������������������������<������ end; close(F); ��������9��end.

;%* &�����&� (�� �!� (���%������� �!�����FILE.TXT������ ��

Program P94;��$�����! ��������;��9<=8&>?>��

var F : text; c : char;begin assign(F, ’FILE.TXT’); ��� ������9����9<=8&>?>�� reset(F); { deschide F pentru citire } while not eof(F) do begin while not eoln(F) do begin read(F, c); ����� ��������9�� write(c); �� ��������@������� end; readln(F); ����������������������������9�� writeln; �� ����8@=���@������� end; close(F); ��������9�� readln;end.

?3��% � � � ���� �� � ���� � �!����%� � ��� ����� *�% ��� /�� ��� �� �/������#����������� �����������3����0���������� ���� � %&/���� ���������integer1�real1�boolean1���� ������ ��$%�#����� �/���� %& ��3����

Page 41: Informatica, cl. X (in limba romana)

��

!�����(��� � �������� � ����%������ ����� �/��� ��� ��%* & �%����=��%��������1��%���������������S/��������/����3������/�� ����&��%�

=��� (�� �!����%�� ���# � 0�� �������.�� ����read(f1��)��% ��� ���������integer1�real1�char�� ���� ������ ��7 ����������#��� ����� ������ ����(�����# � 0�� ���# � ��� �� %& ���/�����(��� � ��������

?3���� � �����.�� ����write5f5� 7��% ��� ��& ����������� �� �%����� %.& ���5 �% � ��3��������% ��� ����������integer1�real1�boolean1�char�� ��� ������ ��7 �������# �% � ��������#�������� �� %& ����������(��� � �������/��.%����#��������� �����

-��#����������� �����������S����������%�������read/write�����%� %&� .(������ 3����%��� ����%���������# � 0����S�3��������E �

;�����3�&��� �� ����(����&��%* &��P95�� ������!������� �� �� ���/��������&���� ����5��5������� ����������/�� �!����IN.TXT��<�%��������� ����������&��1����(���/���� �����������*2�1������/�� �!����OUT.TXT��&�.�����5���!���1���&����&����"�!�� � ����*2�������=���%���� �1��%������ �!�����OUT.TXT������ �! ������� ��

Program P95;��*�����������! �������<�&>?>� �@A>&>?>��

var F, G : text; a, b, c, p, s : real; str : string;begin assign(F, ’IN.TXT’); ��� ������9����<�&>?>��

rewrite(F); ���� �����9�������� �������

writeln5����� ����������������������7� while not eof do begin readln(a, b, c); ����� ����%��%����������� ��������� writeln(F, a:8:2, b:8:2, c:8:2); �� �����%��%��%���9�� end; close(F); ��������9��

reset(F); ���� �����9�������������� assign(G, ’OUT.TXT’������ ������B����@A>&>?>�� rewrite(G); ���� �����B�������� �������

while not eof(F) do begin readln(F, a, b, c); ����� ����%��%������9�� write(G, a:8:2, b:8:2, c:8:2); �� �����%��%�����B�� p:=(a+b+c)/2; s:=sqrt(p*(p-a)*(p-b)*(p-c));

Page 42: Informatica, cl. X (in limba romana)

�#

�����5B%��'+/',%� '+/'.7���� �����%� ���B�� end;

close(F); ��������9�� close(G); ��������B��

reset(G); { deschide G pentru citire } while not eof(G) do begin readln(G, str); ����� ��� ������B�� writeln(str); ���! ����� ������������� end; close(G); ��������B�� readln;end.

;����� ����������� �

1 1 1 <ENTER>3 4 6 <ENTER><CTRL+Z ><ENTER>

�%* &��P95� �!� (������� �:

1.00 1.00 1.00 1.50 0.43303.00 4.00 6.00 6.50 5.3327

��������� �� � ��!�"��

� $ ��������� ���� ��������� �!���� ���!���� �!�� file of charI� ?3���� �����&�� �� �� ����&�����%�'=A�!��'=>�� $ ��������� ���� ��������%�������read�!��readlnI�9 ��������%������

write�!���writelnI� 7 �� ���/���3������&��%���%* &:

Program P96;��" �������! ������9�������� �����

type FisierNumere = file of integer;var FN : FisierNumere; i : integer;begin assign(FN, ’CON’); rewrite(FN); i:=1; write(FN, i); i:=2; write(FN, i);

Page 43: Informatica, cl. X (in limba romana)

�$

i:=3; write(FN, i); close(FN); readln;end.

?3���� ����(�� ����� �! �������� ��� ?� 0% ������%* &�� �� �!� (������� ���%�������%����� �!���� ���� ?� 0% ������%* &�� �� �!� (������� ���&������#%� �������.�� �!���� ���� 9 ����������� �� �������%* &��/���/�& * (�� ���/��.�� �!���� ����"��� .

�������� � �!������%�������%���&���/���*��!�������&���� ������ �������� �����?� 0% ������%* &�� �� �!� (���& ��&���%�/���*��!���& �&���%�� ������� ��� ������������� ��

9 ����������� �� �������%* &��/���/�& * (�� ���/��.�� �!���� ����"��� .�������� � �!������%�����������&���� ������ ��������� ���!���������#�������ADMIS1�RESPINS��?� 0% ������%* &�� �:�) �!� (���%������� �!�����/������������ �D�) ��� (��%��%��������(�#�� � �!����D�) ��� (���� �!���� �������������� ��%�����&��� ����%������&���� ������

���������������#�� ��� �!����������� �D�) �!� (������� ���������� �!����������� �1������ �������&��������%����

�1��1���!� �&��� "��� �������� ���� �!���� ����%������&��% ����� ��1���� ��������� ���:

@��&������%������integer�D@��&�������string�������%�������� ����D@����&�������string�������%�������� ����D@��%� �� ���������� ����real�D@��%� �� ���������� ����real�D@��%� �� ���������� ����real��?� 0% ������%* &�� �:�) ��� (��%��%��������(�#�� � �!�����/������D�) �!� (���%������� �!���������� �D�) ��� (���� �!���� �������������� ��%�����&��% ����� ������ ������

�� ���:@��&������%������integer�D@��&�����string�D@����&�����string�D@��%� �&������real��

"�!������ ��/������������0��� �! ������� ��

Page 44: Informatica, cl. X (in limba romana)

��

�&� �� ���0�.�*���� ��� �������������� ��������%��

type Obiect = ( Istoria, Geografia, Matematica,Informatica, Fizica);

Nota = 1..10;SituatiaScolara = array [Obiect] of Nota;

'����(���%���� ���������� � �������������� ��SituatiaScolara�

#��)���(�%� � �� ��������� � ��������������� � � ������ �OrarulLectiilor����������%������ ����( *

type ZiDeScoala = (L, Ma, Mi, J, V, S);Lectie = 1..6;Obiect = (LimbaRomana, LimbaModerna, Istoria,

Geografia, Matematica,Informatica, Fizica,Chimia);

OrarulLectiilor = array [ZiDeScoala, Lectie] of Obiect;

$������������ ��������%��*

type Tablou = array [1..10] of integer;var x, y : Tablou;

����%��+����������� ���� ���,����������* !�� �������������� ���������������,���-���x.�!�� ��� ���������� ���������������,���-���y.�!�,���������-��� ���������������������,���-���x."!�,���������-��� �����������������������,���-���y.�!�� ��������������������,���-���x����� ����������������,���-���y�

%������������ ���/�≤��0�� �����1����� ��� #�� $������� ���2��-���%� ����������)3��34����������� �������������,����������� � �������&���( ����������1����������,��� ���*� ������� $�� #�� ��

'� ��������%����&��&�� ����� ������ ����������������������string5�)���(�%�� ���( �������������������%�

(��2��-���%� ����������)3��34�������&���( ����������1���������,��� ��� ����������6��������� ��� ��� � ������+���� ���� ��’soare’�,��&��&��� ������������’eraos’�

,��'����(���%���� ���������� � �������������� ��Data���Persoana�����������%����� ����( *

type Data = record Ziua : 1..31; Luna : 1..12; Anul : integer; end; Persoana = record NumePrenume : string; DataNasterii : Data; end;

Page 45: Informatica, cl. X (in limba romana)

��

/������������ � �� �������� ��������*

type Angajat = record NumePrenume : string; Salariu : real; end; ListaDePlata = array[1..100] of Angajat;

2��-���%� ����������������������������� � ����������������/�≤���0�����7�%����&6���( �����������&����%��������������7� ��/����7�%0������� ������������������ �

1����������������%����� �% ��withI

�2��2� ����%�,����������-�������,���-����������������%������ ����( *

var V : set of ’X’..’Z’; I : set of 8..9;

�������������� ��� ��������������&��������������������������&�-� � ������2��-���% ����������������&���( ����������� � � �����,����������� ��������������#� �� ��� ����� � �

�#��8�������� ����( �������&��������)3��345���������������%�������� ��assignI

�$��� ���������&� �&�������1��& ��%����������%��������������� ����������5

�%� ���������� � �� �������� ��������*

type Angajat = record NumePrenume : string; Salariu : real; end; FisierAngajati = file of Angajat;

2��-���%� ��������������������( �&��� ��SALARII.DAT���1������1�������&�����������&����������������7�%��������������,������������������� � �

�'��2��-���%� ����������)3��34�������&���( �������������%� ��&��� � �SALARII.DAT�����1���� �����������

�(��������������������� � ����������1��1�����(����1��&��� ���� ��C8(A=>">&>?>�9������������&��� � ����%����1���� �� ��������������������������% ��� � ������ ,�6����BUN1�DEFECT��2��-���%� ��������������*

!������( �&��� ���� ��MEDIA.TXT������� � �����%��������������� �� ������������� ,�����BUN��� �DEFECT���������������,������&��� � ���������.

�!��&���( ���������������&��� � ������

Page 46: Informatica, cl. X (in limba romana)

��

�������

���������

��� ���������� �� ����������

���������������� ������������������������������������������������������������������������������������������������������������������������������������������ ������������������������������������������������������� ����������������������������������������������������������������������������������������������������������������������������������������������� �!���"��������#���������������������������������������������������� ����������������������$������������������������ �!���"���������#��������������������������� ������

%���&��������������������������������������������������������������������������������������'������������������������� ������� �������#��(��������������)���������������������������������������������������'�������������������������������������������������������������������������������������*��'�������������������������� ��+�������������� �������������������� ����������������������� �����!��������������� �����!�������"����������������#���������� ��$%&���%��'������

*��'��������������������������������������������������������������������������������������,f������-��%���&����������'��������)�����������������������������'�����������������������'�������������������������������������������� ��������� ,)�������-������������ ������������������������'���� ���������

�����������������������������������������������������������������

$����������������������������������������������������������������������������������������'���������������

���������������������(������������������ ����������'������������������������������������+

Page 47: Informatica, cl. X (in limba romana)

��

�����������

��������������������������'����������������������.����������������������������������������������)��������������������������������������������%����������������������������������������������

��������������� ����������� ��������������������������� �����������������

/���������������� ������������������,���)�����������������������-���������������������������������������������������������0����� �����������������������1�"�����������+

����������������

���������� 1� "�� 0�� ������������ ����������� ���������� (���������� �������� ���������������������+

����������������0������ � ���� ���������������������������������������������������)"���

$��� � �����������������������

� ������ � ������

! 2�222 "! 3�45"

" !�222 "" 3�365

4 !�676 "4 3�6"3

3 "�222 "3 3�676

6 "�4"" "6 3�833

8 "�676 "8 3�922

9 "�729 "9 3�966

7 4�222 "7 3�729

5 4�!92 "5 3�767

!2 4�4"" 42 3�529

!! 4�365 4! 3�563

!" 4�676 4" 6�222

!4 4�922 44 6�233

!3 4�729 43 6�279

!6 4�529 46 6�!"5

!8 3�222 48 6�!92

!9 3�279 49 6�"25

!7 3�!92 47 6�"37

!5 3�"37 45 6�"76

"2 3�4"" 32 6�4""

Page 48: Informatica, cl. X (in limba romana)

��

���������� �����&�������������������������������������'�����������������

��������� �≈�!"#"������

�������������������������������������������������� �������#����1�"8��������

����������$�≈�%!&''������

���������������������������������������������)���� ��ΓΔ���Ω#��1�"3���������

����������%�≈�%!"#"������

%�����������������������������������(������������������ ����������'���������������������������������������������������������������+

�������������)��������������������'�����������

��������������������������������&�����������������������������+

!�'� ����,'���-1�"!2�1�!�2"3������,≈!24�����-:

!�*������,*���-�1�""2�1�!�237�698������,≈!28�����-:

!�+������,+���-1�"42�≈�!25�����:

!�$������,$���-�1�"32�≈�!2!"�����:

!�,������,,���-�1�"62�≈�!2!6������

��������� �� ���������� �������������������������������������;�%���� �����&������� ��������������������������������������;� ��������������������������������������������������';�%������)����'�;� ������������������������������������������������������������;� %������������������������������� ����������'�������������������������

���'����������+�-���������������������������������������:�-�����������������������������������)���:�-��������������������������������������<�:�-����������������2��!��"�������5:�-���������2��!��"�������5����������=��>��?��@�������������,�-:f- ����������������������������../##�,..�>�����##�>���������-������������

����������:�- ����������������������������../##/���,���>����������-�����������������������:.- ����������������������������00� ����,00�>����� �>���������>����-��������

������������������� /������������������������������������ ���&���������6����������������������

���������������������������� ��!�222�������'������������������ $�������������)����������������������������������������)����'�

�������������������������'�����������

Page 49: Informatica, cl. X (in limba romana)

��

�� ����������� �� ������������� �����������

����������������������������������������������������������������������������)���A��������������������������������������������������

/�������� �������������������������������������������������������������+�-������������������������+�2��!��"�������5:�-����������������������������+��������:�-��������������������������:�-���������������������A������������������������������������������������������(������������

����������������������������������������������>�����������/��������� �����&���������������������+�-��������� ��#:�-������B������������ ������ ���#:�-������B����������� "��.������.��#:�-������B���������������� ����#:�-������B�������������� 21��"1#:f-������B����������� #������0����#������0��#:�-������B����������� =��>#�������������������������������������������������������������������������� ��#�

��������������������,�����2�����-�C����������������#���������������������������������������������������()���

#��������� �������������()����������������������������������������������������(�����������$����������������������������)��������������������������0����������������������������(����� ��*��������0�����������������������������������������������������)������������+

!����������+� 2��!#:"����������+� 22��2!��!2��!!#:4����������+� 222��22!��2!2��2!!��!22��!2!��!!2��!!!#:3����������+� 2222��222!�������!!!2��!!!!#�������������������������,#�=�!-���������������������� ���������������������

#�������������������)������������������2����!��/�������������������������������#�������������������"#������������������

���������������������������������������������������������������������������������'������!���"���������������������������������,f������-�

����������������������������������������� ��!�������������������������������������

Page 50: Informatica, cl. X (in limba romana)

"#

������ ���������������������������������������� �������!��������������"��� ��������#���������������� ��������������� �� ��������$����%�����&������������%�%�����������������%�������� ������� ��� ����������� �� ��������

������������������������� ���������'���������������!���"������������������������������������������)�������������#��(���������������������� ��*�������������������������'������������������0��f�������3�� �������������������������������������������������1�"��4��3�������7����'�����������

�4"#4!�! 2�" !

�44#4"�! 22�" 2!�4 !2

�43#4"�! 22�" 2!�4 !2�3 !!

�46#44�! 222�" 22!�4 2!2�3 2!!�6 !22

�47#44�! 222�" 22!�4 2!2�3 2!!�6 !22�8 !2!�9 !!2�7 !!!

�49#44�! 222�" 22!�4 2!2�3 2!!�6 !22�8 !2!�9 !!2

�48#44�! 222�" 22!�4 2!2�3 2!!�6 !22�8 !2!

��������������������$������������������������%������&�'������(

A�������������������������������������������� ���&��)����������������������������$��������������������������������������������� ���������������������������� �������� ��������������(�������������������������������)����#��������������������������������)�����

���≥���%������)��������������+

��≥��������

0����� ���&��������)"���&����������������������������������������+

'����������������������� ���%��������������������������������������������� �����������������������

%���&����������)����������������������������������������������������������������� ���������#���1�"8������������������������

� ≥�������$ ≈�%!&''�

���������#�1�6����������������������������������������6���������+��>�22222��>�2222!��>�222!2

Page 51: Informatica, cl. X (in limba romana)

")

5�>�222!!��>�22!22

����>�!!22!�

C����������������������������������������������������������)���D������E��� ���� ������!672�

(�)�����������������������������������(�������������(���������� ��������������������������������� ��������������������������������

��������� �� ���������� ����������������;�%����&����������������������� ��������������������������������������������;� $&�����������������������������������������,#=!-������������������������

�����������������������#��������������������;� ��������������������������;������������������������#���������;� ��������������������������������������������'����� ���������� ��������

���������������������������;� �������������'�����4���3�����8������������������9����'������������C������������

4��������������f�������3�� %��������������'����!22��222����2!2������������� ��������4�������������

f�������3����1�6� ��������������������������������������������������������������������

������������)������������������������; C���� ���������4��������������f�������3����1�8������������������������'���!���"�

�8���6���4���8���4���"���!�� ���������������������������������������������'���������)�����������

������������;$&���������������������������������������������������������$�������������)���������������������������������������������������������������������������������D������E����$�������������)����������������������������������#��������������������������������'�����������

� � ���!�� ����"��� !��#�$���A�������������������������������������������������������������������

����������������������������������������������������������������������B��������������������������������������������������>����������������/�������������������������B�����������������������������������������������(������������������������ ���������������������������������������

������������������������������������������������������� 2��!��"�� �����5#�������������������3������������$&�������������������������� ������������ ����� � ����

Page 52: Informatica, cl. X (in limba romana)

"

$��� (��) *�+� ,-���.

2 2222 2222 2222 22!!! 222! 222! 222! 2!22" 22!2 22!! 22!2 2!2!4 22!! 22!2 22!! 2!!23 2!22 2!!2 2!22 2!!!6 2!2! 2!!! !2!! !2228 2!!2 2!2! !!22 !22!9 2!!! 2!22 !!2! !2!27 !222 !!22 !!!2 !2!!5 !22! !!2! !!!! !!22

/�f��$��������� ����

$��� � ����������������

��������������������������������������������������������2��!��"�������5������������������������������������������������������������������������������������������� 0�� ���� � ��3� �������������������+,�--� ,�#���������������������(����#�����(�����.����-���������� ������!587�

0�����/���������

,�&�����%�����

������ ������ � � ����� �

� ����� � ����

� ����� � � ���� �

� ���� � � ���

� ����� � � ���� �

� ���� � � ��� �

� ���� � ��� �

� ��� � � �� �

����� �� ! ����

" ���� � # ��� �

$ ���� �� % ��� ��

& ��� � ' �� �

( ���� �� ) ��� ��

* ��� �� + �� �

, ��� �� - �� ��

. �� �� / � ��

$��� � ��3������+,�--

0�����/���������

,�&�����%�����

Page 53: Informatica, cl. X (in limba romana)

"*

0�����/���������

,�&�����%����� 0�����

/���������

,�&�����%�����

� ����� � 0 ����� ��

���� �� � ���� ��

� ���� �� 1 ���� �

��� � 2 ��� ��

� ���� �� 3 ��� ��

� ��� � 4 ��� �

� ��� �� 5 ��� ��

� �� �� 6 �� �

���� �� 7 ���� ��

� ��� �� � ��� ��

8 ��� � 9 ��� ��

: �� �� ; �� ��

< ��� �� = ��� �

> �� � ? �� ��

@ �� �� A �� �

B � � C �

D ������ �� � ���� �

E ����� �� F ���

G ����� �� H ��� �

I ���� �� J �� �

K ����� � L ��� �

M ���� �� � �� �

N ���� �� O ��

P ��� � Q � �

R ����� �� S ��� ��

T ���� � U �� �

V ���� �� W �� ��

X ��� �� Y � �

Z ���� �� [ �� ��

\ ��� �� ] � ��

^ ��� � _ � ��

` �� �� K4= ��

(��������������9���������������������"9�1�!"7���������������/�������4"���������������,����������������2222222��222222!��22222!2��F��22!!!!!-�����������������������B��������������������������������������������������������� �������������������������2!22222��2!2222!��2!222!2��F��!!!!!!2���������������������������

Page 54: Informatica, cl. X (in limba romana)

"�

������������&����� ���������)�������� �����!!!!!!!���������������������������������5� ���,(�����-�

�������������'�������������������� ���������������������������������������� ������������%�� �&������� ��� ������G(HG���� ���������� �� ������(��II���������������������������������������+

!2!22!!�����!2!2!22�����!22222!�����!2!22!2�����!2!2!22�

$������������������������������ ������������������%���&������������������������������

!2!22!!�����!2!2!22�����!22!!!!�����!2!2222

���������� ��������(��II���� ������GA/�%����)���������'����������)������������������������������������������

�������������B����������������������0�����)������/(��(J���B�����������������������������������������������'����������������������������CH3��%���&�����+

ord(’S’)=83; ord(’T’)=84; ord(’A’)=65; ord(’R’)=82

�����D������������������chr�������������������������������������B��������������������������(������

chr(83)=’S’; chr(84)=’T’; chr(65)=’A’; chr(82)=’R’.

A�����������&�������)�����������(��II����������������������������������������������������)�������������� �� ������ ����������������������������� ������������������������%�����������������������������������������������������������������������(��II������������������+,�--�.����������������&������� ���7��������������������"7�1�"68����������������������������������������������������������� ������ � ��6�

1����2�� ��������������&����� ����������������������� ��2� ��!"9�����������������(��II��1������3!����������������������������������������������������������!"7���"66��(����������������� ���������������������������������������������������������������������������������������������������������������/�������&������������� ������ � ��6�� �������������������������������7 89:";�<�����������������������<����������� ������!55"���������$(�=�,�B������-��$�������������������������������&�����������)������������������������������������� �����������������

C����� �&��������� �������������� ����� ������ �����7����������/0�1-�,�>�����������2�����5���(�����.��������-�������������������������������������

*�������������&����������������������������������������7�����������������������������������������������������������������������������������������������+

!������1�"4�1�7�����: !�+��������1�"42�≈�!25�������:

!�'� ������1�"!2�≈�!24�������: !�$��������1�"32�≈�!2!"�������:

!�*��������1�""2�≈!28�������: !�,��������1�"62�≈�!2!6��������

0�������������������������������������������������,�2��-��������������������������������'�*�+�$���,��

Page 55: Informatica, cl. X (in limba romana)

""

/���������

,�&�����%�����

#��������

������ ������� �

� ������

� ������ �

� ����� �

a a a

] �� ��

_ �� ��

K4= � ��

� ������� �

� ������ ��

� ������ �

a a a

. ���� ���

b ��� ��

c ��� ���

d �� ��

e ��� ���

f �� ���

g �� ���

h � ���

i ��� ��

j �� ���

k �� ���

l � ��

m �� ���

� � ��

� � ���

���

$��� � ��6,�������������������+,�--�.����

/����!+>���������������������(��II

/�����"�+>�������������������������������������:>���������)�����:>��������������������

��������� �� ���������� � ������'�������������������������������'����������������#���������;� %������������������������������������������������������������������ ���������� ��������+��2����������������������������������+�!"4��38!��56"��974��39"�� %��������������'��������������� ����������?��+

�- 0011 1111 0100 �- 1110 0010 1101

0�����

Page 56: Informatica, cl. X (in limba romana)

"�

�- 1111 0000 0100 �- 0011 1100 1111

�- 0010 0001 1011 f- 1111 1101 0000

� ���������� ��������(��II��&��������+

�- A+B �- NEXT I

�- FOR I=1 TO N �- PAUSE

�- PRINT A$ f- PROGRAM

� %��������������'��������������� ��������(��II+

�- 1000010 1100101 1100111 1101001 1101110:

�- 1010011 1110100 1101111 1110000:

�- 1000101 1101110 1100100:

�- 1101001 0111010 0111101 0110001 0111011�

� $�������������)������������������������������������������������������������������������+�-����������������0��1��2�������9:�-��������������������A��B��C�������Z:�-���������������������a��b��c�������z:�-�����������������������������:�-�������������������;��<��=��>��?��[��]��{��}��/��\�

�%� ���������� ��&�'�#�� ������!�

������������������������������ ��� ������������������������������������������������������������������������������������������������������ �!���"���������#���������������������'���������������/�������������������� ������ ������������������������������������������������ ������������%������&����������������������������������������������������������������������������������������������������������������������(���������������������������������������������������,����������������������������������������������������������������������������-������������������������� ���������������������K��������&L�

����������� ��������������� ���������������������������������� ���������������������������������������������������������������������������������������������������������������������������������������������������� �����������������������������������������������������

�� ��� �� ���� ����������������������'���� ��������� ���������� �� ������/��������������������������������������1��,�-��0������������������������������������������ �����'����������������������������������������@�-������ ����������������������!���"��������#�,f�����6-��.������������������������,�!-���,�"-��������,�#-�����������2�������� ,���� ������� ��.���� ���� �������������� ������������������������������������������������-�

Page 57: Informatica, cl. X (in limba romana)

"�

����������+�������'��������� ����������,���-����� ��������.� �-����� ���������'��!�������%���������(.���-����� ����������������������'���!��$�����%�����������(

%�����������������������������!���"��������#����������������������������+

ti = ti-1 + ΔΔΔΔΔt.

*����������������������������2����������.�����������������������������������������������������������������������,�-������ �������

%���&������� �����������)�����B�������������������������������������������������������4!�.����� ����B����������������������������������46 A!2>6��

#������� ��������������������������������������������!��� �����%�����������������������

Page 58: Informatica, cl. X (in limba romana)

"�

$��������� ����������������'�������������������������������������������������,�!-���,�"-��������,�#-�� ��������������������������������������������������������K��������&L� �������������������������������������������0���������������������������������������������������������������������'���������,��-������������������������������!���"����������,������6-�

.��������������������!���"����������������������������������������������������������������������������'�������������� ��������������������������*��)��(���������������������

%���������

���������!���������������3�ΔΔΔΔΔ�!�����444!������������5��3�ΔΔΔΔΔ�!�����444!������������.4

*�������������������������������(��������������������.�����������������������������������������������������������������������������������������������������������������������������������������������

%���&����������������������������������������1�43�����&�1�3"�������1�2�!���0����������)��������1�>82�����&�1�=82�����1�!���/������������������������������������1�2����&�1�!62�M�@B����1�6�M�@B�

N�������������������#�����������������������������������������������������������,B�����6������-+

�����$��������������'��������������0����� �����������!���"�������������������������������'����������������������

���������� ��������������

������������������������ ����������'���������+

%���&��������������������������������

����������������������������������

����������������������������� ���)��������������������������1�"68����11�6�O�!2>6������$�1�36����������

Page 59: Informatica, cl. X (in limba romana)

"�

%������������������������������������������������������������������������������������������������������������������������������0������������������������������������������������������������'����������

I�����������'����������������������������������������������������������������/���������������������!���"�����������������������&���������������������������'������������%���&�����������������������������������������,(�≈�8�43�����-���������������������������9���������������������������������������������������������������,�������-����� �������������������� �������������������������������0���������������������������������+��2������������������������������������

%����������������������������'��������������������������� ��������������������������������������������������(����������� ��������A��������������������������������������������������������������������� ���������������������������������������������'����������(��������������� ��� �������C���������������������������������� ��������� �������������������������������������������������'����������+������������������������B����)����������'������������������� ��������������������������������������)��� �������������������������&'����������������������

��������� �� ���������� ���������������������������������������'����������������������������'����������;� %���� �����&���������������������'��������������������������������� �����

���������������������������������� $&�����������������������������������������������������)�����������

���������;� $&������������������������������������������������������)���������

����������;� ����������������������������������������������������������������������

�������������������������&�����������������'���������;� (���������������������������������������������� �������������!22���� ����

"2�M���$�����������������������������!����/������������������������ �����������!2>4����%������������������������������������������������������������6������������

� G�������������������������������������B�������� ���)�������������������B ������������������/��&����������������������������,!�������������������-�������&������������>�����������,!��������������!2��-��� ���������������������� ���)���������������� ��������42������������� �����������������������72�� �����!222��;

/������ ���)��������������������������������������������������������������������������2�� �����!22�μ1��(��������� ���)����������������)�������������� �������� ������ ������� ������ ������ ��� 2�!� μ1�� /������ � ��)��� ��������������������� �����������������������32�222��������������� ��������������������������������������������4����;

�����������������������������������)������������������������)���;

Page 60: Informatica, cl. X (in limba romana)

�#

� $�������������)���������������������������������������������������������������������������������������������������������������$�������������)�����������������������������������������������������)�

�(� �!����$���� ���)���#��

-������������������������������������������&��������������������������������������������������������������������������������B���������������������&���������������������������)����������)���������������������������������������������������������������������������+���������������������������������������)����������������������

/������������������������������������)��������� ��������� �������*� ������������������������������������������.����%��������������)����� ���������������������'�������������������,�������� �������������������)������-�H�������������������������������� ��)�������������)B��������������� ��������������������������������������������������� ���������,f�����C-��%���������������������������������������������������������������������������������B������������������������������������������)�������

����������+���������������������!������'��

%���&�����������������������������)���������������������������������"3>42�����@���,698>522��������������!���"�-�����������������������������������>�����������63>82������@����H��������������������������������������������������������������������������������������������������������������832�×�372��722�××�822��9"2�×�322�������!2"3�×�!2"3�����������

$���������������������������4�����%��5����%���������� �!��� � �����%�������������

Page 61: Informatica, cl. X (in limba romana)

�)

0������ ��)�����������������,�����)��-�� ����������������������������������������,����������-�������� ��)������������������������������(��������������������������������� ��������,����������-��N���������������������������������������������������B�������������������������������������������)��������/����������������������������������������)�������������+

�����-�)������

�����#>����#2�������������������������������������������������������������������������������,f�����C-�

0����� ������������������������������������������������������������������������)���� ��������������������������������������������������������)�������������������������������+

���� ��-�)������

-�����������������)����2������������������ ������������������"3�,��������)����-����"6�,����������-���������������������/��������������������������������������������������$�����������������������+

����6�f���

�����f��������������������������(���������������������������������)��������%���&������� �������������#>�≈�#2�1�8"6���1�4"����f�1�"6��������������������

C����������������������+

���� �7�$�"�7�$�"�7����� ��≈�"!$�8�����

C������������������������!�6��������������+

�����!"�7� �$''�7��"�7���≈�&6��(�����

0��� ��������������������%��������������� ������%������������ ������� ��������� #������� � ����������� �� �����������!����� �������������������������%�������������

I�)���������������������������������������������'�������������������������)�����������I�)������������B �����������������������'��������������������������������������������(������������������������������������������������������������)��������������������������������B ������

I�)���������������������������� ����)�������������������'���������������������������������)�����������B������������������������������+����������������������������������� �������������������������� ��������������������������

��������� �� ���������� N����������������������������������������)����� ��������������������������;�%�������������������������)�����������������

��������������;� ���������������������������������������������)�������������;� ���������������������������������)���������������;���������������������

��������������������������)���������;

Page 62: Informatica, cl. X (in limba romana)

� $���������������������������������������)��������������������������!2��!2��������������'�����������������������������"3����������@����D�����������������������������������+�����)�������B����)��� ��B������)���

� � ���������������������������)���������������������������"2��"2�����������������'�����������������������������82����������@��;�/������������� �����"68������������������������������������������������

� H����������������������������������������������!2"3��!2"3������������/������������ �����83��������������������������������������������������� �������������������������������������������������4����;

I�)���������������������� ��������� �������������������������������������������������������� ������������������������������������������������������������)��������������� ���4����������;�6����������;�7����������;

�*� ��+��$������� �� ����&������� �����������

A��������������������������������������������������������������������������� ���������������������� ����������%������������������ ������� ���������������������������������

����������� �������� �������������������������� ����������� ���� ������������������������������������ ��������I�������� ���)������������������������������������������ ���������������������������������������������/������������������������������������������������������������������������������������������C�������������������������������� �������������B �����*��'���� ���)����������B ����������������������������������������&���������������������������������������� ������)���0�������������������������������������������+

>�B �����������������������������������'������������������������:>��������������������������������������������)������:>���������������������������������������������G���������� ����������� �� ������ ��� ������� ���'�������������������

����������0��������������������������������B�������������������+>�������������� ��)��,��-�������B���:>������������������������������:>��������������)�����������0����� �� ����������� ����������� ����������� �� ������ ��� ������ ���� ������ �

��������������������������������������������������������B�����

0�������������������������������%�����������������������!��������/�������������������������������������%�����4 ����!��5���������������������������������������������������

%���&������� ������������������������G.�� �������������������������������������������������)��������(��������������������������������������������� �������,f�����D-��0��������������������������������� ����������������������������������������� ����������>��������������

0�������������������������� ��������������������������������������������������������������������������������������������������������������������������

Page 63: Informatica, cl. X (in limba romana)

�*

������������������������������������������������������������������������� �� f�������E�� 0�� ������������������� ���������������������� ���������� �� �������������������2���������������������!����������������2����!���������������������������������������������������������������������������������)���������������������

0�������������� ���� � �������������������������������!������� ������������������� ����� ���������0��������������������� ��������������������������������������������������!���������������

����������/���������������������������������������������,��-������������.� �-�����$����

���������������������'����!�����������������

Page 64: Informatica, cl. X (in limba romana)

��

%���&����������������������������D�� �������������������������������������������E�� ��������������������$��������������������������������������� ��������������������������'����������������

A��������������B��������������������������������)�������������� ���������������������������������������������������������������������������������������������������������������������>�������������������������������������������>��������������)������������/������������������������������������������������������������������������������ �����������������/��������������������)�����)����� ����������������������������������������������������������������������������� �������������������J������������ �� ����� ����������� �������+� �������� ��������� �� ��� ��������� ���������������������

#��������������������������������������������������������������� ���������������� ������������������� �������������� �����

%�������������B���������������������� ���������������������������/�������&������������ ����������F�� ��������������������������������� ���������������������������

#������� �-����������������� ������ ���!�������������������������� ����� ��� ��� ������ ����������� �� �����

%�������������B������������������������������������������������� ������

����������0����������������������

Page 65: Informatica, cl. X (in limba romana)

�"

��B�������������������������������������������������������������� �����������

(������������������������������������������&����+����f������� �>��������������'������������������� ���������������:#��� ����� �>���������������������������������������������������������

�����������������:#���� � f�0��� >� ���������� ������������� �������� �������� ������� ����� ����� ���� ��

����)�������������������:��#��� ����� �>����������������������������� �����������������:������f������� �>��������������������������� �����'��$�������� �� �������������� ���������� ���������� ��� � ����������������������

���������������������������������������������������������������������������������������������������� ����������� ���������������

�������������������������&������� ������������� ���������������������������������������������������������������������������������������������������������������������������������������������������������������%���&������������������������������������������������������������43�'���@�:����������������������������������������������>������!�+���@�:�����������������������>�!�$���@��

��������� �� ���������� ������������������������������������������������������������������������������;� %��������������������������������������������������+

�- ���������������:�- ���������������:�- �������������:�- ������������:�- ����������������������:

������������������������������������������������������������������

Page 66: Informatica, cl. X (in limba romana)

��

�- �����)����������:�- B ���������)������

� N�����������������������������������������������������������������+�- ����������:�- ����������������������)������������������:�- ������������������:�- �����������������������������:�- �������������������

� %����������������������������������������������������� ��������������������� $&����������������������������������������������������� ������������������������������;�%�����������������;� 0��f�������F�� ������������������������������������������� ����������!22!!2!�

0��������(��II�,������3-����������� ��� ����������������������M��H��������������������������������������������������������������������+

�- >: �- <:

�- r: f- K:

�- W: �- a:

�- 9: .- @�

%������������������������������������������;�0������������������������; ����������������������������������������������������������������;

,�&� �� �!���"�#!��� ��� ���������������������$������*&�'�������������������������1������2#3�)4�

��5�������������������������'�6�������7����������������������1������������������'����������,

8�-�#####3�7�-�####)3���-�###)#3�+�-�###))3����3�9�-�))##)�

+����������3�����'!��������������3���$������1������###)#3�#####3�###)#3�####)�������&����3�����'!������������3���$!����78��

���������������������������������3���������������� �����1���������������������������� ������� ����� ��� ����� ��� ���1������ ������� :� 2�3��3��3� ���3��3��3� 3��3� ���3��4�� +������������������������������$������1���������$����������������������������������������$�������� ���

%��+�������������������������������$������1���������$�����������������������������&�����������$��������� ��������������������������������������0��� �����������$�����������������3��������������'�����'���3����-����3��������-�����%����������������(�

(���!�����������������������!���&������1���������8��;;��<����=

*���������!��������<���$����������'������!������8��;;��<����3������������������������������������!���&������������������������)#��������������$3���������������1����������������� ##����������������������

Page 67: Informatica, cl. X (in limba romana)

��

-��>�1���������������/8��8?������������'��������������������������������������������������

.��>�1���������������/8��8?������������'���������������������������������������&������������������������

/�����������!������������������������������������������������)#��)#���3�������&������� ���������������������������*#����������@����/�������������!�����) �������$�����������������������������������$��

�0����������������������������'��������������������������������,

�� ���������������. � ����� ��������������.

� �������������. !� ������� ���������.

�� 1����� ���������. �� �������� �������.

�� ������� �������1��. "� �!������������ �����������

��1�� A��������� ������� �������� ���������� ������������� ���� �����$��� *�-� � ��� �����'��� ��� #3)�� /�� ��������� ����� '��� ������������ ����������� �� ���� ��������� ��� *� ����!���������������������'����������������������=

�1�����������!���������������������!������������������������������������������Δ#�::�*�B�)#-"��3�����������$�:�*#����������������������������:�) ��

� 1��;��������������������!������������������������!����������������������������������,

%�( ������3������������$��1�������������.%)( ��.

%1( ������������������1�����.

% ( �����. %�( �����������������������.

%*( ���������. %�( �������������������1���.

%�( ���1��.%�( ��������������������������� ���!����$�����1�����.

%�( $������������������'�������������������������������� ���

�%1��;��������������������!�������������������������%�����������!���(����������������������������������������������������������������%����������������(,

%�( �������������������������!�����������������.%)( ����������.

%1( �������������$�����������!����$�����1�����.

% ( �������. %�( �������������� ������������������!����$�����1�����.

%*( ���������. %�( ���������������������������!����$�����1�����.

%�( ������������.%�( ������������$������1������!������ �.

%�( ���������������������������!�����������������

P�C����������������������

Page 68: Informatica, cl. X (in limba romana)

��

�������

��������������������� ������������

�������������������������

���������������� ����������������� ������������������������������������������������������������������������������������������������������������������� �������������

������������������ ���������������������������������������f�������� ������� ������� ������������������f���� �f�������������������� ����������

���������������� ������ ��������� �����������!"�������� ������������������� ��������������������#$���������� �������

������������ �#$������������$��#��%�������&'"��������������������������� ��������������������%���������� �������

������������%��� ����$����#��(������������������������������������������������'"���������������������������� ��������������������)���������� �������

������������ �)������������$��#����%'"��������������������������� ��������������������*��������� �*������!�$��#�

%�������+'"������������ ������������������� ��������������������#,����������

#,������!�$��#��%�������&����-����.����-����������.����- ���������.����-�����������.���-�����������.����-�������������.�

������ ���������� �������������������������������������������� ������������

��� �����

����� ������������������������������� �

������� ���� ����� �!���������

$ $ $ $# # # #% #$ % %) ## ) )/ #$$ / /0 #$# 0 0, ##$ , ,

������� ���� ����� �!���������

+ ### + +* #$$$ #$ *& #$$# ## &#$ #$#$ #% 1## #$## #) 2#% ##$$ #/ (#) ##$# #0 3

Page 69: Informatica, cl. X (in limba romana)

��

������� ���� ����� �!��������� ������� ���� �����

�!���������

#/ ###$ #, 4#0 #### #+ 5#, #$$$$ %$ #$#+ #$$$# %# ###* #$$#$ %% #%#& #$$## %) #)%$ #$#$$ %/ #/����� ����� ����� �����)$ ####$ ), #4����� ����� ����� �����/$ #$#$$$ 0$ %*����� ����� ����� �����

0$ ##$$#$ ,% )%����� ����� ����� �����,$ ####$$ +/ )(����� ����� ����� �����+$ #$$$##$ #$, /,����� ����� ����� �����*$ #$#$$$$ #%$ 0$����� ����� ����� �����&$ #$##$#$ #)% 01����� ����� ����� �����#$$ ##$$#$$ #// ,/����� ����� ����� �����

�������������� ������������������������������������������� ������������� �����!

-)*0,�/).#$6 )7#$)8 *7#$%8 07#$#8 ,7#$$8 /7#$"#8 )7#$"%�

9�����������������������������������������������-�������.���������������� ����� �� ���������������������������������3��� �������������)������������� ��%��!������� ��������������������)$$$�������� �������"��������������$�$)�

"������������������f��������#��� ���� � ������������������� ������������������������ ���������������������

������������������������������������������������ ����8#������������������������������"� ����������!

� 6 ����"# ��� �#�$��"#�"% ��� �"��

:�������������������������������������������� ����������������!

-� .6 ���� ��"#

�"#� ��� � �##8 �$

$8 ��#�#8 ��%

�%� ��� � ������

4������ ����������� ����������� ������������������������������������ -�. ����������������������������

3��� ������

-#$#�#.#$�6�#7#$%�8�$7#$#�8#7#$$�8�#7#$"#�6�#$#�#'

-#$#�#.%�6�#7%%�8�$7%#�8#7%$�8�#7%"#�6�0�0'

-#$#�#.)�6�#7)%�8�$7)#�8#7)$�8�#7)"#�6�#$�)))���'

-#$#�#.*�6�#7*%�8�$7*#�8#7*$�8�#7*"#�6�,0�#%0'

-#$#�#.#,�6�#7#,%�8�$7#,#�8#7#,$�8�#7#,"#�6�%0+�$,%0�

Page 70: Informatica, cl. X (in limba romana)

��

5���������������������������������������������;� ����������� �������������� �������������9�������������������������������� �������� ��������������<��������� ������������������������ ��������������������������������������� ���������������

=������������������������������������������������������ ������������������������� ����������<������ �������������������������������������;��������������������1����������������������� �����������������!

"�����������������������������������������������������'"��������������������������������������������������������������������������

���������������������� ������������ ��������������!�������"�����������������<��"����� ���<������������������������� �����������'

"�������������������������� ����������������������� ������������������������������������ ������������������������ ���������������������������

>���������������������� ������������������������������������������������������������������ ����������3����� ������������������������������������������������������������������������������������������ ��������������������������� ����������������������������������������������������������������������������������������������������

����!"���#���$��%����

� (������ ����������������� �����������?� (�������� ��������� �������������� ������������������������������������?� 3����� ������ ��������� �����������������������(������ ������������������

������ �����������?� 4����������������-#$#�#.��������������������������� �����������!

�6�/��0��,��+��&��##��#%��#)��#/����#0�� 4���������������������������!

� -)%*.&' � -#$#$�$#.)' !� -)/#�$%.*'

� -0#,.+' "� -%$#�#%./' #� -12(3.#,'

�� -#$#$�$#.%' $� -)/#�$%.,' %� -)%*.#,'

&� -%$#�#%.)' �� -####.#,' �� -0#,.#,'

�� -)/#�$%.0' �� -)%*.##' � -#$#$�$#.#,'

f� -5555.#,' �� -0#,.&' '� -%$#�#%.#,'

(� -)%*.#$' )� -#$#$�$#.*' *� -)/#�$%.#%'

+� -0#,.*' ,� -%$#�#%.*' -� -5$$#.#,�

� (��������������������������������������<����� ��������������������������?� 4�������������������19(1@������������������������������������������≤#$� 4�����������������������������������������������������������#$≤≤),�

Page 71: Informatica, cl. X (in limba romana)

��

��&���'�(���������������)'�������*����������+���)��)

(���������������������-�.������<������������������������������������������������� ������������������� ��!

-� .6 ���� ��"#

�"#� ��� � �##8 �$

$8 ��#�#8 ��%

�%� ��� � ������

(�����������������������������-�.#$������<����������������������������������������������������������!

"������������������������������������������������������������� ����������������������������������������������'���������������������������������������������� ������������������������ ��������� ������������� ����������'

"�������������������������������������������������������������������������� ����� ��������������������� ��������������������������� ������������������������������������������ ������������������� ��'���������������������������������������������������� ������������������������ ����������� ���������� ���������������

9������������������ ���������9������������������������������0)�/$,%0������<�������������������

0)�!�%�6�%,�8�#A%'%,�!�%�6�#)�8�$A%'#)�!�%�6�,�8�#A%',�!�%�6�)�8�$A%')�!�%�6�#�8�#A%'#�!�%�6�$�8�#A%�

���������������������������������������������������##$#$#�

$�/$,%0��%�6�$�*#%0'$�*#%0��%�6�#�,%0'$�,%0��%�6�#�%0'$�%0��%�6�$�0'$�0��%�6�#�$�

�����������������������������������������$##$#��������������

-0)�/$,%0.#$6 -##$#$#�$##$#.%�

.��9����������������������%)�+� ������������������������������������

%)�!�%�6�##�8�#A%'##�!�%�6�0�8�#A%'0�!�%�6�%�8�#A%'%�!�%�6�#�8�$A%'#�!�%�6�$�8�#A%'

$�+��%�6�#�/'$�/��%�6�$�*'

Page 72: Informatica, cl. X (in limba romana)

��

$�*��%�6�#�,'$�,��%�6�#�%'$�%��%�6�$�/'$�/��%�6�$�*'���

9����������������������������������������������� �������� ������������������ �������������������������������������

-%)�+.#$6 -#$###�#$##$$���.%�

���9������������������������������������#&&,�$,%0� ���������������������������������

#&&,�!�*�6�%/&�8�/A*'%/&�!�*�6�)#�8�#A*')#�!�*�6�)�8�+A*')�!�*�6�$�8�)A*'

$�$,%0��*�6�$�0'$�0��*�6�/�

������������

-#&&,�$,%0.#$6 -)+#/�$/.*�

/��9����������������������%&#/�%0� ������������������������������<� ���������

%&#/�!�#,�6�#*%�8�%A#,'#*%�!�#,�6�##�8�,A#,'##�!�#,�6�$�8�##A#,'

$�%0��#,�6�/�

������������-%&#/�%0.#$�6�-2,%�/.#,�

����!"���#���$��%����

� (��������������������������������������� �����������������������������������������?

� B�������������������������������������������������!

� -#$$$$#�$####.%' �� -111�222.#,' � -#%/�0%#.+'

� -)%*�,+*.&' f� -44�$$5.#,' "� -/%)#�#%/.0'

�� -#$$�#$$.#,' (� -#%%#�###%.)' $� -0$�0$0$0$.,'

&� -#$�$#.#,' +� -#)%#�#)#%./' �� -++++�$$#.*�

Page 73: Informatica, cl. X (in limba romana)

� (����������������������������������������������� �����<������������� �������?

� B��������������������������������������������������������!

� #)�**&' �� &)�//+' � 0*�+/&'

� )*�,,*' f� +$�%#%' "� /�)/0'

�� 0)�0),' (� *�)/+' $� )�#0,'

&� %&�%,#' +� )&�+,/' �� &#�/%*�

:��������������������������� ����������������������������� B������������������������������������������������������!

� )0*�&)%' �� **,�0%,' � +&0�#%*'

� /+&�$&)' f� &+#�%0*' "� ,*$�*&0'

�� 0&#�%/#' (� 0#0�&#/' $� %0,�/0)'

&� ,/&�##)' +� )/+�,$+' �� *)*�%,#�

:��������������������������� ��������������������������� B����������������������<� �������������������������������������!

� #/%/�,&&' �� 0*#*�&,#' � /&*0�&&0'

� )0#+�)#0' f� &)),�/&#' "� &+%#�,+*'

�� &,$+�%$#' (� )//%�+%%' $� 0%&%�*)+'

&� *&+/�,,/' +� /0%#�//&' �� %+)/�0&%�

:���������������������������� �������������<� ������������������� 4�������������������������������������������������������<��������������

������� ����������� ����������������������<#$� 4���������������������������������������������������������������� ��

�������������������#$<≤),�

������'�(�������������!�����+��'%��),�-�$�.�%���)#����(���

�������*�6�%)��������������������������� ���������������� ������� ���� ������C����������������������������������)�������������!

$�6�$$$' /�6�#$$'

#�6�$$#' 0�6�#$#'

%�6�$#$' ,�6�##$'

)�6�$##' +�6�###�

Page 74: Informatica, cl. X (in limba romana)

��

3�������� ���������������������������������� ���� ��������������������������������������������)��������������

�-��,��0

-%/+�)#0.*�6�-$#$�#$$�###��$##�$$#�#$#.%'

-0#%�$+.*�6�-#$#�$$#�$#$��$$$�###.%'

-)�#/,.*�6�-$##��$$#�#$$�##$.%�

3������������ ����������������������������������������������������������������)������������������� � ������������������������������������������������������������� ����������������������������������� ������� �������������������������������������� ����������������������������� ����������������������������� ����������������������������������������� ����������������������������

�-��,��0

-##�$###$#.%�6�-$##�$##�#$#.%�6�-)�)0.*'

-#$�##$##.%�6�-$#$�##$�##$.%�6�-%�,,.*'

-#$$#�$#$##.%�6�-$$#�$$#�$#$�##$.%�6�-##�%,.*�

���� ���������������� ���������������������������<� �������������������������#,�6�%/��C�����������<� ����������������������������/�������������!

$�6�$$$$' *�6�#$$$'

#�6�$$$#' &�6�#$$#'

%�6�$$#$' 1�6�#$#$'

)�6�$$##' 2�6�#$##'

/�6�$#$$' (�6�##$$'

0�6�$#$#' 3�6�##$#'

,�6�$##$' 4�6�###$'

+�6�$###' 5�6�####�

�-��,��0

-,15)�2%.#,�6�-$##$�#$#$�####�$$##��#$##�$$#$.%'

-,5#�)(1.#,�6�-$##$�####�$$$#��$$##�##$$�#$#$.%'

-##�$##$#.%�6�-$$##��$##$�#$$$.%�6�-)�,*.#,'

-#$$$#�$#$##.%�6�-$$$#�$$$#��$#$#�#$$$.%�6�-##�0*.#,�

Page 75: Informatica, cl. X (in limba romana)

��

����!"���#���$��%����

� (����������������������������������������������������?� B����������������������������������������������������!

� #0�$$,' �� %#�,%,' � /%�)%%'

� #)�$,' f� ,�)/#0' "� //�0%)'

�� /)�#0' (� ++#�%0' $� )%�%+#'

&� #$�$#' +� #%�#%#' �� +)�0),�

� B����������������������������������������������������!

� #�#' �� ##$#�#' � #$##$�$$#$##'

� #$#�#$#$#' f� #�$$$$$#' "� #####�$$#$$$#'

�� ####�$$$#$#' (� ####$$$#�#$#' $� ##$$#�$$#$#'

&� #$#$###$�#$$#' +� $�$$$$#' �� #$##�$$$#$##�

� 4�������������������������������������������������������������� (����������������������������<� �������������������������<� ���������?� B�������������������������������������<� ��������������������!

� 555�111' �� )�#12' � (�3(#'

� 5�#1' f� 1122�$$$$5' "� &/%�#/1'

�� #�$$&' (� *#�&#1' $� (11�2'

&� $�$$5' +� #$�$#' �� 313�121�

� B����������������������<� �����������������������������������!

� #$$#$###$#�$##$#' �� #$###$#�$##' � #$##�$#$#'

� ###�$#' f� ##�$$#$###$#' "� ##$$#�$##$'

�� #�#' (� ####$�$####' $� $�$$$$#'

&� #$#$###$###�$$#$#' +� ###$##�$$#$$$$' �� #$#�$#$##�

4������������������������������������������<� �������������<� ����������������

B����������������������<� ���������������������������������!

� #)�#/,' �� /0#�)0' � ,//�$)#'

� ,#)�#%' f� #%�)0+' "� 0�/)#%'

�� 0/#�+%)' (� 0)�,%+' $� ,+0�0/%'

&� #$/�0%+' +� 0+%�$$/' �� )+%�%+#�

Page 76: Informatica, cl. X (in limba romana)

��

� B�����������������������������������<� ��������������������!

� 11' �� #05�,1#' � 222'

� 1%2�#5' �� )�%*#' "� 15�)#2'

�� 5�)1' (� &�15' $� %(�1(2'

&� 5555' +� )�/#*5' �� 1#2�)&4�

4����������������������������������������<� �������������<� ��������������

��/��01���������������%��+��!����

C�������������������������������������������������������D�������� ����������������������������������������������������.�����������/�

�-��,��0

��� ����.

��������������

���������

���������

���������

����������

��� �����

���������������

���������

���������

���������

����������

��� ����/

���������������

���������

���������

���������

���������

###$# 8#$#$##

�#$$#$$$

��# � �#�0�-#$$#$$$.%�6�-+%.#$����������������������������-%&.#$�8�-/).#$�66�-+%.#$�

.� 9������������ ����������������������������������)+� ��������������������/,!

-)+.#$�6�-#$$#$#.%'-/,.#$�6�-#$###$.%'

#$###$E

#$$#$##$$#

�-��,��0

�� 9���������� ������������������������������������%&����/)!-%&.#$�6�-###$#.%'-/).#$�6�-#$#$##.%'

��# � �#�0�-#$$#.%�6�-&.#$����������������������������-/,.#$�"�-)+.#$�6�-&.#$�

Page 77: Informatica, cl. X (in limba romana)

��

�� 9�������������������������������������������������)�%0����+�#%0!-)�%0.#$�6�-##�$#.%'-+�#%0.#$�6�-###�$$#.%'

��# � �#�0�-#$###�$$#$#.%�6�-%)�#0,%0.#$����������������������������-)�%0.#$�××�-+�#%0.#$�6�-%)�#0,%0.#$�

/� 9�������������������������������������������������%##���������������������)!

-%##.#$�6�-##$#$$##.%'-).#$�6�-##.%'

##�$# ×###�$$#

##$#$$$$

$$$$##$#

##$###$#

#$###�$$#$#

##$#$$## #### #$$$##$$$#$$

######$#

3����##$#$$##�!�##6#$$$##$������#���# � �#�0�-#$$$##$.%�6�-+$.#$����������������������������-%##.#$�!�-).#$�6

6�-+$.#$�8�-#.#$�>�������������������������������������������������� ������������������� ������

���������������� ������������������������������������������������� �������������������

����!"���#���$��%����

� (������� ����������������������������������������?� (�������������������������!

� )/�8�%0#' &� #/��*' (� %$#0�8�#&&0'

� ,*�"�+' �� ,)�!�)' +� %*�0�8�$�+0'

�� #0#%�8�,%$' f� #&&,�"�0#' � ,)�#%0�"�/�#%0'

Page 78: Informatica, cl. X (in limba romana)

��

"� )�$,%0��%�#%0' �� )%�!�%' #� /$#��/'

$� $�0��$�0' )� )%�!�#,' %� )%�!�/'

�� #�!�$�0' ,� /$#��*' �� /$#��%'

�� /$�!�$�#%0' !� )%�!�*' � &))�!�)�

������������������������������������������������� 4������������������������� ������������� ���������������������� 4�����������������������������������������������������������������

��2�� ��1��.�������� ������)'�� ������)�� +�� %�)%�)��'�

(������������������������������������� �������������������D������������������������������6�F$��#��%�����G����������������������������� � ������������������ ����������*��#,��)%�����,/�-f (������.�

���������� ������������������������������������������-f (������.����

#�7�%$�8�#�7�%#�8�#�7�%%�8�����8�#�7�%�"#�6�%��"�#�

���������������������������������������������������������

������������$��#�� ������"#����� ��������� �������������������������������������������������������� �������������������1������������������������������������������� ����������������������������������������������������������������������������

3����� ����������f ( #���.������� ��������������������������������

#$)&�6�-#$$$$$$####.%

������������ ��#,���������������

����������������������������������������� ���������������������

Page 79: Informatica, cl. X (in limba romana)

��

���������������������������������������������������������������

��������������������������������������������������������������� ��������������H$'�%�"#I�

����!"���#���$��%����

� (��������������������������������������������?� D����������������������������)��##%��#&#��%$/��%00����*���������������� D����������������������������)��%00��#$%/��%$/*��/$&,��,00)0����#,���������������� (���������������������������� ��������������������������/��*��#%��#,��%/��)%

���,/� ����������������

��3����1��.��������������)'��+����4�

���������������� ������������������ ������� ����������������8����"�������������������������������������3����������������������������������������������-�������������;������������������������ �����������������������������������"#�-f (����/.!

������������������������������������� �������������������

�������������������������������������� ����������������������� ���������������������������� ����������������������������;������ �������������������������������������������������3������������� ���� ������������������ ���� ��������������� ����������������������������������������� �����������-� �����������������.��9���������������������������� ����

�����������!������������������������$�� ��������������������������#�� ����������������'���������� ����������������������������������������������������

Page 80: Informatica, cl. X (in limba romana)

��

3����� ����������f ( #���1������� ��������������������������80%����"0%���*���������������

��������������������������������!���"��#������$%�%���$�

���� ��� ������������������������������������������������������������������������������������!

"-%�"#�"�#.�≤���≤�-%�"#�"�#.�

>��������������� ��� ������ ���� ������������������������������������$!$$���$����#$���$��( ��� ����������������������������������� ���������������������������������� ��� ������������������������������������������������������ ����������!������������������������������������ ������������� ��������

���� ���� ��� ������3������������������������������������������������������������������������������������������������������������ ����#� ������$����$� ������#�

���f ( #���2������� ��������������������������80%����"0%����� ����������*���������������

9������������������������������������������������������������������������ ������������������������������������������������� � �����������������$����� ���������������������!�$$���$����##���#�

������� ������������������������!���"��#������$%���&��'

Page 81: Informatica, cl. X (in limba romana)

��

��������������������������������!���"��#������$%�$���������

��������������!���������� ������������������������������������������������� ��� ��������� �����������3������������������������������������������������ ������������������� ����#�������������������������������������-��������������$.�

3����� ����������f ( #���3������� ��������������������������80%����"0%���� ������������

( ������������������������������������;�������������������� ������������������������������������������������������������������������������������������������������������������������������ ��������������������������������������������������� �������������H"%�"#��%�"#�"�#I�

����!"���#���$��%����

� (����������������������������������������������?�4 ����������������������������������������� � ������� ������������ ������������

� D��������������� � ��������*��������������!

� 8#%' &� "#%' (� 8%#'

� "%#' �� ",/' +� ",*'

�� 8,*' f� 8#$0' � "##%�

� D��������������� �����������*��������������!

� 8#$' &� "#$' (� 8,0'

� ",0' �� 8#$#' +� "#$#'

�� 8##%' f� "##%' � "#$0�

Page 82: Informatica, cl. X (in limba romana)

��

� D��������������� ���������������*��������������!

� 8/$' �� "/$' � 8#,'

� 8%+' f� "%+' "� 8#$#'

�� 8#$&' (� "#$&' $� 8###'

&� "#,' +� "#$#' �� "###�

� 4����������������������������������������������������������� � ������� ����������� ����������������������������������� ���� ���������������������6�*��#,����)%�

� (������������������������$����� � ������� ������������ �����������?(���������������������������$����� ������� ������?

� 3�������������������� ���������������������������������������������� ������� ������������ ������������

��5�����1��.��������������)'�����)�

������������������������������������������������������������������������ ������������������������������ �����������������������-�������������.������ ����������������������!�������������������� ������������������

��������������������������������������<���� ������������������������� �������� ����� ����������������������� ������������ ��������� �������������������������������������������������;�������������������� �������������������� ����������� �����������

3���������������� ����������������������������� ��� �������������������������������������������������������������-f (����4.�

����������������������������������������&�� ���(���

:����������������������������������������������������3���f ( #���4�������������������������������������������������������������������������������������

$�$$���$�≤�J-J�≤�$�##K#

������������������������

$�≤�J-J�≤�#�"�%"-�"#.�

Page 83: Informatica, cl. X (in limba romana)

(�������������������������������������������������������������������������������������� ������������� � ������� ������������� ������������

3����� ����������f ( #���5������� ������������������������

8�$�&)+0�6�8�#0A#,�6�-$�####.%�"�$�&)+0�6�"�#0A#,�6�-"$�####.%

������������� �����*������������������� � �����

��������������������������������!�)� ���"��#�)� ������&�� ���(�������$%�%���$�

1����;������������������������������������������ �������������������������������������������������������������������� �� ������������������ ����������������������������������� �����������������������!�C���������� ������������� �������� �

���������������������� �� ������� ��������������������������������������������������������������������������������������������������� ������������������������������������������������������������������������ ��� ��������� ����������������������������������� ����������������������������������������������������

���������������������������������������������������������������������������������������� ��� ���������!

!�"�$���%�

�� ����������������������������������������������������������������������������������������������������������������������6�%�����#,�

��������������������������������������������� ��� ���������������� ������������������������� ������� ������

�-��,��0

�����������%)�������� ����������������������������!

%)�6�-#$###.%�6�$�#$###×%0�

�� ����6�$�#$###���6�%����6�0�

Page 84: Informatica, cl. X (in limba romana)

��

.����������/�&)+0�����������������������������������������!

/�&)+0�6�-#$$�####.%�6�$�#$$####×%)�

��6�$�#$$####���6�%����6�)�

�����������"�$�)+0��������������������������� ���������������!

"�$�)+0�6�-"�$�$##.%�6�"�$�##×%"#�

��6�"�$�##���6�%����6�"�#�9����������������������������������������� �������������� ���� �� ���������

� ����������� ����������������������-�����.�4 ��������������������� ������������������������������ �������������

������������������f ( #����6������� ������������������������������������������������������������

����������������������������&�� �������)�(�������������*�����'�

���������������������������������� ��������� �������� ������� ���������������������� ������� ��� ������������ ��� ������������������������������������� ����������������� ��� ������������������������������������������������6�,���#0�������6�%/���,/�������������������������������������������� �������������������� ������� ���������

���f ( #������������ ����������������������������������������������������������

����������������������������&�� �������)�(������$���$����'��$�*�����'�

(���������������������������� ��� ����������� ����������������� ��������� ����������

&�"�%�#�'�

Page 85: Informatica, cl. X (in limba romana)

��

������������������������

'�"�(��$%)%�

�� ������������������ ������������������������������������������������������������������������������� �������� ��� ��������������������������������������������������������� ��������������������

����������������������6�*���������������������������������!

&�"�%�#�%&'�

�� ���� ���������������� ��������!"� ������≥�#%+����������≥�$'"� ������L�#%+����������L�$���� ��� �� ��1� ������������� �������� ����������������������������� ��

��;����������������������������

��� ����1

(��������������������������������������������������������

� �& �$

)% * %)

,/ ## 0%

*$ #0 ,/

*������� ����������������

#$")+���#$)*

#$")$+���#$)$*

#$"/&)%���#$/&)%

+�����������������f���������

,�����+

#0�����#,

#&

*�������f��������

9��������������

3�������������

���������� ����

��������������� ������ �������������������������������������� ���������������#������������������������������-���������������.���������������������������������������������������������������������������������������������1������������<����������������������������� ������������������������������������������������������������������������������ �� ������������������

����!"���#���$��%����

� (�������� ��������� ������������������������������� ���������������������������������?

� D������������������������ �����*������������������� � ����!

� 8$�*+0' �� "$�*+0' � 8$�#%0'

� "$�#%0' f� 8$�)' "� "$�)'

�� 8$�/' (� "$�/' $� 8$�#0,%0'

&� "$�#0,%0' +� 8$�%#*+0' �� "$�%#*+0�

� (�������������;������� �������;������������������������������ �?� (�����������������������������������������������?�(���������������������

����������������������������� ����� ������������?� (����������������������������������������������������������������?

Page 86: Informatica, cl. X (in limba romana)

��

� 4 �����������������������������������������!

� 8#�0' �� "#�0' � "$�$,%0'

� 8$�$,%0' f� 8)�%0' "� 8%�+'

�� ")�%0' (� ")%�*+' $� "%�+'

&� ",�%0' +� 8,�%0' �� "$�#/+�

� 3����� ���� �������������� ������� ������������������������������������������������?

(�������� ��������� �������������� �����������������������������������?�(���������������������������������������������������������������������?

(��������������������������������� ���� ���������,��9������ ����������6�*�� 4 ����������������M���������N��(�������������;����������������������?

(��������������������������������������������������������������������������������� ���?�3������������������ �������������������������������������������

����������'�(�)�������������+���'(���������'�'�������$������������$���������,

�� -���.�/ �� -����)���. / �� - ��)��.�0

&��1��$����%������'�'������%��������������)���)���)����'$�������������������)���'�����$��$*��2�3� �����������'���'�0

�� ��$���/ �� �����/

�� $��/ �� 4�����$���0

���5������������ ����637�38�$��������'(�������'�'�������$������������'$��'��������������<���0�9������'��$���"���%������'������0

/��+���'(���������'�'�������������������$���������,

�� -� )���.��/ �� -� )���.�/ �� -3�)��:.��0

2��+���'(���������'�'�����$�����������$���������,

�� -����)� .��/ �� -����������)��������.�/ �� -;3��)9�.��0

3��+���'(���������'�'�����4�����$������������$���������,

�� -����)� ��.���/ �� -��������������)����������.�/ �� -���) ��.�0

5��7$��������������-����������.�)�-� �.�)�-99.��)�-������.������%����%�'$��'$�����0

6��6���������������%������ <'����'���"���������� ��0�7$������� ����������'��$��&�)�%�������)�-����.��=�-��.�0

�� -����.�/ �� -�� .�/ �� -��.��/

�� -�; .��/ �� -��.�/ �� -3.��0

Page 87: Informatica, cl. X (in limba romana)

��

7��5������������ ����637�38��������$�&��'������$��*������0

�8����$����� ���'�'����������,

�� ����������!���������/ �� �����������/

�� �����������#����������/ �� ����������,����0

�����������������������������������������������������0

�&�������������������������������������$%�$���������������������� �#��0

������&�������������%������<'������������������������ ��'$��'�����$%���&��'������������������0�7$�������$�'�������������'�'�������$���0

�� ��������/ �� ��������/ �� ��������0

�/������������������&�� ���(��������������������������$%�%���$���������#�)��0

�2��5������������&�� ������������������������,

�� !��)���/ �� #� )��/ �� #�)�� ��0

�3��>��������� ��?�����'(��������������$���������������'$��'����������0�;�����������$��'��������"���������-�%������"�����%���>$�������� ��?����$������%���0

�5����&�������������%������<'������������������������ ��'$��'�����$%�$���������������������������0�7$�������$�'�������������'�'�������$���0

�� ��������/ �� ��������/ �� ��������0

�6��6��$�����������&���������������� ����$����'�������������������$%�$��������������������������,

�� �=��/ �� �=��/ �� �=���0

�7����&�������������%������<'�������������������'�������������&�� ���(����'$��'�����$%%���$��������������������0�7$�������$�'�������������'�'�������$���0

�� ����/ �� ����/ �� ����0

&8��7$���������'�'�������$����$��������$�-�.�"��$�����������-�.��������$�����(�������*�����������&�� ���(�������$%�%���$��������������������0

&�����&�������������%������ <'������������������������ ���&�� �������)��������=��)(�������������*�����'�)�'$��'�����$%�%���$�0�5��������$������=��)����������'����=���������������0��7$�������$�'�������������'�'�������$���0

�� ��������/ �� ��������/ �� ��������0

&&������������������&�� �������)��������=��)�(�������������*�����'�)����$%�%���$��������#�)��0�5��������$������=��)����������'����=����������������0

&���7$���������'�'�������$����$��������$�-�.�"��$�����������-�.��������$�����(�������*�����������&�� �������)��������=��)�(�������������*�����'�)�$%�%���$�0�5��������$�*�����=��)����������'����=����������������0

Page 88: Informatica, cl. X (in limba romana)

��

��������

��������������

� � ����������������������� ������

���������������������������� ����� ��������������������� ���� ���������������������� ���������������� �� ��� ������������ ������������������������ ������������ ����������������������������� ������������������������� ��� �� �� ������������f����� �� �������������!"������ �����#$%&����������� ������������'��(����������������������� �������������������� ������������������ �� ����� � ������������������)�����������������*����(�������� ����+����,������� �������������� ������(�� ������������������ ���������*�� �� ����������������� ��

������ ���,������������������������������������������������)����(�)��������������-.�#/�����(��������������������������-0�1��/*�������)���������������2������������������������������ �,����������������,���� �������� �������,������������������� ������ ����. *�#�����,��������,����� �������� �(�����������������������������������������������#��3���� �������

���� ����������������.*�#����� ��������������4����������������������������������������������������������50 � ����(�����,����������(������ ���"61 � ����� (�������������� ������(������ ���"6� � ����� (���������� �������(������ ����"�4�������������������������� ��������������������� ��������������

���������� ��

���������������� ��������������������������������������������� ��������������������������������f������������ ����f������������������������������������������� �������

7�f����������������������������������,���������(���� ����� (���*���)��� (����

���������� ����������������������������������������

� �. ## .

� � ���. . .. # .# . .# # #

� � ���. . .. # ## . ## # #

Page 89: Informatica, cl. X (in limba romana)

��

'��(����� ����������������������(������� �������)�������������������������������,������������� ��,��

7���� ��,���������������,�������,�������.��#�������������,��������(��� ��(���������������7� ������� ����� (���*������ (����������������),�� ��(��������������� ������������������ ������ ������(�����������..�.#�#.*�##���,������������*���

8����������*� ������������� ��������� ���������������������0�1*�����)����������������������9�����5

�� �1���6 �� #1���6

� ���1�6 !� .�����

"� �1���6 #� #�.�

8��������9������������ ������ �� ���������������������������,����������)������������������2������,��������9���������������*�������������������������������������5

#"����(��63" ����� (��6&"����� (������9���������9�����

���1�

����������9� ��������(��1��������� ��������(����7��9�����

�1��$

��9� �������(����� ��������� ����� (��*�������*�������� (���4�������9� �����������(��������� �������� :������ ������������������)

�����!*��"!�+,���������������������9� ��������(�����������������������9�������� �����9���������� �

���1������9� �������(��� ����� (��*������ (�������� ��,������� �����9������

����"1�����"��������(���,���9� �������� (����*��������� ����� (���

2��������������� �� �������,��������9�������� ���� ����� ���������������� ����������������������� ��������������������

����������������������� ��������������������������������������� ���������������������������������������� �������������������������������������������������������������������������

���9��������f������� ��������������������������,�����9�������

�1����

�����f�������"�������������,�����9������

�1����

Page 90: Informatica, cl. X (in limba romana)

��

��������� ���������������������������������1���

� � � � ����� ���������. . . # . .. . # # . #. # . # # #. # # # # ## . . . . .# . # . . ## # . . . .# # # . . #

��������� ���������������������������������1���

� � � ����� ��������� ���������

� � � � � �

� � � � � �

� � � � � �

� � � � � �

� � � � � �

� � � � � �

� � � � � �

� � � � � �

'��(����� ���������������� �����(������������ ��������������������1�����������9����������� �����9�������9����������� �

�1��������"1�����"

����� ���*��������5�����

����"�����"�

������ ������������!��

� ;�,�����������,���,������������ �<� ;��������������������������������������������*� ��������� ��<� '�������(��������������,���������(���� ����� (���*������ (����� ;������������9����������� �<;����������������������(��������� �<� +9��� �(��������������������� �������(��9������������ ��� =� ����(��������������,������������������9��������� �5

�� ��% &� ���%

'� �(% )� ���%

Page 91: Informatica, cl. X (in limba romana)

��

�� *% +� �����%

f� ��% ,� ����%

�� ��% -� �����"%

�� ���% .� �����%

�� ���% /� �����"�

� +������(����������2=>;= ���������� �,����������� ����,����������������*����*����,�������������������9������� ��������5

�� �% f� �����%

'� �� �� ����%

&� ���% �� �����%

)� ����"�% �� ����%

�� ����% +� ������

+������(����������2=>;= ������*�����������������,����� ����� (���*������ (����

+������(�������������������, ���������������� ������(��������������,��������,��������������*���=��*�(� ������(�������� ��,���� ����

� 2�������� ����������9������� ���� � ���������������(� ������������2=>;= ����� �����*��������������,������ ��,5

�� ���6 f� ��6

'� ��6 �� �����6

&� ���6 �� ���6

)� ��6 �� ����"����"6

�� ���6 +� ����"���("�

� " �#$��!���������

?�(������� ������� ���� �� ������������ �������*�� ��� ���*���� �*��� ������������ ��� ��

8�����������#��3������/����������������,���������������������/@#�3�&�����7���� ����� ���,����������������������,�������,�������.��#�����)���������� ������(���������������,��������,������������#��3������/�����3

/�A���*���������/@#�,��3 ������(���.*�#"6������/@3���33@B ����)

��(���..�.#�#.*�##"6������/@&�9���3&@$ ������(���...�..#�.#.�.##�#..�#.#�##.*�###"�� �

Page 92: Informatica, cl. X (in limba romana)

��

����������������������������0f1�#��3������/��� ������������������������������� ��������f��������������������������������������������#��3������/���������!� ���"���������������

8�����������#��3������/����� ������������������������������������,������������������ ��������� ���������������������#��3������/�

2��������������������������������� (����@f��#��3������/"������(�)���������� ������(������������

..���.

..���#���

##���#

���,���������������������#��3������/��������3/ ������(�����������������

������� (������� �������(����-.�#/�;�*��� ������������ ��� ����� (�������� ����������������������������

����*��������������

������������������f����������������0f1�#��3������/���� �������������������������������������������� ���������������������������������#��3������/���������������� ������������������������������������

���9��������f��������������������������������,����������� (������) ���&,���������

���������� �������������������������������������������������

�� �� �� �. . . #. . # .. # . #. # # .# . . ## . # .# # . .# # # .

C�������� ����3&@$�������*����3 ������5����������� ������(�������)�������,���������������������#��3��&*������������,������� ����������������,���������������������;������������������������ ������(����#@.��3@.��&@.�� ��������,��������@f�.�.�."@#6 ������(����#@.��3@.��&@#�,��������@f�.�.�#"@.�� ������������������������������������ ����������,��������������)

������,��������9������������ � � ��(��������������#��3������/�2����.3-��

�� �@�6 "� �@�#�3��&6

� �@�#�36 �� �@�#�3��&�

Page 93: Informatica, cl. X (in limba romana)

?������� ��� ����������������� (������ ��������� �� ������������������,������9������������������,������� (���

�@�#�3��&,��� �������������f���������;���� ��,�������� ����������� ����� �� ����������������,�����9���������� �

�#�3��&����������������������(�����f�������"�������������B�#�

+9�������������������������������������������������= �������������������������������������������������(������*����������� ��������,���������������� ��

������ ������������!��

� A������(�������(����(�����„f�� (������ �!�� ;����������������������(��*�����������,��������������� (������ �<� 2��� �������������������������� (������ ���/,��������<� ;����� �����*��������������,����������� (����/,��������<;����������

��(���� �������<� ;������� ���� ����� ������������,�������� ��� (�� ���� ����� � ����

����*�����������<� A�� (������ ���&,���������0f��#��3��&"���������������������������,�����

����������?���(� ������(����,���������������������#��3��&������ ������ (���������,��������@#�?���(� ������(�������� ��,�������,���������� (����@.�

� =� ����(��������������,�������������������� (������ �5

�� �0�6 f� �0�#��36

'� �0�6 �� �0�#�3�&6

&� �0�#�36 �� �0�#��3��&"6

)� �0�#��36 �� �0�#��3�&6

�� �0�#�36 +� �0�#��3�&�

+������(����������2=>;= ���������� �,����������� ����,������������#��3��&��B*����*����,��������������������� (���� ��������5

�� �0�#�3��&�B6 �� �0�#�3��&�B6

'� �0��#��3"��&��B"6 �� �0�#�3��&�B6

&� �0�#�3�&�B6 �� �0�#�3��&�B6

)� �0�#��3��&��B6 +� �0�#�3�&�B��3�&�B6

�� �0�#�3��&�B6 ,� �0�#��3�&��B6

f� �0��#��3"��&��B"6 -� �0�#��3��&��#�3�&�B�

Page 94: Informatica, cl. X (in limba romana)

��

+������(����������2=>;= ����� �����*��������������,������������������ (���� ��������5

�� �0�6 �� �0�#�36

'� �0�6 �� �0�#�3�&6

&� �0�#�36 +� �0�#��3��&6

)� �0�#��36 ,� �0�#��3��&6

�� �0�#�36 -� �0�#�3�&6

f� �0�#��36 .� �0�#��3��#�3�&�B6

�� �0�#��36 /� �0�#��3��&��B"�

� % �#$��!����������&���'����$����(���

>��������/,���������������������#��3������/�=��������������� ������ (������ ���/,���������9��������������������< �� �����������������������������������������������������������(����������

7���� ����� ���� (������ ���������������� �����������������������,������������� (��������������/,�������� ��� ��� ���������������������� �������,���

2���������������� (������ ���� ����������������������,������� �,���������� (����.��#��������� ��������� ���3/ ������(�����,���������������������7���� ��������������,�����3/���������9���

.@33/

��� (������ ���/,���������A�� (�������� ��,��������������+�+0.�#�����.�#����9�������� ������ ���/@#��9���.@33

#@33@B��� (������ �������)

���������f�������!�

� �! �� �� ��. . # . ## . . # #

����������!��������������������������������

+,�������.@f��"@.6�#@f��"@�6�3@f��"@�6�&@f��"@#�

A�� (�����.*��&����� ���������������!*������ ��,�����������A�� (���#�������������� #$���������������� (���3�����*���������������������

Page 95: Informatica, cl. X (in limba romana)

�"

2�����/@3�9���.@33

3@3B@#D

��� (������ ����������������f�������#�

�� ��� �! �� �� �� �" �# �$ �% �& �' ��! ��� ��� ��� ��" ��#. . . # . # . # . # . # . # . # . #. # . . # # . . # # . . # # . . # ## . . . . . # # # # . . . . # # # ## # . . . . . . . . # # # # # # # #

��������#�!���������������������������

A�� (�����.*��#%������ (�������� ��� ���� �������.*������ ��,� ��)�����#5

�.@f��#��3"@.6�#%@f��#��3"@#�

A�� (���$������� ����������5�$@f��#��3"@�#�3�

7�������� ���� (���$,��,���������������������� %&����(�������A�� (���#B������� ����������5

�#B@f��#��3"@�#��3�2������������� (���#B,��,���������������������� '($�����(�������

����������������#$)�%&)�'($)���� �������������������������)��� ������)�))�*)��� ������ ��f�������������������������

���f�������#�����,� ��#@�#��3�

A�� (�����������*������������� '($�#$�7�������������� (���E��������9��������������

�E@f��#��3"@�#�3�A�� (���� ���������*������������� %&�#$�A�� (��

�F@f��#��3"@�#�3��#�3���,�������#����� ����#@�3@.���#@�3@#�= ������� (�������*������������� *+&#*&,-#./����+������� *���������������������≡!�

=������������������f�������#��������,�� ��&@f��#��3"@�#�����(��,����������#"6�#3@f��#��3"@�#����������,����������#"6�%@f��#��3"@�3�����(��,����������3"6�#.@f��#��3"@�3����������,����������3"�

2������������*���������������f�������4��������������������������),�������� (��������� �������������5������5��*�67��6�28�9:�

Page 96: Informatica, cl. X (in limba romana)

�$

7������������������������� (�������� ���&,���������������� ����������.@33

&@3$@3%D6��� (������B,���������������� ����������.@33

B@

@3#D@D%%&D�� �>�����,� ����*�������������������� (����������������)�������������>)������������� ���������������� ������������,��≥≥≥≥≥�0,�������������� ������������ ����������������������������������),*,��= ����������������� ��������������������:�� ��������)��,������������ �� ��������� (��������� � ����������������������������

������ ������������!��

� ���������(����������� (��������� ���%*���D,���������� ?���(���� (�������� �����������*��� ����(������������� ��,������,���� '�������(��������������,�������� (��������� ���� ,������������������

������)������)��*�67��6�28�9:�� +������(���������� ���,����*���� ���������������,���������������

��� (�������� ��.��#��3��&��3,���������� +������(���������� ���,����*���� ���������������,���������������

��� (�������� ��+��/,���������

)����*���$���'��$������ ��

� �%�������������������������������������������$#

" ������������������������������������&���'�������(�%������������������������������'����������������������������������������������������������������������������������������������#

�� ���("����"6 &� ����"���6

'� �����6 )� �(����

������� ��!�������������������������&���

� �. ## .

�� �� ����. . .. # .# . .# # #

�� �� �����. . .. # ## . ## # #

�� �� ���

�� �� �����. . #. # .# . .# # #

�� �� �����. . #. # .# . .# # .

�� �� ����. . #. # ## . ## # .

��5�� ���5�� 67��6�28�9:

Page 97: Informatica, cl. X (in limba romana)

�)

% �*���������������������������������������������������������+��+����������������������������������$��������������#

� �,������������������-%*�%.����������/����������������������������������������������

��/�����/��&������������������������������(��#

+ �,������������������-%*�%.���������/��&��������������������������������������(��#

, �0����������������������������/������������������������������������0�#��3��&"#

- �%���������������������������������������0�#��3��&"#

. �,������������������-%*�%.����������/�����������������������������������������#���3���&�/�����/��&����������������������������0�#��3��&"#

/ �,������������������-%*�%.���������/��&���������������������������������������1����0�#��3��&"#

�0 �2����������������������������������"���������#

�� �%������������������������������������������������/��������#

�" ����������������������������������&���'�������(�%����������������������������'����������������������������������������������������������������������������������������1��������#

�� �0�#��36 &� �0�#�36

'� �0�#�36 )� �0�#��3�

�% �!������������������������������@f��#��3��&"������������������3�������������������������4

�� �� �� �. . . #. . # .. # . .. # # .# . . .# . # .# # . .# # # .

*�����������������������������&������������+������������+�������/�����������������4

�� �0�#��3��&6 &� �0�#�3�&6

'� �0�#��3��&6 )� �0�#��3��&�

Page 98: Informatica, cl. X (in limba romana)

��

�������

��������������

� � ���������������������������

��������������������������� ������������������������������������������������������������������������������ ���������������������������������������������������� ����������������������� ��������������������������������������������������������������������������������������������������������������������� ��������������������������� �� �������������������������������������������������������������������������������� ����������������������� ����������������������������������������� ������������������ � �������������������������!������� ��������������������������������"���������������������������������������������� ��������������������

���������!���������������������������������������������� ����������� ������������ !��!� ��������� ��� ����������#��������������������������������������!��� � � �� � �� ������� �"����������������������������������������������������������������!������

��������������� ���������� ����� �������������������������������������������������!��������������"�!�������������������������������������� �������������� �����������������������!�������������������������!�������������"�������������������������$f�������%�

��������� �������

������ ������� �����

������ ������������

�����������������������������������������������

&�������������������������!��������������������������!����������������������������������������������������������������������������!��������������� ����!������

������������������������� �������������������������������!��������������������������������������������������� ���'�������������!�����������������(����� �������������)����� �������������!������������������(����� �������������)�

Page 99: Informatica, cl. X (in limba romana)

��

#����������������������������������������������������������������!������������!��f�� �������

���������������������������������������������������������������������������������� �

*������������������������������������������������!��������� ������� � �������������������!����������������������������������������������$ ���� �����������%�����������$ ���������������%��+������� ����������� ���������$��,%�����������������������!���������������������$��-%�

������������� �����������������������������!��������������������������� ����#������������������������������������������������ �������������������� �����!�������������!��f�� �������

������������������������������������������������������������������������������������ �

'����������,����.��!������������������������������������������������������� ������� �����������������+������� ����������� ���������$��,%�������������������������������������������!������������$�,�,����.�,%�

��������������������������������������������!��������������������������������#������������� ���������������!��f�� �������

Page 100: Informatica, cl. X (in limba romana)

!!

+�������������������� ���������$��,%������������������������������������������������������������������������$��,�,������.�,%�

������!�� ��������!������� �������������������������������������������������!������������������������� �������������!������������������� ������������� ������������������������������������������������������

������������������������� ������������������!���������������������������������������������/����������� ������������������������,-0�"�,-1�������������������������������,���.������������������

��������������������������������������������������������!�������������� ����������!��� �������������������������$�����!����%�����!�������"����$�����������%�+������������!�������!���������������������!���������������������������� ��������������������������2�������������������������

3�������������������������������������f�� ����������������������������� ��������$���� �������������������������������������������������%�������������� �������!��������������������

�������������������������������������������������������������������������������������� �

����������"���������������

Page 101: Informatica, cl. X (in limba romana)

!

/������������������������������������������������������������������������������������������������������������������������������������������������!�����������������������2����������������������������������4��������������������������������������������������,-0�"�,-5�!������"������������� �������#����!�������������������������������������������������������������������������������������������������!�����������!��������������������������������������� !������"#!�

���������������������������� f��������� ������� f�������������� �������������������������������������������������

+���������������������������������������������!���������������!��f�� �����$�

����������#������������������

3�������������������������������������������������������� ���������������������������������������������������������6��7��∨������������������ ������� ���������������������������� ����� �� ���� ������� ������������������ ���� ������������ ����� ������ �&����������������

�����,�.�∨�%.�8

��������������������2������������������������������"��������� !������������������%.9"���������������������������������������2���������,�.���%.�89"���������"#!��������������������2�������,�.�∨�%.�9+�������������������������������������������������� ����������������

!��f�� �����&�

������������������� ��� #�������������������� ������������������:� #�������������������������������������������������������������!�����:� #���������������������� ��������������������!����������������������:

Page 102: Informatica, cl. X (in limba romana)

!$

� ;���!����������������������������������������������������f�� ��������������������'���������������������� �������������������������������������!��������

� #������������������������ !������"#!�!��������������������������������������:� #�������������������������������������������������������������������:� #����������������������������!������������������������: 4��������������������������������3���������������������������������

������������������������������������� ;���!��������� !������"#!'��������������������������������������������

�����������������

�( �����,�.�89 �( �����,�.�∨ �.�89

)( �����,�∨ �.�∨ �89 *( ����$�,�∨ �.%�$�.�∨ �8%9

�( ����%,�.�89 +( �����,�.�∨ %,�8�∨ �8�<9

,( ����%,�∨ �.�∨ �89 �( ����%,�.�∨ %,�8�∨ �.�89

�( �����,�.�∨ �8�<9 -( ����%,�.�∨ �,%.9

f( ����$�,�∨ �.%�$�8�∨ �<%9 ( �����,�.�∨ %,%.9

�( �����,�.9 ( �����,$�.�∨ �8�∨ �<%9

.( �����,�∨ �.9 �( �����,�∨ �.�8�<�

� =���������������������������������� ��������������������!���������������������������������������������#���������������� ���!��������������������������������#������������������������������������������������������ !������"#!:#������������������������������������������������������������ ������������������������ ��=�������!��� ����������������� �����������������������������$ ��������%�������������$ ���������%��������������������������������������������������������������������� !������"#!��4���������������������� ����� �!��������������������������������������������'���������������������� ������������������������������

������������������������������������������������������,�.�∨�%.�8

Page 103: Informatica, cl. X (in limba romana)

!%

� ! ����"�#�������������������������

#�������������������������!������������������������������������������ ������ �������

���� ����������������������� ������� �������������������!����������� ���!�������������������������� �������� ��������������������������������� ���������������������������� ������������ �! ������ ������� ������������������������������������������� �������� ����������������������������������� ��� �����������������*������������������������������������������������������������������������������������������������� ��������������������� ����������������������������������������������������������������������� ��������������������������������������!��!�������������������� ���������������������!�������������� ����������������

+����� ��������������������������������������������!��f�� �����/�

����������#�����&��������������������������������'��(��������)� �(�����������

#������������ ������������������0�>�?��,���.���������@����-� ���������������1�>�?��,���.�� ������-�@��#���������������������������� ������������������ ��������������������������������&�������������������������� ���������������!����������������!������������������������������ ��������&���������!��f�� �����/�)������������������0��������� �����������������1�"�-� �������

&������������ ��������������������������������������������������� ��������� �������������������������0�������������������������������������������������������� ���������������������1�����������������������������!�����������������������!������������������ ��������

&�����������������������������������2����������������������#"����

� $ �%��������

;�������������������������������������������!��������������������� ���������������!���������������������������������������������!������������ ������������������&���� ����!������������������������������������������������2�������������������������������������������� ����������������������������

Page 104: Informatica, cl. X (in limba romana)

!*

" ����������������������������������������������������������������������/������������� ������������!��� �����������������������������������������������������������������������������������������������!��f�� �����3�*������)������������������������������������������������"����� ������������ ��������� �������"���������������������������������������

� �� � ��

- - - -- , , -, - , -, , - ,

����������"�����������+,���������������������,�������������

�����������������������������������������������������������������������������

����4)�∨��59�����)�

+����������������������������������������������������!�������������!��f�� ������6�

�����������#��������������������� ��������������������$�

+������������������������

#�>��",��".������*������-

���>�)",�)".�����)*�����)-�

������*���)*���������������������������������$����%�*��A��!�����������������*���)*�����������*����������������!���������������������������������*",��������������������*",�

Page 105: Informatica, cl. X (in limba romana)

!

�*",

�",��".������*������-

B)",�)".�����)*�����)-�

+��������������������������������������������������������� �*",�B��*�B�)*��������������� � � �����

+������������������������������������������������!�������������������� ����������"",���"".�$f��������%�

+������������"",�����������������$�*�B�)*%������������������"".�!��������������������*",���������$�*�B�)*%�������������������������������/�����������*��������������������*�B,������������������������������"#!'�������������������� ������������������������������������� ����������������������"",���"".�

+��������������������#�����������������������2������������������������ ��������������������;���������������������������������������������� �����������������$f�������%�

+�������������������"7-��������������������������������������� ��������!������������������������������������������������������������������������������������������������/���������������������������������"7",�������������������������� ��������������������������� ��#�� �������������������������������

&���������f�� ��������6��������������������������������� ��������"����� ������������������������������������������������� ���������������������������������������������C�����������������������������!�����������������������������������!�������������������������������������"#!�

4�������������������������� �������������$��������������������%������� �������������������� �����������������$�������������������%��������� ����������� ����� ���� ���� �� ���������#�������������������������� ������������������������������������������� ���������������������������8�� ����"������������9�8�� ����"����������9�8�� ����"����������������������������������������9�8�� ����"���������������������������9�8�� ����"��������������������������������������

�����������#�������������������������� ��������������������$�

Page 106: Informatica, cl. X (in limba romana)

!-

#������������������ ������������������!�����������!�������������(���� �����)������������������������������������������������ �����������������

/������������� �����������������������������������������������������������������������������������&����������!������������������������������� ����������������������������������������3��������������������������������� ��������������������������������������������������������������������������������������������� ��

���������� �������� ���������������������������������������������������������������������������������� ��������������&����������!���� ������������������������ �������� ������ ������� �������������..� �!�������������>�,0��������..D,0�>�.8.�≈�,-5��!������3 ��������������������������������������������������,0�����������������������������������������!������ ������������������������������������������������������������������ ���������������������������������

����������#����������������� ��������������������$�

Page 107: Informatica, cl. X (in limba romana)

!.

*��!�������������������������������!��� ����������������������������������������������������������������������������������� ���������������������� � � �����������������

������������������� ��� #�������������������������������:�&�������������������������:�E�!�����

�������������������:� *��������������������� ����������������������������/������� ������������

����������������������������*��)*���*",����������������������*���*��� 3�������������������*+#*A�����������������������������������������

��������#�������������*��)*� ���������������������*",����������������������������������������������������� ������*���������������������*����������������� �����������������������

� 3����������������������������������������������� ���������������� ������������3����������������������������������������:�*������������� ������� ��

� #!������������� !������"#!� �����������������������,0���:�&������8.������:� " ������������������������������������������������������������������

������#������������� ����������������)���������,������������������,����!��� ���������������")�������������������"�!�����������������������������������������*��������������������� ������������������������������������

� "��������� � � ����������������������������������������������������� ������,*���!����������*������������������������������������������������ ������������������*�������������)*���!����������*9,�����������������������*� �!���������������������������������������������������������������������

*��!������������������������������������������������������������������ #!������������� !������"#!� ������������������������,0���:�&������8.������:� 3������������������������������������������������������!���������������

���������������������:�*�������������������� ��

� & ����������������� �������#���'���������(���

#������������������������� �������������!�������������!��f�� ��������"��������������������������������������������������������������

�������/������������� ���������������������������������������!��������������������

����������������������������������������������������������������#��������!��������������������������������������������#�?����#�@�������#�>���

��������������������������������������������������������� ���������� ��2������,���.���������!���� ��������������������������� ��+������������������������������2�������������������������� ��������,�>�-����������>�,���������>�-������������������������������������� !������������"���� ������������������,���.��������-�

Page 108: Informatica, cl. X (in limba romana)

!�

&���������� ����������,���.���8�����������������������������������?#@��?�@�?�@��������������������#����������������� � ������������������� !�����������#"��������������������������������

$ �������������������������������������������������������������������,����������������������������������������� �������� ��������������������#��������� �������������������������������������� ���������������������

&����������������!������������������������������������������������������������������������������������������������������������� ������������� �������������������

%������ &��������������������������������������������������������������������f�� ��������������������������������������������������������������������������#�$ �>�-%�������$ �>�,%��������������������������������������� �����������������������������������������������������������������������������������

$ ������� &�����������������������������������������0���������������� ����1�$ �>�-%�����:�$ �>�,%��&��������������������������������������������������������������������������������

������������������� ��� 3�������������������������������������� ���� ������������� ����������

���������������������������������������������������������������������� *��������������������� �����������������������.����

������������������������������������+������������'��(��������)� �(����������)���(�����������)���(�������������)

���(�������/��)���(���������/��

Page 109: Informatica, cl. X (in limba romana)

!�

� #!������������!������������� ���������������:�#!������������!������������ �����������������:

� ��������������������������������!���������������������; �<� ��$����� ����������������������������������%��;==�<� ��$�������������������%��<� �=��2�$� ����������%���=;>7�=��2�$� �����������%��*�������������������� ��������������������������������������������������������������������

--�"�; �<� �?

-,�"�;==�<� �?

,-�"�<� ��=��2?

,,�"�=;>7�=��2�

� ��������������������������������!�������������������$������������ �����%�����������>�#21�$�������%��@#@�>�$��������!���%��A�"A�$��� ��������������%���<;#2�$����������!�������������������%��*�������������������� ����������������������������������������!���������+������������ ��!�����������������������������������������

--�"�>�#21?

-,�"�@#@�>?

,-�"�A�"A?

,,�"�<;#2�

� /�������������������������������������������������?=�@��?=�@�������?=��@��*� �������������������� ������������������������ ��������������������������������������������������������������������

� ;���������������� ����������������������������������������������

----�"����������9

---,�"� �����������9

--,-�"����������������9

--,,�"������������2��������������9

-,--�"��������������9

-,-,�"�����������������������#9

-,,-�"������������������������9

-,,,�"���������������������9

,---�"��������������������2�

*��������������������� �������������������������� ���������������������������������������� ��

F������������������������������������������!���������������������� ������

Page 110: Informatica, cl. X (in limba romana)

!

�, ���� "�---9

��B,���� "�--,9

C- ������ "�-,-9

C-�B������ "�-,,9

�-������� "�,--�

*��������������������� ��������������������������������������� *��������������������� ����������������������.��������������

� � �)�"����������

3�������������������!��� ������������ ������ ������� ������������������������������������������� �������� ���������������������������������� ����!���� ����������������#��������� ���������������� ����������������������������������������������������������������!����������������������*��������������������������������������������������� ��������!������������������������������������������������� ��� ��������

��������������������������������������������������������� ����������������������f�����������!�����������������������������������������������������

���f�� ��������������������������������������������������������������������������"#! !��������������������������"��

#��������������������������������>���"����������������������D���E��+������ �����������������������D���E��!����������������������������"#!� !�#��������������� ���!���������� �������/����������������������������������������������������������������������������������������������������������������

�����������#������������������������� ������������������������ �

Page 111: Informatica, cl. X (in limba romana)

���� ��� ����������������������������������>�>�"�>�-�����������D�>�,��E�>�-�&��������������� ��������D�>�,������������E�>�-��A���!��������������������������� ��������E�>�-���������������E�>�,��3�������������!��������!�������������D�>�-��E�>�,����������������� ��������E�>�,������������D�>�-�������������� ����������������>�>�"�>�-����������������������������������������!�����������������������

+ ����� ������������D�>�,��E�>�-��� ����������������������,����������D�>�-�E�>�,������������-��G������D������������������������������������ ���������������E������� ����������������������+��������������������������������� �����������D�

+����������������!�������>�>�-��"�>�,��������������������������������!��������-�������D�>�-���E�>�,���������������� ��������"�>�,� �������E�>�-�����������!������������������� ���������D�>�,�����������������������������!��������,�$D�>�,��E�>�-%��*����������������������� ��������������������� ��������������������������������"���� ��� ��������,� ��� ��������-��G��������+������������������������������!���������,�������������������������� �� �� ��� �

���������������������������������!��������!������������������������!��������,�$D�>�,��E�>�-%�����"�>�-����>�>�,����������� ��������!���������-�$D�>�-��E�>�,%�*���������������� ���������������������������������>������� ��������,���� ���� ����-��G��������>���������������������������������!���������-������������� ������������� �� �� � ��� �

#������������������>�>�,���"�>�,������ ���������������D�>�-���E���-�'����������������D�>�E���-��������������������������������������������������������������������������>"��������������������>�>�"�>�,����������������� ���� ������

=����������������������������������!���������!�������������!����)�� ������

A�)�� �����' ������ �� ���������� ��� ����������������������"�

����� "���������#�����$

" � f��������

- - ���������� ����������- , ������ ,, - �������� -, , ������ "

*�2��� �������������������������������>"������������������������ ��������������������������������>���"�����������������������&��������������������������!��f�� ����������������������������������������������������������>���"�!�����������������������������������������������

���������������������%����������������������������f����&���������������������������%��������������������������������������!����������

;������������������������������������������������+������������������!�������������������������������������������������������������������������������

Page 112: Informatica, cl. X (in limba romana)

$

������� ������������������������� ����� ��������������������������������������� ������������������������!������� ���������������������������������������������!����������������������������������!������*���������������!������� �������2���������������������������������� ���� �� ����������� �

���������������������%����������������������������f����&��������������������������������%�����������������������������������������������������������������

&�����������������������������������������������������$��������������+(����)%��������������������������� �������������� ���� ����� ��

���f�� ����������������������������������������������������������������������"��

�����������#������������������������ ������������������������ �

+�����������������������������������>"�$f��������%���������������������������������������������������������������������������������������������!��������!������������������������������������ ��������,�

������������������� ��

� �������������������������������������������������������� ������:� #���������������������������������:� #��������������������������������������������"#! !:�#�������������

�������������:� 3�������������������������������������������������>"��&�����������

���>�>�"�>�,����������������������������������������������:� �������������������������������� ������������������������������ ������

�������:� 3��������������������������������������>"��#������������������������

�����������������������������������:

Page 113: Informatica, cl. X (in limba romana)

%

� ���f�� ������$��������������������������������������������������������������������� !��������������������������FG�#��������������������������������������������"������������$F�>�,��G�>�,%9"��������$F�>�,��G�>�-%9"����������$F�>�-��G�>�,%�3����������������������������������������&�����������������������F�>�-��G�>�-������������������������:

;���!���������������������FG��������������������������������������FG� &�����������������������$���� ����������������������"#! !%������������

�������>"����������������������������������������� �����f�� �������������������� &�����������������������$���� ��������������������'���� !%������������

�������FG�

� * ����������"��'�� �����#���'���������(���

' �������$f�������&�%�������������� ������������������������������������������������

2�>�,",����,,,-�

=������������������������������������������!�������������������������� ���������������!��������������������������������������������������������� ���!����������������������������������������������H�$H�����(!�����)%���� ������������� ��&��������������������������������������������������������� �������������������������������������������������

����������������������������!�����������!�����������������������������������������������������������������������������������������������������������������������������!����!��������!�����������������������������!��� ������������������������������������� ���� � �� �� ������ �$f�������&�)'��%�

�����������#�������������������������FG����������������������� �

Page 114: Informatica, cl. X (in limba romana)

*

+����������������������� ������� �� ������ �� ������ �������� ������������������!��f�� ������/�

�����������������������+�����������+������������'��(���������)� �(����������������������������������������������)���(���������

������������������������������������)���(����,�,���������)���(����,�,�����+���

'����� �( �) �� ��

���� - , - ,�, , - , -�. - , - -�8 , - - -�< - - - -�H - - - -��� ���

�����������#�������������,�����������������������������������������������������

+��������������������������������������������-,-,���������������!����� ������������������!�������������������,���.���8������C����������������!��������������������������2��.�

������������������ ������� �� ������ �� ������������� ��� ����� ����������!����2���.�

*�������� � ��!������������� ������������!������������������������ �����������������������I����������������������������������������������

"������������������������������$���������� �����������%9"������������������������������������������$��������������������� ����

���� ������%����������������������������!��������������������������������������������

�����������������������������������������������!����������������������� �������� ��������������������������������������������������

Page 115: Informatica, cl. X (in limba romana)

;�����������������!�������������������������������������������� ������!������������������������������������� ��� �������� ������������� �������������������������������������#������!��������������������������������������������������������������������!�������-����.",�������������������������

���f�� ������&,����������������������������������� ��������!��f�� ������3�����������������������������������������������������8����

'����� �) �� ��

���� - - -�, - - ,�. - , -�8 - , ,�< , - -�H , - ,�0 , , -�1 , , ,�J - - -�5 - - ,��� ���

�����������#�������������,�����������,�,����������������������������

I������������������!������������������������������������f�� ������3��!������������� �� ����������������������������������������������������������� ������������������������������B,��&����!��� ���������������������������������������� ��������������������������������",��������������������������������������������������������! ���$f�������&�%�

������������������� ��� #���������������������������:�&��������������������������������:� ��������������������������� ����������������!����$f�������&)%������ !�������

�������������,--,��#���� ������������������������������������������� ����������������:�&����������������:

� ��������������������������������!��������������������!�������������������������������� ����������

�( -----9 f( ----,9

)( ,----9 �( ,---,9

�( -,---9 .( -,-,-9

,( --,--9 �( -,,--9

�( ---,-9 *( --,,-�

Page 116: Informatica, cl. X (in limba romana)

-

#���� ���������������������������������������������������������������������� �:

� 3�������������������*+#*A����������������������������������������������������������!����������������������

� #��������������������������������:�#��������������������������������������:�&���������������������� ���:

� ;���������������������<�����������������!�����������������������������

�( ----9 f( ,-,-9

)( --,-9 �( ,,--9

�( -,--9 .( ,,,,9

,( ,---9 �( -,-,9

�( ,--,9 *( -,,-�

#���� ��������������������������������������H�����������������:�&����J�������:

� ;������������� �������<������������!���������������,--,��#���� �������������������������������������-�����������������:�I�������-������� �� �������,��<��H��J��,,��,1�

3�������������������*+#*A�����������������������������������������������������

� + �������������,����-��"���

G���������������������!������������������������������������������� ��������� �������������������&�����������������������������������������������������������������������������������!��!������

+� � ������ �������� � ���������������������������������������������������������������������>����!������������������������������������������������������!��!����������������������

&������������������������������������� �������������������������������������������������������������������������������������������������!��!���������� ����������(���������)����������������������������������������!��!���������� ��� ���!�����������������������������������������������������������������!��!��� ����������������������������������������������������������������� ��

���f�� ������6��!���������������������������������!����������������������!��!������

+���������� � ������ ������������ ����� ����������������������� ��������!��!���������������������� !����������������!��f�� ��������������������������>�-�����>�,����������������������������!��!���������������� �������������,��#!�����������������������������������������>�,���������� �����������-�$f��������%���������������� ��������������-��������!��!��������������������������������������������������� !���*����������������� ������������,��'����

Page 117: Informatica, cl. X (in limba romana)

.

����������,��������!��!������Δ'� ������������������������������������������ !����!����������� ����������>�-�����

����������������������������������������� ���������������������������������������������������������������������!��������������������������������������������������>�-�

����������#������������������������������� ����������������������������

���������0����������������������������������������������������

����������#����������������������������������������������������� �

Page 118: Informatica, cl. X (in limba romana)

������������������� ��

� #��������������������������������!��!�����:�&�����������������!���������������������������

� 3����������������������������������������������������&��������������������������:

� ����������������������� !�������������������������������������� ���������������!��f�� ������������ ��������������"#!� !��3��������� ������������������������� ��&�����������������!������������������� ����������

� 3������������������� ��������������������������� �����������������������������������������������������!��!���������������������� � �������������� ������������������������������������������������������������ ��� �3����������������������������!��f�� ���������������������!��!��������� �!������������������������������������� !���������������������3��������� ���������������������������&���������������������������������������������:�&����������������������� ��!�����

� #���������� ����������������� �������������� !'������������������������� ���������������������������������#��� ����������������������:

��"��,�������'��������� ��

� �0�����������������������������������������������������������%,�.�∨��,�8�

! �1������,��������������������������2���������������+������,�>�,3��.�>�-�����8�>�,��0��������������������������������������������+����������������������,�������������������,�������������

$ �#������������������,��������,�����������������������$�

& �4�����������������56#�61�������������,���������������������������������&�������������� ������������������������,3����������&���,�!����������������������"�����������,���������

Page 119: Informatica, cl. X (in limba romana)

� �����������������3���3�����+����������������������������7�6������������,�������

* � 4������� ��� �������56#�61� ����� �������,� ������������ ���������� ��� �� �����8������� ��������� ���#� ��� ������� ��� �� ��������,3� ���� ������� ��� ������ ��� ���,����� "� ���������,����������

+ � 9�������� ������������ ���������������� ���������� ������������ ����+���� ������������������������������������������������������������������'

��� ���������,���+�������������2��������+�����������)

� � �������) ��� ���������,���+����������������)

�$� ���������) ��� �������������/������������)

�%� ����������) ��� ���������,���+�����������+��������������������2�)

�*� ������������) ��� �������,����������,��������������)

� � ������/��) ��� ��������,���������������������)

�-� ��������/��� ��� �����,���,��������������)

��� ��������,���/�������������

. �5���������������,��������2�����������������������������������������������&���������������#:#3�;<#3�#"=8>6����0?465"6��6�,������������������+,����������������&�������������������������������,������������������+�������������������������,��������&��������������'

!!�(�#:#)

! �(�;<#)

!�(�#"=8>6)

�(�0?465"6�

/ ����������+�����+��������������������>�>�-����"�>�,3�������������+�������������D����E�����������������������������2��

�0 �0����������������������,������+����������������$���������������������������FG�

Page 120: Informatica, cl. X (in limba romana)

$!

�� �9�������������������������������������������������+�����������+����������������&�������������������������������������������������������'

��� ��������,���+�������������������������������)

��� ��������,���+�������������������������)

��� ����,���������������������������,�)

��� �������,������,������,)

��� ����,���,��������������3���������������������+���)

��� ����������������������������������,�)

��� ��������,���+�������������������������������)

��� ��������������������3�������������������������)

��� �������,������+����������

�! �=��������������������������������������������������������,�������+����������� !! ! ������+����������������������������,���������������������%�������������������������+�7

�$ �=��������������������������������������������������������,�������+����������� ! ! ������+����������������������������,���������������������%��������������������������+�7

�& �4�����������������56#�61�������������,��������������������������������������������������������������������������������������������� �������,���������������������������&�����������������������,3�������������������,��������������,����������

�� �:�����,�,�������������������� �����,� ���������� ������,� !!! ! �������+�� ��� ���������,�,���������,������������-��������������������7

�* �:�����,�,��� ��+�������������������,� ���������� ������,� ! ! !�������+�� ������������,�,���������,������������ ��������������������7

�+ �4������� ����������56#�61�������������,� ��������������������,�,�������������������������������,�,��������������,���������������������������&���������������������&���,3������������������������,�,����������������,����������

� � ��������)

�$� ��������)

�%� ��������������������������������������������)

�*� ��������������������������������������������)

� � ���,�,����������)

�-� ���,�,������+����

Page 121: Informatica, cl. X (in limba romana)

$

�������-

%�������1��2���3�4�5�41��1�1��1�����

* � �%�6���� #��� ��������� ��������������

+�������������������������������������������������������!��f�� ���$���#�������������� �������� �������������������� ��������������������������

��������� �"����������������������������!�����������������������������������

���������������������������������������������������� ���������������9"��������� ����������������������������������������������������������

����������9"������������������������ ������������������� ����������������������

������������������������������9"��������� �����������������������������������������������������������

���������������������������������������� ����������������������&���� ������������������������� �����������������������������������

��� ��� �������� ��� ������ ����������� ���������������������� �����4���������������������������������������������!�������� ��������������

������������������������������� ������������������������������������������������������������������ ����������������!���������������������������������!����������������������

����������#��������������,�������������

Page 122: Informatica, cl. X (in limba romana)

���

��������������� �����������������������������

�������������������������������� ����� ���������������� �������� ������ ��������������������������������������������������� ������������������������������ ���������������������������������������� ������������������ ���������������������������������� ������

����������������� ������� ��������������������������������� �������������������������� �������������������������������������������������������� ��������������������������������� �������

!�������������������������� ���������� ����������������� ���������������������������

"������������������������������������� ��������������������������������#� �������� �������������������������������� ���������#�����������������������������������������#��� ���� ����������f�������

$�����������f���������������������������������������������������������������������%��������&������������������������� ������������������������������������������������������������������ ����������������������������� ������������������������ �������������������"���������������������������������������� �����������������������������������������������������������

$��� ������������������������������������������� �������� ������'������� ����� ����� ��� ������� ��������� ����� ���������� ����� ���������#�����(��������������������������������������������!��������������������������� ��������������������������������������������������������������� ��������������������������� ����������������������������� ��������������������������������������������������������������������������������������� � ��������������������

Page 123: Informatica, cl. X (in limba romana)

���

������������� �

� )����������������������������������������������� ���������������������� *������������������������+�*���������������������������������

���������������+� )�������#� ������ ������� ���������������������� )��������� ���������������������� ����������� ���������������������� *��������������������������������������� ���������������������+� *��� �������������������������������������������������+�*��������������(�

���������������������������������������+� $������ ��#��� ��������������������� ������� �������������*������ ����

������ ������������������ ������� �������������������������������+ *��� �������������������������������� ������������������ ��������������

�������+�,� �� ������� ����+�!�������������������+�,�������� ��������+

����������������� ������

"���������������� �� ������������������� ��������������������������������� ������ ������������������������������������� ������ ����� �����-����� ������������������������������������ ������������������������������

����������� ������������� ��������� � ��������� �� �f�� �������� ���� �� ���� ����������� ������ �� �������� � �������������� ������� �����������

.��������� ������� �������������������������������������������� ����������� �������������� �������������������� ������)������������������������� ������� ����������������������������������������f������������� ����������������������������������������������

������������������������������������������������������������� �������������

Page 124: Informatica, cl. X (in limba romana)

��!

���������� ������������������ ���������������������������������������������������f���������"��������������������������� ������ ��������������� ��������� ��������������������� ������� ������������� ���� ��������������������/���������� ������������� ��� �������� ������������� �������������������

.�������������� ����"��� ������� ����������������������������������������� ������������ �������� �������������������#���������������������� ������� ������� �����'

01�2��������304�2������305�2�� ��������������306�2�� ����������������7�����������

01�100�110�418

����� ��� �����������������������������������100����110������� �������� �����������������418�

7�����������

04�100�110�418

�������� �������������������������������������������100��������������������������110��/���������� ������������� ��������������418�

����������������������������

05�400�500�100

� ������� ������������������ ��� ������������������������������400����500��/����������� ������������� ��������������100�

.�� ������ ������� ������������������ ��������������������������� ����������������������������� ������������� ��������� �������-������ �� �������������������������������� ������� ����� �����������������������������%� ������������������������������������������������������ ��� ������������������������������������������������� ����� ������������������������������������������� ����������� �������������� �������� ������������������������� ���������������������� ������������ ����

�������������������������f��������������������������������� ��������"������ �� � ����������� ��� ������ ���������������� ������������������������������������������������������������������������������������������������ � ����� ������������� ������

$�������������� ������������������������������������������ ��� ������������������� ������������������ ����������������������������f���������"�������������������������������� ���������� �������$��� ����������������

01�100�110

����� ��� �����������������������������������100����110������� �������� �����������������100��9��������� ������������������������������������������100��������� ������

Page 125: Informatica, cl. X (in limba romana)

��"

.���������������������������������������� �������������� ������� ��������������� ��������������������������������������� ��� ���������� ����������������������������������������������

%��������������������������f����������������������������������� ����������������������������������� ���������������������������������������� ������ ������� ����������� ���������������������� �������� �����"����������������� ��������� �������������������������������� ����������� �������$��� ���������������������������������

01�100

�����������������������������������������������������100������������ ������������ ������������������/� �������������������������������������������� ������

7���������������������������������������������� ��������������������������������������������� �������� ����������������:��������� ���������������� �����������������������������������������������������������������������������������������������������������������������������������

;��������������������������������� ������������������������������������7����������������������������������������������������������������� ���� ������������������

������������� �

� 9����������������������������������������������������������������9� ����������������� ���������� ������������������

� 9� ���������������������� �������������������������������������������� *������ ������������� ���������������������������������������������������

����������������+� 9� ����������������������������������������������������������'

�� 01��400��401��4043 �� 05��100��180��4803

�� 06��404��401��4003 �� 04��480��500��510�

, ��������������������������������������������������� �������� ���������������

� *����������������������������100��� ����������������������

01�400�500�100�

����������������400����500��������������������1<������� ������51+� 9� ����������������������������������������������������������'

�� 01�400�4013 �� 05�100�1803

�� 06�404�4013 �� 04�480�500�

� *����������������������������400��� ����������������������

01�400�100�

����������������100����400��������������������1=������� ������54+

Page 126: Informatica, cl. X (in limba romana)

��#

9� ���������������������������������������������������������������'

�� 01�1003 �� 04�6003

�� 05�4003 �� 06�180� *������������������������������������� ����������������������

01�100�

�����������������������100�������������������14���������������������������4>+� *��������������(�������������(���������������������������������������

����+

��������������� ���

7��������������������������������� ������� �������� '2��������������� ���������������������� ��������������������������� ��

�������� �������� ����� �����32������������������������������ �������������������������������?���������

��������������������������������������32�����������������������������������������������������������������������������

�������������������������������������� ������32�������������������������������� ������������������������������������

��������������������������������� ������������� ����������������������

������������������������ ������������*����������������������������������������� ��������������������� ������������������ ��'���������������������� �!����������� !"�������

7����������������������� ������������#��������������������� ������������������������ ��� ����������������������������������� ������������������������������������ �������������������������������������� ��'�$�������������������������������������������������� !"��!�����������������������������������$������������������������������������������������������������������������������� ����������������������������������������"���������������������������� �������������������������������������������������������� ������������� ����������������������� ������������������������������ ��������������������������������������

�������������������������������������������������������������������������������������������7�������������� ������ ������� ������������ ���������������������������������������������������������� �������������������� ���������������������������������������#�� ����*������������������������������������ ��������� ��������������������������������������������������������������������������������� �������� ����������������������������'���������������������������������������������������������������������������� ���������������������������������

��������������������������������������������������� ����������������������������

Page 127: Informatica, cl. X (in limba romana)

��$

�����������������������������������������������������������-���������� ���������#�� �������(�����������������������������������������������������������

7�������������������������������� ���������������������� ����������� �����������������������������������������������������%������������������������������������������������ ��� ������������������������������������������������ �������������� �����������

,�������������������������������������������� �������������������������������������������������������������������������������������������� �����������������������������������#��

������ ��������9�#� �������������������������� ������������������������ ��������� �����������������������������$����������������������������� ����������������������������������������#�� �������������������������������������������������������������������������������������� �������:��������������������������� ��������������������������������������������� ����������������������������������� �����

������������� �

� *�������������������������������������������+�*���������������������������������������������� +

� $������������ ������������������ ����������9��������������������������������� ��������� ��� ���

� *�����������������������������������������+�9�������������������������������� ��� �������������

� *������������������������������������������+�*������������������ �����������������������������������+

� *���������������������������������������������+�*�������������������������������������+

����������� �� �� �������������������������

"���������������� �� ������������������������������� ����������������� ����������� ��������������� ���������7������������� �������������������� ���������������������������������������� ������������������������������ ����� �������� ��������������������������� ���������������� ����

���������� ������������ �� f���� �� �������� ����� ����� ����������� �� ���������� �� ������ �������� �� ����� ��� ���������� ����������� �� ����� ������

"���������������� ��������������������������� ������� ������������������������������ ����������������� ������������������������������#�������������������� �������������������

Page 128: Informatica, cl. X (in limba romana)

��%

9�� ������ ���������������� �(��������������������������������������������������"���������� ������� ����������� ������� ������������������������������������������������������������� �(���� �������������������������������������������� �(���������������������������� ������ ������������ ��������������������������������������������� ����������� �������-������� ���������������������������������������� �������������������������

$��� �������������������������������������������� ���������� ���������� ������� ��������������� ������������������������%�

&��������%��������������������

�����������

!������� "���f���

01 INC '����������!���� ���04 ��� (�! ���������!���� ���05 ADU �������06 SCD �������08 SLT �������� ����� ���0> SLTC ������ ����� ���0< STP �� "

-����������������������������� ������� �������� ��������������� ������������������������������������������������������������������������������ �����

$��� ������������1=8�������������� ������������)*� ������������� ����+���������415� ������������,����������� ����-����������400���������������� �������)�@�,������������ ������������� �(��������� ���������������� ������ ���������������������)����,�������������'

INC XADU YMEM S.

��������������������� �������������������������������������������� ��(��������� �������������������� �(������������������������������������������������������������� �(����������� ���������� �(������������������

#����������� ������ �� ��������� ������� �������� � � ���������������� ��� ������ ����� �������$�� %������ �������� ���� f����� ���� ������� ������& ������ ������� �� ��������� ��� ���������

A�� �(�������������������������� ���������������������������������������-������ ���������������� ������������������������������������������������������ ��������������������������������������"����������� ���������������� �(������������������������ �������� ��������� �������������������������������������.�� ��������� ����������� ������������������� ����������������� �(������� �������������������./0&0�#�

Page 129: Informatica, cl. X (in limba romana)

��&

1������2����3������������������ ��������� ������������� ��������������������������#� ������������������������������������������������������������������������������������������������������������������� ����������� �����

������������� �

� *����������������������� �(������������������������ �(��������� ���+� *������ ����������������������������������������������������������� �(��

���� ���+� *��������������������������������������������� �����������������������

��� �(������� ���+� .���������������������� �����+�����������������100����������-�2

��������101����������������2���������104��9� ������������� �(��������� �����������������%����������� ������'

�� 01�100 �� 01�100 �� 01�10106�101 04�100 06�10004�104 05�100 04�10404�100

�� 01�101 �� 01�100 f� 01�10005�101 04�101 04�10405�101 05�101 01�10105�101 04�100 04�10004�104

*�������������������������������100��101����104� �������� �������������� ������+

� .����������������������� �����+��-������� ��������� ���������������100�400����500��:�������������������� ������������������� �(��������� ���'

�� INC X �� INC X �� INC YSCD Y INC X ADU XMEM S SLTC S MEM SINC Y STP STP

�� INC Y �� INC X f� INC XADU Y MEM S MEM SADU Y INC Y INC YADU Y MEM X MEM XMEM S INC X INC S

9� ������������������������������ �������� *����������������������� �(��� ����������� �(����� ������

����������+�*��������������(�������������(������������ �(+

Page 130: Informatica, cl. X (in limba romana)

��'

�� � !�������� ��"� � � ������������#��������� �� ���������

)������������������������������������������������ �������� ��������������� �������������������������������������������������������� ����� ��1000�� ������������������������������������������������������100��,���������� ����� ���������������������������������������������������������� ������������ �������������������������� ������������������������������� ���������������������(�����������������������������������������������

, ����������������������������� ������������������������������������������������������������������������������������� ������� �������������������(���������������������������������������������������������������������������������$��� ����� �������������������������� ������������������������������� �������������� �����#� ����������������������������������B� ����������� ��������$����������������� ��������� �����#� �������� �������� ���������������������f�������4���� ������������������������������������������������������� ��� ������������

������� ��(��������)������������������������������������� ��

, ��������� ������� �����#� �������������� ������������������������������������� ��������� ������� ������� ���� ��������������������������������������������"������������ ��������� ������� �����#� ������������������� ����������������������� ��������������� ����������������������������� ��$������������ ��������� ������� ���� ������������������������������������������� ����������������� �����������������������

$����������� ����� ��������������������� �������������������������#� ����������������������������������� ���� ����� ������������������������������ ��������������� ������������������ �� ����9������������������� ��������������������������������� ������#� ������������������

Page 131: Informatica, cl. X (in limba romana)

���

������"����������������������#������������������ ��� ������������ �������������#� ���������������������������������������� ������������ ������������������������������ ��������������������������������������������������� ������������

������������������������������������#� ����������������������� ������������������� ���� ������� �� �������� ���� �������� � �������� ������� ���� �������� ��������������� ������������������������������������������ ������������������������� ������������ �(��������������������������� ���������� ������������������������

;������������������������� �����������������#����������������������� ������������������5���6�����C ������������D�������������� ����������2� �������������� f�6�����C ���������D���/� �������� �������� �����#�� ��������������� ������� ����5���6����������� ������� ���� ��������2��� ������� ����� f�6����

������������� �

� $���� ���������������������������������������������������+� *������������� �������������������� �������� �����#� ����������

�������� �������� ���� ������+� -���������� ����������������������������������������������������������������

������������������ ����������������� �����'2���������������� �������������� ����32�������������������������������������� ��32���������������� �������������������������� ��32����������������� ����32�����������������������������������

� *��������������(�������������(���� �������� �����#� ����+�$������� �������� ���� ������+

� )��������������#�������������� ���������������������������������*���������������� ������������������������������������������������+

����$����������������%��� ����#��� �

"����� ���������������������������������������������������������������������� ������������������������������������.������������������� ��� ����� ���������������������������������� �������������� ���������������������������������������������������������������������������������������������� ��������������� ��������� �������#������ �����������

�����������������������������������������������(�������������� ������������ ����������f�������7

*� ����������������������������������������������� ������E��������� �������0�08�������������������

Page 132: Informatica, cl. X (in limba romana)

���

�������������������������������������� ���������������� ������������������������������������#��������������������� �����"����������������������� �����0�����1�� ���������������� ��������������������� ������� ��������������7� ���������������������������������������������� ��� ��� ��������� ������ �������������� �������� ������ ������������������� ��� ��$����������������������������������� ���������������� ������ �������� ���������� ��� ���������� �� �������������� ��� f������ ����� ������������ ����������������������������� �����101101� ���������������������������������

$������������������������� ��������������� �������������������� �������F�������������� ������������������������� ����������� �� ����������������������������������������������������������� ����������������

'������ �� �������� �� ������ ����� �� ������� �� ������ ���������� �� ������� ��������� �� ����������� � �f������

�������������������������������������������������������%?���F�������� ���������������� ��� ������ ������������������������������������������������������������������������������� ���� ����������������������� ��������

������ ���� ������������������ �������������� ������������������������������� ������ �����������������f����7������������������������ ���������������������������������1025��������-��������������� ��������������������������������������������� ������������ ������� �����0�����1�

��������������(����������������� �������������������� ������#� ����� ��������������������������������������� �?��������������������� ��� ������������������� ������������� ������������������������,���������������� � �������������f����8�������������������������������� ��������� ��������������������������������������������������

����������*���� �����������)��������������������+������

Page 133: Informatica, cl. X (in limba romana)

���

,�� ��������������������������������������� ���� ������� ��������������� �������������� ��������� �����9������������������������������ ����������������������������� ����������������� � �����$���������������� ������������ ���������������������������������������������������������������

#���� ������� ������ ���������� ��� �f���� �� ����������������� �������� �� �� ������ �� ������� ��� �� ������

:�� ����������������������� ������������� ������������ ����������������� �������������������������'������� ����������������������������(������ ������������������������������������������������������ ��������� �������������������������������!��������������������������� ������������� ��������������

���������������������� ������������� ����������������������������10=�������

��������������������������� ������)��������������)�� ����������

����������,�������� ������ �����

Page 134: Informatica, cl. X (in limba romana)

��!

$��� ������ ��� ���������������� ��� �� ���������������� ����������� ����������������������������������������� �������#�����������������"������������������������� ����������� ������������������ ���

����������������������������������������.� ������������������������������������� ��#����������������� �������������������� ���������������������������������������������� ��������$���������������� �������������������������������������7������������������������ ��� ��������������������� ��������������"�������������������������� ��������� ������������������������ ����������� ����f����9��

����������,������������������������� ��

*� ��������������� ���� ��������� ���������������������������� ���������(��������� ���� ������������:������ ������������������������������������� �������������������#��������������������������������������� ���������� ���������� ���

���������� ���������� ������������ ����������������� ���������������������������� ���������������������� ��������������������(��������� ������ ���������������� ������������������������������������������ ��������������������������������������1025�������

-��������������������������� ����������������������������������������� ��������������2���������� ��������� ����������� �����-����������������������� ������������������1026��������������������������� �

"�������#�� ������������������������������������������������������������������������ ������������������������� ��������������������-��������������������� ��������������������� �������������� �������� ������,�����������������

Page 135: Informatica, cl. X (in limba romana)

��"

����������������������������������� ��#������������������������������ ����������������������� ������������������������"������������ ���������������� ������������������������������������������� ������������������������������������������$��������%���������

*� ��������������������������������������� ����������������� ��������� ��#���������������������������������������������������A�������������������� �������� ������������������1014������� �������� ��#������������

������������� �

� *��������� ������������� �����0����1�����������������������+� *������������������ ������������+� $���� ����������������������������������������������+� *��������������������������������� �����������������+� 9� �������������������������������������� � ����������������f�������8�� $���� ������ ����������������������� �����������+� ,� �������������������������<80���������������������������������

������� �=� ���� ���� ����� ��������� ��������*� ������������������ ��������6<�(��� �������$�������������������������������

F����� ����������������4��?������������ ������������8�������<80���� �����$������������ �������������������������������(������ �����

*�������������������������������������� ���� ��+� *��������������������������� ���� ��#�������������������+

*���������������������������������������������������������������+$���� ������� ��������������������������������������+$����������� ��������������������� ����������������������"�������������������������������������������������������'2��� ����������������32���� ���������������

��&�$��������������� ����� �

"����� ������������������������������������������������������������������������������ ����������������������������������������.���������������������������������������������������� ��� ������ ��������� ������������� �������

���������������������������������������������������� ��'1��$�������� ���������������������7���������� ����������������������

������� �� ������������� ���� ���������������������������- �������������������������������:�0/(�� !"����(����;�)����*��,�!�! �,��

4��$�������� ������������������7���������� ��������������������������������������������������������������������������������� ��� ��������� �����������- ��������������������������������:�0�� !"����(����;�)�� ��������

Page 136: Informatica, cl. X (in limba romana)

��#

5��$�������� ��������������������$���������������� ����������������������������?��������������������- �������������������������:�0<�� !�"����(����;�)�+���������

"������������������ ��� ���������������������������������������������������������������������� ��������������������������f�������=����� �������������������������� ������!���"��������������������� � �������������

�����������������������������������������-��.���/����������������������0���.��������������������������������������

�������������������� ����� ����������������������������������������������������������� �������"������������ ������������� ����������������-����������������������� ������������ ������������ ������ ��� ������������������ ���������� �������� �����

$����������������������������������������������������1��������G�1025����������������������������� ��������1�>������������������� ��������������8�500��������$�������������40�000��� ������ ���� �����������������>�H�10I��������������*� ���������������������������������>60�(��� ������!����������������� ������������������(������������������������������������

�������������� ���������������������� ��������������������� ����f����%>��"���������� ������� ���������������������������������������������������

�������������������������������������������������������������������*��������������������������� ��� ������������������������� ������#�� ������������������������������������������������������������������������������� ����

Page 137: Informatica, cl. X (in limba romana)

��$

���������������������������������������� �����0��1������������ ���������� ���� �������

������������������� ������������������������2������������������������� ����2�������������������������������� ������������������������������������������F��������#����������������������4002>00����������� �����������������������������1�6��?����� ���������������������������������� ���� ��������������������������������� ���� ���������������������������������������������"�������������������� ��������������������:�0/(��������������������������������������������������������������� ����������������������������������������������������������������������������������������������������������������������� �������10218��������������������������������������������������������������������������������������������� ����������� ������������������������������ ����

$����������������� �����:�0/(������������ ���������(��������������� ��������������� ���������������� ��������(���������������������������������������������������������������������������������

.������������������������������������������������������������������f�������%%�

$������������ ���������������������������������������� ��������������������������������������������������������������������������������������������������������������2��,���������"5��� �,�����������������������������

�����������*����������������������

����������������������������������������������� ���������������� ��

Page 138: Informatica, cl. X (in limba romana)

��%

�������������������������������������(�������������������������������� �������������������� ����������� �������������������������������

A��������� ������������������ ���#���������������������������� ��������������������������������������������������������������� ��������������������� ����f����%>��������������������������������������������������������� �������������� �� ��� ���������������������������������������������������������������

����������������������������������������������������������������������������������������������������� �������������������� ���������� ������ ���������������������������������9��������� �������� ���������������� �� ��� ������������������ ����������$���������������:�0<��� ���� �����10�000������������������?������

)�(�������������������������������� �� ������������� �� �������� ������������������������� �������� ��������������������� ���������������������������������������:�0/(��-���������������������������� ����������� ���������������������������������������������������������������������

$�� ��������������� �����:�0�����:�0<������������ ������������������������������ ��������������� ��������������������������2� ���������� ��#�� ����������� ���������� �������������������� ���������� ����������� �����������������������������

;��������� ����������������#��������������������������������������� ������������������� �������� ���:?:��:�������?���������:����2�$����$�������;������������������*� ������������������:?:������� ��� ��� ���������������������������������� ����:�

������������� �

� *��������� ������������� �����0��1����������������� ���+� *�������� ������������������������������ ���+� *��������������������������� ���������� �����:�0/(�+� $���� ������ ������������������������������ ���+� 9������������ ��������������� ������ ���������������������������������

������ ���������8500���*� ���������������������������������>60�(���� �������$�������������������������������������������� ��������� ����

� *���������������������������������������:�0/(�+� $���� ������� ��������������������������� ���������� ���+ F������������������������ ���������1�6��?���*���������������������������

������� �������������G�14=�@ �����?������������������������������������������������������������������������������-������������������������������������������������������@���������(����� �������

"����40�000��� ������ ������������������ ���������������������������>60��(��� �������*����������������������������� ���������������� ���+

� "����������:�0/(������������������������� �����������<6�����������������$������������������������������������������������������6���������50����������*��� ���������� ������������ ����+

Page 139: Informatica, cl. X (in limba romana)

��&

*������������������������ ���������� ���+�*������������������ ������ ����������+9� ���������������������������������������� ���������� �� ����*����������������������������������� ���������������+$���� �������������� ��������������������:�0/(�+�$����������������:�0�����:�0<�+*��������������������������������������� ���������� ����������� �� ��+*���������������������������������������:�0�����:�0<�+-������ ����������#������������������������ �������������������������������������;������������������� ����������������������������������������������� ���������� ����

��'�(%���%������ � ���������

&����������������������� �������������� ��������������������������������� ���������������������� ��������������� ����������.�#����������������������������������� ����������f�������%�

����������������+�������������1�/����/��������

*�������������������������� ����� � �������������������� ���������� ������������������������� ������"�������������������������������������������*��������������������������� ��������������������������������� �������������������� ������������� ��������������"��������� �������������������� ���� �������������� ������������������������� ���������������(���������������������� �����������������

%������ ������������������������ �������������������������������������������������A����������������������������������������������������������� ����������� ������$�� ������������������������������������������������������ ���������� ���������� �������*������������������������������� ������� ��������������������������������������������� �������������������� ����.������������������ ��������������������������������������������������������������������������������

;��������������������������������������������������������������������������������������������������������� ����������������������������������

Page 140: Informatica, cl. X (in limba romana)

�!'

�������������������������#�� �������������������� �������7�������� ������������ ��������������������������������������������������������������������������

F�������������� ������������������������������������������'������������������������'���������������������������� ������������������������������

��������������$�����������������������48������������=0����������� ������ ��� ���������� ���� ������������������������������������������48>�����������.���������������������������������������������������������� ������������������������������� ������������������������ ������������������������������������������������������ ���������� �������������������#������������%����������������� ����������������� �������������������������� ��������������������� ���������������������������� ���������������������������������'������������������������� ��������������������� ��������������� �����

)�������� ����� ���������������������������������������������������������$��� ����� �����C���������>60×400D����������������������������>60�� ����� ��������������400� ���������

9�����������������������������������������������������������������������������������������������-�������������������������������������� �������������� ����������

$��� ���������������������������� ���������������� �������������������������AB���?B������?B���)�����AB����� ������������������������������������>60×580��� ������ ��������� ����������>6����������

)�����?B��� ���������� ��� �����������AB���������������������� ������������������>60×6=0��� ��������48>�������������������

������ ����� ����������������������������������������?B�������������������� ����������1046×<>=��� �����

;�������������������#��������������������������� ������������������ ����������������������� ������� ��������������������� ������������������������������������������������� ������������������������������������������������-����������������������������������� �����������������������������������������1I40×1400��� �����#������������������ ������������������������������������������������

��������������� ����������� ����#� �����������������������"����������������������������������������������������������A�������������

����������������� ����������������� ������������������A������������������������������������ ��������� ����������������/��������������!����� ��������������� ������ ���������������������������������������������������� ���������������� ������

A������� ������ ��� ��������������� ��������� ��������� ������������ �� ��C<A0&-��������������� ������������� ������������������C��<��A��0��&���-�������������������������������������������������������������������������������DA0&-�����J�������C<A0&D����

$����������� ����������������������������� �������������������������������������

Page 141: Informatica, cl. X (in limba romana)

�!�

:������������ ����������������� �������'��������������������������� ������J�� ���������������������������������������������������������������������� ��������������������� �������������������������������� ����������J�� ����������������������������������K.%L��K.L�������K.%L�:������� ���������������������� ���� ����������������������������������� �������������������� �������������:������ ���������������� ���� ���������������������������������������� ������������������������������������������� �������������������� �� �������

������������������ �������������������������������������� �������������#�� ����� ������������������������������*������������������� ������ ��������(���� ��������������������������������

������������� �

� 9� ��������������������������������������*���������������� ���������� ��������������������������+

� *��� ���������#�� ������������������ �������������������������+�*�� ������������������������ �����+

� "����������� �������������������������������������������+� *���������������� ����� ����������������������������������+� $����������� ����������������������������������������-����������������������

���������������� ��� ���� *�������� �������� ���������������������+�*�������������� �������������+� )��������� �����������������������������

��)�*����������

�������������������� �������������������������������������� ��������������������� ���������������������������������������������� ��������� ���������������'

2��� ������������������������ ����������� ����������������������������������3

2��� ����������������������� ������������������������������������������������������ ���3

2��� �����������(���������32��� ����������������������������������� ����� ���������������#���

����� ���������������#�� ����������������������� ������"����� ������������������������������������������������ ������

���f�������%��*� ������� ������������������� ��������������� �������������������

�������������� ���� ���������������������#������*������������M����������������������������������������� �������������������������� ����������������������� ����

Page 142: Informatica, cl. X (in limba romana)

�!�

7� ������������������ �������������������������������������������������������������(����������������������� ����� �#�������������� ������ ���

���9����������� ����� �������������������������'��������������#���������������������������������� �����������������7� ���������������������������������������������������� �������������� ������� ��������� ���������������������������������������������������#�������� ���������������

�������������������������������������������� ������������������������������������ �����%����������������� ����������������� ���������� �������������������� ��������� ���������7���������� ������������ ����� ����������������������������������������� ��������� ������

7� ���������������������������������������� �������� �������� ��������������������������������������������� ���� ���������������������������� ����������7� ��������������������� �������������������������������������������������� ��������7� ���������������������� ��������� �������������� ��� ������������������������������������������������������ ����������������

9����������� ����������������������M����������� ������� ������������������������������������ �������������� ������� ������������������ �����������I��������46�������*���������� ������� ��������� ������� ������ ������� �������4�6������������������������� �������������F��������� ������� ����������������������������1802800����������� �������

"����� ���������������������������������������� ����������f�������%4�9������� ����� �������������� ���������������� ������ ���������������

��������������������� ������#�� �� �� ���������������� �����������������;������������ ���������� �������������������*���(������������������� ���� ��������������������� ��������� �������� ������������������� �������������������������������������������������#�� ��������� ���������������������������� �������������������"����������� ��� ���������� �����������������������������������������$��� ��������������������������(������������� ���������� �� ������������������������������������������ ��������� 7���������� � ��� ����� �������� �#����� ��� �� ������ ���� �� ��� ������������� �� ��

����������2������������+�����������������������������������

Page 143: Informatica, cl. X (in limba romana)

�!�

������������������������������������� ��� ���������� ��������������������������������������� �� ��������������

7� ������������������������� ����������� ���������������:���������������� �������������� ��������������� ���������� ���������F�������� ���������8�18� ������ ���������������������������������������� ���������������������� ���

������������� ��� ��������� �#�������������(���(�� ������9�������������������� ������ ����� �� ���������� �������������� ����� �� ��������������-����� �������������������� �������� ������������������������������(����#�������� ������������������������������������������������������������������

������������������������������������������������� �����F��������� ����������������������������500����������� ������������������(��� ����� �������������������������������� ��������

������������� �

� *���������������� ���������������������#��������� ���+� *�������� �������� �������������� ������+� *������ ����� ��������������������� �����������������������+�*��������

��������������� ������+� 9� �������������������������� �������������*������������(��� ����� �����

�������� ������+� $����������� ����� ����������������������������-������ ����������#�������

�� �������'������������������������������������������ ������������������� �������������� ������

�������� ��2������������+�������������������������

Page 144: Informatica, cl. X (in limba romana)

�!!

��+,�-���. ���� �� �����������

*��������������������������������������������������������'2���������� ���32��� ��������������������32���� ��������� �������������� �����������������������������������32���� ��������� ����������#������� ����������#� �������� ������32� �������������������� ����32���������������������������������������������������������������6���������'2��� ������������32������������������������������������32����������������32������������������������������� ��������)������������������� ��������� ���1018� �1000� ����������� ������

����������� ���������� ����40���������������������*��������� ���������������������� �����������������������������.!-����N� ��������������1(�B��,�0������5��.�E������A&���,���!������5�����������.� ���������������������������� ������������������ ������������������������������������������������������������������� ���������������!���������������������������!���F��!��C���� ��� ����� ��D��� �������

��������� ���������� ������ ��������1� ������G�1014��� ������������������40���������������������������������.�#��� ���������������������������� ����������� f���������$�������������������������������������������������������������� �� ��������������������������������������������������������������-����������������������������������������������������������������������������������������� ��"����� ��������� ����������������������������������1(��G����5�*��!��5�*�.�E�������������������������������������������������� ������ ������������ ����

�������� ���4002500���������������9�#� ������ ��������������������������������������������������������������������������� �������������������������;��������������������������������������������� ��������������������������������������������� ���������������������������������������������������������� ����� ��������������������� ����������������������$������������� �������������������������������������1(��<�����&�)���������!������:����B��������:A�*�G�6�����2��H��������� ������������������������������������������������������ �������������������������������������������������� ��������������������� ��

������������2������100����18�000����������������������������������������������������������� ������ ��������.�#��� ���������������������� ����������� ����������f��������

$�� ������#� ������ �������������������������������������������������������������������������������� ��������������������� ��������� ��������������������.������������������������ �������������#� �����������(������������������� �������������������������������������������������������������������������������������������

*�� ����������� �������������������������������������������������������������������������������������������������1(���""����G�6�����2��H�����:�������

Page 145: Informatica, cl. X (in limba romana)

�!"

������������� �

� )������ ����������������������������������������������$��������� ���������� �������������������������������������������

� *��������������������������������������� ����������#����������������+� $���������������������������������������������������������'��� ���������

������������������������������������������������������������� %������������������������������� ���7������ ��������������������� �

����� ����� ������������������������ �������

��++�$ ����� ������

�������������������������������������������� ���������������������������������� ������������������������������2�����������������������������������

$��������������� �������������������� ������������������������������������������ ������������������� ��������� ��������������������������������������������������������������������������%7��

����������������+�����������������������������

;���� ���������������������������������������������#� ������ �������� �����������������������������'�:���������������� !������:�������������������� ���������������������������������������� !��������!����������

9�������������������������������������������� ������������������������������������������"������������� ��������������������������������������������������������������� ������������������������������������������������������������������$������������������������������� ���������������������

;���� ������������ �������� ���������� �������'2�������������������32������������������������32��� ���������������������

Page 146: Informatica, cl. X (in limba romana)

�!#

*����������������� ��������������� �������������������� �������� ���������������������������� ������������� �������������������������� �������������;���� ���������������������������������������54��>6�������������� ����+������������������������� ����������������� ������� ������

������� �������������������� ��������������������� ��������� ��������������������%���������������������������������������������1�(G��GG�10>�G��������������� ����������������������������������������� ������������������� ������������� ��������������������������������������������������� ������������� �����������!����������������������� ��������������� �������������������� ����

��������� ���������������$�� ������� ������������������������������������������������������������������������ ���������������������������� ��������������������������������������������������������������������������!�������������������������������������� ����������������� ��� ��

�������������������� ��������-�������������� ��������������� �����������������������������1>� ���� ����������41>�������������������������������������� ������������� ����������������������������54��� ���� ����������������454���������

�������� ����������������������������������������������������� ������������������������������������������������������������������������������������!���2�;��������������� ��������"������� ���������������������������� ���������������������� ����� ����������� ������������������������������

:� �������� �������������������������������������������������������� ���������������������������� �����������������(���������������������������� �����������C;E���� ���D��-���������������������������� ����������(������������������� ��� � ������������ �����

������ *����� +�������( !������������������� �����(�� !,� ����������(!��

"������7 54 400 400"������77 54 500 600"������777 54 1600 1400"������6 54 5=00 4800"������$ >6 5600 6000

&��������!������������������������

�����������������������������������

������������� �

� 9� ������������������#� ��������������� ���������������� ��������f����%7��� *�������� ��������� ����� ����������������� ������+�9� ������������������

������� ��������� $����������� ������ ��������� ����� ������������ ������������������ ����

������������������ ��������������������������

Page 147: Informatica, cl. X (in limba romana)

�!$

�����������/��������� �

+��3���������������������������������������������+��������������������������������������������)� ��������������������������������������������-

��� +������������������������������ ��������0

� � ����������� ����������������������������������0

��� 4��� ������������������������0

��� +����/��������������������������4����������1����������������������0

�� ���������������������)������������������������ �������� ��������0

�+� )�� �/���������������������������������+����������� ��������������������������������������������1�������������0

� � ����������������������+���������+������ �������)�� �/����)�����0

��� +����������������������������+�������/����������������0

��� ���������������������������4�����)�������������

���5�������������������������������+�����������������������1��

���*����������+�������������/���)�����1����-���������������������+����������+������������ �����������������4����0��������������������������/���1����+���0��������4����������� �������)������� ������0������������������� ��������������������0����������������������+����������+������������ �����������������������0��������4����������������/���1����+���6

�0��5���������������� ��������������������������������������������

0��(����������� ������������������������������*������������)���� �� ����������������������������+�������������������������6

�0�7��� ��������� +������ ��� �������������� ��� ���� ����� ������� ��������� �)����-���� � �!"#$��%��!����&�$�"'� �(�$!�� ���&�$�"'� �(�$!�� �� ���&�$�"'� $�)� ##�� 74����������������� +��������)��

O�5�������������+���������

��� �����/���1�����������0

��� ����0

��� �����/���1��������������� ��0

�!� �����/���1���������0

�"� �����/���1�����������������0

�#� ����������

Page 148: Informatica, cl. X (in limba romana)

�!%

&0��74�����������1���+��4���������������������������������������-

� '����'����"����!�0

�� '!��"'%���&�����#0

�� '���$"���%"���'��0

�� '���!"'��$'&��'���

8��������������������� ����)�������+�����)��+����������-�'��.��������0�'��.��������0�'��.�)�������0�'!�.�)��������

'0��3�������� ������ ���������������������/����������������������+���������������������������-

��������������������0������������������������������������� ����0�������������������1)��� �����������������������)� �0�������������������������������������������0�������������������������������+����������������)��+���������/�����������������0����)������������������0���)���������)��� �����������������������������������������������

)0������������������������ ������*����+�������������'"���������+�.��������!���������������,�.���������$%���74�������)���� �9�������� �����1/��#�� � ������������������� ��-

'���'"'��$%�'!�!��'���'"�

+,0�������������������������� �����*��+����,�����+�����������1�����������&$���"%����!#���:����������������������� ���������)���� �9�������� �����1/��#�� � �����-

35*�;<7<��35*�=<7<�;35*��

++��3����������������������������/���������������� �����-�����������0������������� �4�0���������������������� �� ���0��� ��������0������������������������������0��� � ���������0�����������������0-��1�/����/�������

+���*��������+�����������������4����������������������������1�����6

Page 149: Informatica, cl. X (in limba romana)

�!&

+���*����������+�������������/���)�����1����-������������������ ������ ��������� ��������������������)�� �������0��� ������ ���������� ��������� �� ������ ��������������� ��� ��� ��� ��������� �

��������� ����0���������������������������� �������� �������������1������ ���)�� �������0������� ������ ������)�� ����������)��� ����������������0������������������������������������� �������������������������������������+�4� ��6

+���*�������������������+��������)�����1����-��������������������������/�1����9�����������������+��������������������+��������0���)�� ���������������� ������� �����������������������������������)�����������

�����������0�������������������������������������������������1��/������������������0������������ �����+�4� �����������������������������������)���������������0����������������������������>��� ������������������������������� ������������������

������������6

+ 0�?��/��������������������������������"�#�>������������������)�� �����������+�������������"���.��#�%�>��(��������1��/������������������������������������������������������������������

+��@� ������������������/���������������������/�/�����1�/����/����-���/������0�������������� ����������+���+�����)������������0������ ��������������0���������������������������������+���0���1��/�����������

+&�@� ������������������/���������������������/�/������������-���/������0�������������������������������������0������ ��������������0���������������������������������0���1��/�����������

+'�3������������������� �/������������/�/����������������

+)0�3������������������� �/���������������������

Page 150: Informatica, cl. X (in limba romana)

���

������� �

������������������

���� ������������ ��� ������

����������� ������� �������������������������������������������� ������������������������������������������������������� ����������������������� ���� ������������ �

��������� ����������������� ����������������������������������� ������� !� ������������������������������������������ �������������� ������������������ � ��� ��� �������� �������� � ����������������" ������ ������ �������� ����������� ���������� �����������������������#� �������������! ����������� �������������

$������� ����������������������������� ����������� ��������� ����������� ������������������������������������� ���%f�������&�

���� ���� ����� ��������� �� ������

���!���� ����� ����� ������ ��� �#��������������������������������� ���������������� ����'�� ������ ��������� ��������� ������������������������������������������������������������ ���� ���������������������

(����������������� �� ����������������������� ������������� �����������������������������������������������!����� ����!���������� ��������� ���� �����%f�������&�

�������������� �� ��������� �������� �� ����������������������f��������������������� �����������������������������

(����������� ���������� ���������������������� ��������� �� �������� ��� ��������� ������������������ ��������������������

Page 151: Informatica, cl. X (in limba romana)

���

)#�� ��� � � ������ �� ���� ��������������������������� ������������������������������� ������ ������������������

������������������������������������� ������������� �������� �� ������� ���������������� ���������� ��" ��������������������������#�� ���� ����������� ����� #��� ���� ��������!������� ������������������� ��� ������� ������ ������������ ������������ #��������������#�������#��������� �������������%�������������������&��*�������������������� ����������� ����������������������� �����������

" �! ������������������� ������������������� ���������������������� �������*������ ���������+

�����������������������,����������������,��������������,���� ���������� ��%������������ �������&����� ����� ���������������� ������ ��������������� ���������!����

��������������� ���������� �����-���.������� ������������������ ������������ ����������#��� ���� ����������!�������������������� ��������� �����-����.������� ��������� ������ �������������������� ������������ ����� ������������� �� #���������������$� ������������������������������������!����� ������������������� ����������������� ��������(�������������� �������� �������������������� !����#���������-� ��.��

�������� ����� ������ ����������� �������������� ���������������� �� ����� ��� ���������/�/��� ��������������������������� ������#����������������������� � ��������������� �����01�21���3�������� ����������" ������� ���������������������������#������������������������(��������������� ����������� ������������� ����������� ��-1�����.��

" �� ����������������������������������������� ����������������������������� ���������+

�����������,�������!�� ��,������!������

���� ���� ����� �� ����������

Page 152: Informatica, cl. X (in limba romana)

���

" ����������������������������������������������� ����%�� �����4�3�&������#������� !���� ��������5������������ �������������!������ �������������������������� ������������������ ��� �!���������������������������� ������� �����������������������������������������������������������

����������������������������� ������������ ���������6� ���������� �������������������� ������������������������������������ �����.������� �������������� ���

������������������������������� ����������������� ���� �� ����� ������������������������� �� ���(���� �������� ������������������������������������� ����������� ��%������������ �������&�

*#� �������� ������������������ ����� �����������������������#� �� ��������������� ����������������!���������������������������� �����

��������� ������ ��������������������������������������������������������������������� ������������������ �����������������)#�� ������ ������������� ������������������������� ���� �����������������#�#��������������������� ���7���������������������� ��������� ���������������� �� ���������� ������������ +��!���� ������� ����#� ���������������������������������

" �������������!�������������#��������������� �������������������������������������� �������������� ���� �������� ������� ���� ��������� ������ ������ ������������������������/����������������� ����� ���������#����#����+���� ������������������������� ������������� ������������ #��������!�������� ���������������� ������������������ ������� ��������

���������� ���!�������� '���������������������� ���������������������������������������� (����� �� �� ��������������� ����������������8� '���������� ������ ��������� �������������������� )������������� ������������������� ������� (����� ��� ���������������������8�(������ ��������������������� �����

�� ��� �����8������ ���������������������������������������#��� �� ����������������������������� �����8� (���������� ����� ������8������� �����������8 '���������������������� ��������������������� �������� �����+

���������������������,��������������,������������,���� ��������� ��

)������������������� �������� �������#����%≈911�����&���� ��� ���������� ��������������� ��������#��

� ����� ����������� ����������� �������� ������������������������������#��(�������������������� �� ������������������ ���8����� ��������������%���������!�� �������!������&���������������#��(����� ���#� ������������������������8�(���#�����������������������������8

Page 153: Informatica, cl. X (in limba romana)

���

�"����#����$���������%��&����������&

5����� ��������������������� ��� ���� �������������� �������� ������������������������������������������������������!������������������:������������� ��������������������� ������� ���� �����������#� ��������������������������������!�������������������

����������� ��������������������� �������������������f��������������������� �� ���� ������������� �����������

(���������# ��� ������������������������������� ���!������� ����#�����!������!���

" ������������������������������������ ������������������ ���������������������������������������!���� ������ �������������������� �������������(������������������������������������������������ �����������/ ������������������������#���������� �����������#������������$�#���� �������������������������� �� ����������������������� �������������������� !�%f�������&�

���� ��� ������ ������������

)#�� ������������������!���� ������������� ���#�� ������������� �����������������!���� ����������� �����������������������

(���������� ����!���� ���� �� ������ ��� ����������� ����� ��� ����������������!������������������� ���� ���������������������!���� ����������������������������������������������������(�������������������� ������������������������������������ ������������ �� �

*#� �������� ���������� ���!������ ����#���� �+��������������� ������ ���� ���������,������������������ ����������������� ��������������� �� ��������������,����������������������������������� �������� ���������� ��������#��(��!���� � ���!������� ����#���� ��������������� ����������������

������� ��" � ����������������������� � ������ ������ ���������������� � ���� �� �

�� �����;����������������� ������ ���� ��������������#�������������������� ��������� ��� ���������������������������� �� � ������� �� ����������������������� ��������������������������� �������;�� ������������ ���!������������������� ������������������" ������������������� ���!���!������!��� ������������������!������������

Page 154: Informatica, cl. X (in limba romana)

��

" ��������������� ���!������� ����#��������������� �����!� �������������� ���� �����������������������!����

������� �������������������������f������������������������������������������������ �������� ���� ������������������������������������ �����

�������� ����!������#����!���� ��������������������������������� ����+

�����!������������������������������,�������� ���������������� ������������������������#������������

��������������������,�������� �������������������������������� �� ���������������� ����

���������� ��������������������������#,������������ ��!������ ������ �������������������������� ������������/��!�������� �����!���� ������ �����������������������������������

��������������� ����+���������������������� �����������������������,��#����������������������� �����������������,������������������!��������#�,����������� ������������������� ������������/��!�������#��������!�������� ������������ ��� !����������������

�������������������" ������������������������������������� �����7�� ������������� ������!�������� ��������!�������#���������������� ��������������� ������%f�������&��(���������������������� ����!������#��� ����������%� � !��������&�

���������� ���������������!�������� ��������������������������������!�������#������������#����������" ��������������!�� �����!������������������������������� �������������������!������#����������#�����#��������!���������� ���������������������

���������� ���!�������� )������������ ������������������������������������(�� ���!������������

� ������ ������8� (�������!� ������� ���� �������������������� ������ ������� ���!��

��� ����#�8� (����� ���#� �����������#� ������ ���!������ ����#�8� )������������� �������#����������������#�����������������#�����

���������������������������� (�������!� ������� ���� �������������������� ������ ������� ���!��

!������!��8�(����� ���#� �����������#� ������������ ���!��8� ����� ����� ���!����������������������� ��������������������#��

)����������� ����� ���#������������.��� ���#������������8� )������� ��������������������#��� ���#�������8�*�!� ��������� ��� )����������������� ��������������������#���� ���!���!������!��8�*�!�

� ��������� ���

Page 155: Informatica, cl. X (in limba romana)

���

(��� ������� �������!������ ������������� ������� ���!������ ����#�8

� '������ ������ �����!������#�������� �����!������� ��)������������ �������������������������� ������� ����������� ������ ����! ������#� ��������������� ��������������� ����������������������������� ���������������� ������������������ �������������� ������� ������������� ���(���� ���!���������������!��� ��������� ������! ���������#� ������������8�$� ������ ��������!������#��������!������� �8�(�� ����������������������!���8<����������� ���������#����� ����� �����2�-1������������� ���� �����" ���������������������������� �����������(�����������������#������ ������������������������������������(�� ���!��������������!��������� ���� �����������������8)������������ ���!������������� ������ ����������������� +� �������� ������, ������������������� ����,� ����������������� �����������,� ����� ����!��� ��������������������� ���,� �������������������� �������� ������� �� ������������������� ���,� ���������#��������������#���� ��������� �����������������������

%������� ������������������������� ������������������� ����������&,� �������������� ����������

�'����%���$�&� ��&�#�������&����������

$������������ �������� ������%f�������&����!������ ������������ ����������������������������������� ������� ��!������ ���� ��

: ���������������� �� ����������� ��������+������������ ������,�����������������,��� ������������� ����,������������������$�����#�������� ��������������������������� ���������� �������������

� ��� ��������������� �������������������������� ���� ����������� ���������!��������

���������� ��������� ������f������������������ ������� ��������� �� �����

7�����!������ ���������������������� ������������ ����������������������������+������� �����!������������������������%f������!&�

" �����������������������!������ ������������������"���"#������������������ �� �������������������� �����"-���� ����������#�������������"-�� �������� ������������������� ������������ ��� �� ���� ��������������� ����������������� ������������)#�� �������������������������� �

Page 156: Informatica, cl. X (in limba romana)

��!

�������� "��#�� �� �����$� % ���& % ����& � % ��#�����'& � % �����(��'

������� ������ ���� ����� ��!��������/�� ��������������������� �����������������������������

" ����������������!������� ������������������������������ � �����/��� �����������������������"�������� �����������������"�=-����������� ����������� �����������������"�=4������� ���� ����� ����� !������������������ �����"#��" ��������������������������������� ������ ���� ����� ���!�������������������������"-��"4�������"��������������������������

" ��������������������������� ��� !���� �������� ��������������� ��� �����������������������;���������������>���� ���?���!������������ ������������� �����������������������������"������������� ���� �� ������� ����� ����!�����������������

5������������������!�����������!���������� ����������������� ���������� ������� ���������������"���"#�#���#������� �������� ������� ����������������������������� �� ���� ����

" �������������������� ����� ������������ �������������������������������������� ������������������������ ���� �����������������������������"-�������������"��%f������!�&�������� !�������� �����������"-���"4���"2

��"�������������������"-���"0���"���)#�� ������������ �� ���� ����� �������� ����������������������������� �������� ������ �� ���� ����

���!����������!��������������� � �������!�������������������� �������������������5�����!�� ���������!����������������!��������������@ ��!������������������� ������!�� ����������!�������������� ������������!��������������� �f��������!$������� ���"-��"4�������"������ �� �����������/�� �������� !������������������� ����������#����������!�����

��� �������� �������������������������� �������������������������������������� ����������������������������� ���������� �

Page 157: Informatica, cl. X (in limba romana)

���

: ������������� ����������������������������������� !������������� ������ ��������������!����������������������������������������������� �������������������������������������������������6������������������������������������������������������ ���� �����������#����������������������������� ����������������������������� ���� ��������������������������# � ����������*���� �� ���������� ���������� ���� �������������������������*�� ��������������� ������� ��� ����� ��� ���������!�� �������������������������������������������� ���������$�� ������ �� ���� ����� �������������������!� �������@ �� ���� ����� ���$�� ����������%%&'���%�������������&���������'�����������&��: �������!� ����� ��� ���� ������������� ������������ ��� ���� ����������� ���� ��������� �������� ����������������@ �������@ !� ������)������� �����)����� �����%%(((��%����������)�(��������������(�����������(��������&�

��������������������� ������� ���������������������������!������ ������������ � ��������������������� ���� ���������������������

" ��� �� ������ ���������������� ������ �������������"��������%����� ���&���������������������� ��� �������������� �����

%(((�914�A��:�������������!���������� ��������������������������������������������������������B���������� ����������������� !����-11����.���*� ��������������������������������*(+'*��%��������,("�#�$��%&����%� ������� &���������������������� ��� �������������� ����

���%(((�914�2��:��������� �� ���� �������������������������������������B���������� ��������������������-C����.���*� ������������������������������%-�'(#()*#���������������!�� ������!����������������������-����.���

����������$��������������!����� ������ ������������������ ���� ������" ������������������������������ !�#���������� ��������-�2�����.�� �(�%&����/�0��1��2�3����������&������� ������������������������%-�� �

����������������!�� ������!�������/������������������ ������������������������ ��������%&'��7�����!���� ���������������������� ���� ��������������!�������������������� ���������������(&�(�"#������� ��������� ��������������� �#���������������������

���!����D� �������*�����������$:*�%3�4������+��������5��#�����3����6&�*� �������������������������������!��������������������������������� ������� �������������� �������� ����� ������� ����������� ����� ���������6� ���������#��� ��������������������������������#����������������!�� ��������� ���������������������� ������������������*� ������3+530( �� ����������������������+

������������*��%%��������5�������&����� ���� ���� �����������������������!�� ������!�����,

��������������#������������������ �� ��� ����#+��% ����/�������"������5�������&,

�� ��������������� ������������� ����,#��%7���� ����f���5�������&,

Page 158: Informatica, cl. X (in limba romana)

��)

�� ����������� �������������� ����� ���� -#�� %&�/�������� ����f��5�������&,

�� ����������������������������� �������������������� ����#".�"#�/�������� ��������3+530( ���������� ����������!�������������������

��%��������

���������� ���!�������

� )������������ ������������������(�� ����������� �� � ���� �������8� )������������ ��������������������� (����� ��������!��������������������8�'������#� �����������#� ����

�������������!����������� )����������������� �������� ���������� ����������������!���������+

������ �����!��������������������� /������������������� ���#�������!� ���� �� ��������������������(4

������������(0�%f������!�&�� E�������������������������!���� �����������������������"4��������

������"0�%f������!&�� (������������ ����������� ������������ ���������������"-��"����

f��������!�8�(�����������������������8 (���#��� ���������������� �f��������!����������� �� ���������������"-8

�������������� �� ���������������"48 ����� ����������!����������������������������#���) �������#� �������

���#� �����������������!���� (���������� ����� ����������8�(� ������ �� � ���������8

*�!� ����� ����������� �������������������������(� ������������� �������������#8*�����������������������������������������������������#��)�������������������� �!����������������� ������!�� ����������!���������� ����������!�����������!�� ������!��������������#���������#��)������������ ������������������������������������ �������������������������!�� ������!������(�������������� ��������������������������#��) �������������������������� ��� �������3+530( ��$� ����������������������������� ��������������������#��8

�(������&�&���������

5����!�������%���������������������������!����������������� ��������������������������������������!�� ������!������%f������8&�

@ ���� ��������������������������������� ���� ���� ���������������� ������������������!������%����1�6&���� ������������������������� ���� ���� ��������������������������������������������������������

Page 159: Informatica, cl. X (in limba romana)

��*

�������� ������� �������� ��������

�������� "��#�� ������������

� �������� ��� ��%������&���� ����������������������� ���� �������������������������������� ��������� ����������� ���������� ���������� ���������� ����������� ������(������������� ��������%���������� ���������%����&��; ���� �������������!�� �������������-11�������������

@� ����������������������� � �������������� ����������������������*���������*�����������������������+������ ����������������������

��������� �������������������� �A4���������� ���%0������&������������������� ������ �f��������9�

Page 160: Informatica, cl. X (in limba romana)

�!�

" ������%���������� ����� >���������?�������� �������� �� ������������� %������3������+����&� ��� ������ ������������ � � ������ ������%������3������"���������&��" �� ������ ���������������������������������������� �������� ������� ������������������������� �������3�-����"��*������� �������,����(��������� �������������(����������������������%�������������� ������ ������������

��������������������������������� ������

�����" ��� ��������������������

������ ������ �������

3 4FG-49 440�G�-C�FFF�4-C- 4-0G-C�A90 4-C�G�C2�2AC" 44-G4�1HF�-24 49�G�42C

*������� �������3��� �������������������������� ���������������!�������������������������� ����������-C������� ���������������*������� ������-��� �������������������������� ����������������!�� ����������������������� ����������C2�������������������*������� �������"��� �����#����������������#������������ ������ �����42C���������������;����������%����������� �����*������� ������������������������������� ��#�����������������������%0��1��2�%�)��/������"�����&�

�������� ������� ��

-11-11-1�11--11--�1111-11-�----1---

�������������������-������ ������������������ ����

1111-11-�----1---

�� �����������

1-11-1�11--11--�

/ ���������������������� ������������� ������������������� ������� ���������������������'���������������� ��������������������������������� �� ���

" �������������������������� �+

%-11-11-1&4G%-0C&-1,

%11--11--&4G%2-&-1,

%1111-11-&4G%H&-1,

%----1---&4G%40F&-1�

/�� �������� ���������������������������#��#�����-0C�2-�H�40F�*������ ������������������������������������� ��������� ������ ��� ���

����� �������������!���� ����������#���������# ���� ������������������������

Page 161: Informatica, cl. X (in limba romana)

�!�

������������������������������� � ���������������!�������� ������ ������������� �� ����$����� ������� ��� �!�������������������!� ���������������!�!��������������� �������������������� ������ ����� !� ��������������������������� �����'�������� ������ ������ ������ ��������������������� ���

����������������������

��������+���

��������+���

�������������������������������� ���� �������%6����>D� ���)�� ��?&�*�������������

��������+���

�*������+���

����������������������������*�� ���� �������%6����>@� �(�� !�?&����� ���������������� ������� ��������� �����+�%( ��� �&��6���� ��������+���� ����� �������� �������%5�������D����#�&�

" ����������������������������

��������������

���������������

������������������������������������� ���� �������%*���������$�����)�� �����&����� ���������� ������ �������� ��������%D� ������)������'���� ��&������������� ������ �������� ������%5��I ��&�

" ����� ���������� ������������� ���� �#����������%��$��$�������&��������� ��������%�������������������������������������������������&�

�������������� �� ���� ������ �������������� ����������������!��������(���������# ����������� ������������������/ ���������������� �f����������� ����� ���������������!����� ��� ������������������ ���� ������

�������� ,��#���� ����� ����� ������ ���(����

Page 162: Informatica, cl. X (in limba romana)

�!�

/ �������������������������������� ������ ��������� #����� ����������� �������� ���������� ���%��/�����4��&��*�������!����!���� ������ ���������#������� ��# ������#��������� ������������/�� ������� �%�������� ������� ������������ ��������������� �������� ��������������������#�-1-1������������

" ����������������������%f�������&��������������������������������� ���������� ���#��� ����� �������������������������������*�������#��� ����$�#����+�#������� ��������������#����������������������������������� �������������������������������� ��������� ����" ����������������#������ ������������������������������������������������� ������������ ����!�������#��������

���������� ���!�������

� �� ����������!��������%���������(����� ���� �������������� ��������%�����������8

� (���������� ����� �������8������� �����8� (������ �������������������� �%�������8�(����� ���#� �����������#� ���

����������� ����8������������������������8� (����� ��������������� ����8�/ �������� ����������������������

�����8� )������������� ���������������3���������������3�������������������� ������

�� ������ (� ����������������������������� �%�������8� ����� ���������������������������/�����������������������������

������������� �������

� 02�41-�-H�CA, � -H4�-1H�29�-F1,

41-�-C2�4-A�H-, � -2�4-�41F�421,

� -20�AC�FH�411, f 4-F�-2�CH�--A�

(����� �������������!���������������������� ���� ��8�'�������� ������������� ���� �#��

$� ����������������������������+

� ��������+���& f � ������+���&

��������+���& � ��������+���&

� ��������+���& � �*������+���&

� ������������+���& � ��-������+���&

� �����������+���& # ���� ������+����

/����������� ������������������������������� ���� �� ������ ������� �������!�����(������ ���������� ������

Page 163: Informatica, cl. X (in limba romana)

�!�

� �� ���������!�����(������ ���������������������������/������������ ������ ����������� ��� �������� ������#��� � ���� �

� ��������������& � ��������������&

���������������& � ���������������&

� ��������-����������& f ��������(�������

(���������� ����� ����#���� �8�(�������� ������������ ����������#�8/����������#����� ��� ����������� ����������H����-1��@ ���������������������������������������#��*������������ �����������������������������������������������������#��/���������������������������������������������������������� ���������������� ���������!�����(������������ �������������� ���� �� ����� ����������������� �������������#��

�)��*��+�������������

5����%����������������������!��������#����+������������������������������ ��,����� ������������,������������� ���,������������������,����� ���������������� ���������������(����������������������������!�����������������������#�������������

����������� ����#�������������������������� �������������#��������������!�������� ���������������������� �����������#��������������!��������#��

%������ �&�������������������������������������������������������������������� �������������������� �� ����������������������������#� � ���������� �������������������������������� ����" ��� �� ����������������������� ���� �������������������������#���#������!����������#���������������� ������������������/����������������������������������������#�����!������ ��������������������$�#�����7� �������������� ������������ ���� ��� �����������������������������������������������

%������ ������������� �������������������������� �'&!�%7���� ����)��5�������&������������������������������������������������������� ���#����� ���!�!�������*������#������������������������ ���������������+

��������� ����� ������������������# ���������������������������� ������!� ��������������� ���� �������������,

������������� ���������� ��������������������� ������3&"%%�" �! ������ ������#������������#���;7/����� ������������ ��������

��������7�������������#��������%7 5�����6/���&������������������������������������� #����������������������

Page 164: Informatica, cl. X (in limba romana)

�!

%������ ����� �������������� %�����������/��������������������/���&����������������� ���� ��������������� ���

$�������������� ������ �����������%/������&�� ���+������������ ������,������������������� ����#���#� �,�����������������,����������������,�������������������� ���;��������������������������� ����+���������!� ������!�������$����������� ������� ���������������� ����� ����� �����%/�����:&�

*����� ����������������������+

.���� ����/0.1����' ��������/2

�+J���� ����K����� ����������������������������������� ����

������������������������������#��,L�����������>��?�%��&,J1����' ��������K������������������������������������ ����������������

�������������(:�/���+

� �������0��������+���

� -����0������������+���

� ������0��������+���

! (��(�0������������+���

(��������������������������������������������� �����������+

1���34�������+�05�+���

D������� ����� �������� ���������#����������������������������������� ��������������������� ���

$�#������������������ ������������������������������#� ������������ ��� ������������� �+�#����������������������������������������������������� ������������������#� ��������������

(���������� ���#��������� ���������������� ������������� �%����������������� �(((�%;�����;����;����/� ���D� ��������/��� � &��" �������#����� ��������������� ������ �����������!� ��M��

!�����(������ �������������� ���������N7D6�%<6�����:����2���.�����������6������� ����������� ��������&����������� �� ��� ��������� ������������������������� �����������!� ��M���/�!� ������������������������������������������������������������� ���#���� ���!�!�������%f������=&�

7 ���!�������������� ���������#������MMM������������� ����#��:���������������������������������������!�� ����� ���������� ���������

Page 165: Informatica, cl. X (in limba romana)

�!�

�������������� ����!������#�������������� ���������������!� ��M��$�#���� �����������������������������������������������!�������������!� ���������#��(������������������ ��� ���������!� ���M�������#��MMM��� ���������%���������������� ��&�

/��!�������� �����!������ ��������������������� �����!� �����M�������������#���������������� �%���������@������������� �����������������������!� �������� ���%��/�����������!� ���������&������������� �����������������������(� �����������������#���������� �������!�������� ��������������� ��� �����#���M����������������������!� �������������� ����� ����/�!� ������������������������� �

" ��� �� �������������������#��������������� �������!�������� �������������� � ���� �� ���� ������������� �������� � ����#�����������!� ��M�����(������#� ��������������>��������?���!� ���M��������#����������������� ���� ����������������!�!���������� ����������#����!�������� ���� � ����������������������������������������������%� � !������1�������:������&�

" ���������#������MMM�������������������������������� ������������������ ���������:56�%>��f��/�+��������.���������6�������: �������5���&��*����������������+

.����/$ 66 .1����' ���(���'/7$.��/86.����/6.-�9���/

�+.����/������������� ����������������� ������ ���������������

���,.1����' ���(���'/������������������������� �� ��������������#,

�������� :�#��� ;�(

Page 166: Informatica, cl. X (in limba romana)

�!!

.��/����������������%����� ��&,

.����/6.-�9���/����������������������/ ������������������ �������#�������:56����� �� �� ���������� ��

��� �++�$66<<<����������������D� �������)����������7� ������D����#�,+�$66<<<���������������������( �������7 ���!���@ �������� ������(��

� ������ ���� �)�������D����#�,+�$66<<<���������������*���������,6��/���0��1��2� ������������D����#�,+�$66<<<�����6������6�������+�����������D����'���� �����*�����5��

�I ��,+�$66<<<����������=���������D������O��� ������@ �������D����P���� �,+�$66<<<������#�����������! ����03&3��$�����: ������*�������*�� ������� �������+�������������������������� ������� Q���������%<6����

��:�� ����)���5�������&�" ���� ��� ���������������� ������%����������������� �������������

)#�� ��� ���� ���������#��������������� ��������� �������� ��������� ���#����������������������/ ������������������������ ����������� �����������%����������������������#����������%�������������&�

%����� ����� �������� �������������� ����������������� �� �� ����������������!� ���M���������� ������������ ���������������!��*�������� �������������� �� ��������������������� �� ������������������ ������ ��� ������������������#��

/��!�������� ������������#������������������� ������ �������������� ������������ #����$�#���� ���! ��������������������� �������� ����������������������������������!������ ��������������

/ ����������������� ������#��������������# ���������++�$66<<<�5�+��������#���R*N���%?���3�������<����������6�'����������

'��������� ��� ����������!� ��������� ��&��������� ���?����@�%���,+�$66<<<�##����������#���E��E6)����������������������%���,+�$66<<<�(��#��������#���P@'E���������������������)��%���,+�$66<<<�5����>��������#���R*'�)S��������� ����������,+�$66<<<���-���=��������#���@ ���3����������%�)����2�"����*���������������#�����!������

���������� ���!�������� (������!��������#�������������%�������8�(������������������������

�� ������ ����������������� ����#���8� (���������� �������#������7 58�(����������������� ��������� �����

��#���8� $����������!�����7 5�� ���������������������#���(����������#�����������

��#���7 5�����6/�����������������#����������#��������� ������� ��#���������� ���������������8������ ����#���������� �����

�����#��������������#���7 5������� � �5�������D����#���5��I �����$�����: ������*�������

Page 167: Informatica, cl. X (in limba romana)

�!�

� (�������������������� ���������#��������������������� ���8� )������������� ������� ������������������� �������#������������ ����

������#������������#�� (�� ����������� �� ����������������� ���8�(����� ������� ������� ��8 )���������������������������������������*�������������������������� ��

�����#�� $����������!������������������ ����� ���������������������������������

�#���B����������������������!����������������������������+��������������������������������,��������������������������������������� ������,������������������������� ����� ��������� ,����������������������������� � ��,���� ��������� ������� ���������������� � ��,��#���������������������������������������� ��������� ���,������������� ������������� ���

� (����� ���#� ���������������� ��8�/����� ������������#������������������� ���8;�������!��������������������������������������� ����������� ���������� ����#���������������� ����������� � ���(�� ����������� �� ���!� �M�8�(�����������������!� ����>�� ���������� � ?8(���������� ����� ����#��M�8������� ����� ��M�8�(��� �������� ������������!���8)����������������� ���� ����� ����� ��M���(��!�������������!�����!� ���M������������������������������8)���������������������������� �������� � �%�������� ����������������:56��(�������� ������������������������������8$����������!�����������������%������������� ���������������������������������#���(�������������������������!���8�(��������!� ���M������������������ ��� ������� ����������!����(���������� ����� ����#���������8�(���#���������� ������������#�8E��������������� ����#������������ �����������#�����%���������� �5��������D����#��" �����������#�������������� ����������!����������%���������������������#��������������+�3���������������;3%&������ ����������������������;����� � ���#������������������� ���������������#��������������#�����)�����������!� ���M������������������������#��

Page 168: Informatica, cl. X (in limba romana)

�!)

��,�����&����+&��&�������

���?������ ����� �� ��������� � ���� -��� ���� @� -��' ��+���' A≈��� � ���B �������'����� ����� �� ����������$

�� ����� ���-���' �� �! � ���� & � ��(�� �� -��� ������ �� � � ��� &�� ��(�� ��>��� �� � ! ��� &�� ��(�� ��� �� � " ��� �

"������ ����� �-��������� �� ������' �@� ����'���$�� �������� ����� �����' ���� ���� �����'��& � �������� #�(��� �����' �����-��� ���� �'��2 �����-��� ���� ������ ��� �+��� �����-��

�� ��� ���� �������&�� @� #������2 �������� ��#����� ��������� �����'���� ���� ���#��� �������&�� �� (����2 �������� ����� ��������� ���#��' ��������C

'��D����� ��������� ���������� ��� ���� ������ �� �����������

(������ ����� �-��������� �� ������' �@� ����'���$�� @� �+��#�� �#�������#�� -�������� ���� ������������ ��� ����� �@� �������& � �������� ���� ������ ��� ������9� -������ �� 9� ������ �� �������� ��� �����&�B @� �+��#�� ������������ ������' ����' ��� #�����' �� �� �������� ������&�� ���� �������������� ��� ������ ����� �� �� ������ �� �������� ��� �����C

)E ������ ����� �-��������� �� ������' �@� ����'���$�� @� ��#�� ��� ��#'��� @��� ��' ���������� ��� ������� ��� �� ���� ����������

������������ ������& � @� ��#���� �����(��� ��#'��� @��� ��' ���������� ��� ������� ��� �� ���� �������

���� ��#�������&�� @� ��#�� ��#�����' ��#'��� @��� ��' ���������� ��� ������� ��� �� ���� �������

���� ������������ ������&�� @� ��#�� ���� �� ������������ �� -������ �������C

-.� ���� ��� ��������� ���� ���� �� �����C

.��?>������� �����-������ ��������� ��#����������������

/��,������� ��#�� ������� ���������

0������ ����� �-��������� �� ������' ��� ����'��'$�� ���������� ��� ����� ����' �� ��� ����� �� ��� ������ �����2 ��#����� ��� #�(���& � ���������� ��������' ������ �������� ����� ���'&�� ���������� ��� ����� � ������ ������� ������������&�� ���������� ��������' ����� �����(��'2 -���' ��� ������ #�(���2 ��#����� 9� �����

���������� @��� ���&�B ���������� ��� -��� ��� �� ������������ �����2 ���������� @��� ���C

�1� ��� �� �����-��' ������������ @� ��������C

��.� ,��������� ����� ������� ���������������� �� �������!���*� :�������� ������ ��(�������� 9� ������ ������������ @� ��(������

T�D���� ����� ��-���� �����

Page 169: Informatica, cl. X (in limba romana)

�!*

�"� ,������� ���#���' ����� ����� �������� ���(���� �� ������'� :�������� ���������� ���������� 9� ��������� ��������� �� �����������

�� ���������+�����& �� ����������+�����&

� ���(�������+�����& �� ���(��������+�����&

�� �����������+�����& $� ����������������������

�'� F������� ����������� @��� ���������� ���������� �������� A����� ��� �@�#�B 9� ���������� ������ A����� ��� ������B$

A�B ����-���� -�9������ �� �� ���������� �-�� �� ������'�� ���������� �����������&

A(B �'����� ��-�������� �� ������ ��#���� �� ������������9� �-�9���� �� �� �����&

A�B ������� ���#����� #��-��� 9� ���������� �� @� ��������&

A�B ���������� ��������� ���������&

A�B ����������� ����� �� �G���� ���� ��������� �� ������ �(����9� ���������� ��������� ���� �9� ��������'&

A-B ����������2 ���������� 9� �'����� ��-�������� @� ��������&

A#B ����� �� ��� ����������2 ���������� ����������� ���������� ������� �� ������������ �-�� �� ������'�

�(� F������� �+��#�� �� ������� @� ������� ��������$�� �� �� �#�������#��& � ������������&�� �� �� �#�������#�� 9� �������������

�)� ���� ����� �-��������� �� ������' �@� ����'���$�� �� ������� ��#����� ;�( �� -���9� ���(�G�� :1��1H& � ����� � ����� �������� ��������'2 ���� ����� �� ���>���� ��������&�� ��#��' ;�( ��� ������ ����� �> 9� ���#���&�� �� ������� ��#����� ;�( �� -���9� ���(�G�� I"�H&�� ��#��' ;�( ��� ������ �>2 ���#���2 �������� ���� 9� �������� ����&$� ��������� ��������� �� � -� ���� �� ��������� ��'���&�� �������� �� �'���� ��� ��� ��-�������� �� �� ���� �������� ����� �� ��������%

�-� �������� ��� ���� �� ������' �������� �� ���� �9���$

�� <<<����������+�����& �� (G��0����������+�����&

� ��������0���(�������+�����& �� <<<����(��������+�����&

�� ������0�����������+�����& $� �������0����������������������

A�B "����&

A�B J":&

A�B ?�����&

A B ;;;�

Page 170: Informatica, cl. X (in limba romana)

���

������������ �� � ���� �����

������������

�������� �� ����� ��� ����� �� ���� OrarulLectiilor ���� ��������� �� ������������������ ���� ���� ��������� ��� ��� �� ���� ZiDeScoala� �� ��������� � ������ �� ���� Lectie�

��

�� x[1]+ x[2]+ x[3]+ x[4];

�� y[7]+ y[8]+ y[9]+ y[10];

�� abs(x[3]);

�� abs(y[6]);

�� x[1]+ y[10].

��

Program RTA9;{ Raspuns la Testul 1, Itemul 4 }type Numere = array [1..50] of integer;var A : Numere; n, i : integer;begin write(’Dati n=’); readln(n); { Citim numerele de la tastatura } for i:=1 to n do begin write(’A[’, i, ’]=’); readln(A[i]); end; { Afisam numerele la ecran } writeln(’Numerele in ordine inversa:’);

Page 171: Informatica, cl. X (in limba romana)

���

for i:=n downto 1 do writeln(’A[’, i, ’]=’, A[i]); readln;end.

�������� ������ �� �� string�� ����� ������� ������� �� ����������� !"�#��������$������� ��� %&'� ���(�� ������� � ��� ����� � �� �� ������ ����� � ������ �� �"������������ ��������� length(v) ���� ��������)� � ������� �� �� integer� *� �������������� ������ �� ��������� ���� ���� �������� ���������� <� <=� =� >=� >� <>� +�)��������������� ������ ���� �� ���� boolean�

��

Program RTA10;{ Raspuns la Testul 1, Itemul 6 }var S : string; i : integer;begin writeln(’Dati sirul de caractere:’); readln(S); writeln(’Sirul in ordine inversa:’); for i:=length(S) downto 1 do write(S[i]); writeln; readln;end.

��

Program RTA11;{ Raspuns la Testul 1, Itemul 8 }type Angajat = record NumePrenume : string; Salariu : real; end; ListaDePlata = array [1..100] of Angajat;var L : ListaDePlata;

Page 172: Informatica, cl. X (in limba romana)

��,

s : real; i, n : integer;begin write(’Dati n=’); readln(n); { Citirea datelor despre fiecare angajat } for i:=1 to n do begin writeln(’Dati datele despre angajatul ’, i); write(’Numele si prenumele: ’); readln(L[i].NumePrenume); write(’Salariul: ’); readln(L[i].Salariu); end; { Cautarea salariului maximal } s:=0; for i:=1 to n do if L[i].Salariu > s then s:=L[i].Salariu; writeln(’Salariul maximal = ’, s:10:2); { Afisarea informatiilor } writeln(’Angajatii cu cel mai mare salariu:’); for i:=1 to n do if L[i].Salariu = s then writeln(L[i].NumePrenume); readln;end.

!�-����������� with �� ���)��)� ������ � ������ ��#���� ���(������ .�/0�� ��� �#1�������� ���������� �� ����� ��� ���������� �� �� record !������$�

�"�2������ ������� V3

4 5 � 46765 � 46865 � 46965 � 4676� 6865 � 4676� 6965 � 4686� 6965 � 4676� 686� 6965 �

2������ ������� 3

4 5 � 4:5 � 4;5 � 4:� ;5 �

���

Program RTA12;{ Raspuns la Testul 1, Itemul 11 }var S : string; i, n : integer;begin write(’Dati un sir de caractere format din ’); writeln(’literele mari ale alfabetului latin:’); readln(S); { Numaram vocalele in sir } n:=0; for i:=1 to length(S) do if S[i] in [’A’, ’E’, ’I’, ’O’, ’U’] then n:=n+1; writeln(’Numarul de vocale = ’, n);readln;end.

Page 173: Informatica, cl. X (in limba romana)

��<

���*����� � ������ .�/0�� �� �������)� �� ���������� �� ������� ��� ��=�����������������3 ����� ���) �(������ ����� ������ =���� ������ ��� � ����)����� �� ����������� ��� .�������� assign �����)� ��������� �� �� ��� �� ��������� ���(���1��� .�/0�� �� � ����� �� �� ���������� �� ������� ��� ��=��������� ���������

���>� ������ �� �#$��%$��&'##�%�$��(#�� ������ ������������� � ����� �� ������� ��3� � ��� �� ������ !���� ����� ��� �����$?� � ��� �� � �� !���� ����� ��� �������$?� � ��� �� ������)��� !���� ����� ������� �����$� >� ������ �� (%)��)�&**�� �� ���������� � ����� �� ������� ��3� � ��� �� ����� ��������� ��� ���������� !������� �� ��������� ���� ���� ����

�� �1� ���@���� ��������� A�A�$?� � ��� �� ����� ������� ��� ����� !���� ��������� �� ����� ����� ����� ��� ������

� �� ����� �� � ��$�

���

Program RTA13;{ Raspuns la Testul 1, Itemul 14 }type Angajat = record NumePrenume : string; Salariu : real; end; FisierAngajati = file of Angajat;var A : Angajat; F : FisierAngajati; i, n : integer;begin { Crearea fisierului SALARII.DAT } assign(F, ’SALARII.DAT’); rewrite(F); write(’Dati n=’); readln(n); for i:= 1 to n do begin writeln(’Dati datele angajatului ’, i); write(’Nume, prenume: ’); readln(A.NumePrenume); write(’Salariul: ’); readln(A.Salariu); { Scrierea datelor despre angajat in fisierul F } write(F, A); end; close(F);end.

���

Program RTA14;{ Raspuns la Testul 1, Itemul 15 }type Angajat = record NumePrenume : string; Salariu : real; end; FisierAngajati = file of Angajat;

Page 174: Informatica, cl. X (in limba romana)

��B

var A : Angajat; F : FisierAngajati;begin assign(F, ’SALARII.DAT’); reset(F); writeln(’Datele citite din fisierul SALARII.DAT:’); while not eof(F) do begin read(F, A); writeln(A.NumePrenume, ’ ’, A.Salariu:10:2); end; readln; close(F);end.

���

Program RTA15;{ Raspuns la Testul 1, itemul 16 }var a, b : real; c : string; Intrare, Iesire : text;begin assign(Intrare, ’REZULTAT.TXT’); reset(Intrare); assign(Iesire, ’MEDII.TXT’); rewrite(Iesire); while not eof(Intrare) do begin readln(Intrare, a, b, c); writeln(Iesire, (a+b)/2, ’ ’, c); writeln((a+b)/2, ’ ’, c); end; readln; close(Intrare); close(Iesire);end.

����������

����� � ��� � ��� � ��� � ��� � ��� � ��� � ��� �

��+�)������� ���������3 CACB� +�)������� �������3 ����� ����� ������

����������� ���� ���� ����� �� ,C �� ������ .�� ������ ������ �� ���"� ������ �������� �� ������� � D ,C & ,C D E,� 0�������� �� ������� ����1�� ���"3

D ��(, E, ≈ E�� ���

*� ��(������� � ≥ � ����� � D C�

Page 175: Informatica, cl. X (in limba romana)

��E

��F����� �� ���"� ������ ��� ����������� ��������� � D <� × �, × ��� D <�,���0�������� �� ������� ����1�� ���"3

D ��(,<�,�� ≈ �E�, ���

*� ��(������� � ≥ � ����� � D �C�

�� +: �� !� �����$�

��� +�� �� × ,�� �� ���������@��� × � ����� D ,��� �� ������

��

Program RTA16; { Raspuns la Testul 2, Itemul 7 }var c : char;begin while not eof do begin readln(c); writeln(c, ’ - ’, ord(c)); end;end.

Program RTA17; { Raspuns la Testul 2, Itemul 8 }var i : integer;begin while not eof do begin readln(i); writeln(i, ’ - ’, char(i)); end;end.

!� D !�� × ��$ × <� × ��(,�,: D ,���� �� �� D ,C,E �� ������

�"���� ��� ��� ��� ���

���

���

���!�$ � !�$?!,$ � !�$? !<$ � !�$? !B$ � !�$�

���!�$ � !�$?!,$ � !�$? !<$ � !�$? !B$ � !�$�

Page 176: Informatica, cl. X (in limba romana)

��C

��������� �

�� �� CC�? �� ≈<��E;,C? �� ≈��C��EE��

�� �� : �� ���� � ���� ������? �� ,� :� B C �� ���� ���� ������

��

Program RTA18;{ Raspuns la Testul 3, Itemul 3 }var b : integer; { baza } x : string; { numarul citit de la tastatura } y : integer; { numarul transformat in baza 10 } i : integer; bi : integer; { baza la puterea i }begin write(’Dati baza b=’); readln(b); write(’Dati un numar scris in baza ’, b, ’: ’); readln(x); y:=0; bi:=1; { baza la puterea 0 } for i:=length(x) downto 1 do begin y:=y+(ord(x[i])-48)*bi; bi:=bi*b; end; writeln(’Numarul scris in baza 10: ’, y); readln;end.

�� �� ≈������������? �� ���������������? �� ����������������������

�� �� ≈,<�<C��<B�? �� �<<<�,�,? �� �EE,�C�EB,�

�� �� ≈,BGG�*C��? �� ,**H�E<B? �� ��E��G�

��!,,,,,�$B�!����������$,� !HH$�C� !�<,$:�

�!�*<$�C D !�,<$:? !,E$: D !,�$���

!�

Program RTA19;{ Raspuns la Testul 3, Itemul 9 }var x : string; { numarul octal } y : string; { numarul binar } i : integer; T : array [’0’..’7’] of string; { T[i] - reprezentarea binara a cifrei octale i }begin { Initializarea tabelului } T[’0’]:=’000’; T[’1’]:=’001’; T[’2’]:=’010’; T[’3’]:=’011’; T[’4’]:=’100’; T[’5’]:=’101’;

Page 177: Informatica, cl. X (in limba romana)

���

T[’6’]:=’110’; T[’7’]:=’111’; write(’Dati un numar octal x=’); readln(x); y:=’’; for i:=1 to length(x) do y:=y+T[x[i]]; writeln(’Reprezentarea binara: ’, y); readln;end.

�"��� ����������? �� ���������? �� ���������? �� �������

���

� � � � � � � �

���

� � � � � � � �

������ ��? �� &CB? �� �<;�

���

� � � � � � � �

��� �� ����������×,E? �� ������������×,�? �� �����×,�<�

��� � D :? � D ,E�

��� �� �,C? �� BE? �� �:�

� � �� 4�:� �5? �� 4��,:� �,�5? �� 4�<, �C:� <, �C�5�

�!� �� ���<�E? �� ���,E? �� ���E�

�"� � D ���;;,�:�E? � D ��;;,�:�E�

��� �� �����;<�E? �� ��E? �� ���,E�

���

� � � � � � � �

��� � D ���E? � D ��E�

��������� �

��

� � � � �� ������

� � � � � �

� � � � � �

� � � � � �

� � � � � �

� � � � � �

Page 178: Informatica, cl. X (in limba romana)

��:

���� ���

�� I���� ���� ���� ���� ���J�

��

Program RTA20;{ Raspuns la Testul 4, Itemul 4 }var x, y, z, f : boolean; xx, yy, zz, ff : 0..1;begin write(’Dati x=’); readln(xx); if xx=0 then x:=false else x:=true; write(’Dati y=’); readln(yy); if yy=0 then y:=false else y:=true; write(’Dati z=’); readln(zz); if zz=0 then z:=false else z:=true; f:=x and (not y) or z; if f=false then ff:=0 else ff:=1; writeln(’Valoarea expresiei logice: ’, ff); readln;end.

��

Program RTA21;{ Raspuns la Testul 4, Itemul 5 }var x, y, z, f : boolean; xx, yy, zz, ff : 0..1;begin writeln(’x y z f’); writeln(’————’); for x:=false to true do for y:=false to true do for z:=false to true do begin f:=(not x) and (not y) or z; if x=false then xx:=0 else xx:=1; if y=false then yy:=0 else yy:=1; if z=false then zz:=0 else zz:=1; if f=false then ff:=0 else ff:=1; writeln(xx, ’ ’, yy, ’ ’, zz, ’ ’, ff); end; readln;end.

� � � � �� ������

� � � � � �

� � � � � �

� � � � � �

Page 179: Informatica, cl. X (in limba romana)

��;

��*����� �� ������3 I���� ���� ���� ���� ���� ���� ���� ���J� *����� �� ��1���3 I�� �J�

��

�� �� �� �

� � � �

� � � �

� � � �

� � � �

� � � �

� � � �

� � � �

� � � �

Program RTA22;{ Raspuns la Testul 4, Itemul 8 }var x1, x2,x3, y : boolean; xx1, xx2, xx3, yy : 0..1;begin write(’Dati x1=’); readln(xx1); if xx1=0 then x1:=false else x1:=true; write(’Dati x2=’); readln(xx2); if xx2=0 then x2:=false else x2:=true; write(’Dati x3=’); readln(xx3); if xx3=0 then x3:=false else x3:=true; y:=x1 and ((not x2) or (not x3)); if y=false then yy:=0 else yy:=1; writeln(’Valoarea functiei logice y=’, yy); readln;end.

!�

Program RTA21;{ Raspuns la Testul 4, Itemul 9 }var x1,x2, x3, y : boolean; xx1, xx2, xx3, yy : 0..1;begin writeln(’x1 x2 x3 y’); writeln(’—————’); for x1:=false to true do for x2:=false to true do for x3:=false to true do begin y:=(not x1) and (x2 or x3); if x1=false then xx1:=0 else xx1:=1; if x2=false then xx2:=0 else xx2:=1; if x3=false then xx3:=0 else xx3:=1;

Page 180: Informatica, cl. X (in limba romana)

�:�

if y=false then yy:=0 else yy:=1; writeln(’ ’, xx1, ’ ’, xx2, ’ ’, xx3, ’ ’, yy); end; readln;end.

�"� ,,E D B,;B;C�,;C�

���

��

��

������

� � �

� � �

� � �

� � �

��

��

����

� � �

� � �

� � �

� � �

����� ������

����� ��? �� ���

������

����������

��

��

Page 181: Informatica, cl. X (in limba romana)

�:�

�������∨������ ��∨� ��

��

Program RTA24;{ Raspuns la Testul 5, Itemul 4 }var a, b, s, t : char;begin write(’Dati a=’); readln(a); write(’Dati b=’); readln(b); if (a=’0’) and (b=’0’) then begin s:=’0’; t:=’0’; end; if (a=’0’) and (b=’1’) then begin s:=’1’; t:=’0’; end; if (a=’1’) and (b=’0’) then begin s:=’1’; t:=’0’; end; if (a=’1’) and (b=’1’) then begin s:=’1’; t:=’1’; end; writeln(’s=’, s, ’ ’, ’�’, t); readln;end.

��K� �������� ������ , ���� ��(�� ��� < ���� ��(�� � � ������ ��(�� ���!������� $� K� ������ �������� ������ , ���������� � ������ ��(�� ��� !��������$�.�� ������ �� ������ �������� ������ B ���� ��(�� ��� C ���� ��(�� � < ���� ��(������ L������ �� ������ �� � �� ������ B� ���� ��(�� FK� C� ���� ��(�� � <� ������(�� ��� !�������!$� .����� �� ������ �� � D : ��� �����3 <, �� ���� ��(�� ��? B: ������ ��(�� � ? ,B �� ���� ��(�� ����

��

Program RTA25;{ Raspuns la Testul 5, Itemul 6 }label 1;var A, B, S : string; t : char; { transportul } i : integer;begin writeln(’Dati doua numere binare A si B. Fiecare numar’); writeln(’trebuie sa contina exact 8 cifre binare.’); write(’A=’); readln(A); write(’B=’); readln(B); t:=’�’; { initial transportul t=0 } S:=’��������’; { initial suma S este necunoscuta } for i:=8 downto 1 do begin { adunarea cifrelor binare A[i], B[i], T[i-1] } if (A[i]=’0’) and (B[i]=’0’) and (t=’0’) then begin S[i]:=’0’; t:=’0’; goto 1; end; if (A[i]=’0’) and (B[i]=’0’) and (t=’1’) then begin S[i]:=’1’; t:=’0’; goto 1; end; if (A[i]=’0’) and (B[i]=’1’) and (t=’0’) then begin S[i]:=’1’; t:=’0’; goto 1; end; if (A[i]=’0’) and (B[i]=’1’) and (t=’1’) then begin S[i]:=’0’; t:=’1’; goto 1; end;

Page 182: Informatica, cl. X (in limba romana)

�:,

if (A[i]=’1’) and (B[i]=’0’) and (t=’0’) then begin S[i]:=’1’; t:=’0’; end; if (A[i]=’1’) and (B[i]=’0’) and (t=’1’) then begin S[i]:=’0’; t:=’1’; goto 1; end; if (A[i]=’1’) and (B[i]=’1’) and (t=’0’) then begin S[i]:=’0’; t:=’1’; goto 1; end; if (A[i]=’1’) and (B[i]=’1’) and (t=’1’) then begin S[i]:=’1’; t:=’1’; goto 1; end; 1: end; writeln(’S=’, S); writeln(’Cifra de depasire t=’, t); readln;end.

��!�$ � !�$?!,$ � !($? !<$ � !�$? !B$ � !�$? !E$ � !=$? !C$ � !�$�

� "� � SUS? ", � JOS? "< � STÎNGA? "B � DREAPTA�

�� �� �� ��� �� �

� � � � � �

� � � � � �

� � � � � �

� � � � � �

!���D � � D ��

�"�

���!�$ � !�$?!,$ � !$? !<$ � !($? !B$ � !�$? !E$ � !�$? !C$ � !�$�

������������

������������

���

Program RTA26;{ Raspuns la Testul 5, Itemul 14 }var R : string; n, m, i, j : integer;

Page 183: Informatica, cl. X (in limba romana)

�:<

begin writeln(’Dati continutul initial al registrului’); write(’R=’); readln(R); n:=length(R); { capacitatea registrului } write(’Dati m=’); readln(m); for j:=1 to m do begin { deplasarea cu o pozitie } for i:=1 to n-1 do R[i]:=R[i+1]; R[n]:=’0’; end; writeln(’Continutul registrului dupa deplasare’); writeln(’R=’, R); readln;end.

������������

������������

���

Program RTA27;{ Raspuns la Testul 5, Itemul 17 }label 1;var A : string; n, m, i, j : integer; t : char; { transportul }begin writeln(’Dati continutul initial al numaratorului’); write(’A=’); readln(A); n:=length(A); { capacitatea numaratorului } write(’Dati m=’); readln(m); for j:=1 to m do begin { adunarea unitatii la continutul numaratorului } t:=’1’; for i:=n downto 1 do begin { adunarea transportului la cifra A[i] } if (A[i]=’0’) and (t=’0’) then begin A[i]:=’0’; t:=’0’; goto 1; end; if (A[i]=’0’) and (t=’1’) then begin A[i]:=’1’; t:=’0’; goto 1; end; if (A[i]=’1’) and (t=’0’) then begin A[i]:=’1’; t:=’0’; goto 1; end; if (A[i]=’1’) and (t=’1’) then begin A[i]:=’0’; t:=’1’; goto 1; end; 1: end; end; writeln(’B=’, A); readln;end.

Page 184: Informatica, cl. X (in limba romana)

�:B

����������

�� !�$ � !$? !,$ � !�$? !<$ � !�$? !B$ � !�$? !E$ � !�$? !C$ � !($�

�� M��������� ����1��� �)���)������� ������� ������� �� ��� �(����� ������� ����� ����� ������� �� �������� !��������$�

����� ��� ���

����(������ ��(��� ��������� ����������� �� ���� ������ ��=���������������

�� 2�) ��#���$�!� 0���������� ���(����3 ����������� �(������� ���� ������� ���1��������� ����)���� �� ������1� ���

��%��#&��'��#��#� � �� ����� ��� �� ���� ������� �� ������ �#�������� ����'(��)�*������ ����'(��)������! � �� ������ ����� �� ���� �������� �������� �� ���������� ���� ������ ��������� ���� �� ����� �������� ����'(� ��+#&��� � ���� ������������ �� ���� ������ �� ���� �� � ����� ��)������� ��������

���� ������ �� ������ ��� ���� ������ �� ������ �� ������ �E<� �� ��)������� ���������� ����� �� ������ <B,?

�� ������ �� ������ E�: ���� ������ �� ������ �� ������ <;�� �� ��)������� ���������� ����� �� ������ ,�C?�� ������ �� ������ �E� ���� ������ �� ������ �� ������ :E,� �� ��)������� ���������� ����� �� ������ �<�?�� �� ������ �� ������ BE� �� ����� ������ �� ������ ��;� �� ��)������� ���������� ����� �� ������ ����

���� ��� �� � ��������� �����������? �� � ���������� �� ��������? �� � ���������� ������? ��� �� � ��������� �� ������1� ���

!�

INC XMEM SSCD YADU X

�"�

01 58302 46101 97102 58301 461

������ ��� ��� �� � ������� ��=���? ��� ��� ��� �� � ������� ���(������

���>� ��)�� ������ �#����� �� ����� ��������� �������@����� ����(����� ����� ���������� ���� ���� �������@����� ������� ����(�������� ����������� >� ��)�� ������ �#���1�� �� ����� ����� ���� ����(������ ����� � �����@���� ���� � � ��@���� ����(������������������

������ ��� ���

Page 185: Informatica, cl. X (in limba romana)

�:E

�����,����

���,:C��, -�����.'�

������ ��� ���

��� ��� ��� ���

� �.������ �� ��)� � ��� ����������3� ���)� �� �������?� ���������� ���� ������?� ���������� ���������� ���� �� ����� ��� �������� �� ���� �#�����?� ��������� ������� ��=�� �������� � ��=��������� ��������?� ������� �� ��� (�����?� �������

�!�.������ �� ��)� � ��������������3� ���(�� ���������?� ��������� ������� �� ����?� ���������� �(���������?� ���������� �� �����������

����������

���� ≈C ���? �� �, �� <� �? �� ≈���< �? �� ≈������, ��

����,�����

��0�������������� ����������� �� ������ ��������� �� ���������

����� ���

����� ���

��K� �������� �� ����� ����� �� ���� �� �������� � ���������������� ���(�� ����1����� ���=������ �� ����� ��(����� �� �������� ��������� � �������� ���� �� ����������)�� � ������������ ��������� �� ������

����=������� ��� ������ �����)��� ���� �� ���� ���� ��������� �������3 ������(�������������� �� ��������� ��=����(�� �� ��������� �� ������

�2�) ��#���/���

!����

�"� >� ������� �������������� �� ������� �� �"������ ���������� ������� ��� � �� ��������3 ������ ������ ������ �������

���>������� !,�B$�� D !��������$,� �� �� �1, �� �������� ���� ������ ������� �����1�� ����� %� >� ��)�� ����� % ������ ��������� �� ���� �� �� <1<, � ������ ����1��� *� ���� ����� �� ������ ������ ������� �� <1� ��������� ������ ���������� �� ������ )����3 !�����$, D !,,$��� .�� ������ ������ ��������� ����,,��,��,�C� F����� ��; �� ����� ����� �� ������ ������ �����)��� ������ �����1�������� �� ���������

Page 186: Informatica, cl. X (in limba romana)

�:C

���� � ������ �� ��� � ����� ����� ����� ����� ������ ��������� %�,�#�*&,�� *&�&�&�#� /�������� %�,�# ������ �������������� )#��*�#�� *%��&-#�#�&�� $����)#���� /�������� *&,�� ������ �������������� )#��*�#� *%��&-#�#�&��� /����1���� *&�&�&�# ������ ������������ $����)#����

��� !�$ � !($? !,$ � !�$? !<$ � !�$? !B$ � !�$�

��� ���

�������� ��� ���

��� ��� ��� ��� ���

Page 187: Informatica, cl. X (in limba romana)

�:�

H���(����

������������������������������� ���� ���� � ������ ����������������

������������ �� ������������������������������������������������������������� ���� ����

�� �������!�

"��������#��$�������������������������������������������������������� ���� �����%�� ��$�

�&&&�

'��������#��$�������(��)����� ����������������������������������� ���� �����%�� ��$���&&��

*��+��$��,�� ���������������� ����� � �������������������� �!��"#$�#����� � ������ ��-

���(� .����&&"�

!��+��$��,�� �/��$ ������������ ���$���������%��������������������������������������&

�������������������%������������ � ������ �����/0���$�����!�

���+��$��,�� ����������1��2 ������+��$��,�� �/��$ ����$�������������������������������

�������������������� � ����3 ������!�

4��/�5 ��6���7�������������������������������� ���� ����� ���������!�

���/�8��9��:����������������������������� ���� ����� ���������*�

�&���������7�����$�'����������������������������������������������(���'�����)&��

7������������ ���� �����9 ���� ���� �%���:�: �������*�

�����������7�����2�� ����������� �*�����������������������������'����)��&�������-

���� ���� ������//�������

����� ����9���� �,������: ������ ���������������������������������������%���������������

����������������������������������'�����(���'����)��&���7������������ ���� �����9 ���� ����

%���:�: �������*�

�"������ ������ ���� �� ����� �����:��(��;�������������'����������� ���� ����� ���������*�

�'��%;�;;�)��:�����0���%����,��6��0��+����������,������-������������������������ ���� ��-

��� ���������!�

�*��%����,������ ������)�<��� ,���7���5 .��=���������������'�������������������������&

����������������� ���� ����� ���������!�

�!��%����,���� �5 ����������������������.�������������������������������'����)��&�������-

���� ���� ����� ���������4�

�������� ����> �������+��$��,�� �����������������#�*���������%������������������������&

'���������� � ������ �����3 5��, ��,�����*�

�4��2�� �����������2�, ��,������ ���/����������������������������������'����)��&�������-

���� ���� ������//�������

������������ ������������� ��������������������������������������������� ������

���������� � � ����������������������� ���!�������"�#�$�%�����&���$���'��(��)�*�+,

�-.������/�������

01������������ ����������� ����������������2��(�������������������� ������� ����

��� ��� ���������&���$���'��(��)�*�+�-.������/�������

Page 188: Informatica, cl. X (in limba romana)

$�� $������� ��:��; ��?��7���@��7/

,������������ ������&A

�9-�&!���7���)� ��������5�

��$��������&*

�����������,����,�������� �������� ,������ ������. � ����7���)� � ������5��

/ ����� BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB

�����������BBBBBBBBBBBBBB

���

���;���, ��

>�$����� �����$���

���5���

�,�������$�������

����� $ �� �����,� �� ��

���

������

��

��

"�

'�

*�

C�9 � : ��������)� ��,���������#��������$�������5��� ��,���,�� ,��������

C����5��������)� ��,��;���� � ��;������D,�$�� ������: �

C��,�������$������� �E����� $ ���� ������,� �� ��F�,��5������� ��;���, �����$� G����(� ��(

'���'�������(���'���'��������