Recursion and Array Problems

Beschreibung

Recursion and Array Problems: Samantha Azuara
Samantha Azuara
Quiz von Samantha Azuara, aktualisiert more than 1 year ago
Samantha Azuara
Erstellt von Samantha Azuara vor mehr als 8 Jahre
103
0

Zusammenfassung der Ressource

Frage 1

Frage
What is recursion?
Antworten
  • 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

Frage 2

Frage
A factorial is an example of recursion.
Antworten
  • True
  • False

Frage 3

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

Frage 4

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

Frage 5

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

Frage 6

Frage
Two dimensional arrays are
Antworten
  • 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

Frage 7

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

Frage 8

Frage
A stack is a data type that create a collection of elements.
Antworten
  • True
  • False

Frage 9

Frage
An array can be used to implement a stack
Antworten
  • True
  • False

Frage 10

Frage
Another option for implementing stacks is to use a singly linked list
Antworten
  • True
  • False

Frage 11

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

Frage 12

Frage
What does this do?
Antworten
  • 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.

Frage 13

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

Frage 14

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

Frage 15

Frage
What is the value of rating[0].length?
Antworten
  • 3.5
  • 2.2
  • 1
  • 4
  • 8.1
  • 10.00000000001
Zusammenfassung anzeigen Zusammenfassung ausblenden

ähnlicher Inhalt

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
LA INSOPORTABLE LEVEDAD DEL SER
Sergio Mendez9126
Genetica y Herencia IB
manola.castro