Flashcards
Computer Science 1.2.3
Cards in this deck (17)
- 1What would 20MOD7 output?6 as MOD returns the remainder
- 2What is an algorithm?A set of rules or a sequence of steps specifying how to solve a problem
- 3What is pseudocode?Pseudocode is the in between code of English and programming language; for example, c#
- 4Can a constant change during the running of a program?No, a constant will never change during the running of the program. However, it can change whilst the program is not running; I.e. Tax
- 5Name the 5 basic data typesInteger
Real/float
Character
String
Boolean - 6Identify the symbols for the 4 basic operators+ add
* multiply
- subtract
/ division - 7What does MOD mean?MOD means the modulus and will return the remainder part of a division. For example, 14MOD4 would output 2
- 8What is the Quotient?The quotient is the whole part of the division and can be represented as 'DIV'
- 9What symbol do you use to raise something to the power and/ or exponent^
- 10What comparison is this? !=Not equal to
- 11What comparison is this? >=Greater than or equal to
- 12Name all 4 logical operatorsAND
OR
NOT
XOR - 13What does the 'AND' comparison mean?Both must be true
- 14What does the 'OR' comparison entail?At least one is true
- 15What does the 'XOR' comparison do?Only one comparison must be true
- 16How do you return the length of a string?.length
Note that a space is a character - 17How do you return a certain part of a string?.substring( starting position, num of characters)
Note that the starting position is zero on all strings
Information
- Description
- A level Computing Flashcards on Computer Science 1.2.3, created by James Yeung on 13/09/2017.
- Created by
- James Yeung
- Views
- 2
- Rating