Variables in Swift Playground Quiz

Variables in Swift Playground Quiz

9th Grade

10 Qs

quiz-placeholder

Similar activities

DTJSQuiz

DTJSQuiz

11th Grade

10 Qs

C#

C#

11th Grade

10 Qs

Quiz 2: Rust for beginner

Quiz 2: Rust for beginner

9th Grade

15 Qs

VidCode: What Do You Know?

VidCode: What Do You Know?

11th Grade

12 Qs

[Hall] Unit 8 JS Variables & Animation

[Hall] Unit 8 JS Variables & Animation

9th - 12th Grade

13 Qs

JAVASCRIPT SYNTAX

JAVASCRIPT SYNTAX

11th Grade

10 Qs

JavaScript Quiz

JavaScript Quiz

9th Grade

15 Qs

Ch_9 Introduction to ActionScript

Ch_9 Introduction to ActionScript

9th - 12th Grade

15 Qs

Variables in Swift Playground Quiz

Variables in Swift Playground Quiz

Assessment

Quiz

Computers

9th Grade

Medium

Created by

Yaseen Al-Zubaidy

Used 1+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a variable in Swift?

A value that can be changed

A value that is constant

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you declare a variable in Swift?

Using the keyword "let"

Using the keyword "var"

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the keyword used to declare a constant in Swift?

let

var

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the data type of the variable "age: Int" in Swift?

String

Integer

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the value of a variable "name" after the following code in Swift: "var name = "John""?

"John"

"Jane"

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In Swift, can you change the data type of a variable once it's declared?

Yes

No

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the symbol used for concatenating strings in Swift?

+

&

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?