
js-func - conditions - Intro
Authored by Re:Coded Org
Computers
Professional Development
Used 8+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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
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
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
10 questions
Types of Computers Based on Data Handling Capability
Quiz
•
Professional Development
10 questions
PLSQL and Cursor Quiz
Quiz
•
Professional Development
10 questions
Deep Learning
Quiz
•
Professional Development
11 questions
JavaScript
Quiz
•
Professional Development
10 questions
Vlookup Formula in Excel
Quiz
•
Professional Development
10 questions
React and Hooks
Quiz
•
Professional Development
10 questions
Virtual, Augmented and Mixed Reality
Quiz
•
KG - Professional Dev...
10 questions
Generative AI Quiz
Quiz
•
Professional Development
Popular Resources on Wayground
7 questions
History of Valentine's Day
Interactive video
•
4th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
15 questions
Valentine's Day Trivia
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
Discover more resources for Computers
44 questions
Would you rather...
Quiz
•
Professional Development
20 questions
Black History Month Trivia Game #1
Quiz
•
Professional Development
12 questions
Mardi Gras Trivia
Quiz
•
Professional Development
14 questions
Valentine's Day Trivia!
Quiz
•
Professional Development
7 questions
Copy of G5_U5_L14_22-23
Lesson
•
KG - Professional Dev...
16 questions
Parallel, Perpendicular, and Intersecting Lines
Quiz
•
KG - Professional Dev...
11 questions
NFL Football logos
Quiz
•
KG - Professional Dev...
12 questions
Valentines Day Trivia
Quiz
•
Professional Development