What is the output of the following code?
Swift
let age = 30
print("My age is \(age)")
Apple Academy Indonesia Quiz
Quiz
•
Information Technology (IT)
•
Professional Development
•
Medium
reyner subrata
Used 2+ times
FREE Resource
8 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What is the output of the following code?
Swift
let age = 30
print("My age is \(age)")
My age is age
My age is 30
My age is (age)
Error
2.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What is the purpose of the Optional type in Swift?
To represent a value that might be missing.
To store multiple values in a single variable.
To define a constant value.
To create a loop.
3.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Which keyword is used to define a function in Swift?
method
function
func
define
4.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What is the purpose of the guard statement in Swift?
To handle errors.
To create a loop.
To define a function.
To check for a condition and exit early if it's not met.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the name of the design pattern used to notify objects about changes in another object?
Singleton
Delegate
Observer
Factory
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Explain the concept of Grand Central Dispatch (GCD) and how it helps in iOS development.
GCD is a framework for managing concurrent operations by distributing them to different queues, which helps improve app responsiveness and performance.
GCD is a way to store data in a key-value format, making it easy to access and retrieve information.
GCD is a networking library that simplifies making API calls and handling network requests.
GCD is a UI framework that helps create complex animations and transitions.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Berapakah kode pos dari gedung apple developer academy?
15343
15345
13545
15435
8.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of these celebrities has NEVER appeared in an Apple commercial?
John Travolta
Justin Timberlake
Taylor Swift
Bill Gates
10 questions
Python Variables, Data Types, and User Input Quiz
Quiz
•
Professional Development
10 questions
Mastering CSS Concepts
Quiz
•
Professional Development
11 questions
Day 02 - HTML Introduction
Quiz
•
Professional Development
12 questions
PrIncipais Tags HTML e Inputs HTML
Quiz
•
Professional Development
10 questions
RENUKADEVI
Quiz
•
Professional Development
9 questions
Topic 4 Quiz ITP
Quiz
•
Professional Development
10 questions
ML 2
Quiz
•
Professional Development
10 questions
Ethical Hacking Kali Linux Part 3
Quiz
•
Professional Development
25 questions
Equations of Circles
Quiz
•
10th - 11th Grade
30 questions
Week 5 Memory Builder 1 (Multiplication and Division Facts)
Quiz
•
9th Grade
33 questions
Unit 3 Summative - Summer School: Immune System
Quiz
•
10th Grade
10 questions
Writing and Identifying Ratios Practice
Quiz
•
5th - 6th Grade
36 questions
Prime and Composite Numbers
Quiz
•
5th Grade
14 questions
Exterior and Interior angles of Polygons
Quiz
•
8th Grade
37 questions
Camp Re-cap Week 1 (no regression)
Quiz
•
9th - 12th Grade
46 questions
Biology Semester 1 Review
Quiz
•
10th Grade