Вы находитесь на странице: 1из 8

/

MINISTERUL EDUCAIEI
AL REPUBLICII MOLDOVA
AGENIA DE ASIGURARE
A CALITII




02 2015
: 180 .
: , ,
, .

:
- .
- .

_________

1B () = 8
1KB () = 210 B ( 1000 B)
1MB () = 210 KB ( 1000 KB)
1GB () = 210 MB ( 1000 MB)
1TB () = 210 GB ( 1000 GB)

2
21 = 2
22 = 4
23 = 8
24 = 16
25 = 32
26 = 64
27= 128
28= 256

29 = 512
210 = 1024
211 = 2048
212 = 4096
213 = 8192
214 = 16384
215 = 32768
216 = 65536

Nr
1

Item

Scor
L L
0 0
1 1
2 2
3 3


.
,
,
().
.
:
a) , ,
, , 10.
______________
b) ( ) ,
, 40000.

a)

_____________()

, ,
, , +36. .
.

:
b) ,
, 11110110.
, .

L
0
1
2
3
4
5
6
7

L
0
1
2
3
4
5
6
7

L
0
1
2
3
4
5

L
0
1
2
3
4
5

:
c) , , 01110000.
.
:

:
3.

,
f.
a) f
,

f = ____________________________

b)

g ( x1 , x2 ) x1 x2 x1 x2
x1

x2 x1 x2

x1 x2

g ( x1 , x2 )

4. :
program py;
type adr=^tranzactie;
tranzactie=record
urm:adr; val,id:integer;
end;
var t,n: adr;
count: integer;
procedure pa(x:integer);
begin
new(n); n^.val:=x; count:=count+1;
n^.id:=count; n^.urm:=t; t:=n;
end;
procedure pb(n:adr);
begin
while n<>nil do
begin
writeln(n^.id, ' ', n^.val);
n:=n^.urm;
end;
end;
procedure pc;
begin
n:=t;
If n<>Nil then
begin t:=t^.urm; dispose(n); end;
end;
begin
new(t); t:=Nil; count:=0;
pa(100); pa(60); pc; pa(200);
pa(50); pc; pb(t);
end.

5. :
{1} program pw;
{2} type t=array[1..5] of string;
{3} var a:t;
{4}
n,i: integer;

py
:
a) py
.

,

py ______

{19} begin
{20} n:=4;
{21} a[1]:=garaj; a[2]:=hambar;
{22} a[3]:=caravana; a[4]:=apa;
{23} sp2(a);
{24} for i:=1 to n do
{25}
write(a[i],' ');
{26} end.

L
0
1
2
3
4
5

L
0
1
2
3
4
5
6

L
0
1
2
3
4
5
6

b) ,
heap,

py: _________________
c)
pb
py:
_____________________________
_____________________________
d) ,

py:

pw
:

a)

pw :
{5} function sp1(s:string):string;
{6} var z,i: integer; q: string;
___________________________
{7} begin
b)
{8}
z:=length(s); q:=;
,
{9}
for i:=1 to z do
{10} if s[i] <> a then q:=q+s[i];
sp2 pw:
{11} sp1:=q;
___________________________
{12} end;
{13} procedure sp2(var x:t);
{14} var i : integer;
{15} begin
{16} for i:=1 to n do
{17}
if length(x[i])>5
then x[i]:=sp1(x[i]);
{18} end;

L
0
1
2
3
4
5

c)
{10}
pw: ____________
d)
, n,
{24}
{25} pw: ________________
e)

pw:_______________________________
f)



: pw

A ,
.
n 1 n.
1 12. A[i,j]
i j.
: ,
, .
FF.
i A
.
: FS.IN n(1<n<50)
. n 12
A. j- i+1 A[i,j].
: FS.OUT

. ,
.
:
FS.IN
FS.OUT
3
2
1: 86.
0 0 6 6 7 6 18 8 6 6 5 18
2: 42.
2 2 2 2 2 2 10 3 3 2 2 10
3: 85.
8 9 7 7 8 9 37 0 0 0 0 0
: 42. 2.

:

;

; ;

L
0
1
2
3
4
5
6
7
8
9
10

L
0
1
2
3
4
5
6
7
8
9
10

f ( x) sin( x) 1 1 .
2
a) chords, , ,
f ( x) 0
[-4,-2] , n=10 .
:
{6}
1
f ( x) sin( x) 1 ,
2
{11}
e x,
f (a) f (c) ,
{12} e
x,
{14} ,
Ox ( x, f ( x)) ) (e, f (e))
{1}
{2}
{3}

program chords;
var a,b,e,c,x: real;
n,i: integer;

{4}
{5}

function f(x:real):real;
begin

{6}
{7}

f:=_____________________________________________;
end;

{8} begin
{9}
a:=-4; b:=-2; n:=10;
{10}
c:=a-(f(a))/(f(b)-f(a))*(b-a);
{11}

if _________________ then begin e:=b; x:=a; end

{12}
{13}

for i:=1 to n do

else begin e:=__; x:=__; end;

{14}
____________________________________________;
{15}
writeln(x:10:8,' ',f(x):12:8);
{16} end.

b)
[a,b].
e [a,b],
:
f (e) f (e) 0
f (e) f (e) 0
f (e) f (e) 0
c) :
.
.

L
0
1
2
3
4
5
6
7

L
0
1
2
3
4
5
6
7

MS Access Cursuri,
.
1.

a) ,
,
,
,
.


Number
Autonumber
Date/Time

b) 2 Cursuri
.

2
.
c) , Cursuri,
3.

, 4,
, .

L
0
1
2
3
4
5
6
7
8
9
10
11
12

L
0
1
2
3
4
5
6
7
8
9
10
11
12

HTML ,
HTML
,
.
:


.

.
:
o 1 ,
o 5 ,
o 10 .
.

<HTML> <BODY>
<table ________________________________________________________>
<tr>
<td _______________________> <__> Consuma zilnic! <___> </td>
</tr>
<tr>
<td> Fructe
<ol> <li> Mere
<li> Prune
</ol>
</td>
<td> Legume
<ol _______________> <li> Rosii
<li> Castraveti
</ol>
</td>
</tr>
</table>
</BODY> </HTML>

L
0
1
2
3
4
5
6
7

L
0
1
2
3
4
5
6
7