Functions

Quiz
•
Professional Development
•
Professional Development
•
Hard
Daniel Adesoji
Used 1+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is NOT associated with functions?
body of the function
tail of the function
a return statement
parameters
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
One of the following is an incorrect way to declare a function.
function sayName() {}
const sayName = () => {}
func sayName() {}
const func = function sayName() {}
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which one of the following represents calling a function?
showName()
showName[]
showName{}
showName<>
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The "return" statement in a function is primarily used for:
Terminating the program
Outputting a value from the function
Printing messages to the console
Starting a loop
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a "void" function?
A function that returns no value
A function that takes no parameters
A function that cannot be called
A function that runs indefinitely
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What would a function return if there is no return statement?
null
false
undefined
void
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Variables defined within a function body are?
universally scoped
internationally scoped
globally scoped
locally scoped
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
Day14_Quiz_NBKR

Quiz
•
Professional Development
15 questions
[FAST TRACK] Android quiz week 07 (27.05)

Quiz
•
Professional Development
8 questions
AFCS Chapter B

Quiz
•
Professional Development
10 questions
Test - Week 2 May 2023

Quiz
•
Professional Development
15 questions
Water id and ITS Game

Quiz
•
Professional Development
10 questions
NDP Training - Quiz 2

Quiz
•
Professional Development
10 questions
Customer Relations Quiz Day 2

Quiz
•
Professional Development
10 questions
ARCHv7 Quiz - Day 2

Quiz
•
University - Professi...
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade