Care este declararea corectă pentru o variabilă x care reţine 15 valori reale?

Test vectori

Quiz
•
Computers
•
9th Grade
•
Hard
Ioana Gaita
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
int x;
float x;
float x[15];
char x[15];
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Vectorul A conţine, începând cu indicele 1 elementele (1,2,2,3,3,3,4,4,4,4,......). Care este valoarea elementului cu indicele 25?
25
7
6
12
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Fie vectorii a şi b în care a=(1,2,4,3,5) şi b=(4,2,1,3). Atunci a[b[0]] are valoarea:
5
3
2
1
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Se consideră un vector cu n elemente reale sortate. Dacă se doreşte aflarea valorii maxime din vector, numărul minim de comparaţii necesare este:
n
2n
1
n-1
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Care este tipul corect de date pentru a declara un vector de 10 caractere?
double x[10];
char x[10];
int x[10];
float x[10];
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Dacă a=(2,3,5,7) şi b=(1,0,3), ce valoare are a[b[1]]?
7
5
2
3
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Un vector B conţine elementele (1,1,2,2,3,3,3,4,4,4,4). Care este valoarea elementului cu indicele 20?
4
5
3
6
Create a free account and access millions of resources
Similar Resources on Quizizz
15 questions
Tablouri C++

Quiz
•
9th - 12th Grade
15 questions
Raster Vs Vector images

Quiz
•
8th - 12th Grade
10 questions
Bitmap v Vector Images

Quiz
•
KG - University
12 questions
Resolution and File Type

Quiz
•
9th - 10th Grade
7 questions
Digital Images

Quiz
•
9th - 12th Grade
12 questions
Higher CS - Representing TEXT/GRAPHICS

Quiz
•
9th - 12th Grade
15 questions
Representing Images

Quiz
•
8th - 10th Grade
10 questions
Routing Statis

Quiz
•
9th Grade
Popular Resources on Quizizz
20 questions
math review

Quiz
•
4th Grade
20 questions
Math Review - Grade 6

Quiz
•
6th Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
10 questions
Human Body Systems and Functions

Interactive video
•
6th - 8th Grade
19 questions
Math Review

Quiz
•
3rd Grade
45 questions
7th Grade Math EOG Review

Quiz
•
7th Grade
Discover more resources for Computers
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
20 questions
Investing

Quiz
•
9th - 12th Grade
20 questions
EOC Math 1 Review

Quiz
•
9th Grade
20 questions
Insurance

Quiz
•
9th - 12th Grade
20 questions
MCAS Biology Review

Quiz
•
9th - 10th Grade
20 questions
Paying for College

Quiz
•
9th - 12th Grade
20 questions
Math 1 EOC Review

Quiz
•
9th Grade