Courses / Computer Science XI (HSSC-I) – FBISE Complete SLO-Based Course
Unit 3 Review, SLO Checklist and Unit Test
Unit 3 – Programming Fundamentals · 45 min read · 15 MCQs to check yourself
Unit 3: Programming Fundamentals – review
This unit carries about 24% of the marks in the FBISE model paper (Table of Specifications).
SLO checklist – tick each one you can do
| SLO | Students should be able to… | Lesson(s) |
|---|---|---|
| CS-11-C-01 | Understand the importance of computer programming and applications | 3.1 |
| CS-11-C-02 | Write and execute simple programs in Python | 3.2, 3.3 |
| CS-11-C-03 | Draw shapes using Turtle Graphics in Python | 3.4 |
| CS-11-C-04 | Understand the need for libraries and use simple Python libraries | 3.5 |
| CS-11-C-05 | Translate simple algorithms that use sequence and repetition into Python (lists) | 3.6 |
| CS-11-C-06 | Decompose a problem into sub-problems and implement them with functions | 3.7 |
| CS-11-C-07 | Determine ways of debugging code in Python | 3.8 |
Unit test
CS XI Unit 3 Test – Programming Fundamentals – 12 MCQs online (15 min). Full paper:
| Section | Questions | Marks |
|---|---|---|
| A – MCQs (online here) | 12 × 1 | 12 |
| B – Short questions | 4 × 3 | 12 |
| C – Long questions | 1 × 6 | 6 |
| Total | 30 |
Practise these before the test
Long questions
- Explain operators in Python: arithmetic, comparison, logical and assignment, with examples and precedence.
- Write a Python program to count even and odd numbers in a list by using a while loop.
- Write a Python program that inputs 10 numbers into a list and then displays the largest number, the smallest number, the sum and the average, without using max(), min() or sum().
- Write a Python program to compute the area of a circle and a rectangle by using functions.
- What is a function? Explain the advantages of functions, types of functions, parameters, return values and scope of variables with examples.
- Write a Python turtle program that draws a compound shape (a house with a square base, triangular roof and a door). Explain the turtle and screen methods used.
- Explain different types of errors in Python and the methods used to debug a program, including testing functions, dry runs and breakpoints.
Short questions
- What is meant by the IPO model? Explain with a Python example.
- Write any three reasons why computer programming is important.
- Write any four features of Python that make it popular.
- Evaluate the following expression using the correct order of operations in Python: (2 + 3 ** 2 + 4 // 2 * 5 % 3 - 1) * 2
- What will be displayed after executing the following statements?
- Write a Python program that takes an alphabet as input and prints whether it is a vowel or a consonant.
- Correct the following Python code segments by removing errors: (i) num1 = 10; num2 = "5"; result = num1 + num2; print(result) (ii) fruits = ["Islamabad", "Karachi", "Lahore"]; print(fruits[3]) (iii) num1 = 10; num2 = 0; result = num1 / num2; print(result)
- Complete the following Python code that exits when x is "Physics": subjects = ["Computer", "English", "Physics"]; for x in ____: if x == ____: ____; print(x)
Model answers are listed under each lesson of this unit. The quiz below mixes questions from the whole unit.
This lesson ends with a quiz of 15 MCQs. Open the lesson on PrepOasis to take it and save your progress.
Previous: 3.8 Debugging: Errors, Testing Functions, Dry Runs and Breakpoints · Next: 4.1 Statistical Models: Correlation, Linear Regression, K-means and Smoothing
All lessons in Computer Science XI (HSSC-I) – FBISE Complete SLO-Based Course