wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Quiz05

Total questions: 10

Worksheet time: 7mins

Name
Class
Date
1.

Which one correct "For Loop" syntax in blockcode?

a)

There are 4 parts :: Variable ,starting , Ending

b)

There are 4 parts :: Variable, starting, Ending, Increment

c)

There are 3 part :: starting , Ending, Increment

d)

There are 3 part :: variable, starting, Increment

2.

For (var i=3 ;i<10;i+1){

a)

5

b)

6

c)

7

d)

another

3.

for(var j=0;i<=12;i+1){

}

How many times loop run?

a)

11

b)

12

c)

13

d)

Another

4.

For (var k=0;k<12;K+1){


}

How many times loop run?

a)

10

b)

11

c)

12

d)

Another

5.

For ( var i=0;i<5;i+1){


}

How may times loop run?

a)

2

b)

3

c)

4

d)

Another

6.

For (var j=0 ;j<9;i+2){


}

How many times loop run?

a)

3

b)

4

c)

5

d)

Another

7.

For (var j=0 ;j<=15;i+3){


}

How many times loop run?

a)

5

b)

6

c)

7

d)

Another

8.

var counter=0;

For (var j=0 ;j<=15;i+3){

counter=counter+2;

}

What is value of counter variable?

a)

10

b)

11

c)

12

d)

14

9.

What is value of "status variable?

var status=0;

if(status==0){

status=1;

}

else {

status=0;

}

a)

status=0

b)

status=1

10.

Basic protective measures against the new coronavirus.

a)

Join the physical meeting

b)

Wash your hands frequently

c)

Maintain social distancing (1 metre)

d)

Avoid touching eyes, nose and mouth

e)

Use masks