Sains Komputer Tingkatan 5 - 3.1.8 Penggunaan Tatasusunan
Quiz
•
Computers
•
1st - 12th Grade
•
Medium
Mohd Nasaruddin
Used 47+ times
FREE Resource
5 questions
Show all answers
1.
FILL IN THE BLANK QUESTION
1 min • 1 pt
Penggunaan adalah untuk menyimpan satu senarai nilai dalam satu pemboleh ubah
2.
FILL IN THE BLANK QUESTION
1 min • 1 pt
Nilai awalan semasa pengisytiharan:
var no = [5,-1,4,12,8];
Berdasarkan sintaks di atas, apakah nilai bagi no[0]?
3.
FILL IN THE BLANK QUESTION
1 min • 1 pt
Berikut adalah sintaks untuk mendapatkan nombor dalam senarai satu per satu dan menjumlahkannya.
<html>
<body>
<script>
var no = [5, -1, 4, 12, 8];
var jumlah = 0;
jumlah = no[0] + no[1] + no[2] + no[3] + no[4];
document.write (jumlah);
</script>
</body>
</html>
Berdasarkan aturcara di atas, berapakah nilai output bagi jumlah?
4.
FILL IN THE BLANK QUESTION
1 min • 1 pt
Berikut adalah sintaks untuk menggunakan ulangan untuk mendapatkan nombor dalam senarai dan menjumlahkannya.
<html>
<body>
<script>
var no = [5, -1, 4, 12, 8];
var jumlah = 0;
var i;
for (i=0; i<5; i++)
{
jumlah = jumlah + no[i];
}
document.write (jumlah);
</script>
</body>
</html>
Berdasarkan aturcara di atas, berapakah nilai output bagi jumlah?
5.
FILL IN THE BLANK QUESTION
1 min • 1 pt
Berikut adalah atur cara untuk mencari nilai daripada suatu senarai nombor dalam tatasusunan..
<html>
<body>
<script>
var no = [5, -1, 4, 12, 8];
var i;
for(i=0; i<5; i++)
{
if (no[i] == 5)
document.write (no[i]);
}
</script>
</body>
</html>
Berdasarkan aturcara di atas, berapakah nilai outputnya?
Similar Resources on Wayground
10 questions
BT VÀ TH 2
Quiz
•
12th Grade
10 questions
แบบทดสอบบทที่ 6
Quiz
•
8th Grade
10 questions
logo lớp 5
Quiz
•
1st Grade
10 questions
8. Quiz Beripikir Komputasional dalam Bidang Seni dan MTK
Quiz
•
8th Grade
10 questions
Tin học 10 _ Bài 16 _Định dạng văn bản
Quiz
•
10th - 12th Grade
10 questions
แนวคิดเชิงคำนวณ Onet
Quiz
•
8th Grade
10 questions
TIN 11 - PYTHON - PHÉP TOÁN - BIỂU THỨC - CÂU LỆNH GÁN
Quiz
•
11th Grade
10 questions
Ulangan semster genap
Quiz
•
10th Grade
Popular Resources on Wayground
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
20 questions
Halloween Trivia
Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
4 questions
Activity set 10/24
Lesson
•
6th - 8th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
10 questions
How to Email your Teacher
Quiz
•
Professional Development
15 questions
Order of Operations
Quiz
•
5th Grade
30 questions
October: Math Fluency: Multiply and Divide
Quiz
•
7th Grade
Discover more resources for Computers
19 questions
Halloween Trivia
Lesson
•
3rd - 5th Grade
10 questions
Exploring Digital Citizenship Essentials
Interactive video
•
6th - 10th Grade
14 questions
Email your Teacher
Quiz
•
6th - 8th Grade
10 questions
Halloween 2nd Grade
Quiz
•
2nd - 3rd Grade
20 questions
Six Weeks Test 2 Review
Lesson
•
9th - 12th Grade
20 questions
logo quiz
Quiz
•
3rd Grade
12 questions
Overview of Mexico Part 1
Lesson
•
9th - 12th Grade
40 questions
Programming with Karel
Quiz
•
6th - 8th Grade
