Code.org Coding Lessons 4-6

Code.org Coding Lessons 4-6

9th - 12th Grade

10 Qs

quiz-placeholder

Similar activities

The Dark Side

The Dark Side

KG - University

13 Qs

Understanding Compilers and Their Functions

Understanding Compilers and Their Functions

11th Grade

15 Qs

Chapter 2: Input Device

Chapter 2: Input Device

12th Grade - University

12 Qs

Computer Security

Computer Security

8th - 10th Grade

10 Qs

3rd week g9 summative

3rd week g9 summative

7th - 12th Grade

15 Qs

Debugging Challenge 2

Debugging Challenge 2

7th - 12th Grade

15 Qs

Printers

Printers

9th - 12th Grade

10 Qs

Code.org Coding Lessons 4-6

Code.org Coding Lessons 4-6

Assessment

Quiz

Computers

9th - 12th Grade

Hard

Created by

Mr. Saint-Germain

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

Two different functions in a program could contain the same code (accomplish the same task)

True
False

2.

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.

3.

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

}

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the correct way to call the function called "doMath" with a parameter of 5?

doMath(5);
function doMath(5);
doMath();
doMath{5};

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following commands will move the turtle forward one unit?

move
move;
move();
move()

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What makes the following command invalid: turnleft();

It should end in a colon rather than a semicolon

The letter l should be capitalized - L

It should start with a capital T

The command is correct

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Why do we use functions in programs?

A. Make the program easier to read

B. Avoid retyping the same lines of code

C. Both A and B are correct

D. Neither A nor B are correct

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?