What are the three programming constructs? - Sequence; selection and iteration, What do we call it when if statement is inside another? - Nested, Provide an example of a count-controlled iteration - for loop, Provide an example of a condition-controlled iteration - while loop, When a=1; b=3 what does this Boolean expression equate to, True or False: ... a>b or b<a? - False, When a=3; b=3 What does this Boolean expression equate to, True or False:... a>=b and a==b? - True, Provide as many examples as the Boolean operators as you can and define each one - "==" is equal to; "!=" not equal; ">=" greater or equal to; "<=" less than or equal; ">" greater than; "<" less than;, What is the term for the data stored at an index of an array? - element, When are using arrays most helpful? - When there is multiple storage of the same data types, as each element can be access by using just the index, it means the data can be searched through just by incrementing the index., What is the pseudo code for opening and closing a file? - newfile=Open("myfile.txt","r") and newfile.close(), Provide an example of the pseudo-code needed for reading a line from an open file? - dataRead=newfile.readline(), Explain what is meant by the .endOfFile() command. - It is a special character that signifies the end of a file, it means that when a file is being read and you reach this character then the files data has all been read in. Python does not support this command, but you can write your own version like we have done in class., What is are the key advantages of using files over RAM during execution of a program? - Files can store the data indefinitely until it is overwritten or deleted, if it is kept in RAM it is lost when the computer is switched off., What does SQL stand for and what is it used for? - Structured Query Language, In what context is SQL used in programs? - SQL is a database language, it can be used to create , update and delete entries in databases. It can also be used to select certain entries based on specified criteria, this is called a query.,
0%
2.2 [Programming Techniques]
Teilen
Teilen
Teilen
von
Snicholson
KS4
Computing
Inhalt bearbeiten
Drucken
Einbetten
Mehr
Zuweisungen
Bestenliste
Flip-Fliesen
ist eine Vorlage mit offenem Ende. Es generiert keine Punkte für eine Bestenliste.
Anmelden erforderlich
Visueller Stil
Schriftarten
Abonnement erforderlich
Einstellungen
Vorlage ändern
Alle anzeigen
Weitere Formate werden angezeigt, wenn du die Aktivität spielst.
Offene Ergebnisse
Link kopieren
QR-Code
Löschen
Soll die automatisch gespeicherte Aktivität
wiederhergestellt werden?