0

web technology Online Quiz - 136

Description: web technology Online Quiz - 136
Number of Questions: 20
Created by:
Tags: web technology
Attempted 0/20 Correct 0 Score 0
  1. What is the correct HTML for referring to an external style sheet?
  1. mystyle.css

  2. None of the above


Correct Option: B
  1. Where in an HTML document is the correct place to refer to an external style sheet?
  1. At the top of the document

  2. In the section

  3. At the end of the document

  4. In the section


Correct Option: B

AI Explanation

To answer this question, you need to understand how to link external style sheets in an HTML document.

Option A) At the top of the document - This option is incorrect because placing the reference to an external style sheet at the top of the document would not be the correct place. It is important to separate the structure and content of the document from its styling, which is why the section is typically used for linking external style sheets.

Option B) In the section - This option is correct because the section of an HTML document is where you should place the reference to an external style sheet. This ensures that the styles are loaded before the content is rendered, allowing for consistent and uniform styling throughout the document.

Option C) At the end of the document - This option is incorrect because placing the reference to an external style sheet at the end of the document would not be the correct place. By the time the styles are loaded, the content may have already been rendered without any styling, resulting in a visually inconsistent document.

Option D) In the section - This option is incorrect because the section is meant for the actual content of the HTML document, not for linking external style sheets. Placing the reference to an external style sheet in the section would not adhere to best practices and could result in unexpected styling behavior.

The correct answer is B) In the section. This option is correct because it allows the external style sheet to be loaded before the content is rendered, ensuring consistent and uniform styling throughout the document.

  1. Which HTML tag is used to define an internal style sheet?
  1. None of the above


Correct Option: A
  1. Which HTML attribute is used to define inline styles?
  1. style

  2. font

  3. class

  4. styles


Correct Option: A
Explanation:

The correct answer is A. "style" is the HTML attribute used to define inline styles. This attribute is applied directly to the HTML element and allows you to specify CSS styles for that particular element.

Let's go through the other options and explain why they are incorrect:

B. "font": This attribute is not used to define inline styles. It was commonly used in older versions of HTML to specify font-related styles, but it is now considered deprecated and should be avoided.

C. "class": The "class" attribute is used to define a class for an HTML element, which can be used to apply styles defined in CSS. However, it is not specifically used for defining inline styles.

D. "styles": This is not a valid HTML attribute. The correct attribute is "style".

So, the correct answer is A. "style".

Which is the correct CSS syntax?

  1. body {color: black}

  2. {body;color:black}

  3. {body:color=black(body}

  4. body:color=black


Correct Option: A

How do you insert a comment in a CSS file?

  1. // this is a comment

  2. /* this is a comment */

  3. // this is a comment //

  4. ' this is a comment


Correct Option: B

How do you add a background color for all

elements?

  1. h1 {background-color:#FFFFFF}

  2. all.h1 {background-color:#FFFFFF}

  3. h1.all {background-color:#FFFFFF}

  4. None of the above


Correct Option: A

How do you change the text color of an element?

  1. fgcolor:

  2. text-color:

  3. color:

  4. text-color=


Correct Option: C

Which CSS property controls the text size?

  1. text-style

  2. text-size

  3. font-size

  4. font-style


Correct Option: C

What is the correct CSS syntax for making all the

elements bold?

  1. p {font-weight:bold}

  2. p {text-size:bold}


Correct Option: B

How do you change the font of an element?

  1. font=

  2. f:

  3. font-family:

  4. None of the above


Correct Option: C

How do you make the text bold?

  1. style:bold

  2. font:b

  3. font-weight:bold

  4. None of the above


Correct Option: C

AI Explanation

To make text bold, you can use the CSS property font-weight:bold.

Option A) style:bold - This option is incorrect because style:bold is not a valid CSS property.

Option B) font:b - This option is incorrect because font:b is not a valid CSS property.

Option C) font-weight:bold - This option is correct because using font-weight:bold makes the text bold.

Option D) None of the above - This option is incorrect because option C (font-weight:bold) is the correct way to make text bold.

Therefore, the correct answer is option C.

How do you change the left margin of an element?

  1. indent:

  2. text-indent:

  3. margin-left:

  4. margin:


Correct Option: C

AI Explanation

To change the left margin of an element, you can use the CSS property margin-left. This property allows you to specify the amount of space between the left edge of the element and its surrounding content.

Let's go through each option to understand why it is correct or incorrect:

Option A) indent - This option is incorrect because the indent property is used to specify the indentation of the first line in a block of text. It does not affect the margin of an element.

Option B) text-indent - This option is incorrect because the text-indent property is used to specify the indentation of the first line in a block of text. It does not affect the margin of an element.

Option C) margin-left - This option is correct because the margin-left property allows you to change the left margin of an element. By specifying a value, you can increase or decrease the amount of space between the left edge of the element and its surrounding content.

Option D) margin - This option is incorrect because the margin property is a shorthand property that allows you to set the margin on all four sides of an element at once. It does not specifically target the left margin.

The correct answer is C) margin-left. This option is correct because it specifically targets the left margin of an element.

To define the space between the element's border and content, you use the padding property, but are you allowed to use negative values?

  1. True

  2. False


Correct Option: B
  1. (A)Spam

  2. (B)Hacking

  3. (C)Virus

  4. (D)Phishing

  5. (E)Vishing


Correct Option: A

2.Now a days Vishing has become a criminal practice of using social engineering over which of the following?

  1. (A)Social networking sites

  2. (B)Mobile Phones

  3. (C)E-mails

  4. (D)Cyber caf

  5. (E)All of the above


Correct Option: B

3.When some unidentified / unknown person / firm sends you mail in a trustworthy /lucrative way asking for sensitive banks and online payment information, this is a case of __?

  1. (A)spam

  2. (B)hacking

  3. (C)Phishing

  4. (D)Vishing

  5. (E)Simulation


Correct Option: C

4.Which among the following is a correct definition of "Digital Divide"?

  1. (A) gap between people having access to mobile and internet access

  2. (B) gap between people having access to internet /IT and no internet/IT

  3. (C) gap between people having access to broadband and narrowband internet

  4. (D) gap between people having access to internet banking and normal banking

  5. (E)Gap between the people having an email account and no email account


Correct Option: B

5.Which among the following is the most common source of Viruses to the hard disk of your computer?

  1. (A)Incoming Email

  2. (B)Outgoing Email

  3. (C)CD Roms

  4. (D)Websites

  5. (E)Mobile


Correct Option: A

AI Explanation

To answer this question, you need to understand the common sources of viruses that can infect the hard disk of a computer. Let's go through each option to understand why it is correct or incorrect:

Option A) Incoming Email - This option is correct. Incoming emails can often contain attachments or links that may contain viruses. Clicking on or downloading these attachments can infect your computer's hard disk.

Option B) Outgoing Email - This option is incorrect. Outgoing emails don't typically pose a risk of infecting your computer's hard disk with viruses. The risk lies in the attachments or links received through incoming emails.

Option C) CD Roms - This option is incorrect. While it is possible for CD Roms to contain viruses, they are not the most common source of viruses to the hard disk of a computer.

Option D) Websites - This option is incorrect. While websites can sometimes contain malicious code or links that can infect your computer, they are not the most common source of viruses in comparison to incoming emails.

Option E) Mobile - This option is incorrect. Mobile devices, such as smartphones, can be a source of viruses, but they do not directly infect the hard disk of a computer.

The correct answer is A) Incoming Email. This option is correct because incoming emails often carry attachments or links that may contain viruses, making it the most common source of viruses to the hard disk of a computer.

  1. (A)World Wide Web Consortium

  2. (B)World Wide Web Company

  3. (C)World Wide Web Center

  4. (D)World Wide Web Command

  5. (E)None of them


Correct Option: A
- Hide questions