Operators in Swift Programming

Quiz
•
Computers
•
10th Grade
•
Medium
Fahad Khan
Used 5+ 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
Arduino Basics

Quiz
•
9th - 12th Grade
20 questions
Toán tử trong C ++

Quiz
•
10th - 12th Grade
19 questions
Program Development - Python: Operators

Quiz
•
9th - 10th Grade
15 questions
GCSE Computer Science Operators

Quiz
•
10th - 12th Grade
14 questions
Logical Operators

Quiz
•
9th - 12th Grade
10 questions
Chapter 03 Worksheet

Quiz
•
10th Grade
18 questions
Chapter - 6 Operators

Quiz
•
4th Grade - University
15 questions
Python Conditionals and If Statements

Quiz
•
8th Grade - University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
10 questions
Proper Keyboarding Techniques

Interactive video
•
6th - 10th Grade
10 questions
Understanding Computers: Hardware, Software, and Operating Systems

Interactive video
•
7th - 12th Grade
29 questions
AP CSP Unit 2 Review (Code.org)

Quiz
•
10th - 12th Grade