Functions and Variables in MakeCode

Functions and Variables in MakeCode

6th - 8th Grade

10 Qs

quiz-placeholder

Similar activities

Kuis Infografis Kelas VII

Kuis Infografis Kelas VII

7th Grade

10 Qs

Computer Security

Computer Security

8th - 10th Grade

10 Qs

3rd week g9 summative

3rd week g9 summative

7th - 12th Grade

15 Qs

Ethical Issues of I.T.

Ethical Issues of I.T.

7th - 8th Grade

11 Qs

Kiểm tra TX tin 8

Kiểm tra TX tin 8

8th Grade

10 Qs

JAVA IDENTIFIERS

JAVA IDENTIFIERS

6th - 8th Grade

14 Qs

PITD Assessment

PITD Assessment

8th Grade

10 Qs

EXAMEN-2°AÑO-INFORMATICA P3-2021

EXAMEN-2°AÑO-INFORMATICA P3-2021

1st - 9th Grade

13 Qs

Functions and Variables in MakeCode

Functions and Variables in MakeCode

Assessment

Quiz

Computers

6th - 8th Grade

Practice Problem

Hard

Created by

Nazia Naseer

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a variable?

A. A tool that lets us make sounds

B. A container that stores information or values

C. A block that moves a character on the screen

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Why is it important to give clear names to variables?

So we can understand what each variable is used for

To make the microcontroller work faster

To make the program look fancy

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these is a good name for a variable that keeps track of a player’s score?

p

score

123score

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a function in programming?

A way to add graphics to a game

A block of code that performs a specific task

A tool to delete variables

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Why would you use a function in a program?

To organize code and avoid repeating instructions

To create more variables

To change the background color of the code editor

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In MakeCode, how do you create a function?

By clicking the “Sprites” menu

By going to the “Functions” category and selecting “Make a Function”

By pressing the "Delete" button

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What happens when you "call" a function in your program?

The function's instructions run

A new variable is created

The program stops running

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?