Grade 7
Grade 7
Q: Draw different flow chart symbols, identify their name with function.
Start / End
An oval represents a start or end point
Input / Output
A parallelogram represents input or output
Process
A rectangle represents a process
Q: Write an Algorithm and draw a flowchart for adding two numbers on a calculator.
Algorithm: Flowchart:
START
Begin
Press 2
Step 1 - Switch ON Calculator
End
Output 5
STOP
Q: Write an Algorithm and draw a flowchart to get any number and find out either the number is ODD
or EVEN.
Algorithm:
Begin
End
Flowchart:
START
INPUT No
NoUT No
IFNo%2==0
STOP
Choose the correct option. (Tick all that apply.)
a. Which of the following is NOT a computational thinking technique?
i. Coding ii. Decomposing
iii. Abstraction iv. Pattern matching
e. What is an algorithm?
i. Step by step instructions to solve a problem
ii. Breaking down the problem into smaller parts
iii. Run time error
iv. None of the above
f. What is a flowchart?
i. Building models from pattern
ii. Graphical representation of a problem
iii. Representation of computer
iv. Chart with many colours
i. Ignoring a car's colour when trying to find out why it doesn't start is an example of:
i. Algorithm
ii. Decomposition
iii. Abstraction
iv. Application
Descriptive Questions
L/Q. 1: - List and describe types of errors in programming.
Ans: `
1. Syntax Errors: These happen when the rules of the programming language are not
followed, like missing a bracket or spelling a command wrong.
2. Logical Errors: These occur when the program runs but does not give the correct result
because the instructions are wrong.
3. Runtime Errors: These happen while the program is running, like dividing by zero or
using too much memory.
L/Q. 1: Explain why the computer only understands the binary number system.
Ans: A computer only understands the binary number system (0 and 1) because it works with electronic
circuits that have only two states: ON and OFF.
• 0 means OFF (No electricity).
• 1 means ON (Electricity flows).
Since computers are made of tiny switches (transistors) that can only be ON or OFF, they use binary to
store and process data.
Ans:
ASCII: Uses 7 or 8 bits, supports 128 characters, mainly used for English.
EBCDIC: Uses 8 bits, supports 256 characters, used in old IBM computers.
Unicode: Uses 8, 16, or 32 bits, supports all languages & symbols, including emojis.
Problem: (110010)2 - (100101)2
Solution:
I. Finding 1's complement of second number. 011010 is the 1's complement of the second number
100101.
2. Adding this to first number.
1 1 0 0 1 0
0 1 1 0 1 0
1 0 0 1 1 0 0
3. We have a carry leftover add this to obtained result in step 2.
0 1 1 0 1 0
1
( 0 0 1 1 0 1)2