Recursion and Array Problems

Description

Recursion and Array Problems: Samantha Azuara
Samantha Azuara
Quiz by Samantha Azuara, updated more than 1 year ago
Samantha Azuara
Created by Samantha Azuara over 8 years ago
103
0

Resource summary

Question 1

Question
What is recursion?
Answer
  • 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

Question 2

Question
A factorial is an example of recursion.
Answer
  • True
  • False

Question 3

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

Question 4

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

Question 5

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

Question 6

Question
Two dimensional arrays are
Answer
  • 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

Question 7

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

Question 8

Question
A stack is a data type that create a collection of elements.
Answer
  • True
  • False

Question 9

Question
An array can be used to implement a stack
Answer
  • True
  • False

Question 10

Question
Another option for implementing stacks is to use a singly linked list
Answer
  • True
  • False

Question 11

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

Question 12

Question
What does this do?
Answer
  • 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.

Question 13

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

Question 14

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

Question 15

Question
What is the value of rating[0].length?
Answer
  • 3.5
  • 2.2
  • 1
  • 4
  • 8.1
  • 10.00000000001
Show full summary Hide full summary

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