
Swift Coding Basics for Kids

Quiz
•
Computers
•
5th Grade
•
Hard
Cameron Busch
Used 1+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What symbol is used to declare a variable in Swift?
define
let
set
var
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the keyword used to declare a constant in Swift?
const
final
static
let
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which control flow statement is used to make decisions in Swift?
switch statement
for loop
if statement
while loop
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the syntax for an if statement in Swift?
if { condition } // code to execute
if condition: // code to execute
if condition { // code to execute }
if (condition) // code to execute
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you write a switch statement in Swift?
while variable != value2 { // code block }
if variable == value1 { // code block }
for value in variable { // code block }
switch variable { case value1: // code block case value2: // code block default: // code block }
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of a function in Swift?
To define a variable in Swift.
The purpose of a function in Swift is to encapsulate reusable code that performs a specific task.
To create a new data type in Swift.
To manage memory allocation in Swift.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you call a function in Swift?
functionName: parameters
function(parameters)
callFunction(parameters)
functionName(parameters)
Create a free account and access millions of resources
Similar Resources on Wayground
14 questions
CodeMonkey 0-35 Review

Quiz
•
5th - 8th Grade
10 questions
8.3 Micropython unit tests

Quiz
•
5th Grade
14 questions
CSF4 - Assessment

Quiz
•
5th Grade
14 questions
Conditional Statement in Scratch

Quiz
•
5th Grade
8 questions
Computer Programming

Quiz
•
1st - 6th Grade
8 questions
iPad Quiz

Quiz
•
1st - 5th Grade
10 questions
Intro to Python

Quiz
•
KG - University
15 questions
Speed Typing Test with Coding Vocabulary

Quiz
•
3rd - 8th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
Appointment Passes Review

Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
Grammar Review

Quiz
•
6th - 9th Grade