Search Header Logo

Apple Swift Coding I - Lesson 7 - 10

Computers

9th - 12th Grade

Used 18+ times

Apple Swift Coding I - Lesson 7 - 10
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

23 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which line is declaring a variable?

name = "Johnny"

let name = "Johnny"

let "Johnny" = name

var name = "Johnny"

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What best describes an algorithm?

A step by step series of operations

Only calculations that use advance mathematics

The computer equivalent of rhythm

The same thing as an identifier

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is API?

A safety check to make sure programs work

A rating given to experienced programmers

A tool for writing programs

The set of functions you can use with a particular programming area

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is wrong with this code?

let score = 15

score +=5

Nothing

The scores are wrong

Score is a constant and cannot be changed

+=should be =+

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the value of score after this code:

Var score = 2

score = score + 1

2

3

1

This code will not work

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which line is declaring a constant?

name = "Johnny"

let name = "Johnny"

let "Johnny" = name

var name = "Johnny"

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What type is foo in the code below:

var foo: SolarPhenomenon

Interstellar

Not possible to tell

SolarPhenomenon

Variable

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

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?