Operators in Swift Programming
Quiz
•
Computers
•
10th Grade
•
Practice Problem
•
Medium
Fahad Khan
Used 5+ times
FREE Resource
Enhance your content in a minute
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
Access all questions and much more by creating a free account
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
Already have an account?
Similar Resources on Wayground
15 questions
Excel
Quiz
•
10th - 12th Grade
15 questions
tpr2_u0_initial test
Quiz
•
10th Grade
14 questions
Pre-test: On Online searching by Innovative Teaching Ideas)
Quiz
•
6th - 12th Grade
15 questions
Basics in Java
Quiz
•
9th - 12th Grade
10 questions
OHS in Computer Hardware Servicing
Quiz
•
7th - 10th Grade
15 questions
Pemrograman
Quiz
•
9th - 12th Grade
15 questions
Linux-2 Quiz 2 -- LAMP
Quiz
•
1st - 12th Grade
12 questions
Microsoft Office Word
Quiz
•
4th Grade - University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
