Function and Parameter

0.0(0)
studied byStudied by 0 people
0.0(0)
full-widthCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/16

flashcard set

Earn XP

Description and Tags

These flashcards cover key vocabulary and concepts related to functions and parameters in programming as discussed in the CS 110 lecture notes.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

17 Terms

1
New cards

Function

A collection of statements that are grouped together to perform an operation.

2
New cards

Void function

A function that does not return a value.

3
New cards

Value returning function

A function that returns a value after execution.

4
New cards

Function definition

The code that defines what a function does, including the function body.

5
New cards

Parameters

Variables in a function header that accept values when the function is called.

6
New cards

Arguments

Actual values passed to function parameters when invoking a function.

7
New cards

Call stack

A stack data structure that stores information about the active subroutines or functions in a program.

8
New cards

Function syntax

The format used to define a function, including return type, name, and parameters.

9
New cards

Function signature

The combination of the function name and its parameter list.

10
New cards

Return value type

The data type of the value returned by a function.

11
New cards

Invoke a function

To call or execute a function within the program.

12
New cards

Actual parameters

Values that are passed to the function when it is called.

13
New cards

Formal parameters

Variables that are defined in the function header.

14
New cards

Return statement

A statement used within a function to specify the value that should be returned.

15
New cards

Main method

The entry point of a C++ program where execution begins.

16
New cards

Maximum function

A function that determines which of two numbers is greater and returns that value.

17
New cards

Print statement

A command used to output text or variable values to the console.