2.0 Computational thinking, algorithms and programming Flashcards
Symbol for AND :
Semicircle
Symbol for OR :
Inverted moon
Symbol for NOT :
Triangle + circle
What are the types of data checks?
Range
Type
Format
Length
Presence
Why should a program be maintainable?
Prevent + fix bugs
Add new features
Easier reading
How can a program be made more maintainable?
Naming conventions
Indentations
Comments
Subroutines
What is the difference between a procedure and function?
Function returns value
Procedure does not
What are the types of data inputs?
Invalid
Erroneous
Valid
Boundary
What are the two types of testing?
Terminal
Iterative
Advantages of high level languages :
English resemblance
Machine independence
Advantages of low level languages :
Less storage
Direct hardware control
No translation
What is casting?
Temporarily changing data types
What is a compilier?
Translates entire code
What is an interpreter?
Translates line by line