js-func - conditions - Intro

js-func - conditions - Intro

Professional Development

6 Qs

quiz-placeholder

Similar activities

Moringa JavaScript Iteration

Moringa JavaScript Iteration

9th Grade - Professional Development

10 Qs

เเบบทดสอบโปรเเกรมเบื่องต้น

เเบบทดสอบโปรเเกรมเบื่องต้น

Professional Development

10 Qs

JavaScript Session

JavaScript Session

Professional Development

10 Qs

CSNP 04103 C++ Midterm preparation

CSNP 04103 C++ Midterm preparation

University - Professional Development

11 Qs

Python Training Day-3 Quiz-3

Python Training Day-3 Quiz-3

Professional Development

10 Qs

Globe Google Workspace Intro

Globe Google Workspace Intro

Professional Development

10 Qs

Scratch and Its Elements

Scratch and Its Elements

Professional Development

7 Qs

Kiểm tra đợt 2 lập trình S

Kiểm tra đợt 2 lập trình S

Professional Development

10 Qs

js-func - conditions - Intro

js-func - conditions - Intro

Assessment

Quiz

Computers

Professional Development

Medium

Created by

Re:Coded Org

Used 8+ times

FREE Resource

6 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Choose the correct way to create a function:

function letsParty(){}

function letsParty {}

function letsParty()[]

letsParty(){}

Answer explanation

A function needs the function keyword, the function name, the arguments, and the function body

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A function can be called a limited number of times

True

False

Answer explanation

The core thing that makes a function useful is the fact that you can use it an unlimited amount of times

3.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

Media Image

What is the console log value for the function in the image?

"Jehad"

Welcome, ${name}!

Welcome, Jehad!

Welcome, !

Answer explanation

We used backticks which gives us the ability to include variables inside string.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What kind of statement is an If statement?

A conditional statement

An anecdotal statement

A declarative statement

A comparison statement

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What kind of operators do If statements use to test conditions?

Comparison operators

Array operators

Assignment operators

Arithmetic operators

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a switch case statement?

A conditional that let's us test against different cases

Sort of like an If statement

It's a type of comparison operator

A switch case statement is a type of sorting algorithm