
Swift Programming Quiz
Authored by Emine CAN
Mathematics
9th Grade
Used 2+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
12 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which keyword is used to define a variable in Swift?
let
var
const
def
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which keyword is used to define a constant in Swift?
let
var
const
def
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which symbol is used to specify the data type of a variable in Swift?
#
:
@
$
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How is a function defined in Swift?
function myFunction() {}
func myFunction() {}
def myFunction() {}
fn myFunction() {}
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How is an if condition written in Swift?
if condition { }
if (condition) { }
if [condition] { }
if { condition }
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is an integer data type in Swift?
String
Int
Double
Bool
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is an text data type in Swift?
String
Int
Double
Bool
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?