
Test wiedzy: Tablice jednowymiarowe w C++
Quiz
•
Information Technology (IT)
•
10th Grade
•
Medium
Iryna Aman
Used 14+ 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
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
15 questions
Quiz Array Kelas XI
Quiz
•
11th Grade
20 questions
Revissão - Linguagem C (str, fun, stru, vt+mt,)
Quiz
•
University
20 questions
Úvod do umělé inteligence v sociálních vědách
Quiz
•
University
17 questions
Arduino Quiz #10: Arrays and Loops
Quiz
•
11th Grade
10 questions
Kuis tentang Python
Quiz
•
11th Grade
10 questions
Quiz Meet 2 Mini SC Programing
Quiz
•
University
10 questions
Cyberbezpieczeństwo
Quiz
•
8th Grade - University
15 questions
Fundamentos de Bases de Datos
Quiz
•
10th Grade - University
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
6 questions
FOREST Self-Discipline
Lesson
•
1st - 5th Grade
7 questions
Veteran's Day
Interactive video
•
3rd Grade
20 questions
Weekly Prefix check #2
Quiz
•
4th - 7th Grade
Discover more resources for Information Technology (IT)
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
10 questions
Understanding Meiosis
Interactive video
•
6th - 10th Grade
10 questions
Exploring the Origins of Veterans Day
Interactive video
•
6th - 10th Grade
28 questions
Ser vs estar
Quiz
•
9th - 12th Grade
7 questions
Combining & Revising Sentences- EOC English I Crunchtime
Quiz
•
9th - 10th Grade
19 questions
Explore Triangle Congruence and Proofs
Quiz
•
9th - 12th Grade
10 questions
Exploring Newton's Laws of Motion
Interactive video
•
6th - 10th Grade
