
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
10 questions
Quiz on Basics of C
Quiz
•
University
20 questions
Bezpieczeństwo w sieci
Quiz
•
10th Grade
20 questions
DATA STRUCTUIR Quiz1 (AIML)
Quiz
•
University
17 questions
Quiz de Programação em C
Quiz
•
University
16 questions
Kuis Uji Pemahaman Python Variabel, Sintaks Dasar, Type Data
Quiz
•
11th Grade - University
20 questions
Algorytmy
Quiz
•
10th Grade
10 questions
Quizzi bài 29 Tin học 10
Quiz
•
10th Grade - University
10 questions
TAU X EVIDEN
Quiz
•
9th - 12th Grade
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
15 questions
4:3 Model Multiplication of Decimals by Whole Numbers
Quiz
•
5th Grade
25 questions
Multiplication Facts
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
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
Discover more resources for Information Technology (IT)
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
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
20 questions
Cell organelles and functions
Quiz
•
10th Grade
20 questions
Christmas Movie Trivia
Quiz
•
9th - 12th Grade
10 questions
Exploring the Energy Cycle: Photosynthesis and Cellular Respiration
Interactive video
•
6th - 10th Grade
10 questions
Guess the Christmas Movie by the Scene Challenge
Interactive video
•
6th - 10th Grade
