functions and array Flashcards

1
Q

is a named, independent section of C
code that performs a specific task and optionally returns a value to the calling statement.

A

Functions

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

two types of function in C Programming

A

Standard Library functions and User-defined functions

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

built-in functions in C programming.

A

standard library functions

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

Functions that are created by the user are also known as

A

user-defined functions

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

WHY USE FUNCTION?

A

Function code is reusable. Functions make program smaller. Functions make program easier to write. Functions lead to improved commenting and
readability. Functions make program easier to maintain.

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

The first line of a function is called

A

function prototype declaration

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

The value passed by the function call statement is called

A

arguments

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

the function ________ accepts two
arguments.

A

double_it

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

The arguments passed into a function are known as
the function’s

A

parameters

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

This statement indicates that the function is to return the value of expression back to the calling
function.

A

returning values

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

There are two ways to pass parameters to functions:

A

call by value and call by reference

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

Types of functions

A

Non-returning functions without parameters

Non-returning functions with parameters

Returning functions without parameters

Returning functions with parameters

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

An outer block variable name is valid in an inner block unless block redefines it.

A

Function Variables

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

As we know variables which are declared within the bounds of a function or block are referred as

A

local variables or internal variables

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

Variables may also be declared outside of any function block, in the same source file.

A

global variables or external variables

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

It is possible to call a function inside the same function, this process is called

A

recursion or recursive call of function

17
Q

is a group of memory locations related by the fact that they have the same identifier and
data type.

A

array

18
Q

Each element of the array can be referenced by means of a number called

A

index or subscript