Recursion and Array Problems

Descrição

Recursion and Array Problems: Samantha Azuara
Samantha Azuara
Quiz por Samantha Azuara, atualizado more than 1 year ago
Samantha Azuara
Criado por Samantha Azuara aproximadamente 9 anos atrás
105
0

Resumo de Recurso

Questão 1

Questão
What is recursion?
Responda
  • 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

Questão 2

Questão
A factorial is an example of recursion.
Responda
  • True
  • False

Questão 3

Questão
An array is a container object that holds a fixed number of values of different types
Responda
  • True
  • False

Questão 4

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

Questão 5

Questão
It is possible to pass just one location of an array to a function.
Responda
  • True
  • False

Questão 6

Questão
Two dimensional arrays are
Responda
  • 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

Questão 7

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

Questão 8

Questão
A stack is a data type that create a collection of elements.
Responda
  • True
  • False

Questão 9

Questão
An array can be used to implement a stack
Responda
  • True
  • False

Questão 10

Questão
Another option for implementing stacks is to use a singly linked list
Responda
  • True
  • False

Questão 11

Questão
You can see Two Dimensional Arrays as an excel layout
Responda
  • One Dimensional Arrays
  • No
  • Umm
  • Yes
  • Please, stop.

Questão 12

Questão
What does this do?
Responda
  • 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.

Questão 13

Questão
A 2D array is a 1D array of (references to) 1D arrays.
Responda
  • True
  • False

Questão 14

Questão
Given int[][] rating = new int[3][4]; What is the value of rating.length?
Responda
  • 3
  • 4
  • 2
  • 1
  • 0.999999
  • 32

Questão 15

Questão
What is the value of rating[0].length?
Responda
  • 3.5
  • 2.2
  • 1
  • 4
  • 8.1
  • 10.00000000001

Semelhante

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