Intro to Programming -  Functions

Intro to Programming - Functions

9th - 12th Grade

10 Qs

quiz-placeholder

Similar activities

DESAIN KEMASAN

DESAIN KEMASAN

11th Grade

10 Qs

1ª SESIÓN

1ª SESIÓN

KG - University

15 Qs

Pre-Assessment: ICT 10 Orientation Day

Pre-Assessment: ICT 10 Orientation Day

10th Grade

10 Qs

Repaso Tecnología Tercero Básico "A"

Repaso Tecnología Tercero Básico "A"

9th Grade

12 Qs

Documentos Comerciales

Documentos Comerciales

1st - 12th Grade

10 Qs

Google Apps

Google Apps

4th - 12th Grade

10 Qs

ICT 10 - Quiz - Part 2

ICT 10 - Quiz - Part 2

10th Grade

10 Qs

PowerPoint 1

PowerPoint 1

12th Grade - University

10 Qs

Intro to Programming -  Functions

Intro to Programming - Functions

Assessment

Quiz

Computers

9th - 12th Grade

Medium

Created by

Mark Galesi

Used 18+ times

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

1 min • 1 pt

What is a JavaScript function?

A data type

A block of code that performs a specific task

A variable

A conditional statement

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the purpose of parameters in a JavaScript function?

To store global variables

To specify the data type of a variable

To provide input values for the function

To restrict access to the function

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Using functions allows coders to...

fix mistakes more easily

spend less time coding

better organize their code

all of the above

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does “calling” a function mean?

Naming and creating the function for the first time

Using your function in your code by writing its name and defining the values of the parameters

Using the same name for all of the function you create

Writing the name of the function inside your draw loop

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

After creating a new function in your code what do you have to do to see the function run?

Add a draw sprites code into the function

Call the function in your code

Put the function at the bottom of the code

Add a variable in the function

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of the following is true regarding naming functions? 

Function names can be reused multiple times
A function name should be as descriptive as possible to indicate what the function does.
Function names should be organized alphabetically
The function name should begin with a number that indicates the order in which it should be executed.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Why are parameters useful when programming?

Parameters change the order of operations within a function.

Parameters help teams of programmers because they define the problems they are trying to solve.

Parameters allow for more flexible, generalized behaviors in functions.

Parameters determine the number of times a function will run.

Create a free account and access millions of resources

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?