SSC Examination 2027 — Model Test
| Subject code: 107 | Set: A | Time: 90 min | Full marks: 50 |
- Do not write or mark anything on the question paper.
- Answer the MCQ part on the separate OMR sheet by completely filling one circle with a black ball-point pen; a filled circle cannot be changed.
- Write your name, roll, subject code and set code in the boxes and fill the circles.
- The number on the right of each question shows its marks.
- A simple scientific calculator may be used where needed.
Problem Solving through Programming
| Full marks: 50 | Time: 90 minutes | Date: ____________ |
| Name: ________________ | Roll: ________ | Class/Section: ________ |
- Each MCQ carries 1 mark; choose one correct answer.
- Short questions carry 2 marks; answer any 5.
- Creative questions carry 10 marks; answer any 2.
Section A: MCQ — Marks 20
1. Which process involves identifying a problem, considering possible solutions, evaluating them and implementing the best one?
| a) Problem-solving | b) Data storage |
| c) File formatting | d) Machine coding |
2. Why are programming languages used to communicate instructions to a computer?
| a) Computers directly understand Bengali and English | b) They allow instructions to be converted into machine code |
| c) They increase the size of computer memory | d) They replace all electronic devices |
3. Which statements are correct? i. Machine code consists of 0 and 1. ii. A translator converts programming instructions into machine code. iii. A computer directly understands ordinary human languages such as English.
| a) i and ii | b) i and iii |
| c) ii and iii | d) i, ii and iii |
4. What does a compiler do when all instructions in a program are correct?
| a) Translates them one by one and stops after the first line | b) Translates all the instructions into machine code at once |
| c) Changes machine code into English | d) Deletes the instructions |
5. How does an interpreter translate a program?
| a) It translates every instruction sequentially, one by one | b) It translates only the final instruction |
| c) It translates all instructions at once before checking errors | d) It converts machine code into a programming language |
6. Which statements correctly describe compiler and interpreter? i. A compiler translates the whole set of correct instructions at once. ii. An interpreter translates instructions one by one. iii. An interpreter continues translating after encountering an error.
| a) i and ii | b) i and iii |
| c) ii and iii | d) i, ii and iii |
7. Which programming language is described as beginner-friendly, with simple syntax and wide use in web development, data science and automation?
| a) Python | b) Latin |
| c) Machine code | d) HTML only |
8. Shared information: Rafi downloads Python from python.org, installs it, and then installs Thonny to write and run Python programs. Which software is used to write and run the Python code in this situation?
| a) Thonny | b) A compiler only |
| c) A web browser only | d) A calculator |
9. Shared information: Rafi downloads Python from python.org, installs it, and then installs Thonny to write and run Python programs. After writing a program in Thonny, which button is used to execute it?
| a) Save | b) Run |
| c) Close | d) Install Now |
10. Which Python function is used to display text or another object on the screen?
| a) input() | b) type() |
| c) print() | d) range() |
11. What is the output of the following Python code? age = 25 print(age)
| a) age | b) 25 |
| c) age = 25 | d) An error because age must be a string |
12. Which statements about Python variable names are correct? i. A variable name may begin with a letter or underscore. ii. A variable name may contain a space between two words. iii. Python treats uppercase and lowercase letters as different.
| a) i and ii | b) i and iii |
| c) ii and iii | d) i, ii and iii |
13. Which one is a valid Python variable name?
| a) 9abo | b) $variable |
| c) My_Variable | d) National ID |
14. Which data type is used to store whole numbers in Python?
| a) float | b) str |
| c) bool | d) int |
15. Which data type can store only True or False?
| a) bool | b) int |
| c) float | d) str |
16. What is the value of y after executing y = int(2.8)?
| a) 2.8 | b) 2 |
| c) 2.0 | d) 28 |
17. Which function can be used to determine the data type of a variable?
| a) type() | b) str() |
| c) input() | d) round() |
18. Which statements about an if-elif-else structure are correct? i. if checks a condition. ii. elif can be used to check another condition. iii. else is used when none of the preceding conditions is true.
| a) i and ii | b) i and iii |
| c) ii and iii | d) i, ii and iii |
19. Shared information: A Python program checks whether a year is a leap year using the rule: a year divisible by 400, or divisible by 4 but not by 100, is a leap year. What will the program display for 2012?
| a) 2012 is a leap year. | b) 2012 is not a leap year. |
| c) 2012 is a consonant. | d) An input error must occur |
20. Shared information: A Python program checks whether a year is a leap year using the rule: a year divisible by 400, or divisible by 4 but not by 100, is a leap year. What will the program display for 1990?
| a) 1990 is a leap year. | b) 1990 is not a leap year. |
| c) 1990 is positive only. | d) The program prints 400 |
Section B: Short questions (any 5) — Marks 10
1. What is problem-solving? Mention one important step of the problem-solving process. [2]
2. What is a programming language, and why is it needed to communicate with a computer? [2]
3. What is an interpreter? How does it translate a program? [2]
4. Which function is used to display text on the screen in Python? Write an example. [2]
5. What is a variable in Python? Give one valid variable name and explain why it is valid. [2]
6. What is type casting? Name two Python casting functions and state their uses. [2]
Section C: Creative questions (any 2) — Marks 20
1. Read the stimulus and answer the questions:
In a secondary school computer lab in Rangpur, Mina writes instructions in Python to display a notice for the school science fair. Her teacher explains that the computer cannot directly understand English or Python instructions. A translator converts the instructions into binary code made up of 0 and 1. The teacher also says that one type of translator converts all correct instructions together, while another translates instructions one by one and stops when it finds an error.
| a) | What is machine code? | 1 |
| b) | Why is a translator needed between a programming language and a computer? | 2 |
| c) | Distinguish between a compiler and an interpreter on the basis of how they translate instructions. | 3 |
| d) | Mina is a beginner and wants to learn Python before learning another programming language. Judge whether this is a suitable choice, giving reasons from the chapter. | 4 |
2. Read the stimulus and answer the questions:
At a school in Barishal, a student records information about a cultural-program participant using the following Python code: name = "Nila"; age = int(input("Enter age: ")); height = float("1.60"); present = True; print(name); print(age). The user enters 15. Later, the student writes age = 16 and prints age again. Another student tries to use 9class, My Name, and print as variable names.
| a) | Which Python function is used to display information on the screen? | 1 |
| b) | Why is int() used with the age input in the program? | 2 |
| c) | State the data type of name, age, height and present after the program runs. | 3 |
| d) | Evaluate the variable names 9class, My Name and print, and write a suitable correction for each where necessary. | 4 |
3. Read the stimulus and answer the questions:
A farmer in Mymensingh checks ten crop-bed numbers from 1 to 10. He wants a program to skip bed 4 because it is under repair, stop checking if a flooded bed is found, and classify a measured water level as positive, negative or zero. In a separate school activity, students calculate the sum of the positive numbers from 1 to 100 using a loop.
| a) | Which Python statement is used to repeat a task when the number of repetitions is known? | 1 |
| b) | What is the purpose of the continue statement in a loop? | 2 |
| c) | Write the output of the following code: for num in range(1, 11): if num == 4: continue; print(num, end=" "). | 3 |
| d) | Explain how if-elif-else and loops can be combined to solve the farmer's tasks, and compare the use of a for loop with a while loop for finding the sum from 1 to 100. | 4 |
MCQ ANSWER SHEET (OMR)
Print it and fill the circles completely with a black ball-point pen
Roll number
| Subject code
| Set code abcd |
Candidate's name: ____________________________ Signature: ____________
Answers
|
|
Correct: Wrong: ✓✕•
Answer Key and Marking Guide
Answer key — MCQ answers
1–a · 2–b · 3–a · 4–b · 5–a · 6–a · 7–a · 8–a
9–b · 10–c · 11–b · 12–b · 13–c · 14–d · 15–a · 16–b
17–a · 18–d · 19–a · 20–b
- a) Problem-solving — Problem-solving includes identifying, analyzing, evaluating and implementing a solution.
- b) They allow instructions to be converted into machine code — Programming-language instructions are converted into machine code for the computer.
- a) i and ii — Machine code is binary and translators convert programming code; computers do not directly understand ordinary human languages.
- b) Translates all the instructions into machine code at once — A compiler translates the complete set of correct instructions at once.
- a) It translates every instruction sequentially, one by one — An interpreter translates instructions one at a time and stops when it finds an error.
- a) i and ii — The first two statements are correct; an interpreter stops when it encounters an error.
- a) Python — The source describes Python as beginner-friendly and widely used in those fields.
- a) Thonny — Thonny is the software application used to write and run Python instructions.
- b) Run — The Run button executes the written Python program.
- c) print() — The print() function displays output on the monitor or another standard output device.
- b) 25 — The value assigned to age is 25, so print(age) displays 25.
- b) i and iii — Names may begin with a letter or underscore and Python is case-sensitive; spaces are not allowed.
- c) My_Variable — My_Variable begins with a letter and uses only letters and an underscore.
- d) int — int is the data type for integer or whole numbers.
- a) bool — The bool data type stores the two logical values True and False.
- b) 2 — int(2.8) converts the float to the integer 2.
- a) type() — The type() function reports the data type of a value or variable.
- d) i, ii and iii — All three statements correctly describe the if-elif-else structure.
- a) 2012 is a leap year. — 2012 is divisible by 4 and not divisible by 100, so it is a leap year.
- b) 1990 is not a leap year. — 1990 is not divisible by 4, so it is not a leap year.
Answer key — Short answers
1. What is problem-solving? Mention one important step of the problem-solving process.
Problem-solving is the process of identifying a challenge, understanding it, and finding a way to overcome it. One important step is evaluating alternative solutions before implementing the best one.
Marking points (2)
- Correct definition of problem-solving
- Mentions a valid step with explanation
2. What is a programming language, and why is it needed to communicate with a computer?
A programming language is a language that follows specific rules for writing instructions for a computer. It is needed because computers directly understand only machine code, which consists of 0 and 1.
Marking points (2)
- Defines programming language
- Explains its connection with machine code
3. What is an interpreter? How does it translate a program?
An interpreter is a translator program that converts programming instructions into machine code one instruction at a time. It stops translating when it finds an error.
Marking points (2)
- Correct definition of interpreter
- Explains sequential translation and stopping at an error
4. Which function is used to display text on the screen in Python? Write an example.
The print() function is used to display text on the screen. Example: print("Hello World!") displays Hello World! as the output.
Marking points (2)
- Identifies the print() function
- Provides a correct example and output purpose
5. What is a variable in Python? Give one valid variable name and explain why it is valid.
A variable is a named storage location used to hold information in a program. My_Variable is valid because it begins with a letter and uses only letters and an underscore.
Marking points (2)
- Defines a variable as data storage
- Gives and explains a valid name
6. What is type casting? Name two Python casting functions and state their uses.
Type casting means changing the data type of a value or variable. int() creates an integer, while float() creates a fractional number; for example, int(2.8) gives 2.
Marking points (2)
- Defines type casting
- Names functions with correct uses or example
Answer key — Creative answers (with the mark split)
Answer key — Question 1
a) What is machine code? [1]
[Knowledge] Machine code, or machine language, is binary code made up of 0 and 1 that a computer can directly understand.
b) Why is a translator needed between a programming language and a computer? [2]
[Knowledge] A translator converts programming-language instructions into machine code. [Understanding] This is necessary because a computer directly understands binary machine code, not human languages or ordinary programming-language instructions.
c) Distinguish between a compiler and an interpreter on the basis of how they translate instructions. [3]
[Knowledge] A compiler translates a complete set of correct instructions at once. [Understanding] If it finds an error in the instructions, it cannot complete the translation. [Application] An interpreter translates instructions sequentially, one by one, and stops when it encounters an error.
d) Mina is a beginner and wants to learn Python before learning another programming language. Judge whether this is a suitable choice, giving reasons from the chapter. [4]
[Knowledge] Python is a beginner-friendly programming language with simple syntax. [Understanding] Learning one programming language makes it easier to learn others because their basic structures are similar. [Application] Python is suitable for Mina because it is widely used and is easier for a beginner to start with. [Higher-order skill] Therefore, choosing Python is a reasonable decision, although the final choice may also depend on the type of work and personal interest.
- States only that Python is popular without explaining its beginner-friendly syntax.
- Confuses a programming language with machine code.
- Does not compare the reasons for learning one language with the common structure of other languages.
Answer key — Question 2
a) Which Python function is used to display information on the screen? [1]
[Knowledge] The print() function is used to display information on the screen.
b) Why is int() used with the age input in the program? [2]
[Knowledge] The input() function receives input as text, or a string. [Understanding] int() converts the entered text into an integer so that the age can be stored and used as a whole number.
c) State the data type of name, age, height and present after the program runs. [3]
[Knowledge] name has the str data type, age has the int data type, height has the float data type, and present has the bool data type. [Understanding] str stores text, int stores whole numbers, float stores fractional numbers, and bool stores True or False. [Application] Therefore, the data types are: name—str; age—int; height—float; present—bool.
d) Evaluate the variable names 9class, My Name and print, and write a suitable correction for each where necessary. [4]
[Knowledge] A variable name cannot begin with a number, cannot contain spaces, and cannot use a saved keyword. [Understanding] 9class is invalid because it begins with a number; My Name is invalid because it contains a space; print should not be used because it is the name of a Python function and is treated as a reserved or protected identifier in the chapter's examples. [Application] Suitable corrections are class9, My_Name and print_value. [Higher-order skill] These corrections make the names readable and follow Python naming rules, while also avoiding confusion with a built-in function.
- Marks are lost when a student writes My Name as valid because it contains two words separated by a space.
- Students may identify print as a keyword without explaining why it should be avoided as an identifier.
- Students sometimes confuse int with float and do not connect input() with string data.
Answer key — Question 3
a) Which Python statement is used to repeat a task when the number of repetitions is known? [1]
[Knowledge] The for statement, or for loop, is used when the number of repetitions is known.
b) What is the purpose of the continue statement in a loop? [2]
[Knowledge] The continue statement skips the remaining statements of the current iteration. [Understanding] Control then moves to the next iteration of the loop, so the value that satisfies the condition is not processed by the following statement.
c) Write the output of the following code: for num in range(1, 11): if num == 4: continue; print(num, end=" "). [3]
[Knowledge] The loop considers the numbers from 1 through 10. [Understanding] When num is 4, continue skips the print statement. [Application] The output is: 1 2 3 5 6 7 8 9 10.
d) Explain how if-elif-else and loops can be combined to solve the farmer's tasks, and compare the use of a for loop with a while loop for finding the sum from 1 to 100. [4]
[Knowledge] if-elif-else checks conditions and selects one suitable block, while a loop repeats a block of statements. [Understanding] The farmer can use if num > 0, elif num < 0 and else to classify a water-level value, and use continue to skip bed 4 or break to stop the loop when a flooded bed is found. [Application] A for loop is convenient for the sum from 1 to 100 because the range and number of repetitions are known; a while loop can also calculate it by starting count at 1, adding count to sum, and increasing count until count becomes 101. [Higher-order skill] The for loop is more convenient and less likely to become infinite in this fixed-range task, whereas the while loop is useful when repetition depends mainly on a condition.
- Students often write that continue stops the whole loop; that is the function of break.
- Students may use several unrelated if statements instead of explaining the role of elif.
- Students lose marks if they do not mention updating the counter in a while loop, which may cause an endless loop.
Answer key — Score yourself
Part · Full marks · My marks
MCQ · 20 · ______
Short · 10 · ______
Creative · 20 · ______
Total · 50 · ______
- 80% or more: very good. Revise the topic of each wrong question.
- 50-79%: reread the lecture-sheet part of the topics where you lost marks.
- Below 50%: start again from the lecture sheet, then try a new model test.
Answer key — SSC grade converter (this test: 50 marks)
Percent · Grade · GPA · Marks in this test · What to do next
80–100% · A+ · 5.00 · 40–50 · Excellent! Check the topics of the wrong answers and try a new set.
70–79% · A · 4.00 · 35–39 · Good. Practise the গ / ঘ parts and the wrong MCQ topics - A+ is close.
60–69% · A- · 3.50 · 30–34 · Reread the lecture-sheet topics where you lost marks, then write the ★★★ suggestion questions.
50–59% · B · 3.00 · 25–29 · Each day do 10 MCQs and 1 creative question; learn the definitions and formulas.
40–49% · C · 2.00 · 20–24 · Read the chapter again from the lecture sheet; start with knowledge and understanding questions.
33–39% · D · 1.00 · 17–19 · Relearn the core ideas, discuss the hard parts with a teacher, then try a new model test.
0–32% · F · 0.00 · 0–16 · Don't worry - split the chapter into small parts, start from the lecture sheet and check yourself with MCQs after each part.