Flashcards
pseudocode
Cards in this deck (23)
- 1Declare subroutinesDeclare CapitalLetterOfName
End Subroutine - 2Call a subroutinecall SubroutineNeeded
- 3Declare and use arraysmyarray[99]
- 4Literal Outputsoutput "Please enter a number"
- 5Variable namesmyvariable
- 6Define variable data typemyvariable is integer
- 7Data typesinteger, character, string, boolean, real
- 8Assignmentset counter = 0
- 9Selectionif... else... end if
- 10Indent at least a single space after if or do or repeat etc.if counter = 1
output counter
end if - 11Annotation{some annotation goes here}
- 12Comments/** Comments for program */
- 13Repetitionfor i... next i
repeat... until
do... loop
do... while
while... repeat - 14string handline:
- 15mid(string,x,y)mid(banana,2,4)
= nan - 16left(string,x)left(banana,3)
= bana - 17right(string,x)right(banana,3)
= nana - 18instring(x,stringa,stringb)instring(2,pineapple,ananas)
= pin ananas eapple - 19len(string)len(word)
= 4 - 20val(string)val(a)
= ascii for a - 21int(string)"2"
= 2 (become integer) - 22trim(string)trim(" banana ")
= banana (leading and trailing spaces removed) - 23char(number)0110
= 6
Information
- Description
- GCSE Computing Flashcards on pseudocode, created by Rebecca Hall on 26/04/2022.
- Created by
- Rebecca Hall
- Views
- 1
- Rating