Fichas
Unit 3- Programming
Fichas del conjunto (24)
- 1What is a procedural programme?A procedural programme is a sequence of commands that runs in order.
- 2What does a function do?A function tells a programme to do something.
- 3Give three examples of a function and state what they do.print()- displays some text in the console.
input()- gets some text from the keyboard.
round()- rounds a number to a given decimal place. - 4What is a method?A method is a function that is contained in a group of functions called an object.
- 5Give an example of a method and state what it does.Random.randint()- generates a whole random number.
- 6What is extra data called?An arguement
- 7What is a loop?A section of code that repeats under specified conditions.
- 8What is a variable?A name you assign to a value.
- 9Give an example of a variable.myName = "Bob"
(Where "myName" is the variable) - 10What is the condition?A statement that may be true or false.
- 11What is concatenation?Where strings are combined together into bigger strings using a + symbol
- 12What are whole numbers or integers stored using?Binary
- 13What are words or strings stored using?ASCII
- 14What are real numbers or floats stored using?Floating point binary.
- 15What is true or false (Boolean) stored using?1 and 0
- 16What is casting?The act of changing a variable's data type.
- 17How do you cast a variable?int()
str()
float() - 18What does == mean?Equal to/ is
- 19What does != mean?not equal to/ isn't
- 20What does < mean?Less than
- 21What does > mean?Greater than
- 22What does <= mean?Less than or equal to.
- 23What does >= mean?Greater than or equal to.
- 24—
Información
- Descripción
- Year 8 Computing Fichas sobre Unit 3- Programming, creado por Eve Bradley el 23/02/2022.
- Creado por
- Eve Bradley
- Visitas
- 4
- Valoración