Professional Documents
Culture Documents
Review 8 Sem 1 Exam
Review 8 Sem 1 Exam
Keyword
Extreme test data Invalid test data Trace table Test plan
Normal test data Array Snake case
Naming convention Camel Case Random value
1
1) Document that details the tests to be carried out when a program is complete and whether or not
they are successful. ______________________________
2) Data of the correct type that should be accepted by a program. _________________________
3) Acceptable input but at the ends of the possible input range. ___________________________
4) Data that should be rejected by a program. __________________________________
5) Data structure in a program that can store more than one item of data of the same data type under
a single identifier; data items can be changed. ________________________________
6) The way a variable or array is named in programming. ________________________
7) All lowercase and from the second word the first letter is capitalised. _____________________
8) All lowercase and spaces are replaced with underscores. _____________________________
9) Randomly generated number in a program that can be set within a range. _________________
10) Technique for predicting step by step what will happen as each line of an algorithm or program is
run and to identify errors. _______________________
Look at the keywords below and use them to fill the gaps in the sentences underneath.
2
1) A _______________ error is when the code has been added incorrectly and will stop the
program from running until it is fixed. This is an error that is located first, as the program
will not run.
2) ________________ data used in a test plan is a sensible input that the program should
accept.
3) A _______________ error is when the program starts correctly but an error is found as the
program code is run. This will be found as the program is tested using a range of test data
in a structured test plan. The program will stop running when the error is found and a
traceback error message will give information to find and fix it.
4) ________________ data used in a test plan is still an acceptable input but at the ends of
the possible input range.
5) A _______________ error is when the program will run but the output will not be as
expected. A trace table would help to find and fix this error as it may be linked with how a
conditional statement uses a comparison operator. The other way in which this type of
error may be found is by using invalid and extreme test data, as these would test the range
of inputs in the program.
6) __________________ data used in a test plan is an input that the program should not
accept.
Look at the Python program for a chatbot to comment on the size of a square. Complete the
trace table when the user enters the value 8 for the side.
3
Look at the Python program for a chatbot to identify how much money is left from a shopping
trip. Complete the trace table if the amount spent at the three shops was 126, 36 and 56.
4
A for loop can be used to do different things in a Python program. Create the following
programs in Python and describe what the for loop is doing in each example.
5
from microbit import *
highScores = [24, 56, 78, 32, 94, 12]
Colours=[“Red”,”Green”,”Blue”,”Gey”,”Brown”]
Position 0 1 2 3 4 5
Array item1 … … … … … …
Array item2
c. What data type is being used to store the items in the array?
Spreadsheet
6
Write the formula to find:
a. Total on E2 cell :
b. Average on F2 cell :
c. Status on F2 cell :
f. Total students :
Database
Table : Customers
7
a. How to select using SQL query to show customer only from UK.
(2 Marks)
b. How to select using SQL query to show customer who has ID more than 50.
(2 Marks)
8
a. What is the entity of the table above?
9
1) What is Big Data?
4) What is Entity?
Name1=["Jeovan","Darryl","Jadden","Satyana", "Corra"]
Name2=["Basketball","Volleyball","Swimming","Chessboard","Soccer"]
for i in range(4):
print(i+1,Name1[i], ":" ,Name2[i])
10
Draw the flowchart from this code
11