

Tablouri
Presentation
•
Computers
•
10th Grade
•
Medium
Marilena Vilciu
Used 11+ times
FREE Resource
4 Slides • 15 Questions
1
Vectori

2
Vectorii - tablouri unidimensionale
Sunt date structurate, omogene, indexate
Structurate - conțin mai multe valori
omogene - toate elementele au același tip
indexate - toate elementele sunt numerotate
3
Declarare
tip_bază nume_vector[dim_maxima];
Ex: float a[30]; //declar vect a cu maxim 30 numere reale
4
Inițializare
Ex: int c[4]={2,3,1,5};
s-a declarat un vector cu 4 elemente:
Ex: int c[]={2,3,1,5};
Dacă este inițializat, vectorul primește automat dimensiunea maximă ce rezultă din nr de elemente.
5
Multiple Choice
int v[5]={1,2,3,4,5};
v[0]=?
1
nu există
6
Multiple Choice
int v[5]={1,2,3,4,5};
v[4]=?
4
5
7
Multiple Select
int v[5]={1,2,3,4,5};
Al treilea element este:
Alegeți toate variantele
v[2]
3
v[3]
4
8
Multiple Select
int v[5]={1,2,3,4,5};
Ultimul element este:
Alegeți toate variantele
v[5]
5
v[4]
9
Multiple Select
int v[?]={1,2,3,4,5};
Alegeți toate variantele
5
poate lipsi
4
10
Multiple Choice
Cum declar un șir v de 10 numere întregi?
int a[10];
int v[];
int v[10];
float v[10];
char v[10];
11
Fill in the Blanks
Type answer...
12
Fill in the Blanks
Type answer...
13
Multiple Choice
int v[]={1,2,3,4,5};
cout<<v[0]<<v[1]<<v[2]<<v[3]<<v[4]<<v[5];
Ce se afișeaza?
01234
12345
v[0]v[1]v[2]v[3]v[4]
14
Multiple Choice
int v[]={1,2,3,4,5};
for(int i=0;i<5;i++)
cout<<v[i];
Ce se afișeaza?
12345
01234
v[0]v[1]v[2]v[3]v[4]
15
Multiple Choice
int v[]={1,2,3,4,5};
for(int i=4;i>=0;i--)
cout<<v[i];
Ce se afișeaza?
4321
43210
54321
16
Multiple Choice
int v[3];
cin>>v[0]>>v[1]>>v[2];
Ce face secvența?
Citește 3 vectori
Citește un vector cu 3 elemente
17
Multiple Choice
int v[3];
cin>>v[3];
citește ultimul element
citește vectorul
nu are sens
18
Multiple Choice
int v[3];
cin>>v[0]>>v[1]>>v[2];
Care variantă corespunde citirii?
for(int i=0; i<3, i++)
cin>>v[i];
for(int i=0; i<3, i++)
cin>>i;
cin>>v[3];
cin>>v;
19
Multiple Choice
int pare[5]; //0 2 4 6 8
for(int i=0;i<5;i++)
v[i]= ?
i / 2
2 * i
i % 2
Vectori

Show answer
Auto Play
Slide 1 / 19
SLIDE
Similar Resources on Wayground
15 questions
Third Conditional
Presentation
•
10th Grade
12 questions
Way Maker
Presentation
•
KG
13 questions
MÓDULO I SUBMÓDULO I CONCEPTOS BÁSICOS Y METODOLOGÍAS
Presentation
•
10th - 11th Grade
14 questions
3.1 Reka Bentuk Interaksi - SK
Presentation
•
10th Grade
14 questions
Games Design Starter
Presentation
•
10th Grade
11 questions
PSAT Orientation
Presentation
•
10th Grade
14 questions
Solving Exponentials using Logarithms!
Presentation
•
10th - 11th Grade
15 questions
Y1 ICT Topic: Inserting Online Pictures in the Spreadsheet
Presentation
•
KG
Popular Resources on Wayground
20 questions
Math Review
Quiz
•
3rd Grade
15 questions
Fast food
Quiz
•
7th Grade
20 questions
Context Clues
Quiz
•
6th Grade
20 questions
Inferences
Quiz
•
4th Grade
19 questions
Classifying Quadrilaterals
Quiz
•
3rd Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
10 questions
Identify Fractions, Mixed Numbers & Improper Fractions
Quiz
•
3rd - 4th Grade
Discover more resources for Computers
10 questions
Fact Check Ice Breaker: Two truths and a lie
Quiz
•
5th - 12th Grade
10 questions
Video Games
Quiz
•
6th - 12th Grade
10 questions
Test Your Knowledge with 15 Fun Trivia Questions
Interactive video
•
6th - 10th Grade
15 questions
Memorial Day Trivia
Quiz
•
KG - 12th Grade
12 questions
Name that Candy
Quiz
•
KG - 12th Grade
20 questions
Guess The App
Quiz
•
KG - Professional Dev...
30 questions
K/H Final Review Part 1
Quiz
•
9th - 12th Grade
40 questions
NCFE Earth and Environmental Science Released Test
Quiz
•
9th - 12th Grade