Intro to Programming -  Functions

Intro to Programming - Functions

9th - 12th Grade

10 Qs

quiz-placeholder

Similar activities

ICT as Platform for Change

ICT as Platform for Change

11th - 12th Grade

10 Qs

Numpy-1

Numpy-1

9th - 12th Grade

10 Qs

10 câu kiểu xâu tiết 1

10 câu kiểu xâu tiết 1

11th Grade

10 Qs

Introducción Redes Tele1 IB

Introducción Redes Tele1 IB

10th Grade - University

15 Qs

Contact Center Sevices

Contact Center Sevices

7th - 10th Grade

10 Qs

Quiz 8 (01.09.2021)

Quiz 8 (01.09.2021)

1st - 12th Grade

10 Qs

Questionário Aula 6 - Int. à Inf. (Segurança e Proteção)

Questionário Aula 6 - Int. à Inf. (Segurança e Proteção)

10th Grade

10 Qs

Cuestionario Steve Jobs

Cuestionario Steve Jobs

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.

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?