Lesson 9 - Apple Swift Coding 1

Lesson 9 - Apple Swift Coding 1

9th - 12th Grade

9 Qs

quiz-placeholder

Similar activities

Chapter 3 Exploring Linux Filesystems

Chapter 3 Exploring Linux Filesystems

11th Grade - University

10 Qs

 Unit 4 Advanced AP CSP

Unit 4 Advanced AP CSP

9th - 12th Grade

10 Qs

8525 AQA GCSE  3.1.1 Pseudo-code

8525 AQA GCSE 3.1.1 Pseudo-code

10th - 11th Grade

14 Qs

Programs and Variables in Code and Play

Programs and Variables in Code and Play

5th - 9th Grade

7 Qs

Parcial-Dibujo

Parcial-Dibujo

12th Grade

10 Qs

OOP 1 Undiksha

OOP 1 Undiksha

12th Grade - University

13 Qs

Empowerment Technologies Quiz 2

Empowerment Technologies Quiz 2

11th Grade

10 Qs

Lesson 9 - Apple Swift Coding 1

Lesson 9 - Apple Swift Coding 1

Assessment

Quiz

Computers

9th - 12th Grade

Easy

Used 5+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

9 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What type is foo in the code below? let foo = "Hello"

Let

String

"Hello"

Hello

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What type is foo in the code below? let foo = 42

Double

foo

42

Int

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What type is foo in the code below? let foo: Double = 42

Double

foo

42

Int

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What type is foo in the code below? var foo: SolarPhenomen

SolarPhenomenon

Interstellar

variable

Not possible to tell

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is one way Swift determines the type of a value in your code?

Type intrusion

Type allegiance

Type writing

Type inference

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How does Swift decide what type distance should be? let distance: Double = 4

Type inference

Type annotation

Typewriting

Type interference

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which line shows correct type annotation in Swift?

String: let name

let String: name

let name: String

let String

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?