
Swift Programming Course Assessment
Specialty, Education, Other
Professional Development
Used 8+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
30 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following values would be best represented with a constant
Name
Age
Location
Score
2.
MULTIPLE SELECT QUESTION
30 sec • 1 pt
Which of the following would be best represented with a variable?
Name
Birthday
Age
Address
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which keyword is used to declare a constant?
const
let
var
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which keyword is used to declare a variable?
const
var
let
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Refers to the automatic detection of the data type of an expression in a programming language
Function
Variable
Type
Type Inference
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Using type inference, which of the following variables would be assgined a Double type?
var state = "Metro Manila"
let country = "Philippines"
let population = 1243456
let speedLimit = 75.0
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Will the code compile? Why?
let number : Double = 3
Yes, because the compiler will assign the value 3.0 to number
Yes, becuase 3 is a Double
No, because 3 is not a Double
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?