WorksheetsSix Weeks Test 5th Form
Total questions: 23
Worksheet time: 41mins
The symbol <> means
Less than and greater than
Less than or greater than
Equal to
Not equal to
The first step in solving a problem is:
Develop a solution
Reflect and review
Understand the problem
Investigate and research the problem
Developing a solution is where you:
Check if the solution worked.
Write the steps to solving the problem.
Understand the problem
Which of the following statement includes loops?
Sequencing
Repetition
Selection
Ordering
The LAST step in solving a program is to
Evaluate solutions
Test the solution
Develop the algorithm
Specify and design
Which level of a programming language is Machine Code?
Low
High
Which level of a programming language is Assembly Code?
Low
High
Which of the following is an example of a conditional construct
For – next
If –then-else
While –endwhile
For –endfor
Python is an example of a High Level programming language
True
False
Which of the following identifiers is a valid variable name?
Begin
iCount
Num-1
5Sum
The variable Custbalance stores the amount of money owed by customer. Custbalance is MOST likely of data type
Integer
Character
Real
Array
Yes
Define a flowchart?
An online news company has launched its updated article-commenting features where users can read, share, and shape stories in real-time. Users can download articles and videos on Android and iOS devices as well as on the web.
Read the scenario above in bold type then answer the following questions.
You wish to write a pseudocode algorithm calculate the funds earned by the company every time a user reads the articles. The pseudocode algorithm should accept the numbers of users and the calculate the funds by multiplying number of users by five dollars and output the total earned.
State one difference between constants and variables
Jason wants to design a computer program to calculate the total to be paid by his customers; the total number of customers is unknown. State the most appropriate looping construct to be used.
It is a good practice to create an algorithm before writing the programming code. Write a narrative algorithm to prompt for the home work score, classwork score and test score for each Stephanie then calculate and output the average score
1. Write an example of a value that can be stored in EACH of the following types of variables:
(i) Integer ………………………………………
(ii) Real ………………………………………...
(iii) Character …………………………………..
(iv) String ………………………………………
Developing an algorithm is the 4th step of solving a problem. Complete the other steps to solve a problem below in the correct order. (4 marks)
Step 1: ______________________________________________________
Step 2: ______________________________________________________
Step 3: ______________________________________________________
Step 4: Develop the algorithm for the solution.
Step 5: ______________________________________________________
A pseudocode is one way to represent an algorithm. Name one other way that an algorithm can be represented.
