
C Arrays Quiz

Quiz
•
Computers
•
11th Grade
•
Hard
Hadziq Agasta
Used 10+ times
FREE Resource
14 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Apa tujuan dari array di C?
Untuk menyimpan beberapa nilai dalam satu variabel
Untuk menyimpan satu nilai dalam beberapa variabel
Untuk membuat tipe data baru
Untuk melakukan operasi matematika
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Bagaimana cara mendeklarasikan array bilangan bulat di C?
int myNumbers[];
int myNumbers[4];
int myNumbers(4);
int[] myNumbers;
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Apakah indeks dari elemen pertama dalam sebuah array?
-1
0
2
1
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Bagaimana cara mengakses elemen pertama dari array yang bernama myNumbers?
myNumbers[0]
myNumbers[1]
myNumbers[2]
myNumbers.first()
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Apa yang akan menjadi output dari printf("%d", myNumbers[0]); jika myNumbers diinisialisasi sebagai int myNumbers[] = {25, 50, 75, 100};?
50
25
75
100
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Bagaimana cara mengubah nilai elemen pertama dalam sebuah array?
myNumbers[0] = 33;
myNumbers[1] = 33;
myNumbers[1] = myNumbers[0];
myNumbers[0] = myNumbers[1];
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Apa cara yang benar untuk melakukan loop melalui array dengan ukuran 4?
for (i = 1; i <= 4; i++)
for (i = 1; i < 4; i++)
for (i = 0; i < 4; i++)
for (i = 0; i <= 4; i++)
Create a free account and access millions of resources
Similar Resources on Wayground
16 questions
SLR4 | Data Structures with C# Examples

Quiz
•
11th Grade
18 questions
ICT01: Introduction to MATLAB basics

Quiz
•
11th - 12th Grade
12 questions
Arrays Intro

Quiz
•
9th - 12th Grade
10 questions
Advanced Java Study Guide

Quiz
•
11th - 12th Grade
15 questions
Array

Quiz
•
10th - 12th Grade
15 questions
Area With Arrays

Quiz
•
10th - 12th Grade
15 questions
AP Computer Science A Review 1

Quiz
•
10th - 12th Grade
15 questions
Unit 8 - Searching and Sorting

Quiz
•
9th - 12th Grade
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade