Infosys Certified iOS Swift App Developer
Practice with real exam-pattern questions for Infosys Certified iOS Swift App Developer. Each question includes a detailed explanation to help you understand the concept, not just memorise the answer. Try 10 questions free — no login required.
Full question bank for this exam + 1,357+ others. Cancel anytime.
Join Premium10 Infosys Certified iOS Swift App Developer practice questions with answers
Real Lex exam-pattern multiple-choice questions for the Infosys Certified iOS Swift App Developer certification. Each question includes the correct answer. The full question bank is available to Premium members.
- Question 1
When the below code finishes execution, how many strings will the names array contain ?
let names = [String]() names.append("Annie") names.append("John") names.append("Derik")- ✓0Correct
- BCode will compile but not run
- C3
- DCode will not compile
- Question 2
let names = ["Amy","Sam","Sandy"]
By using the names array, I would like to print as below: Select the correct code snippet for that
Hello, Amy! Hello, Sam! Hello, Sandy!
A. for i in 0...names.count { print("Hello , \(names[i]) !") } B. for i in 0..names.count { print("Hello , \(names[i]) !") } C. for i in 0..<names.count { print("Hello , \(names[i]) !") } D. for i in 0..<names.length { print("Hello , \(names[i]) !") }- ✓A onlyCorrect
- BB only
- CC only
- DD only
- Question 3
Which of the following statements is correct about Tuple?
- ✓A Tuple function can return multiple valuesCorrect
- BTuple is a collection of same data types
- CTuple is a collection of different data types
- DWe can write function inside it
- Question 4
When the below code finishes execution, what will be the value of "streets" ?
var streets = ["Acacia Road", "Buckfast Street", "Corn Street", "Ducal Place", "English Street"] streets[1] = "?" print(streets)
- ✓["Acacia Road", "?", "Buckfast Street", "Corn Street", "Ducal Place", "English Street"]Correct
- B["Acacia Road", "?", "Corn Street", "Ducal Place", "English Street"]
- C["?"]
- D["?", "Buckfast Street", "Corn Street", "Ducal Place", "English Street"]
- Question 5
Select the true statements from below: (Choose 3)
- ✓If user assign an array, a set, or a dictionary to a constant, that collection is immutable, and its size and its contents cannot be changed.Correct
- BIn Swift, user can declare and implement their own custom operators like +++, +-*
- CTo find the total count of characters in a string, str, we use str.length()
- DTo find the total capacity of an array, arr, we use arr.capacity()
- Question 6
What will be printed once the below code is executed ?
var arrayA:[String] = [] var arrayB = [String]() if (arrayA == arrayB) {print ("arrayA and arrayB are the same")} else {print ("arrayA and arrayB are different")}- ✓Compilation ErrorCorrect
- BRuntime Error
- CarrayA and arrayB are the same
- DarrayA and arrayB are the different
- Question 7
What will be the value of message variable when printed ?
var message = "Apple is my favorite fruit" //Line 1 message.replacingOccurrences(of: "Apple", with: "Mango") //Line2 print(message)
- ✓Error in Line 1 as datatype of message variable is not declaredCorrect
- BError in Line 2 as “replacingOccurrences” method is invalid
- CMango is my favorite fruit
- DApple is my favorite fruit
- Question 8
What output will be produced by the below code ?
let number = 9.0 print("\(number) squared is \(number * number), and its square root is \(sqrt(number))")- ✓"9 squared is 9 * 9, and its square root is sqrt(9)"Correct
- B"9 squared is 81 , and its square root is 3"
- C"9.0 squared is 81.0 ,and its square root is 3.0"
- DThis code will not compile
- Question 9
Below code snippet is an example of :
let certName:String? = "Swift" if let digitalTag = certName { print(digitalTag) }- ✓Force UnwrappingCorrect
- BOptional Binding
- COptional Chaining
- DImplicitly Unwrapped Optional
- Question 10
_________ enable you to create and pass around groupings of values and can return multiple values from a function as a single compound value.
- ✓TuplesCorrect
- BDictionary
- CArrays
- DAll of the above
More in Apple & Mobility
Infosys Certified Android Specialist
Infosys Certified Advanced Android Practitioner
Infosys Certified Flutter Developer
Pay once. Clear every cert this year.
One subscription, full Telegram channel access, every PDF posted during your membership.
- Full access to all 1,357+ certifications
- Monthly updated question banks
- Telegram private channel access
- Cancel anytime
- Everything in Monthly
- Save ₹2,100 vs monthly billing
- Priority answer key requests
- Best for increasing DQ score fast
- Everything in Quarterly
- Lifetime channel access — no renewals
- All future certifications included
- Priority response from admin team
Common questions, straight answers.
A monthly-updated Telegram channel where we post real exam-pattern question banks and detailed answer keys for 1,357+ Infosys Lex certifications. You join once, you get every PDF posted during your membership.
Right after payment on our Graphy page, you'll receive a private invite link to the Telegram channel. Access is instant — usually under 30 seconds.
We compile question banks from the actual Lex test pattern, sourced and verified by 180K+ community members who've recently cleared these exams. Match rate is consistently 85–95%.
Every single month. When Infosys rolls out new versions of certifications, we post updated dumps within 7–10 days. You'll see channel activity weekly.
Clearing certifications is one of the highest-weighted DQ factors. Members typically clear 3–5 certifications in their first 3 months, which moves DQ scores up by a full band.