
Test wiedzy: Tablice jednowymiarowe w C++
Quiz
•
Information Technology (IT)
•
10th Grade
•
Practice Problem
•
Medium
Iryna Aman
Used 15+ times
FREE Resource
Enhance your content in a minute
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
Already have an account?
Similar Resources on Wayground
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
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
Popular Resources on Wayground
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
4:3 Model Multiplication of Decimals by Whole Numbers
Quiz
•
5th Grade
10 questions
The Best Christmas Pageant Ever Chapters 1 & 2
Quiz
•
4th Grade
12 questions
Unit 4 Review Day
Quiz
•
3rd Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
15 questions
Solving Equations with Variables on Both Sides Review
Quiz
•
8th Grade
Discover more resources for Information Technology (IT)
10 questions
Understanding Meiosis
Interactive video
•
6th - 10th Grade
26 questions
Christmas Movie Trivia
Lesson
•
8th Grade - Professio...
28 questions
Ser vs estar
Quiz
•
9th - 12th Grade
25 questions
Preterito regular
Quiz
•
10th - 12th Grade
20 questions
Cell organelles and functions
Quiz
•
10th Grade
20 questions
Figurative Language Review
Quiz
•
10th Grade
10 questions
hands washing
Quiz
•
5th - 12th Grade
10 questions
Exploring the Energy Cycle: Photosynthesis and Cellular Respiration
Interactive video
•
6th - 10th Grade
