Sunteți pe pagina 1din 15

Liceul Teoretic Constantin Stere, s.

Abaclia, Basarabeasca, sesiunea de iarn 2013

Tez semestrial la informatica


clasa a XI-a profil real
Varianta I
Numele ________________________________ Clasa _____ Data ________________
1. Indicai prin sgei corespondena dintre definiiile din coloana A i noiunile din
coloana B:
A. Definiii
1. Variabilele definite n
programul principal

B. Noiuni
1. Variabile globale
2. Parametri actuali

2. Parametri care servesc


pentru a transmite valori
din subprogram n blocul
apelant
3.Procedurile care se
autoapeleaz

3. Parametri formali valoare


4. Proceduri
5. Funcii
6. Parametri formali variabila

4. Subprogramele care
returneaz o singur
valoare

7.Variabile locale
8. Recursive
( 4 puncte)

2. Scriei A (adevrat ) sau F (fals) n dependen de faptul dac este sau nu


adevrat afirmaia:
Afirmaia
Nr.
A sau F
1
2
3
4

Apelul unei funcii reprezint o instruciune.


O variabil global poate fi utilizat ntr-un subprogram,
chiar dac subprogramul conine un parametru formal cu
acelai nume.
Parametri actuali ce corespund parametrilor formali valoare
pot fi expresii.
Tipul rezultatului unei funcii poate fi tablou.
( 2 puncte)

Pagina 1

Profesor: Ceban Ecaterina

Liceul Teoretic Constantin Stere, s.Abaclia, Basarabeasca, sesiunea de iarn 2013

3. Urmtoarele antete de subprogram contin erori sintactice, scrieti o variant


corect.
Antetul
a)Function F1(x:integer) : char;
b) Function F( n: Natural ) :
integer;
c) Procedure P(x, y; integer: var
z ; real );

Varianta corect

(3 puncte)
4. Precizai structura de bloc a programului ce urmeaz. Indicai domeniul de
vizibilitate al fiecrei declaraii i determinai obiectele desemnate de fiecare
apariie a identificatorilor c i x:
( 5 puncte)
Program redefinire;
Const c=2;
Function F1(x : integer): integer;
Begin
F1:= x+c;
End;
Function F2(c : real): real;
Const x=3.0;
Begin
F2:= x+c;
End;
Begin
Writeln( F1= , F1(1));
Writeln ( F2=, F2(1));
Readln;
End.
Ce va afia pe ecran programul n studiu?
__________________________________________________________________
__________________________________________________________________
__________________________________________________________________
__________________________________________________________________
__________________________________________________________________
__________________________________________________________________
__________________________________________________________________
__________________________________________________________________
__________________________________________________________________
__________________________________________________________________
Pagina 2

Profesor: Ceban Ecaterina

Liceul Teoretic Constantin Stere, s.Abaclia, Basarabeasca, sesiunea de iarn 2013

__________________________________________________________________
__________________________________________________________________
__________________________________________________________________
__________________________________________________________________
______
5. Indicai rspunsul corect din partea stng.
Corpul unui subprogram se numete

( 5 puncte)
Domeniul de vizibilitate
Structur de bloc

Imbricarea sau includerea unul n altul


a blocurilor este denumit

Textul de program, n care numele


introdus desemneaz obiectul
specificat de declaraia n studiu se
numete

Recursie

O situaie n care un subprogram se


autoapeleaz fie direct ,fie prin
intermediul altei funcii sau proceduri se
numete

Iteraie

Pentru evitarea riscului de depire a


capacitii de memorare a calculatorului
recursia se nlocuiete prin

Bloc

6. Scriei un algoritm care va realiza copierea coninutului unui fiier ntr-un alt
fiier.
( 4 puncte)
__________________________________________________________________
__________________________________________________________________
__________________________________________________________________
__________________________________________________________________
Pagina 3

Profesor: Ceban Ecaterina

Liceul Teoretic Constantin Stere, s.Abaclia, Basarabeasca, sesiunea de iarn 2013

__________________________________________________________________
__________________________________________________________________
__________________________________________________________________
__________________________________________________________________
__________________________________________________________________
__________________________________________________________________
__________________________________________________________________
__________________________________________________________________
__________________________________________________________________
__________________________________________________________________
__________________________________________________________________
__________________________________________________________________
__________________________________________________________________
__________________________________________________________________
__________________________________________________________________
__________________________________________________________________
__________________________________________________________________
__________________________________________________________________
__________________________________________________________________
__________________________________________________________________
__________________________________________________________________
__________________________________________________________________
__________________________________________________________________
__________________________________________________________________
__________________________________________________________________
__________________________________________________________________
__________________________________________________________________
__________________________________________________________________
__________________________________________________________________
__________________________________________________________________
__________________________________________________________________
__________________________________________________________________
__________________________________________

7. Scriei ce va afia la ecran urmtorul program n urma executrii : ( 2 puncte)


Program p1;
var x: integer;
----------------------------------------y : boolean;
function test1 ( a : integer ) : boolean;
----------------------------------------begin
y:=not y;
----------------------------------------Pagina 4

Profesor: Ceban Ecaterina

Liceul Teoretic Constantin Stere, s.Abaclia, Basarabeasca, sesiunea de iarn 2013

if a mod 2 =0 then test1 :=true


else test1:=false;

-----------------------------------------

end;
begin
x:=20; y:=false;
writeln( test1(x), , y);
x:=25; y:=false;
writeln(y , , test1(x) );
end.

8.

Scriei o funcie recursiv care s calculeze valoarea celui mai mare divizor
comun a dou numere naturale a i b, conform algoritmului: ( 3 puncte)

Cmmdc=

a
, dac a=b
Cmmdc (a - b , b ) , dac a > b
Cmmdc (a , b - a ) , dac a < b

-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------Pagina 5

Profesor: Ceban Ecaterina

Liceul Teoretic Constantin Stere, s.Abaclia, Basarabeasca, sesiunea de iarn 2013

9.

Fie declaraia :

Var p, q : ^integer ;

I) Indicai instruciunile corecte sintactic:


a) p:=q;
b) q^:=nil;
c) readln( p^ );
10 ;

d) q := p^ ;

e) q :=

( 1 puncte)
II) Scriei ce se va afia n rezultatul executrii urmtoarei secvene de
instruniuni?
New(p); p^ :=10; q := p; q^ :=20; writeln (p^, , q^);
New(q); q^ := pred(p^); p^ :=30; writeln (p^, , q^);
( 2 puncte)

10
32-30

Pagina 6

9
29-27

8
26-24

7
23-19

6
18-15

5
14-10

4
9-7

3
6-4

Profesor: Ceban Ecaterina

2
3-2

1
1

Liceul Teoretic Constantin Stere, s.Abaclia, Basarabeasca, sesiunea de iarn 2013

Tez semestrial la informatic


clasa a XI-a profil real
Varianta II
Numele _______________________________ Clasa ____ Data _________________
1. Indicai prin sgei corespondena dintre definiiile din coloana A i noiunile
din coloana B:
A. Definiii
1. Subprogramele care nu
returneaz nici o valoare

B. Noiuni
1. Recursive
2.Variabile globale

2. Variabilele definite
ntr-un subprogram

3. Parametri actuali

3. Parametri care servesc


pentru a transmite valori
din blocul apelant n
subprogram

4. Parametri formali
valoare

4. Funciile care se
autoapeleaz

6. Funcii

5. Proceduri

7. Parametri formali
variabila
8.Variabile locale
( 4 puncte)
2. Scriei A (adevrat ) sau F (fals) n dependen de faptul daca este sau nu
adevrat afirmaia:
Nr
Afirmaia
.
1 Apelul unei proceduri reprezint o instruciune.
2 O variabil local poate fi utilizat n programul principal.
Numrul parametrilor actuali si a parametrilor formali pot fi
3
diferii
4 Tipul rezultatului unei proceduri poate fi integer.

A sau F

( 2 puncte)
Pagina 7

Profesor: Ceban Ecaterina

Liceul Teoretic Constantin Stere, s.Abaclia, Basarabeasca, sesiunea de iarn 2013

3. Urmtoarele antete de subprogram contin erori de sintax, scrieti o variant


corect.
Antetul
Varianta corect
a) Procedure Case (a: integer; b:
char);
b) Function (a: integer) : array[1..5]
of integer;
c) Procedure First (a, b: real): string;
( 3 puncte)
4. Precizai structura de bloc a programului ce urmeaz. Indicai domeniul de
vizibilitate al fiecrei declaraii i determinai obiectele desemnate de fiecare
apariie a identificatorilor c i x:
( 5 puncte)
Program redefinire;
Const c=2;
Function F1(x : integer): integer;
Begin
F1:= x+c;
End;
Function F2(c : real): real;
Const x=3.0;
Begin
F2:= x+c;
End;
Begin
Writeln( F1= , F1(1));
Writeln ( F2=, F2(1));
Readln;
End.
Ce va afia pe ecran programul n studiu?
__________________________________________________________________
__________________________________________________________________
__________________________________________________________________
__________________________________________________________________
__________________________________________________________________
__________________________________________________________________
__________________________________________________________________
__________________________________________________________________
__________________________________________________________________
__________________________________________________________________
Pagina 8

Profesor: Ceban Ecaterina

Liceul Teoretic Constantin Stere, s.Abaclia, Basarabeasca, sesiunea de iarn 2013

__________________________________________________________________
__________________________________________________________________
__________________________________________________________________
__________________________________________________________________
______
5. Indicai rspunsul corect din partea stng.
Corpul unui subprogram se numete

Imbricarea sau includerea unul n


altul a blocurilor este denumit

(5 puncte)
Domeniul de vizibilitate
Structur de bloc

Textul de program, n care numele


introdus desemneaz obiectul
specificat de declaraia n studiu se
numete

Recursie

O situaie n care un subprogram se


autoapeleaz fie direct ,fie prin
intermediul altei funcii sau proceduri
se numete

Iteraie

Pentru evitarea riscului de depire a


capacitii de memorare a
calculatorului recursia se nlocuiete
prin

Bloc

6. Scriei un algoritm care citete de la tastatur n rnduri de caractere i le scrie


ntr-un fiier text. Numrul natural n este dat.
( 4 puncte)
__________________________________________________________________
__________________________________________________________________
__________________________________________________________________
__________________________________________________________________
__________________________________________________________________
__________________________________________________________________
__________________________________________________________________
Pagina 9

Profesor: Ceban Ecaterina

Liceul Teoretic Constantin Stere, s.Abaclia, Basarabeasca, sesiunea de iarn 2013

__________________________________________________________________
__________________________________________________________________
__________________________________________________________________
__________________________________________________________________
__________________________________________________________________
__________________________________________________________________
__________________________________________________________________
__________________________________________________________________
__________________________________________________________________
__________________________________________________________________
__________________________________________________________________
__________________________________________________________________
__________________________________________________________________
__________________________________________________________________
__________________________________________________________________
__________________________________________________________________
__________________________________________________________________
__________________________________________________________________
__________________________________________________________________
__________________________________________________________________
__________________________________________________________________
__________________________________________________________________
__________________________________________________________________
__________________________________________________________________
__________________________________________________________________
__________________________________________________________________
______________________________________________________

7. Scriei ce va afia la ecran urmtorul program n urma executrii : ( 2 puncte)


Program p1;
var x: integer;
y : boolean;
function test2 ( a : integer ) : boolean;
---------------------------------begin
if a > 0 then test2 :=true
---------------------------------else test2 :=false;
y:=not y;
----------------------------------end;
begin
----------------------------------x:= - 20; y:=true;
writeln( y , , test2 (x) );
Pagina 10

Profesor: Ceban Ecaterina

Liceul Teoretic Constantin Stere, s.Abaclia, Basarabeasca, sesiunea de iarn 2013

x:= 25; y:=true;


writeln( test2 (x) , , y);
end.

Scriei o funcie recursiv care s calculeze valoarea celui mai mare divizor
comun a dou numere naturale
a i b, conform algoritmului:
( 3 puncte)
a
, dac b=0
Cmmdc=
Cmmdc ( b, a mod b) , dac b > 0

8.

--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

9.

Fie declaraia :
Pagina 11

Var p, q : ^integer ;
Profesor: Ceban Ecaterina

Liceul Teoretic Constantin Stere, s.Abaclia, Basarabeasca, sesiunea de iarn 2013

I) Indicai instruciunile corecte sintactic:


a) p^:=q^;
b) p^:=nil;
c) readln( q );
e) q^ := 10 ;

d) q^ := p ;
( 1 puncte)

II) Scriei ce se va afia n rezultatul executrii urmtoarei secvene de


instruniuni?
New(p); New(q); p^ :=30; q^ :=succ(p^); writeln (p^, , q^);
New(q); q^ := p^; p^ :=10; writeln (p^, , q^);
( 2 puncte)

10
32-30

Pagina 12

9
29-27

8
26-24

7
23-19

6
18-15

5
14-10

4
9-7

3
6-4

Profesor: Ceban Ecaterina

2
3-2

1
1

Liceul Teoretic Constantin Stere, s.Abaclia, Basarabeasca, sesiunea de iarn 2013

Tez semestrial la informatic


clasa a XI-a, profil real
Obiective de referin
1. Cunoaterea i utilizarea funciilor i procedurilor
2. Cunoaterea i utilizarea structurilor dinamice de date

punctaj

Integrare

punctaj

Aplicare

total
punctaj

Antete de
funcii i
proceduri
Domeniul de
vizibilitate
Mecanismul
transmiterii
datelor ntre
blocurile unui
program
Recursivitate
Variabile de
referin i
variabile
dinamice
Total

1, 2

total itemi

Noiuni de
baz,
Proceduri,
Funcii

punctaj

Coninutul

Cunoatere
i
nelegere

Matricea de specificaii

11

34,375

25,00

15,625

6,25

9,375

9,375
100

9,I

9,II

12
37,
5

12

10

32

40

37,5

20

25

100

100

40

Not: Obiectivele evaluate sunt specificate conform taxonomiei Bloom, fiind


grupate n trei categorii: 1.cunoatere i nelegere, 2. aplicare, 3.integrare (analiz,
sintez, evaluare).
Pagina 13

Profesor: Ceban Ecaterina

Liceul Teoretic Constantin Stere, s.Abaclia, Basarabeasca, sesiunea de iarn 2013

BAREM DE EVALUARE
Informatica profil real, sesiunea de iarn 2013
Numrul
Punct Total
Motivarea punctelor
itemului
e
puncte
Indicarea perechilor stabilite corect,
4
4
1
pentru fiecare pereche cte un punct
2
Determinarea corect a valorii de
2
2
adevr n fiecare caz
Pentru completarea corect a fiecrii
3
3
3
linii din tabel cte 1 punct
Pentru precizarea structurii de bloc
1
5
Pentru indicarea fiecrui domeniu de 2
4
vizibilitate
Pentru determinarea obiectelor
2
desemnate de identificatori
Cte un punct pentru fiecare rspuns
5
5
5
corect
Definirea i declararea corect a
2
datelor
Algoritmul corect.
1
6
5
Structura corect a subprogramului
1
Apelul de subprogram realizat corect
1
7
Cte un punct pentru indicarea
2
2
corect a fiecrui rnd afiat pe ecran
Scierea corect a antetului funciei
1
8
Caz elementar corect
1
3
Caz netrivial corect
1
9,I
Determinarea instruciunilor corecte
1
3
9,II
Pentru fiecare afiare scris corect
2
cte un punct
Total
32
32

Pagina 14

Profesor: Ceban Ecaterina

Liceul Teoretic Constantin Stere, s.Abaclia, Basarabeasca, sesiunea de iarn 2013

Barem de notare
10
32-30

9
29-27

8
26-24

7
23-19

6
18-15
Numrul
itemului
1
2
3
4
5
6
7
8
9,I
9,II
Total

Pagina 15

5
14-10

4
9-7

3
6-4

Puncte
4
2
3
5
5
5
2
3
1
2
32

Profesor: Ceban Ecaterina

2
3-2

1
1