
3. Mengakses Nilai-Nilai Sebuah Array
Quiz
•
Computers
•
11th Grade
•
Practice Problem
•
Medium
Wawan Wawan
Used 6+ times
FREE Resource
Enhance your content in a minute
14 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Untuk mengakses nilai pada array, kita menggunakan …
Tanda kurung biasa ( )
Tanda kurung kurawal { }
Tanda petik " "
Tanda kurung siku [ ]
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Indeks array dalam C++ dimulai dari angka …
1
0
2
Bebas
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Jika int nilai[5] = {10, 20, 30, 40, 50};, maka nilai dari nilai[2] adalah …
10
20
30
50
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Perhatikan kode berikut: int angka[3] = {5, 10, 15}; angka[1] = 50; Setelah kode dijalankan, maka isi dari angka[1] adalah …
10
5
50
15
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Apa akibatnya jika kita mengakses nilai[5] pada array yang hanya memiliki 5 elemen (nilai[0] sampai nilai[4])?
Program akan tetap berjalan tanpa masalah
Program akan otomatis menambah elemen
Bisa terjadi error saat program dijalankan
Kompiler akan menghentikan penulisan
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Dalam pernyataan int a = nilai[3];, arti dari angka 3 adalah …
Jumlah elemen
Isi array
Indeks array ke-3
Tipe data
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Perhatikan kode berikut: int nilai[4] = {2, 4, 6, 8}; nilai[2] = 10; Setelah dijalankan, nilai dari nilai[2] adalah …
6
10
8
2
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
16 questions
Sains Komputer Tingkatan 4 - 1.3.1 Menjelaskan hubungan
Quiz
•
10th - 12th Grade
10 questions
Arrays
Quiz
•
10th - 12th Grade
15 questions
2D Arrays
Quiz
•
9th - 12th Grade
10 questions
Introduction to Arrays
Quiz
•
KG - University
10 questions
INFORMATIKA VIII
Quiz
•
9th - 12th Grade
10 questions
Kuis Array 1
Quiz
•
11th Grade
15 questions
PTS Algoritma dan Pemrograman
Quiz
•
9th - 12th Grade
16 questions
PTS PPL XI RPL (Maret2020)
Quiz
•
11th Grade
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th 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
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
Discover more resources for Computers
26 questions
Christmas Movie Trivia
Lesson
•
8th Grade - Professio...
15 questions
Christmas Song Emoji Pictionary
Quiz
•
7th - 12th Grade
20 questions
Christmas Movies
Quiz
•
1st - 12th Grade
20 questions
Christmas Movie Trivia
Quiz
•
9th - 12th Grade
29 questions
christmas facts
Lesson
•
5th - 12th Grade
20 questions
Christmas Trivia
Quiz
•
5th - 12th Grade
20 questions
Stages of Meiosis
Quiz
•
9th - 12th Grade
20 questions
christmas songs
Quiz
•
KG - University
