0% found this document useful (0 votes)
105 views

Specification Programming 11 v3.0

Uploaded by

dibatullin0811
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
105 views

Specification Programming 11 v3.0

Uploaded by

dibatullin0811
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 21

SPECIFICATION OF SUMMATIVE ASSESSMENT FOR TERM 1

Review of the summative assessment term 1

Duration of the summative assessment - 40 minutes


Total marks – 30

Types of the questions:


SAQ – Short-answer questions;
QEA – Questions of the expanded answer.

The structure of the summative assessment

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:

The \n in Python is________________________________________________________


_____________________________________________________________________ [1]

2. Define the output of the program code


a = 5.67
print (int(a))
Output ________________________________________________________[1]
3. Fill in the gap
a = __________(______("Enter the length of the your room in
meter: "))
b = ___________(______("Enter the width of the your room in
meter: "))
area = a * b
print("The area of the room is", area, "square meter")
______________________________________________________________
______________________________________________________________ [2]

4. Define the output of the program code


if a > 0 and not (b > 0):
print('YES')
else:
print('NO')

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)

number count number < 69 OUTPUT


[4]
10. What will the following code display?
Asterix = 5
for x in range(Asterix):
for y in range(x + 1):
print('*', end='')
print()

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

№ Answer Marks Additional


Information
1 \n is new line character in Python. It used to indicate the 1

end of a line of text.

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

6 for number in range(1, 11): 3 1 mark for correct


square = number**2 use input/output
print(number, '\t', square) operators
1 mark for correct
use loop operator
(for)
1 mark for correct
use variable
7 a = 1 3 1 mark for correct
b = 0 use input/output
while b<=18: operators
a=a*3 1 mark for correct
b=b+2 use loop operator
print(a) (while)
1 mark for correct
use variable
8 A trace table is a technique used to test an algorithm 1

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

SPECIFICATION OF SUMMATIVE ASSESSMENT FOR TERM 2


Review of the summative assessment term 2
Duration of the summative assessment - 40 minutes
Total marks – 30

Types of the questions:


SAQ – Short-answer questions;
QEA – Questions of the expanded answer.

The structure of the summative assessment

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

Unit 11.2А: 11.2.3.1 create a list; SAQ


Application 9 4 3 3 30
Data structures QEA
11.2.3.3 apply functions and SAQ
methods of processing lists; Application 5 10 6
QEA
11.2.3.6 determine the difference Higher order
between different data structures; thinking skills 6, 7 QEA 7 6
11.4.3.2 solve applied problems Higher order SAQ
of various subject areas. thinking skills 8, 9 8 8
QEA
Total: 9 40 30 30
1. Create a set called "My_Friends". Fill in the set with the names of your friends.
___________________________________________________________
print(My_Friends)
[1]
2. Specify the correspondence between set operation and Python code. variables mySet1
and mySet2 are sets.
mySet1 & mySet2 set difference
mySet1 | mySet2 set symmetric
difference
mySet1 - mySet2 set intersection
mySet1 ^ mySet2 set union
[3]
3. Write output result.

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

№ Answer Marks Comments


1 My_Friends={‘Ayana’, ‘Alizhan’, ‘Serik’} 1 1 mark for
create set

[max 1]
2

3 Line 4: {20, 10, 300, 30} 1


Line 6: {10, 20} 1
Line 8: {30} 1
[max 3]
4 animals = set() . 1
animals.add(“lion”) 1
print(animals) 1
[max 3]
5a numbers.remove(62) 1
5b numbers[19] = 33 1
5c print(len(numbers)) 1
5d for elem in numbers: 1 mark for loop
print(elem, end=’ ‘) 3 1 mark for
output
1 mark for
output in a space
6 total = 0 1 mark for a
list1 = [11, 5, 17, 18, 23] correctly filled
for x in range(0, len(list1)): [max 4] line
total = total + list1[x]
print("Sum of all elements in given list: ", total)
7 • Processing a tuple is faster than processing a list, so Accept any
tuples are good choices when you are processing lots of reasonable
data and that data will not be modified.
• Tuples are safe. Because you are not allowed to change
the contents of a
tuple, you can store data in one and rest assured that it will [max 2]
not be modified
(accidentally or otherwise) by any code in your program.
• There are certain operations in Python that require the
use of a tuple.
8 1 mark for a
a = [int(i) for i in input().split()]
correctly filled
cnt = 0
line
for i in range(len(a)):
for j in range(i + 1, len(a)):
if (a[i] == a[j]):
[max 4]
cnt += 1
print(cnt)
9 [max 4]
a=[]
for i in set(input().split()) & set(input().split()):
a.append(i)
a.sort()
for i in a:
Total 30
SPECIFICATION OF SUMMATIVE ASSESSMENT FOR TERM 3
Review of the summative assessment term 3

Duration of the summative assessment - 40 minutes


Total marks – 30

Types of the questions:


SAQ – Short-answer questions;
QEA – Questions of the expanded answer.

The structure of the summative assessment

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

Unit 11.3B: 11.3.2.1 write code in a


programming language using SAQ 14
Functions Application 1 10 3 3
lambda functions; QEA

11.4.3.2 solve applied problems Higher order


of various subject areas; thinking skills 2 11, 12 QEA 13 8

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 ________________________________:

a, b = [int(n) for n in input().split()]


print(max(a, b))
[4]

8. Write a Python program to create a lambda function that multiplies 9 to a given


number passed in as an argument, also create a lambda function that subtracts
argument 3, print the result.
n=int(input("number:"))

[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

№ Answer Marks Additional Information


1 d = dict() 2 1 mark for each correctly
d = {} answer
2 x = dict1.get("graphic") 2 1 mark for correct getting
print(x) или value of key
print(dict1.get("graphic")) 1 mark for correctly printing
3 dict1 = { 3 Create a dictionary
1: 'LG', Create keys
2: 'Sony', Access to the element of
3: 'Xiaomi' dictionary
}
print(dict1[2])
4 list1.append("orange") 2 1 mark for each line of code
list1.insert(1, "pineapple")
5 list1 =[3, 15, 8, 25, 31, 11, 45] 3 1 mark for creating list with
list1.sort () three integers
print (list1) 1 mark for applying sort
method
1 mark for printing result
6 a=str(input("Enter string:")) 4 1 mark for each line of code
a = a.split()
b = a[0][0]+a[1][0]+a[2][0]
print (b)
7 def max(x1, x2): 4 1 mark for name of function
if x1 > x2: 1 mark for two arguments
return x1 1 mark for if statement
return x2 1 mark for return
8 a = lambda x : x * 9 3 1 mark for each line of code
b = lambda x : x – 3
print(a(n),b(n))
9 P = lambda a, b, c: a + b + c 3 1 marks for correct use
print(P(9, 12, 14)) function lambda
1 mark for correct use
variables
1 mark for correct syntax
10 import math 4 1 marks for correct use
def distance(x1, y1, x2, y2): function
x = abs(x1 - x2) 1 mark for correct use math
y = abs(y1 - y2) module
return math.sqrt(x * x + y * y) 1 mark for correct use
a = float(input()) variables
b = float(input()) 1 mark for correct syntax
c = float(input())
d = float(input())
print(distance(a,b,c,d))
TOTAL 30

You might also like