wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Swift Playground

Total questions: 12

Worksheet time: 8mins

Name
Class
Date
1.
what are bugs
a)
application interface
b)
errors while coding 
c)
fixing the errors
d)
the order of actions 
2.
if the code is not running as inteded? what could be cause of  the problem?
a)
Bugs
b)
interface 
c)
sequence
d)
code
3.
what is Sequence ?
a)
specific  actions for the computer to perform
b)
Is the order in which the commands are given 
c)
is the repeated actions 
d)
is the algorithmic thinking skills 
4.
which command is used to turn the switch on?
a)
toggle()
b)
activateSwitch()
c)
toggleSwitch()
d)
onSwitch()
5.
What is swift playground?
a)
A tool Used to write a pseudo code for any program 
b)
Advanced tool to create applications 
c)
powerful programming language created by Apple
d)
is a algorithmic designer tools 
6.
what is debugging?
a)
errors in codes
b)
creating a correct sequence of commands 
c)
finding and fixing errors
7.

Commands have no spaces between words and always end with:

a)

colon

b)

parentheses

c)

spaces

d)

semicolons

8.

Which is the correct code to have Byte move forward?

a)

moveForward()

b)

MoveForward ( )

c)

moveFor ( )

d)

moveForward ( )

9.

Which of the following is the correct code for Byte to collect a Gem?

a)

collectGem ( )

b)

CollectGem ()

c)

collectGem

d)

Collect Gem ( )

10.

What best describes an algorithm?

a)

A step-by-step series of operations

b)

Only calculations that use advanced mathematics

c)

The computer equivalent of rhythm

d)

The same thing as an identifier

11.

While defining a function we use the keyword:

a)

Func

b)

FUNC

c)

func

d)

funC

12.

In given for loop what is the value of 1 known as:

for i in 1...5{ }

a)

No value

b)

Starting value

c)

Ending value

d)

All above