Lesson 9 - Apple Swift Coding 1

Lesson 9 - Apple Swift Coding 1

9th - 12th Grade

9 Qs

quiz-placeholder

Similar activities

Ulangan harian 1 Algoritma dan Pemrograman

Ulangan harian 1 Algoritma dan Pemrograman

12th Grade - University

13 Qs

Tin 8/1

Tin 8/1

KG - University

10 Qs

فيجوال بيسك

فيجوال بيسك

10th Grade

11 Qs

loop while/do while

loop while/do while

7th - 12th Grade

10 Qs

Quiz - Quarter 4 (Oracle)

Quiz - Quarter 4 (Oracle)

12th Grade

10 Qs

HTML Fundamentals

HTML Fundamentals

10th - 12th Grade

14 Qs

MIL_GAME

MIL_GAME

12th 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?