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]
共用
共用
共用
由
Snicholson
KS4
Computing
編輯內容
列印
嵌入
更多
作業
排行榜
翻轉卡片
是一個開放式範本。它不會為排行榜生成分數。
需要登錄
視覺風格
字體
需要訂閱
選項
切換範本
顯示所有
播放活動時將顯示更多格式。
打開結果
複製連結
QR 代碼
刪除
恢復自動保存:
?