National Anthem of India

TalentedSeattle avatar
TalentedSeattle
·
·
Download

Start Quiz

Study Flashcards

37 Questions

What data type is suitable for the admission number 12345 on the student ID card?

int

What data type is suitable for the name 'Sneha S.Raj' on the student ID card?

char array

Which of the following are elements of the student ID card's grouped data? (Select all that apply)

Address

In C++, structure is a user-defined data type used to represent a collection of logically related data items.

True

_____ is the keyword used to define a structure in C++.

struct

What are the elements specified within the structure tag 'date' in the given content?

dd, mm, yy

Explain the concept of a structure in programming.

A structure allows related data to be combined under a common name to represent data compactly.

How are structure variables declared in C++?

struct structure_tag var1, var2, ..., varN; OR structure_tag var1, var2, ..., varN;

What is the purpose of the dot operator (.) when working with structures?

It connects a structure variable and its element.

What are the attributes used to provide vertical and horizontal spacing between images in HTML?

Vspace and Hspace

What are the possible values for the Align attribute of the tag in HTML?

Left

To give a border to an image inserted in a web page, it is possible with the ____ attribute of the tag.

Border

HTML offers the attributes Vspace and Hspace to provide spacing between images.

True

What is the HTML tag used to create tables?

table

What attribute of the tag specifies the thickness of the border line?

Border

The 'Href' attribute is used for external linking in HTML.

False

The tag that is used to play background music in a web page is ______ .

BGSOUND

What are the three types of lists in HTML?

unordered lists, ordered lists, definition lists

How can unordered lists be customized in HTML?

By setting the Type attribute to values like Disc, Square, and Circle

What is the purpose of ordered lists in HTML?

To present items in a specific numerical or alphabetical order

What is a definition list in HTML used for?

To display a list of terms and their corresponding definitions

What is the main attribute of the anchor tag in HTML for creating hyperlinks?

HREF

What will happen when the first link (Biography) is selected in the main.html file?

The file bio.html will be opened in the second frame.

What are the two elements that a Form consists of?

Container and Form controls

A password field in an HTML Form encrypts or scrambles the information entered by the user.

False

A ____ box provides a list of various options in the form of a dropdown list.

select

What tag is used to define heading cells in a table?

th

What tag is used to display data cells in a table?

td

Which attribute of the table tag specifies the horizontal alignment of the text in a cell?

Align

The tag is an empty tag. True or False?

True

What attribute can be used to specify the number of columns occupied by a cell in a table?

Colspan

HTML provides _______ to input data through web pages.

forms

Name the two tags used within to enter text data.

and

How do radio button control and check box control differ?

Radio buttons allow single selection, checkboxes allow multiple selections

Which tag is used to group data within the Form?

Name the tag used within to input data.

The _______ attribute is used with tag to display the linked page in a specified frame.

target

Study Notes

Structures and Pointers

  • The concept of structure is a user-defined data type in C++ to represent a collection of logically related data items, which may be of different types, under a common name.
  • Structures are used to represent grouped data, such as student details, employee details, etc.
  • The syntax to define a structure is: struct structure_tag { data_type variable1; data_type variable2; ...; data_type variableN; };
  • The structure tag (or structure name) is an identifier and is used to declare variables of the structure type.
  • Elements of a structure are variables specified within the pair of braces, and their data types determine the size of the structure.
  • Structure variables are declared using the syntax: struct structure_tag var1, var2, ..., varN; or structure_tag var1, var2, ..., varN;
  • Memory allocation for a structure variable is based on the size of the structure, which is the sum of the sizes of its elements.

Structure Definition and Memory Allocation

  • The size of a structure depends on the definition of the structure.
  • For example, a structure date with three int type elements (day, month, and year) will require 12 bytes of memory (4 bytes per int type element).
  • The memory allocation for a structure variable can be visualized as a block of memory divided into separate spaces for each element.

Variable Initialization

  • Structure variables can be initialized during declaration using the syntax: structure_tag variable = {value1, value2, ..., valueN};
  • The values are assigned to the elements of the structure variable in the order of their position in the definition.
  • If not all elements are initialized, the remaining elements are assigned with 0 (zero) or '\0' (null character) depending on numeric or string.

Structure Assignment

  • A structure variable can be assigned with the values of another structure variable of the same type.
  • The assignment statement is: structure_tag var1 = var2;
  • The values of var2 are copied to var1.

Differences between Structure Definition and Structure Variables

  • A structure definition is a blueprint for a structure, and it does not allocate memory.
  • A structure variable is a realization of the structure definition, and it allocates memory based on the size of the structure.
  • Structure variables can be assigned with values, but structure definitions cannot.### Lists in HTML
  • Lists in HTML can be used to present information in a more communicative way.
  • There are three kinds of lists in HTML:
    • Unordered lists (bulleted lists)
    • Ordered lists (numbered lists)
    • Definition lists

Unordered Lists

  • Unordered lists display a bullet or other graphic in front of each item in the list.
  • Unordered lists are created using the <ul><li> and </li></ul> tag pair.
  • Each item in the list is presented using the and tag pair.
  • Unordered lists are used when a set of items can be placed in any order.
  • Example: presenting hardware components of a computer in a bulleted list.

Customizing Unordered Lists

  • The Type attribute can be set to customize unordered lists:
    • Disc (default value)
    • Square
    • Circle
  • This sets the type of bullet that appears before each list item.

Ordered Lists

  • Ordered lists present the items in some numerical or alphabetical order.
  • Ordered lists are created using the <ol><li> and </li></ol> tag pair.
  • The items in the ordered list are presented using the `` tag.
  • Ordered lists are used to display a list of items that need to be placed in a specific order.
  • Example: presenting memory devices of a computer in a numbered list.

Customizing Ordered Lists

  • There are other numbering styles for presenting the list items, but not specified in this text.### Lists in HTML
  • There are three types of lists in HTML: ordered lists, unordered lists, and definition lists.
  • Ordered lists use numbers (1, 2, 3, ...) and can be customized using the type attribute (e.g., A for uppercase letters, a for lowercase letters, I for large Roman numerals, i for small Roman numerals).
  • Unordered lists use bullets (•) and can also be customized using the type attribute.
  • Definition lists are used to define terms and their corresponding definitions.

Nested Lists

  • A list of items can be nested within another list.
  • Examples of nested lists include inserting an unordered list into an ordered list, an ordered list into an unordered list, etc.
  • Hyperlinks allow users to navigate between websites by clicking on words, phrases, or images.
  • HTML provides the ability to hyperlink text, images, etc. to another document or section of the same document using the <a> tag, also known as the anchor tag.
  • The href attribute is used to specify the URL of the document or section to be linked.
  • Internal linking: linking to a specific section of the same document.
  • External linking: linking to another web page.
  • Email linking: linking to an email address using the mailto: protocol.

Creating Tables

  • Tables are used to present structured data in a web page.
  • The </a> tag is used to create a table, and it requires the support of other tags such as , , and `` to construct the table.
  • Attributes of the `` tag include:
    • border: specifies the thickness of the border around the table.
    • bordercolor: assigns a color to the table border.
    • align: specifies the position of the table within the browser window.
    • bgcolor: changes the background color of the table.
    • background: assigns a background image to the table.
    • cellspacing: specifies the space between cells.
    • cellpadding: specifies the space between the cell border and content.
    • width and height: set the table width and height.
    • frame: specifies how table borders are displayed.
    • rules: controls what rules (borders between cells) are displayed in a table.

Other Tags Associated with ``

  • The `` tag is used to create rows in a table.
  • The `` tag is used to create cells in a table.
  • The `` tag is used to create header cells in a table.

The national anthem of India, Jana Gana Mana, is a patriotic song that represents the country's unity and diversity. This quiz is about the national anthem's lyrics and meaning.

Make Your Own Quizzes and Flashcards

Convert your notes into interactive study material.

Get started for free

More Quizzes Like This

Jana-gana-mana
5 questions

Jana-gana-mana

LikableTaiga avatar
LikableTaiga
Jana Gana Mana Adhinayaka Quiz
5 questions

Jana Gana Mana Adhinayaka Quiz

IrreproachableCoralReef avatar
IrreproachableCoralReef
Use Quizgecko on...
Browser
Browser