Class 8th CS Notes
Class 8th CS Notes
Unit # 01
LAN is usually connected through wires WAN is usually connected through telephone lines
Fixed Mobile
Faster Slower
Unit # 02
Unit # 03
Unit # 04
1. For the following code block a sprite will turn to 30 degrees. How many clicks are required for
sprite to complete a full cycle?
Ans. When the flag is clicked, the code will place the sprite at the coordinate (0,0) of the stage and perform
the following actions forever:
i. For the first code-block the backdrop will switch to next backdrops and wait for 0.5 seconds.
This step will be repeatedly performed for 4 times on each iteration of forever loop and the
sprite will move 10 steps normally.
ii. For the second code-block the backdrop will switch to next backdrops and the sprite will move
10 steps and wait for 0.5 seconds. This step will be repeatedly performed for 4 times on each
iteration of forever loop.
Note: The spirit will move faster in the second code-block than in the first.
3. For the maze game, duplicate the map ‘maze map and rename it as ‘maze Map 2. Next change
the color of lines in the new map form blue to red. Add Script such that the game becomes a
multi-level game with the 2 distinct image.
Ans. For additional levels we can simply choose the maze-map sprit and duplicate It as a new costume and
rename it. Thereafter we can rearrange or change the existing lines and draw new ones to add difficult
levels. This way new maze design is created. Additionally, you can download maze images form
www.Inventwitchscratch.com/downloads and load these images as new sprites as well. To provide a
better understanding, let’s use such a maze-images for our next level.
As a first step, we download our maze background and load these images as another Costume to our
‘maze-map’ sprite.
Next adjust the position of this images such that starting point of both the maze images turn out to
be same this way for each level the starting position of ‘Pico’ will be same and no additional cods
will be required.
Before proceeding further, we need to ensure first that the movement of ‘Pico’ spirit. On the new
map with arrow-keys is working and does not cross through the lines of the maze. Since, the color
of lines in both the maps is same; there the code will work in new map now, if not then it means
colors in both the maps are different. Now set the maps color to be the same.
Now load the new map in the game. for this purpose, when the Pico touches the end mark in a level,
the next maze map sends a broad cast message,
4. Take a 4-digit number as input for a year and check if the year is a leaf year or not. Display
your output as: “the year 1979 in not a leaf year” or “the year 2020 is a leaf year”
Ans.
i. year = int(input(“Enter the year”))
ii. if (Year % 4 == 0):
iii. print (“ The year “, Year, “ is a LEAP year”)
iv. else:
v. print (“The year “, Year, “ is not a LEAP year”)
5. Take length and width as input form the user for a quadrilateral and check if it is a square or
rectangle.
Ans.
i. Length = int (input (“Enter the length of quadrilateral”))
ii. Width = int (input (“Enter the width of quadrilateral”))
iii. if (Length = = Width):
iv. print (“The Quadrilateral is Square”)
v. else:
vi. print (“The Quadrilateral is Rectangle”)
Ans.
i. For i in range (5):
ii. for space in range (5-i) :
7. Write a program in python which displays square of the numbers and prints in the form of a
triangle, as shown below:
Ans.
i. num = 1
ii. For i in range (4):
iii. for space in range ( 4-i ):
iv. print (end = " ")
v. for j in range (i+1):
vi. print (num * num, end = " ")
vii. num = num + 1
viii. print ( )
Unit # 05
1. Who is cyber scout? How can he/she assist in prevention of cyber-crime?
Ans. Cyber scout is a person who promote awareness about cybercrime in the society. He/she is trained to
identify cybercrime activity and has preventive knowledge to help fight against cybercrime. He/she
works to promote Cyber safety in his surrounding environment.
Unit # 06
1. Describe the basic components of business plan.
Ans. Following are the basic components of business plan.
i. Customer Needs: It is the process of identifying the requirements of the customers about the
product or service.
ii. Product Design: It is the process that involves steps to launch a successful product based on
customers’ requirements.
iii. Costing: In this step the estimated cost for setting up new business like legal cost, attorney fees
and licensed fees etc are planned.
iv. Operations: The operation includes objectives, goals, procedures and timeline of your
organization.
v. Marking: It is the action of promoting and selling the products and services.