T3_PC6.1 & PC6.2

T3_PC6.1 & PC6.2

9th Grade

10 Qs

quiz-placeholder

Similar activities

T3Quiz#2A09[GEN]

T3Quiz#2A09[GEN]

9th Grade

10 Qs

Moringa JavaScript Arrays

Moringa JavaScript Arrays

5th Grade - Professional Development

10 Qs

Crash Course Computer Science #14 - Data Structures

Crash Course Computer Science #14 - Data Structures

9th - 12th Grade

15 Qs

PTLW Final Exam Review Part 3

PTLW Final Exam Review Part 3

9th - 12th Grade

10 Qs

Pandas Quiz

Pandas Quiz

9th Grade

8 Qs

JRDL - JS Arrays and Objects

JRDL - JS Arrays and Objects

6th Grade - Professional Development

12 Qs

T3Quiz#1A09[GEN]

T3Quiz#1A09[GEN]

9th Grade

6 Qs

C++ Arrays

C++ Arrays

8th - 12th Grade

12 Qs

T3_PC6.1 & PC6.2

T3_PC6.1 & PC6.2

Assessment

Quiz

Computers

9th Grade

Medium

Created by

Shukria Arshe

Used 28+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

PC6.1.-What is an array in Swift?

A collection of random data

A collection of similar data types in the same structure

A collection of data in no specific order

A collection of different data types in the same structure

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

PC6.1-How are elements in an array accessed?

Using a label

Using a specific order of index

Using a unified index

Using a specific order of values

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

PC6.1-Which of the following statements is true about arrays in Swift?

A. Arrays can hold elements of different data types.

B. Elements in an array are accessed using unique labels.

C. Arrays require elements to be of the same data type.

D. B and C are true

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

PC6.2-What are indices in arrays?

A type of data structure

A method for accessing arrays

An indicator used to locate and allow access to a particular element within an array

A way to sort arrays

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

PC6.2-How are indices represented in Swift?

As strings

As integers

As booleans

As floating point numbers

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

PC6.2-What is the index of the second element in the Marks array?

Marks = [100, 93, 85, 70]

0

1

2

3

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

PC6.2: What will be the output of this Swift code?

[1,0,2,3]

error

[0,1,2,3]

[1,2,3,0]

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?