
Variables in Swift Playground Quiz
Authored by Yaseen Al-Zubaidy
Computers
9th Grade
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a variable in Swift?
A value that can be changed
A value that is constant
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you declare a variable in Swift?
Using the keyword "let"
Using the keyword "var"
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the keyword used to declare a constant in Swift?
let
var
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the data type of the variable "age: Int" in Swift?
String
Integer
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the value of a variable "name" after the following code in Swift: "var name = "John""?
"John"
"Jane"
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In Swift, can you change the data type of a variable once it's declared?
Yes
No
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the symbol used for concatenating strings in Swift?
+
&
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?