App Development with Swift Review UPDATED ACTUAL Exam Questions and CORRECT Answers
0 keer bekeken 0 keer verkocht
Vak
App Development with Swift
Instelling
App Development With Swift
App Development with Swift Review
UPDATED ACTUAL Exam Questions and
CORRECT Answers
What are the three primary goals of swift? - CORRECT ANSWER- Safe, fast, expressive
What features of swift make it a "safe language" - CORRECT ANSWER- Type safety,
type inference, error handling, optionals.
...
App Development with Swift Review
UPDATED ACTUAL Exam Questions and
CORRECT Answers
What are the three primary goals of swift? - CORRECT ANSWER- ✔✔Safe, fast, expressive
What features of swift make it a "safe language" - CORRECT ANSWER- ✔✔Type safety,
type inference, error handling, optionals.
Which of the following is a great environment for prototyping Swift code? - CORRECT
ANSWER- ✔✔Playgrounds (not xcode, safari, or terminal)
What will the following code print to the console?
let helloWorld = "Hello, world!"
let helloPlayground = "Hello, playground!"
let goodbyePlayground= "Goodbye, playground!"
Which of the following values would be best represented with a constant?
a. Player name
b. Player level
c. Player score
d. Player location - CORRECT ANSWER- ✔✔Player name
Which of the following would be best represented with a variable?
a. name
b. birthday
c. age
d. home address - CORRECT ANSWER- ✔✔age
,Which keyword is used to declare a constant? - CORRECT ANSWER- ✔✔let
Which keyword is used to declare a variable? - CORRECT ANSWER- ✔✔var
Which of the following is NOT a reason for declaring most values as constants?
a. It is a best practice
b. The complier can make special optimizations for immutable values.
c. It is safer; developers can rely on a consistent value
d. Most values never change - CORRECT ANSWER- ✔✔Most values never change
Using type inference, which of the following variables would be assigned in a double type?
A. var state = "Rhode Island"
B. let country = "Belgium"
C. let population = 142000
D. let speedLimit = 75.0 - CORRECT ANSWER- ✔✔let speedLimit = 75.0
Will the following code snippet compile? Why?
let number: Double = 3
a. Yes, because the compiler will assign the value 3.0 to number
b. Yes, because 3 is a double
c. No, because 3 is not a double - CORRECT ANSWER- ✔✔Yes, because the compiler will
assign the value 3.0 to number
What is the value of myNumber at the end of the following code?
let x = 2
let y = 4
let z = 6
, let myNumber = x + y + z - CORRECT ANSWER- ✔✔12
What is the value of myNumber at the end of the following code?
let x = 2
let y = 4
let z = 6
let myNumber = x + y * z - CORRECT ANSWER- ✔✔26
What is the value of myNumber at the end of the following code?
let x = 2
let y = 4
let z = 6
let myNumber = x * y - z - CORRECT ANSWER- ✔✔2
What is the value of myNumber at the end of the following code?
let x = 2
let y = 4
let z = 6
let myNumber = (x + y) * z - CORRECT ANSWER- ✔✔36
Identify the issue with the code snippet below:
let x = 14
let y = 2.5
let result = x * y - CORRECT ANSWER- ✔✔The code with not compile. x is a Int and y is
an Double.
What is the operator called when it has an arithmetic symbol in front of the equals sign = ?
Voordelen van het kopen van samenvattingen bij Stuvia op een rij:
√ Verzekerd van kwaliteit door reviews
Stuvia-klanten hebben meer dan 700.000 samenvattingen beoordeeld. Zo weet je zeker dat je de beste documenten koopt!
Snel en makkelijk kopen
Je betaalt supersnel en eenmalig met iDeal, Bancontact of creditcard voor de samenvatting. Zonder lidmaatschap.
Focus op de essentie
Samenvattingen worden geschreven voor en door anderen. Daarom zijn de samenvattingen altijd betrouwbaar en actueel. Zo kom je snel tot de kern!
Veelgestelde vragen
Wat krijg ik als ik dit document koop?
Je krijgt een PDF, die direct beschikbaar is na je aankoop. Het gekochte document is altijd, overal en oneindig toegankelijk via je profiel.
Tevredenheidsgarantie: hoe werkt dat?
Onze tevredenheidsgarantie zorgt ervoor dat je altijd een studiedocument vindt dat goed bij je past. Je vult een formulier in en onze klantenservice regelt de rest.
Van wie koop ik deze samenvatting?
Stuvia is een marktplaats, je koop dit document dus niet van ons, maar van verkoper MGRADES. Stuvia faciliteert de betaling aan de verkoper.
Zit ik meteen vast aan een abonnement?
Nee, je koopt alleen deze samenvatting voor €9,47. Je zit daarna nergens aan vast.