National Anthem of India
37 Questions
0 Views

Choose a study mode

Play Quiz
Study Flashcards
Spaced Repetition
Chat to lesson

Podcast

Play an AI-generated podcast conversation about this lesson

Questions and Answers

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 (correct)
  • Name (correct)
  • Blood group (correct)
  • House number
  • Date of birth (correct)
  • In C++, structure is a user-defined data type used to represent a collection of logically related data items.

    <p>True</p> Signup and view all the answers

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

    <p>struct</p> Signup and view all the answers

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

    <p>dd, mm, yy</p> Signup and view all the answers

    Explain the concept of a structure in programming.

    <p>A structure allows related data to be combined under a common name to represent data compactly.</p> Signup and view all the answers

    How are structure variables declared in C++?

    <p>struct structure_tag var1, var2, ..., varN; OR structure_tag var1, var2, ..., varN;</p> Signup and view all the answers

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

    <p>It connects a structure variable and its element.</p> Signup and view all the answers

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

    <p>Vspace and Hspace</p> Signup and view all the answers

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

    <p>Left</p> Signup and view all the answers

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

    <p>Border</p> Signup and view all the answers

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

    <p>True</p> Signup and view all the answers

    What is the HTML tag used to create tables?

    <p>table</p> Signup and view all the answers

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

    <p>Border</p> Signup and view all the answers

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

    <p>False</p> Signup and view all the answers

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

    <p>BGSOUND</p> Signup and view all the answers

    What are the three types of lists in HTML?

    <p>unordered lists, ordered lists, definition lists</p> Signup and view all the answers

    How can unordered lists be customized in HTML?

    <p>By setting the Type attribute to values like Disc, Square, and Circle</p> Signup and view all the answers

    What is the purpose of ordered lists in HTML?

    <p>To present items in a specific numerical or alphabetical order</p> Signup and view all the answers

    What is a definition list in HTML used for?

    <p>To display a list of terms and their corresponding definitions</p> Signup and view all the answers

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

    <p>HREF</p> Signup and view all the answers

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

    <p>The file bio.html will be opened in the second frame.</p> Signup and view all the answers

    What are the two elements that a Form consists of?

    <p>Container and Form controls</p> Signup and view all the answers

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

    <p>False</p> Signup and view all the answers

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

    <p>select</p> Signup and view all the answers

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

    <p>th</p> Signup and view all the answers

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

    <p>td</p> Signup and view all the answers

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

    <p>Align</p> Signup and view all the answers

    The tag is an empty tag. True or False?

    <p>True</p> Signup and view all the answers

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

    <p>Colspan</p> Signup and view all the answers

    HTML provides _______ to input data through web pages.

    <p>forms</p> Signup and view all the answers

    Name the two tags used within to enter text data.

    <p>and</p> Signup and view all the answers

    How do radio button control and check box control differ?

    <p>Radio buttons allow single selection, checkboxes allow multiple selections</p> Signup and view all the answers

    Which tag is used to group data within the Form?

    Signup and view all the answers

    Name the tag used within to input data.

    Signup and view all the answers

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

    <p>target</p> Signup and view all the answers

    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.

    Studying That Suits You

    Use AI to generate personalized quizzes and flashcards to suit your learning preferences.

    Quiz Team

    Related Documents

    finalbook.pdf

    Description

    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.

    More Like This

    Jana-gana-mana
    5 questions

    Jana-gana-mana

    LikableTaiga avatar
    LikableTaiga
    Jana-gana-mana Quiz
    5 questions

    Jana-gana-mana Quiz

    ThinnerGlacier9341 avatar
    ThinnerGlacier9341
    Use Quizgecko on...
    Browser
    Browser