Thursday, 26 October 2023

L-5 HTML and CSS / Class 7th

 Class - 7th 

Subject : Computer

L-5 HTML and CSS



A) Tick the correct option:


1) Which tag is used for ordered list?

a) <li>

b) <ol>

c) <ul>

d) <dl>

Ans: b) <ol>


2) Which of the following can't be the value of list-style-type?

a)  square

b)  circle

c)  ellipse

d)  disc

Ans: c)  ellipse


3) Which element contains definition?

a)  <dl>

b)  <dd>

c)  <dt>

d)  <ul>

Ans: c)    <dt>


4) Which attribute is only used with <ol>?

a)  value

b)  type

c)  compact

d)  start

Ans: b)    type


5) Identify tag which is used for unordered list?

a)  <li>

b)  <ol>

c)  <ul>

d)  <dl>

Ans: c)    <ul>


6) Which type of CSS is used in the below code?

<p style="border:px solid red;">

a)  Inline CSS

b)  Internal CSS

c)  External CSS

d)  None of the above

Ans: a)    Inline CSS



B) Fill in the blanks:

1) By default, ordered list starts with 1.
2) The <li> tag is used to define list item.
3) A list within another list is called nested list.
4) The src stands for source in image tag.
5) Alt  attribute of an image is used, when image is not displayed.
6) 'Background-color' property in CSS used to change the background color of an element in HTML.


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

1) <IMG> tag is used to insert an image in a web page           TRUE

2) Src attribute specify the source of an image.                       TRUE 

3) By default, unordered list starts with disc.                           TRUE

4) There are two types of images: Inline and External images. FALSE

5) The HTML attribute used to define the inline styles is style. TRUE

6) JPG, PNG, and JPEG are image formats.                               TRUE


D) Short answer type questions:

1) Define a list.

Ans: A list is an HTML element used to group together related items in a specific order or hierarchy.


2) What is the use of Description List?

Ans: A Description List in HTML (<dl>) is used to define terms and provide a description or definition for each term.


3) How we can insert image in a table? give example

Ans: To insert an image in a table, you can use the <img> tag within a <td> (table data) element. Here's an example:

<Table>

<TR>

<TD><img src="image.jpg" alt="description of the image"> </td>

<td> other content</td>

</TR>

</Table>


4) What do you understand by CSS.

Ans: CSS stands for Cascading Style Sheets. It's a stylesheet language used to control the presentation and layout of a web page written in HTML or XML. CSS allows you to apply styles (such as colors, fonts, spacing, etc.) to elements on a webpage, making it visually appealing and user-friendly.


E) Long answer type questions:

1) Differentiate between ordered and unordered list?

Ans: Ordered List vs Unordered List:

  • Ordered List: The items in an ordered list are marked with numbers or letters by default. It is created using the <ol> tag.
  • Unordered List: The items in an unordered list are marked with bullets (discs, squares, etc.) by default. It is created using the <ul> tag.

2) What are the different attributes of an image tag. (list any three)?

Ans: Attributes of an Image Tag:

  • src: Specifies the source (URL) of the image.
  • alt: Provides alternative text for the image, which is displayed if the image cannot be loaded.
  • width and height: Set the dimensions of the image.

3) Write any one difference between internal & external style sheet?

Ans: Difference between Internal & External Style Sheet:

  • Internal Style Sheet: It is defined within the HTML document using the <style> tag in the head section. It applies styles only to the current document.

  • External Style Sheet: It is a separate file with a .css extension that contains all the styles. It is linked to the HTML document using the <link> tag. It can be used to style multiple HTML documents.


F) Application based   questions:

1) Aditi wants to celebrate her birthday. So she is interested to make a list of guests. Suggest her which tag she will use to make list?

Ans: Aditi can use the <ul> (unordered list) or <ol> (ordered list) tags to make a list of guests.


2) Mehul is interested to create a list of state and capitals of India. Which tag you will suggest him to make a list?

Ans: Mehul can use the <dl> (definition list) tag to create a list of states and their capitals in India.






.



Wednesday, 25 October 2023

L-5 HTML/ Class 6

 Class -VI

L-5 Basic of HTML



A) Fill in the blanks:

1) <title> tag is used to display the title of the document.

2) HTML tags are divided into two categories.

3) We can save our HTML file with .html extensions.

4) <br> tag is used to move your text on next line.

5) The attributes of font tag are color, face and size.



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

1) <B> tag is used to make out text bold.            TRUE

2) Heading tag has six levels from H1 to H6       TRUE

3) HEAD section contains body part.                   FALSE

4) HTML is a case sensitive language.                 FALSE

5) Container tag has both starting and ending.      TRUE



C) Short answer type questions:

1) Name some popular web browser.

Ans: Some popular web browsers:

  1. Google Chrome
  2. Mozilla Firefox
  3. Microsoft Edge
  4. Apple Safari
  5. Opera
  6. Brave
  7. Vivaldi
  8. UC Browser
  9. Tor Browser

2) How many levels of heading tag have? Name highest and lowest level.

Ans: HTML has six levels of heading tags, ranging from <h1> (highest level) to <h6> (lowest level).


3) Name the tag use to change the appearance of the text. Also give its attributes.

Ans: The <font> tag is used to change the appearance of text in HTML. However, it is now considered obsolete, and the use of CSS is recommended for styling. If you still want to change the appearance of text, consider using CSS properties like font-family, font-size, and color.


D) Long answer type questions:

1) What are the characteristics of HTML language?

Ans: HTML (Hypertext Markup Language) is a markup language used for creating the structure of web pages. Here are some key characteristics of HTML:

  1. Markup Language: HTML uses a markup structure with tags to define elements on a web page. Tags are enclosed in angle brackets, such as <tag>.
  2. Hierarchy and Nesting: HTML elements can be nested within each other to create a hierarchical structure for content on a web page.
  3. Document Structure: HTML documents have a standard structure, including a head section for metadata (title, links to stylesheets, etc.) and a body section for the main content.
  4. Platform-Independent: HTML is platform-independent and can be rendered on various devices and browsers, providing a consistent structure for content.
  5. Linking and Embedding: HTML allows the creation of hyperlinks to link one page to another or to link to different types of resources. It also supports embedding multimedia elements like images and videos.
  6. Semantic Markup: HTML provides a set of semantic tags (e.g., <header>, <footer>, <article>) that give meaning to the content, making it more accessible and understandable for both browsers and developers.
  7. Extensibility: HTML can be extended through the use of attributes and custom data attributes to provide additional information about elements.
  8. W3C Standards: HTML is maintained and developed by the World Wide Web Consortium (W3C), ensuring standardization and compatibility across different platforms and browsers.
  9. Versioned: HTML evolves over time, with new versions introducing features, improvements, and optimizations. HTML5 is the latest major version.

2) Write the basic structure of HTML document.
Ans: The basic structure of an HTML document consists of five essential elements:

  1. <!DOCTYPE html>: This declaration informs the browser about the HTML version used in the document.

  2. <html>: The root element of an HTML document, encompassing the entire webpage's structure.

  3. <head>: Contains metadata about the HTML page, including the title, character encoding, and links to external resources like CSS files.

  4. <title>: Specifies the title of the HTML page, which is displayed in the browser's title bar or tab.

  5. <body>: Defines the main content of the HTML page, containing all the visible elements like text, headings, images, links, tables, lists, and other interactive components.


3) Differentiate between container and non container tag?
Ans: In HTML, tags are used to define the structure and formatting of a webpage. Among these tags, container tags and non-container tags play distinct roles in organizing and presenting content.

Container tags are paired tags that enclose and group other elements within the webpage. They act as containers or wrappers for other tags, defining sections or blocks of content. Examples of container tags include <div>, <p>, <table>, and <ul>.

Non-container tags, also known as empty tags, are self-closing tags that do not require a closing tag. They represent specific elements or actions within the webpage and do not enclose any other content. Examples of non-container tags include <br>, <hr>, <img>, and <meta>.



4) Expand the terms:
  •  <B> Define bold text.
  •  <BR> Insert a single line break.
  •  <HTML> Define HTML document.
  • <HEAD> Define information about the document.
  • <TITLE> Define the title of the document which will display at the title bar.
  • <BODY> Define document body.
  • <H1> to <H6> Define HTML headings.
  • <P> Define paragraph.
  • <I> Define italic text.
  • <U> Define underlined text.
  • <FONT> Define font, color and size for the text.
  • <SUB> Define subscript text.
  • <SUP> Define superscript text.
  • <STRONG> Define important text.
  • <HR> To insert horizontal rule.
  • <IMG SRC> To insert an image.




Wednesday, 11 October 2023

L-5 Ms-Access / Class-8 Q-Ans

Class - VIII

Subject : computer Science 

  L-5 Ms-Access 

Book Exercise

A) Fill in the blanks

1.) Datasheet View allows you to view data stored in your tables.

2.) Datasheet View  is used to enter and view the data for the records.

3.) The primary key  is the unique identifies for each record in a table .

4.) The report is created in design  view.

5.) Data type determines what kind of data the field can store.


B) Answer the following questions:

1.) What is primary key? How to set a primary key?

Ans: A primary key is a unique identifier for a record in a database table.

To set a primary key:

  1. Open the table in design view.
  2. Select the field you want as the primary key.
  3. Click on the "Primary Key" icon in the toolbar.

Alternatively, right-click on the field and select "Primary Key" from the context menu.


2.) What is a form in ms-access? Give details of different views information.

Ans: A form in MS Access is a user interface that allows for easier data entry, editing, and viewing of records in a database table.

Different Views:

  1. Form View: Allows users to interact with and enter data into the form fields.

  2. Design View: Lets you modify the structure, layout, and properties of the form.

  3. Layout View: Offers a more visually-oriented way to modify form layout and design.

  4. PivotTable View: Allows for data analysis in a table format with drag-and-drop functionality.

  5. PivotChart View: Enables creation and modification of dynamic charts based on the form's data.

  6. Datasheet View: Presents data in a spreadsheet-like format for easy viewing and editing.

These views provide different ways to work with and customize forms in MS Access.


3.) What is database? Name their major objects?

Ans: A database is a structured collection of data organized in a way that allows for efficient storage, retrieval, and manipulation.

Major Objects in a Database:

  1. Tables: Store data in rows and columns, forming the foundation of a database.

  2. Queries: Retrieve specific data from tables based on defined criteria.

  3. Forms: Provide a user-friendly interface for data entry, editing, and viewing.

  4. Reports: Present data in a formatted and printable layout for analysis or documentation.

  5. Indexes: Improve the speed of data retrieval by creating efficient access paths.

  6. Relationships: Define connections between tables to establish links between related data.

  7. Forms: Provide a user-friendly interface for data entry, editing, and viewing.

  8. Reports: Present data in a formatted and printable layout for analysis or documentation.

These objects work together to help organize, manage, and utilize data effectively within a database system.


4.) What is table?

Ans: A table is a structured collection of data organized into rows and columns. It is a fundamental object in a database where information is stored, representing entities such as customers, products, or orders. Each row in a table corresponds to a specific record, while each column represents a different attribute or field of the data.


5.) What are fields and fields data type?

Ans: Fields are individual columns within a database table that represent specific attributes or properties. They define the type of information that can be stored for each record.

Field Data Types specify the kind of data that a field can hold, such as text, numbers, dates, or binary data. Common data types include Text, Number, Date/Time, Boolean, and Memo.




L-1 Indian Heroes in IT/ 8th computer

  Class 8 th Subject : Computer Science L-1 Indian Heroes in IT Make a list of Indian Heroes in IT with their achievement S....