Specification Programming 11 v3.0
Specification Programming 11 v3.0
This option consists of 12 tasks, including tasks with a brief and detailed answers.
In questions requiring a short answer, the student writes down the answer in the form
of a numerical value, a word or a short sentence.
In questions requiring a detailed answer, the trainee must show the entire sequence of actions
in solving tasks to obtain the maximum score. A task can contain several structural parts /
sub-questions.
Characteristics of tasks of summative assessment for term 1
Unit Learning objectives to be Levels of thinking Numb Task Type of Time to Score* Score for
checked skills er of numb task* perform section
tasks* er* (min)*
11.1.1.2 use the escape sequences Knowledge and
1 SAQ 4 1
with data output. comprehension
11.1.1.4 convert data types of Knowledge and
variables 2, 3 QEA 5 3
comprehension
11.1.1.8 use logical operations
AND, OR, NOT in selection SAQ
Application 4, 5 5 6
Unit 11.1A: structure QEA
Basic structures
of the Python 11.1.2.2 implement a loop 12 30
SAQ
programming algorithm according to a Application 6, 7 6 6
QEA
language flowchart
11.1.2.3 trace programme code SAQ
Application 8, 9 7 5
QEA
11.1.2.7 use nested loops when Higher order
solving problems thinking skills 10 QEA 5 3
11.4.3.2 solve applied problems Higher order SAQ
of various subject areas thinking skills 11, 12 8 6
QEA
Total: 12 40 30 30
A sample of tasks and mark scheme
Tasks of Summative assessment for 1 term subject "Computer Science"
1. Complete the sentence:
INPUT OUTPUT
3
1
[1]
5. Create a program that reads the name of a month from the user as a string. This program
should display the number of days in that month. Display “28 or 29 days” for February so
that leap years are addressed.
Output
[5]
6. Create a program that use a loop algorithm (for) according to a flowchart
Output
[3]
7. Create a program that use a loop algorithm (while) according to a flowchart
Output
[3]
8. Complete the sentence:
A trace table is _________________________________________________
______________________________________________________________ [1]
9. Fill in the trace table according to the program code:
number = int(input())
count = 0
while number < 69:
number = number * 2
count = count + 1
print(number)
print(count)
Output
[3]
11. For a given integer N, print all the squares of integer numbers where the square is less
than or equal to N, in ascending order.
[5]
12. What will the following code display?
total = 0
for count in range(1, 6):
total = total + count
print(total)
Output
[1]
Mark scheme
2 5 1
3 a = float(input ("Enter the length of the your room in 2 1 mark for correct
meter: ")) answer float
b = float(input ("Enter the width of the your room in 1 mark for correct
meter: ")) answer input
area = a * b
print("The area of the room is", area, "square meter")
4 NO 1
5 month = input("Enter the name of a month: 5 1 mark for correct
") use I/O operator
days = 31 1 mark for correct
if month == "April" or month == "June" or use or operator
month == "September" or month == 1 mark for correct
"November": use if operator
days = 30 1 mark for correct
elif month == "February": use elif operator
days = "28 or 29" 1 mark for correct
print(month, "has", days.) syntax
and predict step by step how the computer will run the
algorithm.
9 number count number < 69 OUTPUT 4 1 mark for each
2 0 true correct column
4 1 true
8 2 true
16 3 true
32 4 true
64 5 true
128 6 false
128
6
10 * 3 1 mark for correct
order
** 1 mark for correct
*** answer
****
*****
11 a= int(input()) 5 2 marks for correct
b = 1 use input/output
while b*b <=a: operators
print (b*b) 1 mark for correct
b = b + 1 use while operator
1 mark for correct
use variables
1 mark for correct
syntax
12 15 1
TOTAL 30
This option consists of 9 tasks, including tasks with a brief and detailed answers.
In questions requiring a short answer, the student writes down the answer in the form
of a numerical value, a word or a short sentence.
In questions requiring a detailed answer, the trainee must show the entire sequence of actions
in solving tasks to obtain the maximum score. A task can contain several structural parts /
sub-questions.
Characteristics of tasks of summative assessment for term 2
Unit Learning objectives to be Levels of thinking Numb Task Type of Time to Score* Score for
checked skills er of numb task* perform section
tasks* er* (min)*
11.2.1.1 create sets; Knowledge and
1 SAQ 3 1
comprehension
11.2.1.4 compare sets; Knowledge and
2 QEA 4 3
comprehension
11.2.1.3 apply operations to sets:
union, intersection, subtraction, SAQ
Application 3 5 3
symmetric difference; QEA
Line 4:
……………………………………………………………………………………………
Line 6:
……………………………………………………………………………………………
Line 8:
……………………………………………………………………………………………
[3]
4. Create an empty list animals.
……………………………………………………………………………………………
Add to list value “lion”
……………………………………………………………………………………………...
Output list
……………………………………………………………………………………………...
[3]
5. The list numbers consists of integers.
numbers = [5, 56, 15, 62, 6, 19, 25]
(a) Write code to delete number 62.
……………………………………………………………………………………………
[1]
(b) Write code to change the number 19 to 33.
……………………………………………………………………………………………
[1]
(c) Write code to output how many items in list.
……………………………………………………………………………………………
[1]
(d) Write code to output all items of list in row.
……………………………………………………………………………………………
……………………………………………………………………………………………
……………………………………………………………………………………………
[3]
6. Write a Python program to sum all the items in a list.
_________________________
_________________________
_________________________
_______________________
print("Sum of all elements in given list: ", total)
[4]
7. Give two reasons why tuples exist
_______________________________________________________________________
_______________________________________________________________________
[2]
8. Given a list of numbers, count how many element pairs have the same value (are
equal). Any two elements that are equal to each other should be counted exactly once.
[4]
9. Given two lists of numbers. Find all the numbers that occur in both the first and the
second list and print them in ascending order.
Even this task can be solved in one line of code.
[4]
Mark scheme
[max 1]
2
This option consists of 9 tasks, including tasks with a brief and detailed answers.
In questions requiring a short answer, the student writes down the answer in the form
of a numerical value, a word or a short sentence.
In questions requiring a detailed answer, the trainee must show the entire sequence of actions
in solving tasks to obtain the maximum score. A task can contain several structural parts /
sub-questions.
Characteristics of tasks of summative assessment for term 3
Unit Learning objectives to be Levels of thinking Numb er Task Type of Time to Score* Score for
checked skills of tasks* numb er* task* perform section
(min)*
11.2.5.1 create a dictionary; Knowledge and
SAQ
comprehension 2 1,2 4 2
QEA
Application
11.2.5.2 search for data in a Knowledge and
Unit 11.3A: dictionary for a given key; 1 3 QEA 2 2
comprehension
Data structures 16
(continuation) 11.2.3.3 apply functions and SAQ
methods of processing lists; Application 2 4,5 5 5
QEA
11.2.2.3 apply functions and SAQ
methods of processing strings; Application 2 6,7 8 7
QEA
11.3.1.1 write code in a
programming language using SAQ
Application 2 8,9 5 3
functions; QEA
Total: 12 40 30 30
1. Write two ways to create a dictionary:
……………………………………………………………………………………………
……………………………………………………………………………………………
[2]
2. Write a code to get value of the “graphic” key and print result:
dict1 = {
"brand": "Acer",
"processor": "intel",
"graphic": "Nvidia",
"storage": 512
}
[2]
3. Create a dictionary with three elements and keys. Access to the second element and
print it.
[3]
4. Given a code below. Write a code, which inserts “Turkestan” at the end of list and
inserts a “Kostanay” at the second position
list1 = ["Astana", "Aktau", "Kokshetau"]
________________________________________
________________________________________
print(list1)
[2]
5. Write code, which creates list with seven integers and sort list in ascending order with
built-in list function.
[3]
6. Write a program in which the user enters a string of three words and the program print
the result as an abbreviation.
INPUT OUTPUT
United Arab Emirates UAE
[4]
7. Write a function max() that returns the largest of two numbers.
def ________________________________:
[3]
9. Create a program that find the perimeter of a triangle through a lambda function
INPUT OUTPUT
9, 12, 14 35
[3]
10. Create a program that given four real numbers representing cartesian
coordinates: (x1,y1),(x2,y2)(x1,y1),(x2,y2). Write a function distance(x1, y1, x2,
y2) to compute the distance between the points (x1,y1) (x1,y1) and (x2,y2) (x2,y2).
Read four real numbers and print the resulting distance calculated by the function.
[4]
Mark scheme