Daehoon Lee
    • Create new note
    • Create a note from template
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights New
    • Engagement control
    • Make a copy
    • Transfer ownership
    • Delete this note
    • Save as template
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Note Insights Versions and GitHub Sync Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Engagement control Make a copy Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       Owned this note    Owned this note      
    Published Linked with GitHub
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    hoon ### 2. 보이스오버 기능을 통해 읽어줄 수 있는 accessibility의 property를 모두 고르세요 1. label 2. hint 3. value 4. type 정답: a, c, d ### 3. JSON의 값을 표현하는 문법적 요소로 알맞게 짝지어진 것을 모두 고르세요 1. Object: { } 2. Array: [ ] 3. String: “ ” 4. 없음: nil 정답: a, b, c ### 5. 다음 코드에는 문제가 있을까요? ```swift func 커리어캠프(completion: @escaping (() -> ())?) { completion?() } ``` 1. true 2. false 정답: 2 ![](https://hackmd.io/_uploads/Sk9dXgKZ6.png) ### 6. 다음에서 설명하는 클래스는? ```swift 소켓, 파일, 키보드 마우스 등의 입력 소스를 처리하는 이벤트 처리 객체로, 쓰레드가 일해야 할 때는 일하고, 일이 없으면 쉬도록 하는 목적으로 고안되었다. Timer의 이벤트 또한 처리한다. ``` 정답: RunLoop ### 7. 클래스, 구조체, 열거형에서 시퀀스의 멤버 요소에 접근하기 위한 바로가기 첨자 방식 정답: Subscripts / Subscript / 서브스크립트 -------- idinaloq ### 1. 클래스에 인스턴스가 하나만 있도록 하면서 이 인스턴스에 대한 전역 접근 지점을 제공하는 생성 디자인 패턴의 이름은? - 답: singleton ### 2. 행동 디자인 패턴의 한 종류로, 여러 객체에 자신이 관찰 중인 모든 이벤트에 대하여 알리는 구독 메커니즘을 정의할 수 있도록 하는 패턴의 이름은? - 답: observer ### 3. 기존에 선언되어있는 타입에 새로운 별칭(별명)을 사용할 수 있도록 하는 키워드는? - 답: typealias <!-- 4. 타입 캐스팅은 클래스의 인스턴스를 부모 클래스 타입으로 변경하는 것만 가능하다 (O/X) - 답: X - 클래스의 인스턴스를 부모클래스(업캐스팅), 자식클래스(다운캐스팅)로 변경하는 것이 둘 다 가능하다 --> ### 5. 구조체와 클래스 모두 멤버와이즈 이니셜라이저를 자동으로 제공한다(O/X) - 답: X - 구조체만 기본적으로 자동 제공한다. - 클래스는 명시적으로 초기화 메서드를 만들어야 한다. ### 6. 오토레이아웃에서 우선순위가 높을수록 (A)는 주어진 크기보다 작아질 수 있고, (B)는 주어진 크기보다 커질 수 있다. (A)와 (B)의 이름으로 알맞은 것은? - a) (A): Content hugging (B): Content resistance - b) (A): Content hugging (B): Compression resistance - c) (A): Compression hugging (B): Content resistance - d) (A): Compression hugging (B): Compression resistance - 답: (b) ### 7. TableViewCell에서 해당 셀이 재사용되기 전에 셀의 상태를 초기화 하거나, 데이터를 재설정할 수 있는 이 메서드의 이름은? - 답: prepareForReuse -------- Erick ## 퀴즈 ### 다른 함수를 전달인자로 받거나 함수실행의 결과를 함수로 반환할 수 있는 함수란? 정답: 고차함수 ### Core Data에서 Managed Object Context가 수행하는 역할을 고르세요! 1. 데이터를 저장소에 저장 2. 데이터 모델을 정의 3. 데이터를 관리하고 업데이트 4. 데이터를 백업 정답: 3 ### Core Data의 Store Type을 설정하면 데이터를 메모리에만 저장할 수 있다. 정답: o 해설: Store Type을 InMemory로 설정하면 메모리에만 저장할 수 있음 ### ios File System에서 외부로 부터 받아온 파일을 저장하는 경로는? 1. Document 2. Library 3. Caches 4. Tmp 정답: 1 ### NSCache는 메모리 캐싱과 디스크 캐싱을 모두 지원한다. 정답: x 해설: NSCache는 메모리 캐싱만 지원 ### 다음 메서드 중 재정의 시 super를 호출해야되는 메서드를 모두 고르시오 1. viewDidLoad 2. viewWillAppear 3. loadView 4. prepareForReuse 정답: 1, 2, 4 ### 다음 코드를 설명하는 것 중 맞는 것을 모두 고르시오 (Object1과 Object2의 내부구현은 모두 같습니다.) ```swift struct Object1<Item: SomeProtocol> { var item: Item // ... } struct Object2 { var item: SomeProtocol // ... } ``` 1. Object1의 인스턴스를 생성했을때 item에는 SomeProtocol을 채택한 모든 타입이 올 수 있다 2. Object2의 인스턴스를 생성했을때 item에는 SomeProtocol을 채택한 모든 타입이 올 수 있다 3. Object1이 Object2보다 성능상 이점이 있다 4. Object2가 Object1보다 성능상 이점이 있다 정답: 2, 3 해설: 월요일 활동학습에서 배우면 됩니당ㅎㅎ **프로토콜 타입** 프로토콜을 채택한 타입은 Existential Container에 저장됨 pwt(protocol witness table)를 이용해서 런타임에서 메서드를 찾아가는 과정이 생겨 다이나믹 메서드 디스패치 방식으로 성능이 떨어짐 **제네릭** 제네릭을 사용하면 구체화(specialization)을 거치며 구체적인 타입을 인자로 전달받아 Existential Container를 사용할 필요가 없음 즉 다이나믹 디스패치나 힙에 저장되는 상황이 발생하지 않음 하지만 구체화를 거치며 SomeProtocol을 채택한 타입 중 특정 타입만을 사용할 수 있음

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password

    or

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully