wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

C3 quiz2

Total questions: 10

Worksheet time: 10mins

Name
Class
Date
1.

Ce variantă este corectă dacă dorim să afișăm variabila food?

a)

ShowVariable(food)

b)

showVariable(food)

c)

showVariable(ref food)

d)

ShowVariable(ref food)

2.

Ce semn folosim pentru a nega o condiție?

a)

%

b)

/

c)

!!

d)

!

3.

Ce NU va funcționa dacă vrem să creștem valoarea variabilei "var"?

a)

var++

b)

var += 1

c)

var =var +1

d)

var +1 = var

4.

Cum creăm o listă goală

a)

let list = 0

b)

let list = []

c)

let list []

d)

let list = ()

5.

Ce index va avea primul element al unei liste?

a)

0

b)

1

c)

2

d)

3

6.

Ce va spune personajul?

a)

0

b)

1

c)

2

d)

[1,2]

7.

Ce NU PUTEM stoca într-o listă?

a)

numere

b)

litere

c)

personaje

d)

comenzi

8.

Putem memora un element de mai multe ori într-o listă?

a)

DA

b)

NU

9.

Ce desenăm cu următorul program?

a)

2 hexagoane

b)

2 triunghiuri

c)

1 hexagon

d)

3 triunghiuri

10.

Vrem să facem personajul să apară pe ecran. Ce comandă folosim?

a)

show(this)

b)

this.show()

c)

this.show

d)

this.show(this)