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
HTML Tags

Quiz
•
9th Grade
10 questions
JavaScript ievads

Quiz
•
7th - 8th Grade
10 questions
Reference and Pointers in C++

Quiz
•
6th - 8th Grade
7 questions
Avaliação Matemática II PROGRAMAÇÃO 2C

Quiz
•
2nd Grade
10 questions
HTML

Quiz
•
11th Grade
10 questions
ICT Grade 8

Quiz
•
8th Grade
10 questions
HTML-LINKS

Quiz
•
11th Grade
10 questions
แบบทดสอบก่อนเรียน ครั้งที่4 (การสร้างเว็บเพจ)

Quiz
•
10th - 12th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
8 questions
Time Management

Quiz
•
6th Grade
15 questions
Acceptable Use Policy (Quiz)

Quiz
•
6th - 8th Grade
25 questions
Career Vs. Job

Quiz
•
6th - 8th Grade
12 questions
3-5 Digital Citizenship: Appropriate Use

Quiz
•
3rd - 5th Grade
10 questions
Keyboard Typing

Quiz
•
4th Grade
10 questions
1.2 OSI & TCP IP Models Quiz

Quiz
•
10th Grade
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade