
Tablicy dwuwymiarowe w C++
Quiz
•
Computers
•
10th Grade
•
Practice Problem
•
Easy
Iryna Aman
Used 8+ times
FREE Resource
Enhance your content in a minute
40 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Jak zadeklarować tablicę dwuwymiarową o wymiarach 3x4 w C++?
int tablica[3,4];
int tablica[4][3];
int tablica[3][4];
int[3][4] tablica;
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Jak uzyskać dostęp do elementu z trzeciego wiersza i drugiej kolumny tablicy tab[5][5]?
tab[2][1]
tab[3][2]
tab[2][2]
tab[1][2]
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Jakie wartości mają elementy tablicy int tab[2][2] = {{1, 2}, {3, 4}}; w tab[1][1]?
1
2
3
4
4.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
W jaki sposób zainicjalizować całą tablicę dwuwymiarową zerami?
int tab[3][3] = {0};
int tab[3][3] = {{0,0,0},{0,0,0},{0,0,0}};
int tab[3][3] = (0);
Nie można zainicjalizować tablicy zerami.
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Jaki błąd wystąpi w poniższym kodzie? int tab[2][3]; tab[3][2] = 10;
Brak błędów.
Przekroczenie granic tablicy.
Niezainicjalizowana tablica.
Błąd składniowy.
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Co oznacza tab[1][0] w tablicy int tab[3][3];?
Element w pierwszym wierszu i pierwszej kolumnie.
Element w drugim wierszu i pierwszej kolumnie.
Element w pierwszym wierszu i zerowej kolumnie.
Tablica nie obsługuje indeksów zerowych.
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Jakie wartości będą w tablicy po wykonaniu poniższego kodu? int tab[2][2] = {{1, 2}, {3, 4}};
Wszystkie elementy będą równe 0.
tab[1][1] będzie równe 2.
tab[0][1] będzie równe 2.
Kod zawiera błąd.
Create a free account and access millions of resources
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
40 questions
Atividades Pensamento Computacional
Quiz
•
10th Grade
35 questions
Ôn Tập Học Kì I Lớp 4
Quiz
•
4th Grade - University
41 questions
E. 13 Technik Informatyk
Quiz
•
7th Grade - University
35 questions
Database
Quiz
•
KG - University
40 questions
OCR GCSE CS MCQs 1.1 Systems Architecture (J276)
Quiz
•
9th - 10th Grade
45 questions
Computer Hardware and Software Review
Quiz
•
KG - University
40 questions
ÔN TẬP BÀI THÔNG TIN VÀ DỮ LIỆU
Quiz
•
10th Grade
37 questions
AP CSA Review Set #1
Quiz
•
9th - 12th Grade
Popular Resources on Wayground
10 questions
Forest Self-Management
Lesson
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
30 questions
Thanksgiving Trivia
Quiz
•
9th - 12th Grade
30 questions
Thanksgiving Trivia
Quiz
•
6th Grade
11 questions
Would You Rather - Thanksgiving
Lesson
•
KG - 12th Grade
48 questions
The Eagle Way
Quiz
•
6th Grade
10 questions
Identifying equations
Quiz
•
KG - University
10 questions
Thanksgiving
Lesson
•
5th - 7th Grade
Discover more resources for Computers
30 questions
Thanksgiving Trivia
Quiz
•
9th - 12th Grade
11 questions
Would You Rather - Thanksgiving
Lesson
•
KG - 12th Grade
10 questions
Identifying equations
Quiz
•
KG - University
18 questions
Thanksgiving Trivia
Quiz
•
4th - 12th Grade
20 questions
Thanksgiving
Quiz
•
KG - 12th Grade
10 questions
Understanding Meiosis
Interactive video
•
6th - 10th Grade
10 questions
Thanksgiving Trivia Challenge: Test Your Knowledge!
Interactive video
•
6th - 10th Grade
28 questions
Ser vs estar
Quiz
•
9th - 12th Grade
