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
C Structures

Quiz
•
Professional Development
10 questions
Day10_Quiz_NBKR

Quiz
•
Professional Development
12 questions
Telephone Calls

Quiz
•
Professional Development
15 questions
Quiz MLBB

Quiz
•
Professional Development
15 questions
BJT - BASICS

Quiz
•
Professional Development
15 questions
Funciones en programación C

Quiz
•
Professional Development
10 questions
Nodejs: Callback/Webhook URL

Quiz
•
Professional Development
10 questions
Python Functions

Quiz
•
Professional Development
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade