Operators in Swift Programming

Quiz
•
Computers
•
10th Grade
•
Medium
Fahad Khan
Used 4+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the result of the Swift expression 8 - 3 * 2?
2
16
5
0
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
If x = 12 and y = 4, what is the value of x / 2 + y ?
6
8
10
12
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which operator is used to calculate the remainder when one number is divided by another?
-
/
*
%
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the result of the expression 6 * (4 + 2) in Swift?
18
36
12
24
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
If a = 7 and b = 3, what is the value of a % b + 1 ?
3
4
2
1
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In Swift, what does the != operator check for?
Greater than
Less than
Inequality
Assignment
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the result of the expression (10 < 5) && (3 > 1) in Swift?
True
False
Undefined
Error
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
Scratch Operators Quiz

Quiz
•
1st Grade - University
10 questions
Python Basics: Operators and Variables

Quiz
•
10th Grade
13 questions
Python Operators & Expressions

Quiz
•
8th - 11th Grade
10 questions
Basic Flow Control Quiz

Quiz
•
10th Grade
11 questions
Python IF ELSE

Quiz
•
10th Grade
18 questions
Unit 4 Variables, Conditionals & Functions CS20-21

Quiz
•
9th - 12th Grade
10 questions
String Methods

Quiz
•
9th - 12th Grade
10 questions
Unit 4 Advanced AP CSP

Quiz
•
9th - 12th Grade
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade