IT, LESSON 2, VISUAL CODING

 Answers of textbook exercises

Fill in the blanks

  1.   L o o p runs the same block of code multiple times.
  2. Something that initiates an action is called E v e n t.
  3. C o n d i t i o n a l changes determine flow of the program based on whether a statement is true or false.
  4.  V a r i a b l e is a placeholder for data such as numbers, string, etc., in a program.
  5. When the “if” condition is added, the expression will be either true or F a l s e.

State true or false

  1. Programming languages are used for giving instructions to   computers. -True
  2. A graphic object on stage is called a Sprite. -True
  3. If... else is used for repeated execution of a block of code. -False
  4. A loop doesn't check any conditions before executing a code    block inside it. -False
  5. VPL uses arrows, lines or arcs which represent relations. -True

Match the following

     1. Sprite

     e. Acting object

     2. Conditional

     b. If … else

     3. Loop

     d. for(...)

     4. VPL

     a. Diagrammatic  

         programming

     5. Variable

     b. Store values

Multiple Choice Questions

  1. How many steps will the sprite move when clicked?
  1. 15
  2. 5
  3. 7
  4. 10

  1. Which is an example of a loop?

ans) a

  1. What is the output when the block is clicked?

 

  1. world
  2. w
  3. d
  4. o

  1. What happens when flag is clicked in the figure?

   

  1. Program starts
  2. Program ends
  3. Program gets deleted
  4. None of the above

  1. In VPL,Character/Object is referred to as:
  1. Sprint
  2. Spring
  3. Sprite
  4. Split

Answer in one word or one sentence

  1. What is a stage in VPL?

It is the main working area where the sprite performs actions.

  1. What is “script area”?

The place where you create a Script for a Sprite.

  1. What is a variable?

Variable is the place where the data is stored.

  1. What is the use of boxes in VPL?

The boxes are the  blocks which are used to program the Sprite.

  1. How will you assign a value to a variable in VPL?

You can use the “set” block to assign value to a variable.

Answer the following

  1. What is VPL?

Visual programming language is any programming language that uses the blocks that are already defined with the code to create programs.

  1. What are conditionals?

Conditionals are instructions for the computer to make decisions based on whether something is true or false. It's like telling the computer, "If this is true, do one thing; if it's false, do another."

  1. Explain loop with an example.

Repeated instructions are known as loop. For example, using a "repeat" block, you can make a sprite move forward 10 steps five times.

  1. Write 5 motion blocks in VPL.
  • Move
  • turn
  • go to
  • glide
  • point in direction

  1. Explain the steps for assigning a value to a variable.
  • Go to 'variables' and create a new variable.
  • Name the variable and click OK.
  • Use the 'set' block to assign a value to the variable.

Popular posts from this blog

പാഠം : 11 ഏകലവ്യന്റെ പെരുവിരൽ

മലയാളം

computer Lesson 5, 6