Swift Review from Commands to Types

Swift Review from Commands to Types

7th - 8th Grade

20 Qs

quiz-placeholder

Similar activities

Guess That Games

Guess That Games

4th Grade - University

16 Qs

Iterative Statements in Python

Iterative Statements in Python

8th Grade

18 Qs

Y8 Python Revision

Y8 Python Revision

6th - 7th Grade

20 Qs

CSP CodeHS U8 8.2 & 8.2

CSP CodeHS U8 8.2 & 8.2

8th - 10th Grade

23 Qs

Class Policies and Procedures

Class Policies and Procedures

8th Grade

20 Qs

Loops in Python

Loops in Python

7th - 11th Grade

15 Qs

GCSE J277 - 2.2.1 - Programming Constructs

GCSE J277 - 2.2.1 - Programming Constructs

7th Grade

20 Qs

The Internet & Email

The Internet & Email

6th - 7th Grade

17 Qs

Swift Review from Commands to Types

Swift Review from Commands to Types

Assessment

Quiz

Computers

7th - 8th Grade

Medium

Created by

Melissa DeMull

Used 6+ times

FREE Resource

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

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?