Font size
WorksheetsRobust Programming
Total questions: 13
Worksheet time: 28mins
What is maintainable code
select defence strategy used to ensure that code is maintainable.
Pseudo code
comments
indents
formatting
Explain the importance of comments
Which of the following are validation methods select 3
format
pattern
length
range
What is the most common method used by banks nowadays?
(a)
Explain what kind of authentication the images show, use examples to explain your answer
Although Python forces indentation as part of the language, most languages do not and so it is important that the programmer implements this correctly themselves.
Why is it important to indent code?
List the advantages of Bubble sort write in full sentences and give examples
You have given some advantages of Bubble sort (click the image to see if they match)
Now select the disadvantages
One the slowest algorithm that can be used to search a list
slow with large lists
fast searching algorithm
Efficient search for large lists
List in full sentences the advantages of Merge Sort
You have given some advantages of Merge sort (click the image to see if they matched what your wrote previously)
Now select the disadvantages
It is more complicated than merge sort or insertion sort
It is easy to code then merge sort
It depends on how the code is written, it may use twice the memory of the size of the list
it rearranges the dataset sequencially
What does the term "sorting" mean?
What does the term "sorting" mean?
Click on the image to check your previous answer
Name the validation displayed in the image (click the image to enlarge)
