Intro to JavaScript

Intro to JavaScript

9th - 12th Grade

20 Qs

quiz-placeholder

Similar activities

UTS PRATIKUM AKUNTANSI PERUSAHAAN DAGANG TP. 2022-2023

UTS PRATIKUM AKUNTANSI PERUSAHAAN DAGANG TP. 2022-2023

9th - 12th Grade

20 Qs

Database Concepts

Database Concepts

11th - 12th Grade

15 Qs

Путь и путевое хозяйство

Путь и путевое хозяйство

1st - 10th Grade

20 Qs

KİŞİLİK ÖZELLİKLERİ

KİŞİLİK ÖZELLİKLERİ

11th Grade

20 Qs

Week #7 - Time Machine

Week #7 - Time Machine

8th Grade - University

17 Qs

ÇOCUK GELİŞİMİ

ÇOCUK GELİŞİMİ

1st - 12th Grade

21 Qs

Bài 1 và bài 2

Bài 1 và bài 2

11th Grade

18 Qs

тест огэ

тест огэ

9th Grade

20 Qs

Intro to JavaScript

Intro to JavaScript

Assessment

Quiz

Computers, Other

9th - 12th Grade

Hard

Created by

Ebeliz Rodriguez

Used 48+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Let's say you defined a function called startTheParty in your program. What line of code would call that function?
startTheParty;
startTheParty();
var startTheParty = true;
var startTheParty();

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

You want to define a function for drawing houses and then use it to draw multiple houses. Where should you define that function?
At the beginning of the program, before you call it.
Right after you call it.
At the very end of the program.
It doesn't matter one bit!

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these lines of code correctly define a function?
var dropTheBeat = function() [ ];
dropTheBeat = function() { };
var dropTheBeat = function() { };
var dropTheBeat = function { };

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these lines of code define a function that takes 2 parameters?
var funkyFunc = function(note, tempo) { };
var funkyFunc = function() { };
var funkyFunc = function([note, tempo]) { };
var funkyFunc = function() {
   var note, tempo;
}; 

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

You have a function named funkyFunc that takes 2 parameters. What line of code validly calls it and passes in 2 values?
funkyFunc = 'A', 20;
funkyFunc('A' 20);
funkyFunc(['A', 20]);
funkyFunc('A', 20);

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

You've defined a function named calcAge that takes three parameters (day/month/year) and returns a value. How do you call that function and store the resulting value?
var calcAge(24, 6, 1984);
var age = calcAge(24, 6, 1984);
var age = calcAge(24/6/1984);
var age = calcAge = 24, 6, 1984;

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What keyword do you need to use if you want your function to return a value?
return
echo
sendback
reply

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?

Discover more resources for Computers