Lesson 8 - Apple Swift Coding 1

Lesson 8 - Apple Swift Coding 1

9th - 12th Grade

7 Qs

quiz-placeholder

Similar activities

ICT Java programming workshop

ICT Java programming workshop

9th Grade

10 Qs

Паскаль. Основные команды

Паскаль. Основные команды

8th - 11th Grade

10 Qs

limbajul pascal

limbajul pascal

10th Grade

12 Qs

k12 bai4

k12 bai4

12th Grade

10 Qs

Coding helps to Understand

Coding helps to Understand

6th - 10th Grade

10 Qs

C# lesson10

C# lesson10

1st - 10th Grade

10 Qs

Kuis Webinar Cerdas Bertelekomunikasi OTP Fraud

Kuis Webinar Cerdas Bertelekomunikasi OTP Fraud

6th Grade - Professional Development

10 Qs

HLL and LLL

HLL and LLL

11th Grade

10 Qs

Lesson 8 - Apple Swift Coding 1

Lesson 8 - Apple Swift Coding 1

Assessment

Quiz

Computers

9th - 12th Grade

Medium

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...

7 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which line is declaring a constant?

name = "Johnny"

let name = "Johnny"

let "Johnny" = name

var name = "Johnny"

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which line is declaring a variable?

name = "Johnny"

let name = "Johnny"

let "Johnny" = name

var name = "Johnny"

3.

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

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the value of score after this code?

var score = 0

score +=1

score +=1

0

1

2

This code will not work

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

You're writing a program for scoring a word game. Each letter has a value between 1 and 10 and players earn points for making words. What should be stored as a constant in the program?

The scores per letter

The list of words the player has made

The player's score

Nothing

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the value of message after this code?

var message = " "

message + ="Hello"

message ++"World"

"Hello"

"World"

Hello World

"HelloWorld"

7.

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 =+