Variables and Types in Swift

Variables and Types in Swift

10th - 12th Grade

15 Qs

quiz-placeholder

Similar activities

hardware and software(g3)

hardware and software(g3)

2nd - 10th Grade

10 Qs

EMPTECH L4 Q3

EMPTECH L4 Q3

12th Grade

10 Qs

Microcontroller

Microcontroller

11th Grade - University

10 Qs

Input, output and storage de

Input, output and storage de

8th Grade - Professional Development

14 Qs

MODULE 9 PRE-TEST

MODULE 9 PRE-TEST

10th Grade

10 Qs

Kuis PPJ - Materi VLSM

Kuis PPJ - Materi VLSM

11th Grade

15 Qs

ZOOM QUIZ

ZOOM QUIZ

1st - 12th Grade

10 Qs

ความรู้เบื้องต้นการเขียนโปรแกรมภาษาซี

ความรู้เบื้องต้นการเขียนโปรแกรมภาษาซี

12th Grade

20 Qs

Variables and Types in Swift

Variables and Types in Swift

Assessment

Quiz

Computers

10th - 12th Grade

Practice Problem

Medium

Created by

R M

Used 24+ times

FREE Resource

AI

Enhance your content in a minute

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

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the keyword for declaring a variable?

variable

var

score

let

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the term coders used for stored information using containers

Variable

Type

Constant

Algorithm

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Why would you want to use a variable in your code?

You anticipate that you may want to change the value throughout the program.

Variables are the only way to store values.

You use variables when anticipate the values will not change throughout the program.

Variables can be used to declare values such as pi in mathematical equations.

4.

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

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How does Swift decide what type distance should be?

let distance: Double = 4

Type inference

Type annotation

Type writing

Type interference

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which line shows the correct type annotation in Swift?

String: let name

let String: name

let name: String

let String

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is NOT a type?

String

Variable

Double

Integer

Create a free account and access millions of resources

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?