
CAI 711 - Week 4 P1
Presentation
•
Computers
•
12th Grade
•
Practice Problem
•
Easy
Hudha Habeeb
Used 1+ times
FREE Resource
9 Slides • 6 Questions
1
CAI - 711
Recap- Milestone
Week 4- P1
Topic : Getting started with swift programming
Subtopic: Recap and Milestone
2
Learning Objectives
Recap topic 1 - Subtopics
Milestone Task1, task 2 and Task 3 to be completed
3
Multiple Choice
What feature of swift makes the programming language safe to use?
Type inference
type error
type safety
type data
4
Multiple Choice
How do you display "Hello World" in Swift?
print("Hello World")
echo("Hello World")
System.out.println("Hello World")
console.log("Hello World")
5
Multiple Choice
Which keyword is used to declare a constant in Swift?
let
var
constant
final
6
Declared with let, values are fixed after initialization.
Constants
Declared with var, values can be changed.
Variables
Variables vs. Constants
7
Example
var myVariable = 10
myVariable = 20 // Allowed
let myConstant = 10
myConstant = 20 // Error: Cannot assign to value: 'myConstant' is a 'let' constant
8
Arithmetic Operators
var sum = 10 + 5
var difference = 10 - 5
var product = 10 * 5
var quotient = 10 / 5
var remainder = 10 % 3
9
Compound Operators
var number = 10
number += 5 // Equivalent to number = number + 5
10
Boolean Operators
let isSunny = true
let isWeekend = false
if isSunny && isWeekend {
print("Perfect day for a picnic!")
}
11
Fill in the Blanks
12
Fill in the Blanks
13
Switch Syntax
let day = 3
switch day {
case 1:
print("Monday")
case 2:
print("Tuesday")
case 3:
print("Wednesday")
default:
print("Another day")
}
14
Complete and SUBMIT - MILESTONE TASK1, TASK 2, TASK 3
15
Poll
What is completed?
only task 1
Task 1 and Task 2 started
Task 1, Task 2 Completed.
Task 3 Started
All Completed
CAI - 711
Recap- Milestone
Week 4- P1
Topic : Getting started with swift programming
Subtopic: Recap and Milestone
Show answer
Auto Play
Slide 1 / 15
SLIDE
Similar Resources on Wayground
10 questions
TEMA AL & MACHINE LEARNING
Presentation
•
12th Grade
15 questions
ESP Pre-release task June 2024
Presentation
•
12th Grade
10 questions
Rastrgrafika
Presentation
•
11th - 12th Grade
10 questions
C++ User Input
Presentation
•
University
11 questions
Introduction to Media and Information Literacy
Presentation
•
12th Grade
7 questions
cycle 2
Presentation
•
11th - 12th Grade
11 questions
MATERI ADVERTISEMENT
Presentation
•
12th Grade
12 questions
Robot Questions
Presentation
•
11th Grade
Popular Resources on Wayground
16 questions
Grade 3 Simulation Assessment 2
Quiz
•
3rd Grade
19 questions
HCS Grade 5 Simulation Assessment_1 2526sy
Quiz
•
5th Grade
10 questions
Cinco de Mayo Trivia Questions
Interactive video
•
3rd - 5th Grade
17 questions
HCS Grade 4 Simulation Assessment_2 2526sy
Quiz
•
4th Grade
24 questions
HCS Grade 5 Simulation Assessment_2 2526sy
Quiz
•
5th Grade
13 questions
Cinco de mayo
Interactive video
•
6th - 8th Grade
20 questions
Math Review
Quiz
•
3rd Grade
30 questions
GVMS House Trivia 2026
Quiz
•
6th - 8th Grade