Swift Cheat Sheet 2026
The 30 highest-yield Swift facts, distilled from real exam questions. Print it, save it as a PDF, or study it here β free, no sign-up.
60 questions
90 min time limit
72.00% to pass
- What is the best way to describe an algorithm? β A step-by-step series of operations
- Which SWIFT service allows banks to confirm whether a beneficiary account is active and matches the expected name before sending a payment? β Pre-validation
- What is the maximum length of a SWIFT BIC (Business Identifier Code)? β 11 characters
- Which approach best demonstrates professional competency in Swift practice? β Integrating continuing education, practical experience, and evidence-based decision making
- You're refactoring a legacy codebase where many functions return `-1` to signal errors. Which modern Swift pattern replaces this anti-pattern? β Returning `Int?` with nil for errors, or throwing a typed Error
- Which ISO 20022 message replaces the MT 202 financial institution credit transfer? β pacs.009
- A `Result` is returned from a fetch function. You need to map each post's title to uppercase on success. Which approach is most concise? β `result.map { posts in posts.map { $0.title.uppercased() } }`
- Under Swift's Know Your Customer (KYC) Registry, what is the primary purpose of the KYC Registry service? β To centralize and standardize correspondent banking due diligence documentation
- What is snapshot testing in Swift iOS development primarily used for? β Capturing and comparing UI renderings to detect visual regressions
- In Swift, what is a `protocol` with an `associatedtype` primarily used for? β Defining generic interfaces that work with placeholder types
- Which assertion in XCTest verifies that two values are NOT equal? β XCTAssertNotEqual
- Why is Swift good for game development? β B & D
- What is a Swift `protocol` with an associated type commonly used for? β Creating generic abstractions that work with multiple conforming types
- What does a SWIFT Business Continuity (BC) plan specifically need to address for messaging infrastructure? β Redundant SWIFT connectivity and failover procedures for service restoration
- Which organization serves as the Registration Authority for the ISO 20022 standard? β SWIFT
- What is SWIFT gpi (Global Payments Innovation) designed to improve? β Speed, transparency, and tracking of cross-border payments
- Which level of measurement allows for meaningful ratios (e.g., 'twice as much') and has a true zero point? β Ratio
- Which ISO 20022 messages replace MT 940, MT 941, and MT 942 for account balance and transaction reporting? β camt.052, camt.053, and camt.054
- A payment operations team notices an increase in returned SWIFT payments from a specific corridor. What is the first stakeholder communication step? β Notify senior management and the correspondent bank with supporting data
- In ISO 20022 pacs messages, what does the 'InstructedAmount' field represent? β The original amount instructed by the debtor before any charges or conversion
- What is the recommended way to test asynchronous Swift code using async/await in XCTest? β Mark the test function as async and use await directly
- In XCTest performance testing, what does 'measure {}' do? β Runs the block multiple times and records execution time metrics
- How should an Swift professional respond to a compliance violation? β Report it promptly, investigate the root cause, and implement corrective actions
- What exactly is coding? β Telling a βcomputer what to do.
- In Swift UI testing with XCTest, which class is used to represent and interact with the running application? β XCUIApplication
- You want SwiftUI's `ProfileView` to automatically re-render when `user.name` changes. `User` is a reference type shared across views. What is the correct setup? β Make `User` a class conforming to `ObservableObject` with `@Published var name`
- Which professional competency is most critical when implementing Swift ISO 20022 migration changes in a live production environment? β Thorough testing, change management protocols, and fallback planning
- Effect size in research is important because it indicates: β The practical magnitude of an observed difference or relationship
- Which service on SWIFTNet is used for store-and-forward messaging (such as MT messages)? β FIN (Financial Application)
- What is reflective practice in Swift professional development? β Systematically examining experiences to gain insight and improve future practice
Turn these facts into recall:
Was this helpful?