GoConqr has a new look! Let us know what you think.

Quiz

Matrices

easycode cpp 5 questions Updated 27 Nov 2018

Take the quiz

This quiz has question types that open in the usual player.

Questions in this quiz (5)

  1. 1Las [blank_start]matrices[blank_end] son una estructura de datos bastante similar a los vectores o arreglos. De hecho, una [blank_start]matriz[blank_end] no es más que una serie de vectores contenidos uno en el otro (u otros), es decir, una [blank_start]matriz[blank_end] es un vector cuyas posiciones son otros vectores.
    1. Amatrices
    2. Bmatriz
    3. Cmatriz
  2. 2¿Cual de las siguientes declaraciones es de una matriz?
    1. Aint r[3] [3];
    2. Bfloat f[10];
    3. Cchar s;
  3. 3Imprime el numero 1 que se encuentra en la siguiente matriz:

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

    cout<<[blank_start]matriz[0][0];[blank_end]

    cout<<endl;

    system("pause");
    return 0;
    }
    1. Amatriz[0][0];
  4. 4Que ciclo se utilizan para recorrer una matriz
    1. A2 ciclos for anidados
    2. B2 ciclos while anidados
    3. C2 ciclos do while anidados
  5. 5Completa el siguiente programa:

    int main(){
    int matriz[blank_start][2][2];[blank_end]
    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>>[blank_start]matriz[i][j];[blank_end]
    }
    }

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

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

    system("pause");
    return 0;
    }
    1. Amatriz[i][j];
    2. B[i]
    3. C[j];
    4. D[2][2];

Information

Description
Quiz on Matrices, created by easycode cpp on 27/11/2018.
Language
Español
Views
80
History
Created on 27 Nov 2018 · updated on 27 Nov 2018
Rating
No ratings yet
Rate this quiz
Rate this quiz

Feedback

What is it about?

What do you think of the new look?

How do you like it?