
Lección-Matrices
Quiz
•
Other
•
University
•
Practice Problem
•
Medium
Andrea Sánchez
Used 5+ times
FREE Resource
Enhance your content in a minute
8 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
¿Cómo declararía una matriz de tipo entrera, de orden 3 columnas y 4 filas?
int matriz[][] = new int[3][4];int matriz[][] = new int[4][3];int new matriz[][] = int[3][4];int new matriz[][] = int[4][3];2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
¿Cuál de las siguientes expresiones, es correcta?
int [][] matriz = {{2,4,4};{6,6,9};{8,10,12}};int [][] matriz = {(2,4,4),(6,6,9),(8,10,12)};int [][] matriz = {{2,4,4},{6,6,9},{8,10,12}};int [][] matriz = {(2,4,4); (6,6,9); (8,10,12)};3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
¿Cuál es la forma correcta de declarar una matriz bidimensional en Java?
int[][] matriz;,
int matriz[];
int[][] matriz;
int matriz[][],
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
¿Cuál es la forma correcta de acceder al elemento en la fila 3, columna 2 de una matriz bidimensional llamada "matrix"?
matrix[2][3];
matrix[3][2];
matrix[1][2];
matrix[2][1];
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
¿Qué hace el siguiente código?
for (int i = 0; i < 3; i++) {
for (int j = 0; j < 3; j++) {
matriz2[i][j] = matriz[j][i];
}
}
Imprime una matriz1
Almacena los datos de matriz en nueva matriz2. Los datos son los mismos.
Transpone los datos de matriz en matriz2
Solicita llenar los datos de la matriz.
6.
FILL IN THE BLANK QUESTION
45 sec • 1 pt
¿Qué palabra hace falta, para que el siguiente comando funcione?
nFilas = Integer.Int(JOptionPane.showInputDialog("Número de filas: "));
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Para llenar los datos de una matriz de tipo entero, de orden 4x3, se utiliza el código:
for(int i=0; i<3; i++){
for(int j=0; j<3;j++){
System.out.print("Matriz ["+i+"]["+j+"]: ");
matriz[i][j]= entrada.nextInt();
}
}
¿Cuál es el error?
El valor de las filas no es el correcto.
Hace falta un punto y coma después de los paréntesis del ciclo for.
La línea de lectura y almacenamiento en matriz[i][j], está incompleta.
System.out.print está mal escrito.
8.
MULTIPLE SELECT QUESTION
1 min • 5 pts
¿En qué línea está el error?
¿En qué línea está el error?
1. Scanner entrada = new Scanner(System.in);
2. int matriz[][], nFilas, nCol;
3. int sumaFilas, sumaCol;
4. nFilas = Integer.parseInt(JOptionPane.showInputDialog("Digite # filas: "));
5. nCol = Integer.parseInt(JOptionPane.showInputDialog("Digite # columnas: ");
6. matriz = new int[nFilas][nCol];
7. System.out.println("Digite la matriz: ");
8. for(int i=0; i<nFilas; i++){ //filas
9. for(int j=0; j<nCol, j++{ //columnas
10. System.out.print("Matriz ["+i+"]["+j+"]: ");
11. matriz[i][j]= entrada.nextInt();
12. }
13. }
4
8
5
9
Similar Resources on Wayground
10 questions
Preguntas sobre Microsoft Excel
Quiz
•
5th Grade - University
12 questions
NDS D.Civ Obrigações 01 - Noções Iniciais
Quiz
•
University
10 questions
Tarea 03 sociales Psicología
Quiz
•
University
10 questions
electronica basica 1
Quiz
•
University - Professi...
11 questions
NDS - Execução 04 - Requisitos da Execução
Quiz
•
University
11 questions
Juego en Equipo
Quiz
•
University
10 questions
HABILIDADES: C. DIGITAL
Quiz
•
University
13 questions
autres séquences
Quiz
•
University
Popular Resources on Wayground
10 questions
Forest Self-Management
Lesson
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
30 questions
Thanksgiving Trivia
Quiz
•
9th - 12th Grade
30 questions
Thanksgiving Trivia
Quiz
•
6th Grade
11 questions
Would You Rather - Thanksgiving
Lesson
•
KG - 12th Grade
48 questions
The Eagle Way
Quiz
•
6th Grade
10 questions
Identifying equations
Quiz
•
KG - University
10 questions
Thanksgiving
Lesson
•
5th - 7th Grade
Discover more resources for Other
10 questions
Identifying equations
Quiz
•
KG - University
7 questions
Different Types of Energy
Interactive video
•
4th Grade - University
20 questions
HS2C2 AB QUIZIZZ
Quiz
•
1st Grade - Professio...
14 questions
Homonyms Quiz
Quiz
•
KG - University
16 questions
Parts of a Parabola
Quiz
•
8th Grade - University
10 questions
A Brief History of Geologic Time
Interactive video
•
11th Grade - University
15 questions
Black Friday/Cyber Monday
Quiz
•
9th Grade - University
7 questions
Biomolecules (Updated)
Interactive video
•
11th Grade - University
