wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Robust Programming

Total questions: 13

Worksheet time: 28mins

Name
Class
Date
1.

What is maintainable code

select defence strategy used to ensure that code is maintainable. ​

a)

Pseudo code

b)

comments

c)

indents

d)

formatting

2.

Explain the importance of comments

4 lines
3.

Which of the following are validation methods select 3

a)

format

b)

pattern

c)

length

d)

range

4.

What is the most common method used by banks nowadays?

(a)  

5.

Explain what kind of authentication the images show, use examples to explain your answer

4 lines
6.

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?

4 lines
7.

List the advantages of Bubble sort write in full sentences and give examples

4 lines
8.

You have given some advantages of Bubble sort (click the image to see if they match)

Now select the disadvantages

a)

One the slowest algorithm that can be used to search a list

b)

slow with large lists

c)

fast searching algorithm

d)

Efficient search for large lists

9.

List in full sentences the advantages of Merge Sort

4 lines
10.

You have given some advantages of Merge sort (click the image to see if they matched what your wrote previously)

Now select the disadvantages

a)

It is more complicated than merge sort or insertion sort

b)

It is easy to code then merge sort

c)

It depends on how the code is written, it may use twice the memory of the size of the list

d)

it rearranges the dataset sequencially

11.

What does the term "sorting" mean?

4 lines
12.

What does the term "sorting" mean?


Click on the image to check your previous answer

4 lines
13.

Name the validation displayed in the image (click the image to enlarge)

4 lines