Final Review - Unit 4

Final Review - Unit 4

9th - 12th Grade

20 Qs

quiz-placeholder

Similar activities

File Extensions

File Extensions

9th Grade - Professional Development

20 Qs

Unit Test 1 Class 8 Computer

Unit Test 1 Class 8 Computer

8th - 9th Grade

20 Qs

9 сынып массив2

9 сынып массив2

9th Grade

15 Qs

Logika & Pemrograman (ID)

Logika & Pemrograman (ID)

10th Grade - Professional Development

20 Qs

HTML5 Basics

HTML5 Basics

7th - 10th Grade

20 Qs

Latihan Pilihan Ganda - Sketchup

Latihan Pilihan Ganda - Sketchup

9th Grade

15 Qs

Computer Science - X

Computer Science - X

8th - 10th Grade

20 Qs

Trắc nghiệm Bài 14_15 tin học K10

Trắc nghiệm Bài 14_15 tin học K10

10th Grade

20 Qs

Final Review - Unit 4

Final Review - Unit 4

Assessment

Quiz

Computers

9th - 12th Grade

Medium

Created by

William Kelly

Used 2+ times

FREE Resource

20 questions

Show all answers

1.

MULTIPLE SELECT QUESTION

10 mins • 1 pt

Which of these are correct methods to create a function?

function myFunction {

// Some code }

function myFunction[] {

// Some code }

function myFunction() {

// Some code }

function myFunction(x, y, z) {

// Some code }

2.

MULTIPLE SELECT QUESTION

10 mins • 1 pt

Given the following code, which is considered the parameters of the function


function myFunction(a, b, c) {

var x = a + b + c;

}

x

a

b

c

3.

MULTIPLE CHOICE QUESTION

10 mins • 1 pt

Given the following code, what is the final value of x?


var x = 0;

function myXFunction() {

x = x + 10;

}

x = x + 1;

11

0

10

1

4.

MULTIPLE CHOICE QUESTION

10 mins • 1 pt

What should go into the indicated location make the final value of x = 11?


var x = 0;

function myXFunction() {

x = x + 10;

}

WRITE CODE HERE

x = x + 1;

function myXFunction()

MYXFUNCTION()

myXFunction()

myxfunction()

5.

FILL IN THE BLANK QUESTION

10 mins • 1 pt

Fill in the blanks to allow the following button invoke the myFunction function when clicked

<button id="myButton" ________ />

function myFunction() {

//Some Code }

6.

MULTIPLE CHOICE QUESTION

10 mins • 1 pt

Which of the following code will allow the button to invoke hisFunction?


<button id="myButton" value="Click Me" ________ />


function hisFunction(X, Y) {

//Some Code }

onclick = "hisFunction()"

onclick = "hisFunction"

onclick = "hisFunction(1)"

onclick = "hisFunction(1, 2)"

7.

MULTIPLE CHOICE QUESTION

10 mins • 1 pt

Media Image

What code will result in the above?

alert("Please enter your phone number:")

confirm("Please enter your phone number:")

prompt("Please enter your phone number:")

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?