Skip to content

notnavindu/GCE-A-L-ICT-Past-Paper-Python-Answers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GCE A/L ICT Past Paper Python Answers

Hits

2020

AL2020PythonChart

Assume that L is a list of positive integers, K is a positive integer and every element in L is less than M, which is a large integer.

Develop a Python program to implement the algorithm expressed by the flowchart.

2019

2018 Flowchart

Write a python code for the given flow chart

2018

2018 Flowchart

Write a python code for the given flow chart

2017

The consumtion of electricity at houses is charged based on the number of units consumed. The first 64 unit are charged at Rs. 5.00 per unit, and the rest at Rs. 10.00 per unit.

  1. Write a python program to input the house number, previous meter reading, post meter reading and calculate the bill amount
  2. Develop a function in Python to write HouseNumber, meter readings and the bill amount to a file named 'deb.txt'

2016

A canteen of a school sells 10 different types of foods. These food types are placed in a shelf. Students can select foods while walking alongside the shelf and keep them on a tray. These trays are available at the entrance of the canteen. A student, after selecting the food, should proceed to the cashier with the food tray for the payment.

You are asked to develop a Python program to calculate the payment due for a food tray. For this pupose, each food item is given a unique integer from 1 to 10.

Food type 1 2 3 4 5 6 7 8 9 10
Unit Price 10.00 12.00 15.00 10.00 25.00 45.00 50.00 25.00 10.00 12.00

2015

Your teacher has requested you to write a python program to record the marks obtained by students at the term test. Each student had sat for the same three papers and each mark was given as an integer value out of 100 marks. Each student is identified by a unique index number which is also an integer. You should record the marks of each student in a text file named 'marks.txt' in the following format.

_index_no_1,mark_11,mark_12,mark_13_

_index_no_2,mark_21,mark_22,mark_23_

Marks should be entered through the keyboard, one item at a time and the program should be terminated when -1 is entered as the index number

2014

Write a python program to print the factorial of a given positive integer n The factorial of a positive number n is given by: n x (n-1) x (n-2) .... 3 x 2 x 1

2013

You are required to write a Python program to find and display the maximum value of given 10 integers. The program should read integers one at a time.

About

Answers for GCE A/L ICT Python questions from 2013 to 2019

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages