GoConqr has a new look! Let us know what you think.

Flashcards

Untitled

Ben Donachie English 9 cards

Cards in this deck (9)

  1. 1Create an array called sports and list 3 sports in the square bracketssports = ["rugby", "volleyball", "cricket"]
  2. 2What is the command word used to add an element to an arrayappend
  3. 3What is the command word used to remove an element from an arrayremove
  4. 4What must you remember to do when removing or adding elements to arraysyou must put a dot in between the variable name and the command word and you must put brackets and speech marks around the value
  5. 5What is the command word used to find the position of an elementindex
  6. 6What is the command word to select a random element from an arraychoice
  7. 7What must you import to allow you to select a random element from an arrayrandom library module
  8. 8How do you see if an element is in an array or notask the user to input an element and use an if statement to see if it is part of the array
  9. 9What is the command word to find out how many elements are in an arraylen

Information

Description
Flashcards on Untitled, created by Ben Donachie on 23/11/2020.
Created by
Ben Donachie
Views
0
Rating

Feedback

What is it about?

What do you think of the new look?

How do you like it?