Sovi.AI - AI Math Tutor

Scan to solve math questions

QUESTION IMAGE

11.which keyword is used to define a function in swift? a. def b. func …

Question

11.which keyword is used to define a function in swift?
a. def
b. func √
c. method
d. function
12.in objective - c, which symbol is used to send messages to objects?
a. 、x
b. ->
c. @
d.
13.which of the following is not a swift data type?
a. int
b. string
c. float
d. char √
14.which swift operator represents logical and?
a. &
b. && √
c. and
d. +

Explanation:

Brief Explanations
  • In Swift, the 'func' keyword defines a function.
  • In Objective - C, the '->' symbol is used to send messages to objects.
  • In Swift, 'Char' is not a built - in data type, while 'Int', 'String', and 'Float' are.
  • In Swift, the '&&' operator represents logical AND.

Answer:

  1. b. func
  2. b. ->
  3. d. Char
  4. b. &&