Recursion and Array Problems

Descripción

Recursion and Array Problems: Samantha Azuara
Samantha Azuara
Test por Samantha Azuara, actualizado hace más de 1 año
Samantha Azuara
Creado por Samantha Azuara hace alrededor de 9 años
105
0

Resumen del Recurso

Pregunta 1

Pregunta
What is recursion?
Respuesta
  • A computer programming technique involving the use of a procedure, subroutine, function, or algorithm that calls itself
  • An argument that seems to come up time and again for the negative party
  • A sequence of instructions
  • A resource
  • Something I didn't learn
  • Sorry, I don't know

Pregunta 2

Pregunta
A factorial is an example of recursion.
Respuesta
  • True
  • False

Pregunta 3

Pregunta
An array is a container object that holds a fixed number of values of different types
Respuesta
  • True
  • False

Pregunta 4

Pregunta
Is this an example of a one dimensional array or a two dimensional array?
Respuesta
  • Maybe?
  • Two dimensional array
  • One dimensional array
  • I don't know
  • None of the above

Pregunta 5

Pregunta
It is possible to pass just one location of an array to a function.
Respuesta
  • True
  • False

Pregunta 6

Pregunta
Two dimensional arrays are
Respuesta
  • a type of linear array
  • indexed by two subscripts, one for the row and one for the column
  • an array where its elements are selected (identified) using two indices.
  • selected using a one index
  • potatoes
  • Cute baby animals

Pregunta 7

Pregunta
For Two Dimensional Arrays: Each cell of the array is a variable that can hold a value and works like any variable.
Respuesta
  • True
  • False

Pregunta 8

Pregunta
A stack is a data type that create a collection of elements.
Respuesta
  • True
  • False

Pregunta 9

Pregunta
An array can be used to implement a stack
Respuesta
  • True
  • False

Pregunta 10

Pregunta
Another option for implementing stacks is to use a singly linked list
Respuesta
  • True
  • False

Pregunta 11

Pregunta
You can see Two Dimensional Arrays as an excel layout
Respuesta
  • One Dimensional Arrays
  • No
  • Umm
  • Yes
  • Please, stop.

Pregunta 12

Pregunta
What does this do?
Respuesta
  • An average in row 0
  • Finds the sum in row 3.
  • Finds the average rating by the reviewer in row 2.
  • I really don't know.

Pregunta 13

Pregunta
A 2D array is a 1D array of (references to) 1D arrays.
Respuesta
  • True
  • False

Pregunta 14

Pregunta
Given int[][] rating = new int[3][4]; What is the value of rating.length?
Respuesta
  • 3
  • 4
  • 2
  • 1
  • 0.999999
  • 32

Pregunta 15

Pregunta
What is the value of rating[0].length?
Respuesta
  • 3.5
  • 2.2
  • 1
  • 4
  • 8.1
  • 10.00000000001
Mostrar resumen completo Ocultar resumen completo

Similar

Without application in the world, the value of knowledge is greatly diminished." Consider this claim with respect to two areas of knowledge.
Genoveva Arias A
knowledge within a discipline develops according to the principles of natural selection
michelle.101590
ROMEO Y JULIETA
eric.rufas
Social Network Analytics
jeangr
Mapa Mental Hardware
Martin Londoño
COMPUTER SCIENCE MAP
luis gomez
Sequences and Series
L. Eastman
COMENTARIO DE TEXTO
David Velásquez 6432
Glosario de IB
borletillo444
Genetica y Herencia IB
manola.castro
LA INSOPORTABLE LEVEDAD DEL SER
Sergio Mendez9126