
Test wiedzy: Tablice jednowymiarowe w C++

Quiz
•
Information Technology (IT)
•
10th Grade
•
Medium
Iryna Aman
Used 13+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Jak definiuje się tablicę jednowymiarową w języku C++?
int arr[10];
array
int[10] arr;
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Jak uzyskać dostęp do pierwszego elementu tablicy arr?
arr[0]
arr[1]
arr.first()
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Co oznacza rozmiar tablicy zdefiniowanej jako int arr[5];?
Tablica przechowuje 5 elementów.
Tablica przechowuje 10 elementów.
Tablica przechowuje 4 elementy.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Jak zadeklarować i jednocześnie zainicjalizować tablicę?
int arr[3] = {1, 2, 3};
int arr[] = [1, 2, 3];
int arr = {1, 2, 3};
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Co się stanie, jeśli przekroczymy rozmiar tablicy przy przypisaniu?
Kompilator wygeneruje błąd.
Kod może działać, ale prowadzi do nieprzewidywalnych zachowań (undefined behavior).
Nadmiarowe wartości zostaną zignorowane.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Czy można zmienić adres tablicy arr w C++?
Nie, ponieważ tablica jest stałym wskaźnikiem.
Tak, można zmienić adres tablicy.
To zależy od typu danych.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Co oznacza inicjalizacja int arr[5] = {0};?
Wszystkie elementy tablicy zostaną zainicjalizowane na 0.
Tylko pierwszy element tablicy będzie 0.
Pierwszy element to 0, pozostałe pozostaną niezdefiniowane.
Create a free account and access millions of resources
Similar Resources on Wayground
12 questions
Data Struct - S1_Array & Pointer

Quiz
•
University
15 questions
Quiz Array Kelas XI

Quiz
•
11th Grade
16 questions
Mảng 2 chiều trong C

Quiz
•
University
10 questions
Java Array

Quiz
•
University
16 questions
Session 08: Array

Quiz
•
University
13 questions
С++ тест срсп

Quiz
•
University
20 questions
Вопросы по многомерным массивам

Quiz
•
University
20 questions
Mastering C: Control Structures and More

Quiz
•
12th Grade
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
Discover more resources for Information Technology (IT)
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
10 questions
Characteristics of Life

Quiz
•
9th - 10th Grade
10 questions
Essential Lab Safety Practices

Interactive video
•
6th - 10th Grade
62 questions
Spanish Speaking Countries, Capitals, and Locations

Quiz
•
9th - 12th Grade
20 questions
First Day of School

Quiz
•
6th - 12th Grade
21 questions
Arithmetic Sequences

Quiz
•
9th - 12th Grade