Code.org functions

Code.org functions

10th Grade

10 Qs

quiz-placeholder

Similar activities

Bài 25 tin 10

Bài 25 tin 10

9th Grade - University

10 Qs

Lua Review Corona SDK with Notepad++

Lua Review Corona SDK with Notepad++

10th - 12th Grade

15 Qs

TIN HỌC 10 - BÀI 21

TIN HỌC 10 - BÀI 21

10th Grade

10 Qs

HTML

HTML

8th - 12th Grade

15 Qs

Табличні величини та алгоритми їх опрацювання.

Табличні величини та алгоритми їх опрацювання.

5th - 11th Grade

14 Qs

Y10M2A2 - Selection

Y10M2A2 - Selection

6th - 10th Grade

15 Qs

HTML таблицы

HTML таблицы

9th - 10th Grade

10 Qs

10 Клас Python tests

10 Клас Python tests

10th Grade

12 Qs

Code.org functions

Code.org functions

Assessment

Quiz

Computers

10th Grade

Practice Problem

Hard

Created by

Khalil Youssef

Used 8+ 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

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.

2.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

What is the correct format to define a function?

Note: The name of the Function is "multiplyBy2"

multiplyBy2();

function multiplyBy2(){

//steps to execute function

}

function multiplyBy2

multiplyBy2{5}{

//steps of function

}

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

How do you call a function in JavaScript?
(assume the function name is doStuff)

function doStuff()
doStuff()
doStuff();
function do Stuff(){
//list of steps to execute
}

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

His name is Fred and he is less than 16 years old

if (name = "fred" && age < 16 )

if (name === "fred" && age < 16 )

if (name = "fred" || age < 16 )

if (name === "fred" || age < 16 )

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Repeat something 10 times

repeat 10

for (var i=0; i<10; i++)

repeat { } until 10;

while (i = 10)

6.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

How many times will the following code print "Welcome to Java"?
int count = 0;
while (count < 10) {
 System.out.println("Welcome to Java");
 count++;
}

8
9
10
0

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In a loop that runs from 0 to 9. What goes in the blank space?

var i;

for ( i= 0 ; i < ___ ; i++ ) {

console.log (i);

}

10

9

5

4

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?

Discover more resources for Computers