Search Header Logo

Swift Review from Commands to Types

Authored by Melissa DeMull

Computers

7th - 8th Grade

Used 7+ times

Swift Review from Commands to Types
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The definition of a command: to give a specific _______.

action

answer

path to follow

cookie

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which 1 of the following is a correctly written command in Swift?

if onGem()

func turnRight()

var gems = 3

turnLeft()

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the name given to how we write commands in Swift?

camelHump

catStretch

catYawn

camelCase

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following uses correct camelCase?

wakeup()

GetDressed()

brushTeeth()

Eatbreakfast()

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the name for a group of commands that are put together?

Command Group

Function

Variable

Conditional

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Is this a correctly written function?


func turnRight() {

turnLeft()

turnLeft()

}

Yes

No

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What are these called: { }

Brackets

Fancy braces

Curly braces

Parentheses

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Microsoft

Continue with Microsoft

or continue with

Facebook

Facebook

Apple

Apple

Others

Others

Already have an account?