<!--
{
  "availability" : [
    "iOS: 17.4.0 - 26.0.0",
    "iPadOS: 17.4.0 - 26.0.0",
    "macCatalyst: 17.4.0 - 26.0.0",
    "visionOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "Assignables",
  "identifier" : "/documentation/Assignables/AssignableDocument/Question/init(pageID:boxes:maxScore:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Assignables"
    ],
    "preciseIdentifier" : "s:11Assignables18AssignableDocumentV8QuestionV6pageID5boxes8maxScoreAeC4PageV0F0V_SayAC0D3BoxVGSdSgtcfc"
  },
  "title" : "init(pageID:boxes:maxScore:)"
}
-->

# init(pageID:boxes:maxScore:)

Initializes an instance of this object with the given
values.

```
init(pageID: AssignableDocument.Page.ID, boxes: [AssignableDocument.QuestionBox], maxScore: Double? = nil)
```

## Parameters

`pageID`

The page ID this question is for.

`boxes`

The question boxes associated with this
question. Treated as a set.

`maxScore`

An optional maximum score value
for this question.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)