Search Header Logo

Blockly Logic and Math Quiz

Authored by HP FPT

Other

7th Grade

Used 2+ times

Blockly Logic and Math Quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

30 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

To check if a number is even in Blockly, which block would you use?

Logic 'AND' block with two conditions

Media Image
Media Image
Media Image

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

You need to check if a number is in the range from 50 to 100 (inclusive). Which configuration is correct in Blockly?

Media Image
Media Image
Media Image
Media Image

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In Blockly, to calculate the factorial of a number n (n!), which Math block would you use in a loop?

Factorial is the product of numbers from 1 to n, using the Multiply block in a loop to multiply the numbers.

Math 'Multiply' block

Math 'Add' block

Math 'Power' block

Math 'Modulo' block

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

To check if a number is prime, which Logic block would be used to test for non-divisibility?

Media Image

Logic 'AND' block with 'number > 1'

Logic 'OR' block with 'number < 2'

Logic 'Comparison' block with 'number = 1'

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

To create a program in Blockly to check if a year is a leap year, which Logic block would you use?

Media Image
Media Image
Media Image
Media Image

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In Blockly, to calculate the sum of odd numbers from 1 to n, which Math and Logic blocks would you use?

Media Image
Media Image
Media Image
Media Image

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

To create a program in Blockly to check if a number is a power of 2, which Math block would be useful?

A number is a power of 2 if it can be repeatedly divided by 2 (using Modulo) until reaching 1 with no remainder.

Math 'Modulo' block with 'Remainder of number ÷ 2 = 0'

Math 'Power' block with '2^x'

Math 'Square root' block

Math 'Round' block

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?