Functions

Functions

Professional Development

10 Qs

quiz-placeholder

Similar activities

NDP Training - Quiz 2

NDP Training - Quiz 2

Professional Development

10 Qs

Day10_Quiz_NBKR

Day10_Quiz_NBKR

Professional Development

10 Qs

Ivy_Honeywell_Data Analytics_4.2

Ivy_Honeywell_Data Analytics_4.2

Professional Development

10 Qs

JS Quiz

JS Quiz

Professional Development

14 Qs

Entrepreneurship Basics

Entrepreneurship Basics

Professional Development

10 Qs

Nodejs: Callback/Webhook URL

Nodejs: Callback/Webhook URL

Professional Development

10 Qs

Tech Support New Hire Training - Week 3 Recap

Tech Support New Hire Training - Week 3 Recap

Professional Development

10 Qs

Customer Relations Quiz Day 2

Customer Relations Quiz Day 2

Professional Development

10 Qs

Functions

Functions

Assessment

Quiz

Professional Development

Professional Development

Hard

Created by

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

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?