
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
13 questions
3° AP - Back-end
Presentation
•
12th Grade
11 questions
Python
Presentation
•
University
12 questions
Procedure 12
Presentation
•
12th Grade
11 questions
Discussion Text Pt.4 Conjunctions
Presentation
•
12th Grade
11 questions
12 Economics - Ch 10.1
Presentation
•
12th Grade
10 questions
ZARF
Presentation
•
12th Grade
10 questions
Checkology InfoZones introduction lesson
Presentation
•
12th Grade
12 questions
Ratios and Proportions
Presentation
•
11th Grade
Popular Resources on Wayground
10 questions
GPA Lesson
Presentation
•
9th - 12th Grade
7 questions
Albert Einstein
Quiz
•
3rd Grade
31 questions
Bridge A Review
Quiz
•
3rd Grade
6 questions
Blue Sue and Red Ruth
Quiz
•
3rd Grade
8 questions
(Day12 HW) Inverse Trig Ratios
Quiz
•
9th Grade
20 questions
Summer Geometry QUIZ (Week3)
Quiz
•
9th Grade
16 questions
Theme Practice
Quiz
•
7th Grade
20 questions
Taxes
Quiz
•
9th - 12th Grade