JS Loops and Functions

JS Loops and Functions

6th Grade

10 Qs

quiz-placeholder

Similar activities

ESTRUTURAS DE REPETIÇÃO

ESTRUTURAS DE REPETIÇÃO

6th - 8th Grade

11 Qs

ÔN TẬP HỌC KÌ I MÔN TIN HỌC 5

ÔN TẬP HỌC KÌ I MÔN TIN HỌC 5

5th Grade - University

10 Qs

html 1

html 1

1st Grade - University

10 Qs

Digital Media Quiz

Digital Media Quiz

6th - 8th Grade

15 Qs

Fun with Circuits and Motors

Fun with Circuits and Motors

3rd Grade - University

10 Qs

Lego Spike & Python - Challenge 3 Quiz

Lego Spike & Python - Challenge 3 Quiz

6th - 8th Grade

10 Qs

Informatika

Informatika

6th - 8th Grade

15 Qs

Finding Balance in a Digital World

Finding Balance in a Digital World

6th - 8th Grade

10 Qs

JS Loops and Functions

JS Loops and Functions

Assessment

Quiz

Information Technology (IT)

6th Grade

Practice Problem

Easy

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

30 sec • 1 pt

What is a function in JavaScript?

A function in JavaScript is a type of variable.

A function in JavaScript is a method for creating objects.

A function in JavaScript is a data structure that holds values.

A function in JavaScript is a reusable block of code that performs a specific task.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you call a function in JavaScript?

function call()

call functionName

invoke functionName()

functionName()

3.

FILL IN THE BLANK QUESTION

20 sec • 1 pt

A loop that executes for a pre-defined number of times

4.

FILL IN THE BLANK QUESTION

20 sec • 1 pt

A loop that executes until a condition is met is called

5.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

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


How many times will this loop execute

51 times

49 times

50 times

0 times

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the iterations runs 25 times

for ( var i = 2; i < 26; i ++ )

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

for ( var i = -1 ; i > 25 ; i -- )

for ( var i = 0; i <= 25; i --)

7.

MULTIPLE CHOICE QUESTION

45 sec • 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

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?