GoConqr hat ein neues Design! Sag uns, wie es dir gefällt.

Karteikarten

1.2.3 Introduction to programming

Abbie Devaney Computing A level Englisch 12 Karten

Karten in diesem Stapel (12)

  1. 1What is the difference between a variable and constant?Variable can change while the programme is running, a constant cannot change until the programme has stopped
  2. 2Name all 5 data typesInteger
    Real/Floating point
    Character
    String
    Boolean
  3. 3Define all 5 data typesInteger - whole number
    Real - decimal number
    Character - any single letter or symbol
    String - 2 or more characters
    Boolean - only two outcomes (true/flase, yes/no, on/off)
  4. 4What does MOD do?Calculates the remainder from a division. EG. 20MOD6 gives 2
  5. 5What does DIV do?Counts the number of whole numbers in a division. EG. 20DIV6 gives 3
  6. 6What does XOR mean?In a comparison only ONE can be true
  7. 7What is the outcome of NOT(2==2)?False
  8. 8Arithmetic Operators (7)+ Add
    - Subtract
    * Multiplication
    / Division
    MOD Modulus
    DIV Quotient
    ^ Exponentiation
  9. 9Comparison Operators (6)== Equal to
    != Not equal to
    < Less than
    <= Less than or equal to
    > Greater than
    >= Greater than or equal to
  10. 10Logic Operators (4)AND - Both are true
    OR - At least one is true
    NOT - Flips the outcome
    XOR - Only one can be true
  11. 11What does (variable.length) do?Outputs the number of characters in a string. INCLUDES SPACES
  12. 12What does (variable.substring(4,2)) do?Counts along to the fourth character (starts at 0) and print the next two charcaters

Informationen

Beschreibung
A level Computing Karteikarten am 1.2.3 Introduction to programming, erstellt von Abbie Devaney am 12/09/2017.
Erstellt von
Abbie Devaney
Aufrufe
3
Bewertung

Feedback

Worum geht es?

Wie gefällt dir das neue Design?

Dein Eindruck