
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
CONNECTED TO SOCIAL MEDIA
Presentation
•
12th Grade
11 questions
pp hicheel соёл
Presentation
•
12th Grade
13 questions
Înregistrări C++ (struct)
Presentation
•
11th Grade
12 questions
Evaluating The Night Circus
Presentation
•
12th Grade
10 questions
вспоминаем
Presentation
•
University
10 questions
Media Types
Presentation
•
12th Grade
12 questions
Chapter 8 Quiz
Presentation
•
University
11 questions
Lego Lesson
Presentation
•
12th Grade
Popular Resources on Wayground
6 questions
Secondary Safety Quiz
Presentation
•
9th - 12th Grade
10 questions
MyPath Diagnostic Overview
Presentation
•
6th - 8th Grade
20 questions
Lab Safety Quiz
Quiz
•
6th Grade
21 questions
Continents and Oceans
Quiz
•
6th Grade
20 questions
Adding and Subtracting Decimals
Quiz
•
5th Grade
20 questions
Parts of Speech
Quiz
•
5th Grade
16 questions
Subject & Predicate
Quiz
•
5th Grade
21 questions
Lab Safety
Quiz
•
10th Grade