Professional Documents
Culture Documents
University of Engineering & Technology, Peshawar Department of Industrial Engineering
University of Engineering & Technology, Peshawar Department of Industrial Engineering
Write your name and registration number in the first page of MS word file. Only upload the MS
word file in google classroom.
The program should be written in Python syntax. The mistakes of comma, colon, inverted comma
will also be considered and marks will be deducted.
The paper should be submitted within time. Late submission is not acceptable. If there is any
problem in uploading the paper in classroom, send it to abdurrehman@uetpeshawar.edu.pk
Q1: Write a program which ask your subject name and check if the name is “intro to
computing” then it will ask you to solve the paper. (25)
Q2: Consider this list (25)
Students=[‘ahmad’ , ‘ayaz’ , ‘nasir’ , ‘ali’]
Write a program which
1. Display 2nd and 3rd names in output
2. Replace the “ayaz’ with ‘shakir’
3. Add ‘faheem’ and ‘khawar’ name after ‘nasir’
4. Check if ‘ahmad’ is in the list then program should display ‘ahmad has passed the
subject’
Q3: Write a program which ask to enter the marks (out of 100) of following subjects
1) Math 2) Physics 3) Chemistry 4) Urdu 5) English
After entering the marks, the program should display the grades of students. (A+ grade for
greater than 80% marks, A grade fro greater than 70% marks and B grade for greater than
60% marks) (30)
Q4: Write a program which ask to enter 3 integers. Add 1st and 3rd number and multiply 2nd
and 3rd number. (20)