wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Variables-G6-W6 test

Total questions: 10

Worksheet time: 5mins

Name
Class
Date
1.

Which followed statement is correct.

a)

varCircle=10;

b)

Var Circle=10;

c)

var Circle of center=10;

d)

var CircleOfCenter=10;

2.

Which one is correct.

a)

var ColourOfShape="yellow";

fill(ColourOfShape);

var HeightOfShape=170;

rect(100,HeightOfShape);

b)

rect(100,HeightOfShape);

var HeightOfShape=170;

var ColourOfShape="yellow";

fill(ColourOfShape);

c)

fill(ColourOfShape);

rect(100,HeightOfShape);

var HeightOfShape=170;

var ColourOfShape="yellow";

d)

fill(ColourOfShape);

var HeightOfShape=170;

var ColourOfShape="yellow";

fill(ColourOfShape);

rect(100,HeightOfShape);

3.

Which one is correct.

a)

var BestColour="navy";

fill(BestColour);

b)

var BestColour=navy;

fill("BestColour");

c)

var BestColour="navy";

fill(bestcolour);

d)

var BestColour=navy;

fill(BestColour);

4.

Which group of codes has problem?

a)

var ColourOfShape="red";

var Shapee=300;

fill("ColourOfShape");

rect(Shapee,Shapee);

b)

var ColourOfShape="red";

var Shapee=300;

fill(ColourOfShape);

rect(Shapee,Shapee);

c)

var ColourOfShape="red";

fill(ColourOfShape);

var Shapee=300;

rect(Shapee,Shapee);

5.

Which code has the problem?

a)

a.

b)

b.

c)

c.

d)

d.

e)

e.

6.

How to correct these sentences?

var 12Clam="blue";

var Sss ad="grey";

a)

var Clam12="blue";

var Sssad="grey";

b)

var Clam="blue";

var Sssa d="grey";

c)

var 12Clam="blue";

var Sssad="grey";

d)

var 12Clam=blue;

var Sssad=grey;

7.

Which one is correct.

a)
b)
c)
d)
e)
8.

Which codes have problems?

a)

Line 1, 2, 10, 11

b)

Line 1,2,10,9,13

c)

Line 1,2,10,9,11

d)

Line 1,2,9,10

9.

Which one is correct.

a)

var Happy="gold";

var Num=10;

stroke("Happy");

rect(Num,Num);

b)

var Happy="gold";

var Num=10;

stroke(Happy);

rect(Num,Num);

c)

var Happy="gold";

var Num=10;

stroke(Num);

rect(Num,Num);

d)

var Happy="gold";

var Num=10;

stroke(Num);

rect(Num,Num,Happy);

10.

Which one is correct.

a)

HappyNum="red";

SadNum="grey";

HappyCo=111;

SadCo=112;

fill(HappyCo);

rect(HappyNum,HappyNum,SadNum,SadNum);

b)

HappyNum="red";

SadNum="grey";

HappyCo=111;

SadCo=112;

fill("HappyCo");

rect(HappyNum,HappyNum,SadCo,SadCo);

c)

HappyNum=red;

SadNum="grey";

HappyCo=111;

SadCo=112;

fill(HappyNum);

rect(HappyCo,HappyCo,SadCo,SadCo);

d)

None is correct