1 / 5

Identificarea nevoilor elevilor

Identificarea nevoilor elevilor. Prof. Bolosin Maria Daniela. Despre tablouri. Test iniţial. Identificaţi care din declaraţiile următoare sunt corecte:. a) a: array [1..100] of integer; b) a: array 1..100 of byte; c) a: array [1.00..10.00] of real; d) a: array [1..100] of char;.

kadeem-cook
Télécharger la présentation

Identificarea nevoilor elevilor

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Identificarea nevoilor elevilor Prof. Bolosin Maria Daniela

  2. Despre tablouri

  3. Test iniţial • Identificaţi care din declaraţiile următoare sunt corecte: a) a:array[1..100]of integer; b) a:array 1..100 of byte; c) a:array[1.00..10.00]of real; d) a:array[1..100] of char; 2. Se considerăm următoarele declaraţii: var a : array[1..5]of byte Specificaţi valoareaelementelor tabloului după execuţia instrucţiunii: for i:=1 to 5 do a[i]:=i-1;

  4. 3. Pentru a defini un tablou T cu 35 de elemente de tip intreg distribuite pe 7 linii si 5 coloane folosim declaratia: a) var T : array[1..35] of integer; b) var T : array[1..7,1..5] of integer; c) var T : array[1..5,1..7] of integer; 4. Stabiliti care dintre elementele de mai jos se afla pe diagonala principala a unui tablou bidimensional A cu 4 linii si 4 coloane: a) A[1,1] b) A[2,4] c) A[3,2]

  5. 5. Prin ce se caracterizează o matrice nesimetrică faţă de diagonala principală? a) a[i,j]=a[j,i] b) a[i,j]<>a[j,i] c) a[i,j]=a[n-j+1,n-i+1] unde a matrice pătratică cu n linii si coloane iar i,j=0..n-1 6. Se consideră un tablou unidimensional cu n elemente numere întregi. Scrieţi un program care şterge toate apariţiile primului element şi afişează elementele rămase. Exemplu : n=5 şi vectorul (3, 4, 3, 3, 8) se va afişa 4 8

More Related