wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

ICT Grade 10 Final Exam Practice Test

Total questions: 10

Worksheet time: 5mins

Name
Class
Date
1.

Seberapa jauh kapal akan bergerak menggunakan kode berikut?

다음 코드를 사용하면 배는 얼마나 멀리 이동할 수 있나요?

a)

3

b)

4

c)

5

d)

6

2.

Syntax yang benar untuk menjalankan perulangan "for" untuk semua angka dari 0 hingga 10 adalah ….

0부터 10까지의 모든 숫자에 대해 "for" 루프를 실행하는 올바른 구문은 다음과 같습니다 ....

a)

for (i = 10; i =0; i--)

b)

for (i = 0; i < 9; i++)

c)

for (i = 1; i < 10; i++)

d)

for (i = 0; i < 10; i++)

e)

for (i = 0; i < =10; i++)

3.

Berapa kali "function1" akan dipanggil?

"function1"은 몇 번이나 호출되나요?

a)

10

b)

20

c)

100

d)

200

4.

When might you use a "while" loop instead of a "for" loop?

언제 "for" 루프 대신 "while" 루프를 사용할 수 있습니까?

Kapan Anda bisa menggunakan perulangan "while" dan bukan perulangan "for"?

a)

if you know exactly how many iterations you want to perform

jika Anda tahu persis berapa banyak iterasi yang ingin Anda lakukan

수행하려는 반복 횟수를 정확히 알고 있는 경우

b)

if you don't know exactly how many iterations you want to perform

jika Anda tidak tahu persis berapa banyak iterasi yang ingin Anda lakukan

수행하려는 반복 횟수를 정확히 모르는 경우

c)

you should always use a "while" loop instead of a "for" loop

Anda harus selalu menggunakan perulangan "while" dan bukan perulangan "for".

"for" 루프 대신 "while" 루프를 항상 사용해야 합니다.

d)

you should never use a "while" loop instead of a "for" loop

Anda tidak boleh menggunakan perulangan "while" alih-alih perulangan "for".

"for" 루프 대신 "while" 루프를 사용하면 안 됩니다.

5.

When would you use a "do-while" loop?

Kapan Anda akan menggunakan perulangan "do-while"?

"do-while" 루프는 언제 사용합니까?

a)

when you want to run a loop at least once no matter what

ketika Anda ingin menjalankan loop setidaknya sekali apa pun yang terjadi

무슨 일이 있어도 적어도 한 번은 루프를 실행하고 싶을 때

b)

whenever you want to do the same thing as a "while" loop

kapan pun Anda ingin melakukan hal yang sama seperti perulangan "while".

"while" 루프와 동일한 작업을 수행하고 싶을 때마다

c)

When running a "while" loop takes too long

Saat menjalankan loop "while" membutuhkan waktu terlalu lama

"while" 루프를 실행하는 데 시간이 너무 오래 걸리는 경우

d)

none of the above

Bukan dari salah satu di atas

위에 해당사항 없음

6.

If the variable i is currently set to 0, what would this code do?

Jika variabel i saat ini diset sebagai 0, apa yang akan dilakukan kode ini?

변수 i가 현재 0으로 설정되어 있다면 이 코드는 무엇을 할까요?

a)

Print out the number 0–9

Menampilkan nilai 0 – 9

0~9까지의 숫자를 출력하세요

b)

Print out the number 1-10

Menampilkan nilai 1 – 10

1~10까지의 숫자를 출력하세요

c)

Print out the number 0 ten times

Menampilkan nilai 0 sepuluh kali

숫자 0을 10번 출력하세요

d)

Cannot put a conditional in a loop

Tidak dapat menggunakan Kondisional pada loop

루프에 조건문을 넣을 수 없습니다

7.

The creation process function before it is called is called ….

Proses pembuatan function sebelum dipanggil disebut ….

함수가 호출되기 전에 함수를 생성하는 과정을...

a)

Call Function

b)

Create Function

c)

Define Function

d)

Adding Function

8.

In order for the function to run, the function must be ….

Agar function dapat berjalan, maka function harus di ….

함수가 실행되려면 함수가 다음과 같아야 합니다.

a)

Call Function

b)

Create Function

c)

Define Function

d)

Adding Function

9.

A value or measure that is in a function to determine the result is called ….

Sebuah nilai atau ukuran yang ada dalam sebuah function untuk menentukan hasil disebut dengan ….

결과를 결정하는 함수에 있는 값이나 측정값을...이라고 합니다.

a)

Scope

b)

Boolean

c)

Properties

d)

Parameter

10.

The parameters included in the following function are: ….

Yang termasuk parameter pada fungsi berikut adalah ….

다음 함수에 포함된 매개변수는...

a)

NaN

b)

Result

c)

firstNumber, secondNumber

d)

result, firstNumber, secondNumber