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

Blockly Logic and Math Quiz

Quiz
•
Other
•
7th Grade
•
Medium
HP FPT
Used 2+ times
FREE Resource
30 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Logic 'AND' block with two conditions
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?
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?
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?
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?
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
Create a free account and access millions of resources
Similar Resources on Wayground
25 questions
ÔN TẬP TIN HỌC HÈ 7

Quiz
•
7th Grade
25 questions
Science Bowl Practice #1

Quiz
•
6th - 8th Grade
30 questions
Bài 4-qt-ta

Quiz
•
7th Grade
30 questions
Bài 5 - qt - ta

Quiz
•
7th Grade
25 questions
Unit 3: Computer Programming

Quiz
•
6th - 8th Grade
25 questions
Spelling: Can't You Make Them Behave, King George?

Quiz
•
KG - University
25 questions
CSIM Lesson 2 Review

Quiz
•
6th - 8th Grade
25 questions
Volleyball Rules

Quiz
•
6th - 8th Grade
Popular Resources on Wayground
25 questions
Equations of Circles

Quiz
•
10th - 11th Grade
30 questions
Week 5 Memory Builder 1 (Multiplication and Division Facts)

Quiz
•
9th Grade
33 questions
Unit 3 Summative - Summer School: Immune System

Quiz
•
10th Grade
10 questions
Writing and Identifying Ratios Practice

Quiz
•
5th - 6th Grade
36 questions
Prime and Composite Numbers

Quiz
•
5th Grade
14 questions
Exterior and Interior angles of Polygons

Quiz
•
8th Grade
37 questions
Camp Re-cap Week 1 (no regression)

Quiz
•
9th - 12th Grade
46 questions
Biology Semester 1 Review

Quiz
•
10th Grade