iOS Swift Test

10 Questions | Attempts: 1445
Share

SettingsSettingsSettings
iOS Swift Test - Quiz

Swift is programming language developed by Apple Inc. It is used to develop iOS and OS apps. This quiz covers most of the prominent aspects of IOS Swift. Get started by clicking the start button. Good Luck!


Questions and Answers
  • 1. 

    The following are the keywords used in declarations except:

    • A.

      Class

    • B.

      Let

    • C.

      Public

    • D.

      Case

    Correct Answer
    D. Case
  • 2. 

    Which of the following keywords are used in statements? 

    • A.

      Import

    • B.

      Return

    • C.

      Operator

    • D.

      Static

    Correct Answer
    B. Return
  • 3. 

    The following are basic data types except:

    • A.

      Unit

    • B.

      Float

    • C.

      Double

    • D.

      String

    Correct Answer
    A. Unit
  • 4. 

    Which of the following data types is used to represent a 32-bit floating-point number and numbers with smaller decimal points?

    • A.

      Float

    • B.

      Int

    • C.

      Optional

    • D.

      Character

    Correct Answer
    A. Float
  • 5. 

    Which data type is an ordered collection of characters?

    • A.

      Float

    • B.

      Bool

    • C.

      Character

    • D.

      String

    Correct Answer
    D. String
  • 6. 

    The value "nil" represents:

    • A.

      True

    • B.

      No value

    • C.

      False

    • D.

      Infinity

    Correct Answer
    A. True
  • 7. 

    Which of these is not a type of operator? 

    • A.

      Assignment Operator

    • B.

      Arithmetic Operator

    • C.

      Semantic Operator

    • D.

      Comparison Operator

    Correct Answer
    C. Semantic Operator
  • 8. 

    Which of the following is a logical operator? 

    • A.

      ==

    • B.

      >

    • C.

    • D.

      ||

    Correct Answer
    D. ||
  • 9. 

    The following are assignment operators except 

    • A.

      ==

    • B.

      =

    • C.

      +=

    • D.

      -=

    Correct Answer
    A. ==
  • 10. 

    When you use one if or else if statement inside another if or else if statement(s) it is called a/an

    • A.

      If statement

    • B.

      Nested if statement

    • C.

      If...else statement

    • D.

      Switch statement

    Correct Answer
    B. Nested if statement

Quiz Review Timeline +

Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.

  • Current Version
  • Mar 14, 2018
    Quiz Edited by
    ProProfs Editorial Team
  • Mar 06, 2018
    Quiz Created by
    Stephanie Young
Back to Top Back to top
Advertisement
×

Wait!
Here's an interesting quiz for you.

We have other quizzes matching your interest.