Swift-Array Methods

Swift-Array Methods

10th Grade

10 Qs

quiz-placeholder

Similar activities

Python Strings

Python Strings

8th - 12th Grade

14 Qs

Python Input/Output

Python Input/Output

9th - 12th Grade

10 Qs

Pseudocode WHILE Loops

Pseudocode WHILE Loops

10th - 12th Grade

10 Qs

Processing Arrays

Processing Arrays

10th - 12th Grade

10 Qs

PYTHON IFS

PYTHON IFS

9th - 12th Grade

15 Qs

UAS Logika dan Algoritma Pemrograman

UAS Logika dan Algoritma Pemrograman

1st Grade - University

15 Qs

APCSA Inheritance

APCSA Inheritance

10th - 12th Grade

8 Qs

Arrays

Arrays

10th - 12th Grade

14 Qs

Swift-Array Methods

Swift-Array Methods

Assessment

Quiz

Computers

10th Grade

Medium

Created by

Faiza Salman

Used 4+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What will be the output of this swift code?

[1,0,2,3]

error

[0,1,2,3]

[1,2,3,0]

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

The output will be_________

3

4

Java

capacity

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What will be the output for this swift code?

-8

2

78

error

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

This swift method will give the ___________value

smallest

error

largest

46

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What will be the output for this Swift code?

[7,11,5,3,1]

[1,3,5,7,11]

[11,7,5,3,1]

error

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is an Array?

memory location to hold a single value

a collection of similar data items

a loop

a condition

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which Swift method will mix the order of all the array elements?

sort()

reverse()

max()

shuffle()

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?