Just Do R Proyect
Quiz by , created more than 1 year ago

Quiz on PRÁCTICA 4, created by Just Do R Proyect on 09/12/2021.

6
0
0
No tags specified
Just Do R Proyect
Created by Just Do R Proyect over 2 years ago
Close

PRÁCTICA 4

Question 1 of 8

1

Para nombrar funciones en R ¿Cómo se estructura la instrucción?:
<- (,,…){ }

Drag and drop to complete the text.

    Nombre de la función
    function
    argumento1
    argumento2
    expresión de la función

Explanation

Question 2 of 8

1

Fill the blank spaces to complete the text.

Define la función g(x)=???(?^3)?^2
g=()(???(?^3)^2)

Explanation

Question 3 of 8

1

Si queremos obtener un vector V de 2001 componentes entre el intervalo [0,20], ¿Qué expresiones son correctas?

Select one or more of the following:

  • V=length(2001)

  • V=seq(0,20)

  • V=seq(0,20,2001)

  • V=seq(0,20,length.out=2001)

  • V=seq(0,20,0,01)

  • V=seq[0,20,length=2001]

Explanation

Question 4 of 8

1

Fill the blank spaces to complete the text.

Para representar gráficamente una función f, tomado como abscisas los valores de un vector V y etiquetando el eje de abscisas como Abscisa y el eje de coordenadas como mi función f; la expresión sería:

(V,f(), ='Abscisa' , ='mi función f' )

Si además quisiéramos poner la grafica en verde añadiríamos en comando:
='green'

Explanation

Question 5 of 8

1

¿Cuál es la instrucción para superponer curvas?

Select one of the following:

  • par(new='TRUE')

  • axes=FALSE

  • pch(new='true')

  • par(new='false')

  • axes=TRUE

  • par(new=true)

  • Ninguna de las opciones es correcta

Explanation

Question 6 of 8

1

Crea una leyenda en la esquina inferir izquierda donde la función A este vinculado al color rojo, la función B al azul y la función C al verde.

(x='' , ('función A','función B','función C'),=c('','','')

Drag and drop to complete the text.

    legend
    top
    bottomleft
    c
    f
    fill
    red
    blue
    green
    pink

Explanation

Question 7 of 8

1

Para sumar las componentes de un vector por medio de bucles condicionales tanto la variable i (posición del vector), como la variable suma (donde almacenamos el valor a calcular) se tienen que inicializar a 0

Select one of the following:

  • True
  • False

Explanation

Question 8 of 8

1

Fill the blank spaces to complete the text.

A partir del la información dada crea el organiframa:
Leer V1,n(length(V1) V1=(2,3,4,5)
inicializar i a 1 =1
inicializar suma a 0 =0
mientras que i sea menor a n (ilength(V1)
hacer suma=suma+V1i suma=suma+V1
Aumentar i una unidad
Fin bucle
Escribir suma suma

Explanation