wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Swift Playgrounds Quiz

Total questions: 10

Worksheet time: 3mins

Name
Class
Date
1.

Swift is a ...........?

a)

Function

b)

Language

c)

Programme

d)

Application

2.

What is this “()” called?

a)

Python

b)

Parentheses

c)

Incomplete circle

d)

Symbol

3.

In Swift code, print is a?

a)

Reason

b)

Function

c)

Loop

d)

Command

4.

Coding is case-sensitive.

a)

True

b)

False

5.

Which of the following is an example of camel casing?

a)

MoveForward()

b)

Moveforward()

c)

moveForward ( )

d)

moveForward ()

6.

The command turnRight() is made up of three turnLeft() commands. turnRight() is an example of a ..................

a)

function

b)

loop

c)

bug

d)

language

7.

Which of the following shows a correct function?

a)

func turnAround() {

turnLeft()

turnLeft()

}

b)

func turnAround() {

turnLeft()

turnLeft()

turnLeft()

turnLeft()

}

c)

func turnAround() {

turnAround()

turnAround()

turnAround()

turnAround()

}

d)

func turnAround() {

turnAround()

turnAround()

}

8.

A computing programme is the same as computer programming

a)

True

b)

False

9.

A Javascript platform uses Python code.

a)

True

b)

False

10.

A loop is used to ..............?

a)

Repeat a sequence of tasks

b)

Combine existing commands to create a new behaviour