Professional Documents
Culture Documents
11 Grade Programming1
11 Grade Programming1
Teacher:
SUBJECT: Programming
Grade 11
Term I
Summative Assessment
Total: 30 marks
Student Instructions:
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 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
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
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