Swift Coding Basics for Kids

Swift Coding Basics for Kids

5th Grade

10 Qs

quiz-placeholder

Similar activities

coding

coding

KG - Professional Development

15 Qs

SCRATCH QUIZ

SCRATCH QUIZ

5th Grade

10 Qs

Intro to Scratch 2

Intro to Scratch 2

KG - University

12 Qs

code.org variables

code.org variables

3rd - 6th Grade

15 Qs

Introduction to Computer Science

Introduction to Computer Science

1st - 9th Grade

10 Qs

Scratch Quiz ADVANCED

Scratch Quiz ADVANCED

5th - 8th Grade

11 Qs

Code.org: Express Course -> Lesson 1 and 2

Code.org: Express Course -> Lesson 1 and 2

5th - 7th Grade

13 Qs

Review multiple choice Quiz

Review multiple choice Quiz

KG - Professional Development

10 Qs

Swift Coding Basics for Kids

Swift Coding Basics for Kids

Assessment

Quiz

Computers

5th Grade

Hard

Created by

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

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?