Operators in Swift Programming

Operators in Swift Programming

10th Grade

15 Qs

quiz-placeholder

Similar activities

Logical Operators

Logical Operators

9th Grade - University

13 Qs

Operators

Operators

9th - 12th Grade

14 Qs

Python IF ELSE

Python IF ELSE

10th Grade

11 Qs

ASK T2 - Kod Arahan (Python)

ASK T2 - Kod Arahan (Python)

7th Grade - University

20 Qs

JAVA FUNDAMENTALS

JAVA FUNDAMENTALS

9th - 12th Grade

20 Qs

Python Programming Quiz

Python Programming Quiz

10th Grade - University

20 Qs

Excel 2016 MOAC Lesson 04

Excel 2016 MOAC Lesson 04

8th - 12th Grade

10 Qs

 Unit 4 Advanced AP CSP

Unit 4 Advanced AP CSP

9th - 12th Grade

10 Qs

Operators in Swift Programming

Operators in Swift Programming

Assessment

Quiz

Computers

10th Grade

Medium

Created by

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

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?