U2L3 #6 [Functions - Default Parameters]

Flashcard
•
Computers
•
University
•
Easy
Wayground Content
Used 1+ times
FREE Resource
Student preview

8 questions
Show all answers
1.
FLASHCARD QUESTION
Front
In this first section of code, how many parameters does this function require?
Back
2
2.
FLASHCARD QUESTION
Front
In this first section of code, "person" is being used as the external or internal reference?
Back
In this code, "person" is being used as the internal reference.
3.
FLASHCARD QUESTION
Front
In this first section of code, does "person" have a default value?
Back
"person" does not have a default value.
4.
FLASHCARD QUESTION
Front
In this first section of code, what is the default value of "person"?
Back
"person" will have a default value of nil.
5.
FLASHCARD QUESTION
Front
In this first section of code, what is the default value of "nicely"?
Back
"nicely" will have a default value of true.
6.
FLASHCARD QUESTION
Front
In this first section of code, what is the minimum number of parameter values that must be given when this function is called?
Back
1
7.
FLASHCARD QUESTION
Front
In this first section of code, what is the maximum number of parameter values that can be given when this function is called? Options: 1, 2, 3, 4
Back
2
8.
FLASHCARD QUESTION
Front
Which call to calculateArea is valid?
Back
Answer explanation
This function has three parameters. You must call the function in this way:
You must name the first parameter “length” and give it a Double value.
You must not name the second parameter, but you must give it a Double value.
You must name the third parameter “unit” and give it a String value.
Similar Resources on Wayground
6 questions
Chapter 07 File Manipulation

Flashcard
•
University
10 questions
Introduction to Redux Toolkit

Flashcard
•
12th Grade
7 questions
1.1 Scope of Practice

Flashcard
•
University
10 questions
Traversal Practice code.org unit 6

Flashcard
•
12th Grade
10 questions
Warm-up 01.04.2025

Flashcard
•
KG - University
10 questions
Software Vocab

Flashcard
•
KG - University
12 questions
U2L3 #1 [Writing Functions]

Flashcard
•
12th Grade
10 questions
Flashcard on Python For Loop

Flashcard
•
12th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
36 questions
Unit 5 Key Terms

Quiz
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
15 questions
Properties of Equality

Quiz
•
8th Grade - University
38 questions
WH - Unit 3 Exam Review*

Quiz
•
10th Grade - University
21 questions
Advise vs. Advice

Quiz
•
6th Grade - University
12 questions
Reading a ruler!

Quiz
•
9th Grade - University