Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 8

Name

Teacher:

SUBJECT: Programming

Grade 11
Term I
Summative Assessment
Total: 30 marks

Student Instructions:

1. You have 40 minutes to answer this assessment under examination


conditions (no talking, no copying or asking for help from the teacher or
other students).

2. If you need more space for any answer, use the pages provided at the back of
this booklet and clearly number the question.

3. For all numerical answers, full working of solutions should be shown and the
answer should be rounded to the correct number of significant figures and
given with an SI unit.

For all ‘describe’ or ‘explain’ questions, the answer should be in complete


sentences with all logic fully explained.

For compare and contrast both items in question should be fully explained
Characteristic of tasks for summative assessment for the 1 term

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 comprehension 2, 3 QEA 5 3

11.1.1.8 use logical operations


Unit 11.1A: AND, OR, NOT in selection Application 4, 5 SAQ 5 4
Basic structures QEA
structure 12 30
of the Python
programming 11.1.2.2 implement a loop
language SAQ
algorithm according to a Application 6, 7 6 5
QEA
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 5
11.4.3.2 solve applied problems Higher order SAQ
of various subject areas thinking skills 11, 12 8 7
QEA
Total: 12 40 30 30

2
Tasks for the Summative Assessment for the 1 term.
1. The program code throws an error. Suggest a solution to the problem
print('Hi, I'm from Kyzylorda')
……………………………………………………………………………………………………
……………………………………………………………………………………………………
……………………………………………………………………………………………………
……………………………………………………………………………………………………
……………………………………………………………………………………………………
[1]
2. State the name of this type of conversion:
a=5
print(type(a)) ?
……………………………………………………………………………………………………
……………………………………………………………………………………………………
……………………………………………………………………………………………………
[1]
3. Get integer user input on a single line:
……………………………………………………………………………………………………
……………………………………………………………………………………………………
……………………………………………………………………………………………………
[2]
4. The code snippet to find the maximum among the three numbers given below. Fill the
missed lines of code. If there are equal numbers among the numbers, display the message
“Error”.

1. x=int(input('x='))
2. __________________
3. z=int(input('z='))
4. __________________
5. print("error")
6. __________________
7. print("x")
8. ___________________
9. print("y")
10. else:
11. print("z")
[4]

3
5. Analyze the flowchart and complete the program code.

SP=0;SN=0
______________________
______________________
______________________
SP=SP+chislo
else:
_____________________
_____________________
print(SP)
print(SN)
[5]
6. Fill in the trace table below according to given program code:
x =5;i=0;sum=0 x i sum
while i < x: 5 0 0
i+= 1
sum+=i
else:
print(sum)

[5]

4
7. Write a program code to find the factorial of a specified number by a user.
n=int(input(“n=”))
f=1
___________________________
___________________________
print(f)
[2]
8. You are given two integers A and B. Print all numbers from A to B in increasing order, if A <B, or
in decreasing order, if false.
a=int(input())
b=int(input())
___________________________
for i in range(a,b+1):
print(i)
else:
_____________________
print(i)
[2]
9a. Сreate all possible kinds of drinks using nested loops
menu = ["lemonade", "juice", "cocktail"]
fruits = ["apple", "banana", "cherry"]
_______________________________
________________________
print(x, y)
[2]
9b. Create all kinds of drinks except banana cocktail using nested loops
menu = ["lemonade", "juice", "cocktail"]
fruits = ["apple", "banana", "cherry"]
_________________
________________
______________
________________
print(x, y)
[3]

5
10. The bank has a deposit of 5,000 tenge. 5 percent is added every year. How much money will
accumulate in 5 years. Write the programming code.
a=5000
____________
_____________
_____________
print(a)
[3]

6
Mark scheme

№ Answer Marks Comments


1 Escape sequences allow the user to access certain functionalities 1 1 mark for
that are not available otherwise. Format specifiers are used for correct answers
working on various data types.
[max 1]
2 Implicit Type Conversion 1 1 mark for
correct answers
3 x=int(input(“x=”) 1 1 mark for
1 converting to an
[max 2] integer type
1 mark for
keyboard input
4 x=int(input('x=')) 4 1 mark for a
y=int(input('y=')) correctly filled
z=int(input('z=')) line
if x==y or x==z or y==z:
print("error")
elif x>y and x>z:
print("x")
elif y>x and y>z:
print("y")
else:
print("z")
5 SP=0;SN=0 5 1 mark for a
chislo=int(input('Next number:')) correctly filled
while chislo != 0: line
if chislo > 0:
SP=SP+chislo
else:
SN=SN+chislo
chislo=int(input('Next number:'))

print(SP)
print(SN)
6 x i sum [max 5] For each correct
row - 1 mark
5 0 0
1 1
2 3
3 6
4 10
5 15
15
7 n=int(input()) 1 mark for a
f=1 correctly filled
for i in range(1,1+n): [max 2] line
f*=i
print(f)
8 a=int(input()) 1 mark for a
b=int(input()) correctly filled
7
if a < b: line
for i in range(a,b+1):
print(i)
else: [max 2]
for i in range(a,b-1,-1):
print(i)
9a menu = ["lemonade", "juice", "cocktail"] 1 mark for a
fruits = ["apple", "banana", "cherry"] correctly filled
for x in fruits: line
for y in menu:
print(x, y)

[max 2]
9b menu = ["lemonade", "juice", "cocktail"] [max 3] 1 point for each
fruits = ["apple", "banana", "cherry"] correctly filled
for x in fruits: line and 1 point
for y in menu: for the logical
if x=='banana' and y=='cocktail': function used
continue
print(x, y)
10 a=5000 [max 3] 1 mark for a
percentage = 0.05 correctly filled
for x in range(0,5): line
a += a * percentage
print(a)
Total 30

You might also like