Python Intermediate Exam October 2023 (CRBS) PDF

Summary

This is a Python intermediate exam paper from October 2023 for the CRBS board. It includes questions on programming concepts like string iteration, for loops, and data structures.

Full Transcript

Python Intermediate Exam October 2023 (CRBS) Question Paper Code: QPCB02 Total Mark : 100 Full Name : Total Time : 3.00 hours Unique ID : Section A...

Python Intermediate Exam October 2023 (CRBS) Question Paper Code: QPCB02 Total Mark : 100 Full Name : Total Time : 3.00 hours Unique ID : Section A Marks: 15 x 2 = 30 1. Create a program that iterates through a list of strings. Use the `continue` statement to skip any strings that contain the letter 'a'. 2. Create a program that prints the numbers from 1 to 10 using a `for` loop. Use the `pass` statement to do nothing for numbers 3 and 7. Section B Marks: 30 3. You are asked to develop a program for a restaurant, where the user should be able to enter the price of all items and the result should be the total amount after reducing the 25% percentage of the amount. Section C Marks: 40 4. Build a directory for a given piece of information about N people where every person's name has first and last name, age, and sex. (Take all these values including number of people N, name, sex, and age as user input). Sort their ages in ascending order and print their names accordingly. So, the name of the youngest person should be printed first. If there are two people of the same age, then you print them in the order of their input. 1 Question Paper Code: QPCB02 2

Use Quizgecko on...
Browser
Browser