
Exploring Swift Basics
Quiz
•
Information Technology (IT)
•
10th Grade
•
Practice Problem
•
Medium
Jaesan Ryfle-Turi
Used 2+ times
FREE Resource
Enhance your content in a minute
19 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Grace wants to greet her classmates in Swift. Which code should she use to print a friendly message?
echo 'Hello, World!'
System.out.println('Hello, World!')
print('Hello World!')
print("Hello, World!")
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Elijah and Lily are building a cool Swift app together! They need to store the number of apples they collected. Which basic data type should they use for whole numbers in Swift?
String
Int
Float
Double
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
James and Ava are having a debate in class. James says the result of the Boolean expression true && false is true, while Ava disagrees. Who is correct? What is the result of the expression?
false
true
true || false
false && true
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Emma wants to make sure her favorite number never changes in her Swift code. Which of the following is the correct way for Emma to declare a constant?
define constantName = value
const constantName = value
let constantName = value
var constantName = value
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Arjun wants to create a list of his favorite numbers in Swift. Which of the following is the correct way for Arjun to create an array of integers?
let arrayName = [1, 2, 3]
let arrayName = Int[]
var arrayName = [Int]{}
let arrayName = new Array
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Henry, David, and Mason are learning Swift together. They come across the forEach function and wonder what it does. Can you help them figure it out?
The forEach function runs some code for each element in a collection.
The forEach function filters elements based on a condition.
The forEach function sorts elements in a collection.
The forEach function returns a new collection of elements.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Aiden is learning Swift and wants to show the value of his variable myVariable on the screen. Which line of code should Aiden use to print it out?
print(myVariable)
display(myVariable)
echo myVariable
log(myVariable)
Create a free account and access millions of resources
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
15 questions
Pemrograman Visual dan Scratch
Quiz
•
7th Grade - University
15 questions
SUMATIF FASE E (Berpikir Komputasional)
Quiz
•
10th Grade
20 questions
Analisis Data dengan Python
Quiz
•
10th Grade
22 questions
Internet and App script
Quiz
•
5th Grade - University
20 questions
Tugas Latihan Soal Informatika 9
Quiz
•
9th - 12th Grade
15 questions
LibreOffice Writer Styles Quiz
Quiz
•
10th Grade - University
20 questions
DPK 2.2
Quiz
•
10th Grade
14 questions
Excel Basics Quiz
Quiz
•
10th Grade - University
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
9 questions
FOREST Community of Caring
Lesson
•
1st - 5th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
14 questions
General Technology Use Quiz
Quiz
•
8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
19 questions
Thanksgiving Trivia
Quiz
•
6th Grade
Discover more resources for Information Technology (IT)
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
10 questions
Understanding Meiosis
Interactive video
•
6th - 10th Grade
10 questions
Exploring the Origins of Veterans Day
Interactive video
•
6th - 10th Grade
28 questions
Ser vs estar
Quiz
•
9th - 12th Grade
10 questions
Understanding Protein Synthesis
Interactive video
•
7th - 10th Grade
10 questions
Exploring Newton's Laws of Motion
Interactive video
•
6th - 10th Grade
10 questions
Exploring the Origins of Veterans Day
Interactive video
•
6th - 10th Grade
