["Orange", "Apple"]
--
Correct
In swift, it is possible to return multiple values from a function?
True
--
Correct
Memory Management in Swift is done by
ARC
--
Correct
for value in 1...3 { print(value) } What will be the output of this code
snippet?

1 2 3
--
Correct
let name = "John" print (name) name = "Doe" print (name) What will be output of
this code?
Compilation Error
--
Correct
var name: String? print(name) What will be output of this code?
Nil
--
Correct
var array = String array[0] = ""Tom"" print (array) What would be the output of
this code?
None of the given options
--
Wrong
Variable is defined using
var
--
Correct
var name: String? let newName = name! print(newName) What will be output of this
code?
Runtime Error
--
Correct
var array = ["Tom"] var name = array[10] print (name) What would be the output
of this code?
Run time Error
--
Correct
print("Hello, World!", "Happy Learning ") What will be the output of this code?
Hello, World! Happy Learning
--
Correct
var name: String? name = "Tom" print(name) What will be output of this code?
Optional("Tom")
--
Wrong
var fruits = ["Apple", "Orange", "Apple"] print(fruits) What would be the output
of this code?
["Apple", "Orange", "Apple"]
--
Correct
It is possible to define function as a return value for a Swift function?
True
--
Correct
Which keyword is used to define a function?
func
--
Correct
(4, "dog") == (4, "dog") What will be the output of this statement, true or
false?
True
--
Correct
var array = String array[10] = "Tom" print (array) What would be the output of
this code?
Run time Error
--
Correct
for value in 1..<3 { print(value) } What will be output of this code snippet?
1 2
--
Correct
Swift is a multi-paradigm language.
True
--
Correct
var name = (1, "Tom") print (name.0) print (name.1) What will be output of this
code?
1 Tom
--
Correct

You've reached the end of your free preview.
Want to read both pages?
- Fall '19
- Run time, Compile time