Computer Science, asked by nitinltr786, 3 months ago

the ask block is present in which block tab​

Answers

Answered by savikanti86
2

Answer:

This article has links to websites or programs not trusted by Scratch or hosted by Wikipedia. Remember to stay safe while using the internet, as we cannot guarantee the safety of other websites.

This article or section documents the current version of Scratch (version 3.0). For this article in Scratch 2.0, see Blocks (2.0). For this article in Scratch 1.4, see Blocks (1.4).

This article is about the programming blocks. For other uses, see Blocks (disambiguation).

Blocks are puzzle-piece shapes that are used to create code in Scratch. The blocks connect to each other vertically like a jigsaw puzzle, where each data type (hat, stack, reporter, boolean, or cap) has its own shape, and a specially shaped slot for it to be inserted into, which prevents syntax errors. Series of connected blocks are called scripts.

Blocks are often easier to work with than text-based programming, as one has to memorize the commands typed and syntax errors may occur. However, text-based programming is more flexible, as blocks cannot be easily edited.

There are ten categories of blocks: Motion, Looks, Sound, Event, Control, Sensing, Operators, Variables, List, and My Blocks. The list blocks are shown under the Variables Blocks.

In total, there are seven Hat Blocks, five C Blocks, thirty-one Reporter Blocks, thirteen Boolean Blocks, two Cap Blocks and fifty-nine Stack Blocks.

Note Note: Block numbers do not include extensions.

Contents

1 Block Shapes

1.1 Hat blocks

1.2 Stack blocks

1.3 Boolean blocks

1.4 Reporter blocks

1.5 C blocks

1.6 Cap blocks

2 List of Blocks

2.1 Motion blocks

2.2 Looks blocks

2.3 Sound blocks

2.4 Events blocks

2.5 Control blocks

2.6 Sensing blocks

2.7 Operators blocks

2.8 Variables blocks

2.9 My Blocks

2.10 Extensions

2.10.1 Music Extension

2.10.2 Pen Extension

2.10.3 Video Sensing Extension

2.10.4 Text to Speech Extension

2.10.5 Translate Extension

2.10.6 Makey Makey Extension

2.10.7 micro:bit Extension

2.10.8 LEGO MINDSTORMS EV3 Extension

2.10.9 LEGO BOOST Extension

2.10.10 LEGO Education WeDo 2.0 Extension

2.10.11 Go Direct Force and Acceleration Extension

2.10.12 Raspberry Pi GPIO Extension

2.10.13 Raspberry Pi Sense HAT Extension

2.10.14 Raspberry Pi Simple Electronics Extension

3 Scratch Block Plugin

4 In Other Programming Languages

5 See Also

Block Shapes

There are six different block shapes: Hat, Stack, Boolean, Reporter, C and Cap.

Hat blocks

The shape of a Hat block.

Main article: Hat Block

Hat blocks are the blocks that start every script. They are shaped with a rounded top and a bump at the bottom — this is so you can only place blocks below them. There are 11 Hat blocks in the Scratch editor, six of which are in the Events category, one in the Control category, and one in the category My Blocks (if one has created one custom block).

Stack blocks

The shape of a Stack block.

Main article: Stack Block

Stack blocks are the blocks that perform the main commands. They are shaped with a notch at the top and a bump on the bottom — this is so blocks can be placed above and below them. There are 77 Stack blocks — the most common block shape.

Boolean blocks

The shape of a Boolean block.

Main article: Boolean Block

Boolean blocks are the conditions — they are either true or false. For example, asking a computer: "Does 2 + 2 = 4?", and it would either tell you "True" or "False". With a hexagonal shape, there are 13 of these blocks.

Reporter blocks

The shape of a Reporter block.

Main article: Reporter Block

Reporter blocks are the values. Reporter blocks can hold numbers and strings. It is like asking a friend, for example, "What is 2 + 2?", and they would answer "4". It can also report a variable. For example, "What is your age?" and they may answer: "15". Shaped with rounded edges, there are 37 of these blocks — not counting the theoretically infinite amount of Reporter blocks that can be made for each variable and list.

C blocks

The shape of one of the C blocks.

Main article: C Block

C blocks are blocks that take the shape of "C's". Also known as "Wrap blocks", these blocks loop the blocks within the Cs or check if a condition is true. There are five C blocks, and they can be found in the Control category. C blocks can be bumped at the bottom, or capped.

Cap blocks

The shape of a Cap block.

Main article: Cap Block

Cap blocks are the blocks that end scripts. They are shaped with a notch at the top and a flat bottom — this is so you cannot place any blocks below them. There are two Cap blocks which can both be found in the Control category.

Similar questions