Cuarto Parcial Flashcards

1
Q

Funciones

A

Instrucciones permiten ejecutar ciertas acciones

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

Tipos Funciones

A

Regresan Valor

No RegVal

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

Instrucción Funciones Regresen Parámetro

A

Return

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

Variables Locales

A
  • Declaradas función

- Nacen y mueren con ella

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

Argumentos Función

A
  • Literal
  • Expresión aritmética o lógica
  • Variable
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Casting

A

Asignar a un tipo de dato otro cuando se retorna dentro de una función

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

Ejemplo Casting

A

Volver double un tipo de dato int

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

Funciones Sobrecargadas

A
  • Mismo nombre

- Cantidad parámetros que poseen (tipo)

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

Tipos Parámetros

A

PPV

PPR

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

Variables Globales

A
  • Todo programa

- Declaradas en main

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

Tipos de Funciones

A

Con valor de retorno

Sin valor de retorno

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

Sintaxis función con valor retorno

A

Tipodato nombreFunción (tipoDato n)
{

}

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

Sintaxis Función Sin Valor de Retorno

A
Void nombreFuncion (tipoDato n) 
{

}

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