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

Flashcards

14: Programming and Data Representation

HRYN red AS Computer Science A Level English 15 cards

Cards in this deck (15)

  1. 1Python Characteristicsevery statement on seperate line
    indentation
    lower case
    case sensitive
    object
    slicing
  2. 2python how say hello Dave your number is 1 with variables YourName, Numberpritn("Hello {0}. Your # is {1}.".format(YourName, Number))
  3. 3Rules of PrecedenceDefine the order of the calculations to be performed.
  4. 4How do case in pseudecodeCASE:
    CASE OF ___
    ___: ____
    __,__: ___
    __ TO ____: ____
    OTHERWISE ___
    ENDCASE
  5. 5What is an example of a post conditional loop What example of pre-condition looppost: repeat until
    pre: while ___ DO
  6. 6convert from python to pseudecode: len(s) S[-:L] ch.lower() ch.upper() s.upper() int(x)Length(s:STRING) RETURNS INTEGER
    LEFT(s:STRING, L: INTEGER) RETURNS STRING
    LCASE(ch: CHAR) RETURNS CHAR
    UCASE
    TO_UPPER
    TO_LOWER
    INT(x:REAL) RETURNS INTEGER
  7. 7Return ValueValue replacing function call used in teh expression
  8. 8ArgumentThe actual input expression or value with which the subroutine is being called.
  9. 9ParameterThe variable(s) used inside a subroutine which will take values passed into a subroutine at call time.
  10. 10Subroutine InterfaceThe parameters being passed between the subroutine and the calling program.
  11. 11Procedure Header / Function HeaderThe first line of a function or procedure def showing the identifier and parameter list.
  12. 12By ValueThe actual value is passed into the procedure.
  13. 13By ReferenceThe address of the variable is passed into the procedure.
  14. 14Give the pseudecode on how to write by value and by referencePROCEDURE ___ (BY VALUE ___: ___, ___:___)
    PROCEDURE ___ (BY REF ___: ___, ___:___)
    CALL ___ (__,__)
  15. 15Arrays: 2d python how create a board?board = [[0 for i in range (7)] for j in range(6)]

Information

Description
A Level AS Computer Science (Unit 2: Fundamental Problem-solving and Programming Skills) Flashcards on 14: Programming and Data Representation, created by HRYN red on 11/05/2017.
Created by
HRYN red
Views
22
Rating

Feedback

What is it about?

What do you think of the new look?

How do you like it?