miscon:programming.arrays.arrays-grow · draft · trust low · v0.1.1 · kind overgeneralization

Arrays grow when you add to them

An array gets bigger by itself when you store something past its end, so its size does not need to be decided in advance.

Stable URI
https://open-misconceptions.github.io/miscon-data/m/programming.arrays.arrays-grow
UUID
c14aea0d-dc29-4cdc-9e08-bde06dfa0014
Domain
programming.arrays
Level band
secondary, undergraduate
Locale
en
About
https://open-misconceptions.github.io/miscon-data/c/programming.arrays.fixed-size (Miscon)

Evidence patterns

Pattern 0: predict a write one past the end of an array

predicts the array now has one more element

Itemint[] a = new int[3]; a[3] = 7; System.out.println(a.length);
ExpectedArrayIndexOutOfBoundsException
Response4

Discriminators

vs a slip. Consistent across items; the learner treats arrays like lists. A slip is a single off-by-one index.

Relations

conflicts_with
An array has a fixed length set when it is created (external)
resolved_by
An array has a fixed length set when it is created (external)

Alignments

Provenance

Origin: llm-drafted

  1. Chiodini, L., Moreno Santos, I., Gallidabino, A., Tafliovich, A., Santos, A. L., & Hauswirth, M. (2021). A curated inventory of programming language misconceptions. In Proceedings of the 26th ACM Conference on Innovation and Technology in Computer Science Education (ITiCSE '21), 380-386. doi:10.1145/3430665.3456343
    Inventory consulted for the misconception name and scope only; progmiscon publishes no licence for its text, so Open Misconceptions' statements and examples are written independently.
  2. Kaczmarczyk, L. C., Petrick, E. R., East, J. P., & Herman, G. L. (2010). Identifying student misconceptions of programming. In Proceedings of the 41st ACM Technical Symposium on Computer Science Education (SIGCSE '10), 107-111. doi:10.1145/1734263.1734299

Drafted from the cited literature for the Open Misconceptions seed pack; statement, examples and discriminators are original text. Awaiting maintainer review.

Review status

Status draft, trust low (computed from the reviews below against the reviewer registry).

No reviews yet.

Formats

Cite

miscon:programming.arrays.arrays-grow
https://open-misconceptions.github.io/miscon-data/m/programming.arrays.arrays-grow