Thursday, 7 December 2023

L-7 HTML/CSS Class 8 Computer

Class – VIII

Subject: Computer

L-7 HTML and CSS


A.)  Tick (ΓΌ) the correct option:

1)     You can change the look of an entire website by changing just one file:

a)     external style sheet

b)     Internal style sheet

c)     Both a and b

d)     None of these

Ans: c) Both a and b

 

 

2)     Which is the simplest language that can be easily understood and modified.

a)     Java

b)     PHP

c)     HTML

d)     Visual Basic

Ans: c) HTML

 

3)     HTML is platform-

a)     Independent

b)     Dependent

c)     Both a and b

d)     None of these

Ans: a) Independent

 

4)     Which language  allows you  to put styles to customize your web pages.

a)     CSS

b)     JAVA

c)     C

d)     C++

Ans: a) CSS

 

5)     CSS stands for

a)     Cascading style sheet

b)     Cast counting style sheet

c)     Cast common style sheet

d)     Castcading Style sheet

Ans: a) Cascading Style Sheet


B.)   Fill in the blanks using the words from the help box:

[attributes, CSS, Embedded, elements, <link>]

 

1)     HTML allows images and objects to be Embedded  and can be used to create interactive forms.

2)     External styles are defined within the <link>  element, inside the <head> section of an HTML page.

3)     CSS  is considered a very convenient and easy-to-read styling sheet.

4)     Attributes  can be used to change the colour, size, or functionality of HTML elements.

5)     HTML element  can contain formatting instructions, semantic meaning, and content.

 

 

C) Short answer type questions:

1) What do you mean by element?

Ans: An element is a fundamental building block of an HTML document. It consists of a start tag, content, and an end tag. Elements can define various types of content, such as headings, paragraphs, links, images, etc.

 

2)     What do you mean attribute?

Ans: An attribute provides additional information about an HTML element and is always included in the opening tag. Attributes consist of a name and a value and are used to modify or provide additional details about an element.

 

3)     What is internal CSS?

Ans: Internal CSS refers to the style information that is contained within the HTML document itself, typically placed in the <style> element within the <head> section. It allows styling for a specific page.

 

4)     What is External CSS?

Ans: External CSS involves placing the style information in a separate external file with a .css extension. This file is linked to the HTML document using the <link> element, providing a centralized and consistent style for multiple pages.

 

5)     What is inline CSS?

Ans: Inline CSS involves applying styles directly within the HTML tags using the style attribute. It is used for applying unique styles to specific elements on a page.


D) Long answer type questions:

1) What are the advantages and disadvantages of CSS?

Ans: Advantages of CSS include improved site maintenance, consistent styling, faster page loading, and better accessibility. Disadvantages may include browser compatibility issues, learning curve, and potential for increased complexity.

 

2) Write the characteristics of HTML?

Ans: HTML (Hypertext Markup Language) is characterized by being a markup language used for creating the structure of web pages. It consists of elements represented by tags, has a hierarchical structure, supports hyperlinks, and allows the inclusion of multimedia elements.

 

3) Write a short note on

a) Element

Ans: An element in HTML is a fundamental unit consisting of a start tag, content, and an end tag. It defines the structure and content of a document, representing various types of information like text, images, links, etc.

 

b) Attribute

Ans: An attribute in HTML provides additional information about an element and is included within the opening tag. It consists of a name and a value, modifying or enhancing the behavior of the element.

 

c) CSS

Ans: CSS (Cascading Style Sheets) is a styling language used to control the presentation and layout of HTML documents. It allows the separation of content and style, making it easier to manage the visual aspects of a website.

 

4) How we add CSS?

Ans: CSS can be added to HTML documents through three methods: inline, internal, and external. Inline CSS is applied directly within the HTML tags using the style attribute, internal CSS is placed in the <style> element within the <head> section, and external CSS is stored in a separate .css file linked to the HTML document using the <link> element.

 

5) Explain the three ways to add CSS.

Ans: The three ways to add CSS are:

 

Inline CSS: Applied directly within HTML tags using the style attribute.

Internal CSS: Placed in the <style> element within the <head> section of an HTML document.

External CSS: Stored in a separate .css file and linked to the HTML document using the <link> element. This promotes consistency across multiple pages.

 

6) What are the component of CSS?

Ans: The components of CSS include:

 

Selectors: Define which elements the styles should apply to.

Properties: Specify the visual characteristics (e.g., color, size) of the selected elements.

Values: Assign specific values to properties to determine the appearance of elements.

Declarations: Combinations of properties and values.

Rules: Consist of selectors and declarations, defining the styling for selected elements.

Stylesheet: A collection of rules that collectively define the visual presentation of a document.

 


L-7 Scratch/ Class-6 computer

 

Class – VI

Subject : Computer Science

L-7 Introduction to Scratch Programing

Paste and Label  components of Scratch Window


A)    Multiple Choice Questions

1)     Scratch program begins with which block?

a)     Ask block     

b)     Say block 

c)     Wait block 

d)     Event block

Ans: d) Event block

2)     What is this cat a type of?

a)     Animal 

b)     Cat species

c)     Pet

d)     Sprite

Ans: d) Sprite

3)     What kind of block do you use for moving sprite?

a)     Motion

b)     Sound

c)     Sensing

d)     Control

Ans: a) Motion

4)     What is the backdrop of project called?

a)     Stage

b)     Sprite

c)     Scratch

d)     Script

Ans: a) Stage

5)     A collection or stack of blocks that all interconnect with one another is called?

a)     Scratch

b)     Sprite

c)     Stage

d)     Script

Ans: d) Script

B)    Fill in the blanks:

1)     You can view thumbnail of stage and sprites in Sprite List area.

2)     The Shrink  button allows you to decrease the size of the sprite.

3)     The duplicate  tool is used to create a copy of an object.

4)     In scratch, the Sprite moves on the stage  when you run a program.

 

C)      State “T for True or “F” for False:

1)     You can change the background of the stage . TRUE

2)     The duplicate button allows you to move an object. FALSE

3)     You cannot insert more than two sprites on the stage. FALSE

4)     Scratch allows you to add sound in your project. TRUE

5)     The Centre of the stage is at x-y coordinate (0,0). TRUE

 

 D)     Short answer type questions:

1)     Who is the developer of Scratch?

Ans: The developer of Scratch is the Lifelong Kindergarten Group at the MIT Media Lab.

 

2)     What do you mean by programming?

Ans: Programming is the process of designing and building an executable computer program to accomplish a specific task or solve a particular problem. It involves writing a set of instructions in a programming language that a computer can understand and execute.

 

3)     Write the steps to move a sprite in Scratch?

Ans: Steps to move a sprite in Scratch:

 

·        Select the sprite you want to move.

·        Go to the "Motion" category in the blocks palette.

·        Drag the "Move" block and snap it into the scripting area.

·        Input the number of steps or use other motion blocks to control the movement.

 

4)     How to add sound in scratch program?

Ans: To add sound in Scratch program:

 

·        Go to the "Sound" category in the blocks palette.

·        Drag the desired sound block (e.g., "Play Sound," "Play Drum," etc.) into the scripting area.

·        Configure any parameters associated with the sound block.

 

5)     Write the steps to save a project in Scratch?

Ans: Steps to save a project in Scratch:

 

·        Click on the file menu in the top-left corner.

·        Select "Save Now" to save the project immediately.

·        Alternatively, select "Save now as" to choose a new location or rename the project.

·        Provide a name for the project and click "Save."

A)    

Sunday, 19 November 2023

L-6 Block in Scratch / Class 7th Computer

 Class- VII

Subject: Computer 

L-6  Introduction to Blocks in Scratch

Answer the following questions:

A) Multiple choice questions:

1) What is the function of 'when green flag clicked' command block?

a) Points sprite in specified direction.

b) If condition is true, runs the block inside.

c) Runs the script.

Ans:  c) Runs the script


2) What will happen if we place the blocks in the scratch at wrong order?

a) The program will start working slowly.

b) The program will terminate.

c) The program will not work well.

Ans:c) The program will not work well.


3) What is the name of code blocks rounded or curved top and bump at the bottom?

a) Reporter Block

b) Stack Block

c) Hat Block

Ans: c) Hat Block 


4) Name the code block that controls sprite placement, direction, rotation, and movement.

a) Looks

b) Motion

c) Control

Ans: b) Motion


5) Identify the block given below.


a) Hat Block

b) Cap Block

c) C Block

Ans: c) C Block



B) Fill in the blanks using the words from the help box:

[ HAT, C, Stage, Boolean, Elongated ]

1) In Scratch, the sprite moves on the Stage when you run a program.

2) C blocks used for conditions and loops in script.

3) Boolean blocks are shaped like an  elongated hexagon.

4) These blocks are shaped like a  hat with a rounded top and a bump on the bottom.

5) Reporter blocks are used to report numeric, string, or Boolean values in your scripts.


C) State 'T' for True or 'F' False:

1) C blocks are used to stop script.                                 FALSE                                               

2) Reporter Blocks are rounded at the both end.            FALSE    

3)  You can turn the Sprite only in clockwise direction. FALSE

4) Hat Blocks are used to start script.                            TRUE

5) A sprite can move only in forward direction.           FALSE

                               

EXERCISE 

A) Multiple Choice Questions:

 1) Which block will perform arithmetical operations on numbers and / or variables.

a) Looks Block

b) Operator Block

c) Sensing Block

Ans: b) Operator Block


2) What block will be used to change the costume of a sprite?

a) Data Block

b) Looks Block

c) Operator Block

Ans:b) Looks Block


3) Which block used for logical test?

a) 

b)  

c)  

Ans: 

a) 

4) Name the thinking based on true / false conditions in script programming _________ .

a) Logical

b) Mathematics Based

c) Philosophical

Ans: a) Logical


5) Identify the block given below.

a) Data Block
b) Event Block
c) Control Block
Ans: c) Control Block

B) Fill in the blanks using the words from the help box:
[Block, Background, Script, Logical, Stage]

1) The  stage is 480 units wide and 360 units tall.
2) A programming language that uses code blocks to create directions for a compute is  Scratch. 
3) The  bakground image for a canvas is called a stage.
4) A  block is a specific instruction you use to create a program in scratch.
5) A hexagon shaped operator that returns a TRUE or FALSE condition is called  logical operator.

C) State "T" for True or " F" for False:
1) The Centre of the stage is at x-y coordinate (0, 0)         TRUE
2) Scratch is not able to use webcam.                                TRUE
3) To control the flow or timing of other code blocks, you will use control blocks.                                                                    TRUE
4) Boolean data will contain "True" or "False" vales.       TRUE
5) Clone block will creates a copy of sprite.                      TRUE





L-1 Indian Heroes in IT/ Class 6 Computer

 Class-6th  Subject : Computer Science L-1 Indian Heroes in IT Paste and label Indian Heroes in IT and write their inventions / contribution...