Do Practice Problems in Quorum

Learn code through small examples.

Two cartoon rabbits wearing glasses. The rabbit on the left is holding a game controller, while the rabbit on the right is holding up a paper with a pie chart on it.

Boolean Variables Problems

Intro to Boolean Variables

Boolean variables follow the same basic format type variableName = value. For boolean variables this means their type is boolean and their value is either true or false.

Read through the blocks in the tray. Then use only the blocks in the tray to build a program that declares two boolean variables and displays the values of each.

This program should show the following:

false
true

Coding:

Blocks