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

Flashcards

Programming Techniques 2.2

Grace Horton Computing GCSE English 36 cards

Programming Techniques 2.2

Cards in this deck (36)

  1. 1Which best describes a sequence in an algorithm?The order in which tasks are completed
  2. 2Which best describes iteration in an algorithm?Repeating a task over and over
  3. 3Which best describes selection in an algorithm?Making a decision
  4. 4How would you best describe Point 1?SequenceHow would you best describe Point 1?
  5. 5How would you best describe Point 2?SequenceHow would you best describe Point 2?
  6. 6How would you best describe Point 3?Selection and iterationHow would you best describe Point 3?
  7. 7How would you best describe Point 4?Selection and iterationHow would you best describe Point 4?
  8. 8How would you best describe Point 5?SequenceHow would you best describe Point 5?
  9. 9What is a variable?A value that may change
  10. 10What is a constant?A value that does not change
  11. 11What would best describe lengthInCentimeters in the following example? lengthInMilimeters=10 lengthInCentimeters = lengthInMilimeters/10Constant
  12. 12What would best describe lengthInCentimeters in the following example? lengthInMilimeters=10 lengthInCentimeters = input("Please enter the length in centimeters ")Variable
  13. 13Correct the code so that it can read the file: file=open("cars.csv","read")file=open("cars.csv","r")
  14. 14Correct the code so that it can overwrite a file: writefile = open("filename.csv","write")writefile = open("filename.csv","w")
  15. 15Correct the code so that it can write to a file, without overwriting the original file: writefile = open("filename.csv","write")writefile = open("filename.csv","a")
  16. 16What is a database?An organised storage of data
  17. 17What is a record in a database?Everything about one person or thing
  18. 18What is a field in a database?One piece of information e.g. First name
  19. 19What does SQL stand for?Structured Query Language
  20. 20What is SQL?A language used to manipulate or search a database
  21. 21What would the following code do? SELECT * FROM CustomersFind all records and fields from the Customers table in a database
  22. 22Write the 2nd line of code to show all customers above 20 years (age) only: SELECT * FROM Customerswhere age>20
  23. 23What is an array?Data structures that contain grouped elements of usually the same data type
  24. 24Name the datatype: number=int(3)integer
  25. 25Name the datatype (not float): number=float(3.2)real
  26. 26Name the datatype: colour="Blue"string
  27. 27Name the datatype: answer=TrueBoolean
  28. 28Why is an array useful when programming?It can be used to store multiple values to one variable
  29. 29Why did Heath decide to use an array to store the data?Reduces need for multiple variablesWhy did Heath decide to use an array to store the data?
  30. 30Identify a data type that could be used to store the number of minutes in this arrayInteger
  31. 31Write the code to output the number of minutes student 0 played computer games on Wednesdayprint(hoursPlayed[0,2])
  32. 32State the output if Heath runs the code: print (hoursPlayed[2,1])0
  33. 33State the output if Heath runs the code: print (hoursPlayed[3,1] + hoursPlayed[3,2])80
  34. 34Identify two variables used in the program (comma and space between the variables e.g. hello, world)radius, areaIdentify two variables used in the program (comma and space between the variables e.g. hello, world)
  35. 35What data type would 'the amount paid' be?RealWhat data type would 'the amount paid' be?
  36. 36What data type would 'The customer's card number' be?StringWhat data type would 'The customer's card number' be?

Information

Description
GCSE Computing Flashcards on Programming Techniques 2.2, created by Grace Horton on 16/03/2018.
Created by
Grace Horton
Views
0
Rating

Feedback

What is it about?

What do you think of the new look?

How do you like it?