Topic 2 Flashcards

1
Q

It is a group of statements that performs particular task

A

Functions

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

It is declared before its name.

A

Return type

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

a function will perform the desired operations without returning a value. Such functions are defined with the keyword ______

A

Void

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

it is a basic data type that defines a valueless state

A

Void

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

it is a data type of the value returned by the function

A

return type

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

It is the name of the function

A

Function Name

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

When function is invoked, you pass a value to the ______. This value is referred to as actual ______ or argument.

A

Parameter

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

It refers to the type, order, and number of the parameters of a function

A

Parameter list

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

These are optional; that is, you can have a function without it

A

Parameters

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

A collection of statements defining what the function does

A

Body of the Functions

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

It tells the compiler about a function name and how to call the function. The actual body of the function can be defined separately.

A

Function Prototype

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Typically refer to functions, constructor, or methods depending on wheter they take arguments

A

Parameterized and Non-Parameterized Function

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

It takes arguments as input, allowing customization or specific behavior

A

Parameterized Function

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

it does not take arguments. It has predefined or default behavior.

A

Non- Parameterized Function

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Information can be passed to functions as a _____

A

Parameter

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

It acts as variables inside the function

17
Q

For a function to use arguments it must declare ______, which are variables that accept the argument’s values

A

Formal Parameters

18
Q

You can define as many parameters as you want for your functions, by separating them with ____