Search Header Logo

Arrays & Strings in programming

Authored by SILJA DXB)

Computers

8th Grade

Used 14+ times

Arrays & Strings  in programming
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

14 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How are data items added to an array?

Items are appended to the next free index

In alphabetical order

Whichever way you want

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In names=["Mohamed","John","Arjun"] Index value 1 is?

Mohamed

John

Arjun

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

To declare an array, you must use............

brackets[ ]

parenthesis()

curly braces{ }

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The location of an item in an array is called............

element

index

value

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which code is used to add an item to a list?

variable.add()

variable.append()

append.variable()

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following are advantages of arrays?

Easier to store elements of similar data type

Elements stored in an array cannot be sorted

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which code is used to REMOVE an item to an array?

pop()

append()

sort()

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?