
Swift Coding Basics for Kids
Quiz
•
Computers
•
5th Grade
•
Practice Problem
•
Hard
Cameron Busch
Used 1+ times
FREE Resource
Enhance your content in a minute
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)
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?
Similar Resources on Wayground
11 questions
Standby PSPM SC015
Quiz
•
1st - 5th Grade
8 questions
Kes-Kopyala-Yapıştır
Quiz
•
5th - 6th Grade
12 questions
Code.org (Introdução à programação)
Quiz
•
5th - 9th Grade
11 questions
FIRST STEP TO THE INTERNET
Quiz
•
5th Grade
12 questions
Quiz 5 - Networking and the Internet
Quiz
•
4th - 8th Grade
10 questions
Cuestionario 5 y 6
Quiz
•
5th - 6th Grade
10 questions
SAM Space Quiz 2
Quiz
•
1st - 5th Grade
10 questions
WORD - Hipervinculos, busqueda y multimedia. 3G
Quiz
•
1st - 5th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
