easycode cpp
Quiz by , created more than 1 year ago

Quiz on Matrices, created by easycode cpp on 27/11/2018.

57
0
0
easycode cpp
Created by easycode cpp over 5 years ago
Close

Matrices

Question 1 of 5

1

Fill the blank spaces to complete the text.

Las son una estructura de datos bastante similar a los vectores o arreglos. De hecho, una no es más que una serie de vectores contenidos uno en el otro (u otros), es decir, una es un vector cuyas posiciones son otros vectores.

Explanation

Question 2 of 5

1

¿Cual de las siguientes declaraciones es de una matriz?

Select one of the following:

  • int r[3] [3];

  • float f[10];

  • char s;

Explanation

Question 3 of 5

1

Fill the blank space to complete the text.

Imprime el numero 1 que se encuentra en la siguiente matriz:

int main(){
int matriz[2][2]={{1,2}{3,4}};

cout<<

cout<<endl;

system("pause");
return 0;
}

Explanation

Question 4 of 5

1

Que ciclo se utilizan para recorrer una matriz

Select one or more of the following:

  • 2 ciclos for anidados

  • 2 ciclos while anidados

  • 2 ciclos do while anidados

Explanation

Question 5 of 5

1

Completa el siguiente programa:

int main(){
int matriz
for(int i=0;i<2;i++){/**i Filas*/
for(int j=0;j<2;j++){/**j filas*/
cout<<"Ingrese el valor de la posicion"<<i<<" , "<<j<<endl;
cin>>
}
}

for(int i=0;i<2;i++){/**i Filas*/
for(int j=0;j<2;j++){/**j filas*/
cout<<matriz

}
cout<<endl;
}
cout<<endl;

system("pause");
return 0;
}

Drag and drop to complete the text.

    matriz[i][j];
    [i]
    [j];
    [2][2];

Explanation