0

web technology Online Quiz - 157

Description: web technology Online Quiz - 157
Number of Questions: 20
Created by:
Tags: web technology
Attempted 0/20 Correct 0 Score 0

How do you make each word in a text start with a capital letter?

  1. text-transform:capital

  2. text-transform:capitalize

  3. text-transform:uppercase

  4. You can't do that with CSS


Correct Option: B

How to apply a style to several specific element types?

  1. Use the type selector with , delimiter

  2. Use the ID selector with ; delimiter

  3. Use the type selector with . delimiter

  4. Use the ID selector with > delimiter


Correct Option: C

AI Explanation

To apply a style to several specific element types, you can use the type selector with a period (.) delimiter.

Option A) Use the type selector with , delimiter - This option is incorrect. The comma (,) delimiter is used to select multiple elements of different types, not specific element types.

Option B) Use the ID selector with ; delimiter - This option is incorrect. The semicolon (;) is not used as a delimiter for selecting multiple element types.

Option C) Use the type selector with . delimiter - This option is correct. You can use the type selector (e.g., p, div, h1) with a period (.) delimiter to select multiple elements of the same type.

Option D) Use the ID selector with > delimiter - This option is incorrect. The greater than symbol (>) is used to select a direct child element, not to select multiple element types.

The correct answer is C) Use the type selector with . delimiter. This option is correct because it allows you to apply a style to multiple elements of the same type by using the type selector followed by a period (.) delimiter.

What does the ID selector do?

  1. Apply the style to a specific element

  2. Apply the style to all the elements

  3. Apply the style to elements of the same type

  4. Apply the style to a group of elements


Correct Option: C

AI Explanation

To answer this question, you need to understand the concept of CSS (Cascading Style Sheets) selectors.

The ID selector in CSS is used to select and apply styles to a specific element on a web page based on its unique ID. It is denoted by the "#" symbol followed by the ID name.

Option A) Apply the style to a specific element - This option is correct. The ID selector allows you to target and apply styles to a specific element on a web page that has a unique ID. Only the element with the specified ID will be affected by the styles applied using the ID selector.

Option B) Apply the style to all the elements - This option is incorrect. The ID selector targets a specific element, not all elements on the page.

Option C) Apply the style to elements of the same type - This option is incorrect. The ID selector is used to target a specific element based on its unique ID, not elements of the same type.

Option D) Apply the style to a group of elements - This option is incorrect. The ID selector targets a single element, not a group of elements.

The correct answer is A) Apply the style to a specific element. This option is correct because the ID selector is used to select and apply styles to a specific element based on its unique ID.

In what form are style rules presented?

  1. selector { property: value }

  2. selector { property= value }

  3. selector ( property: value )

  4. selector ( property= value )


Correct Option: A

Which is the correct CSS syntax?

  1. body {color: black}

  2. {body;color:black}

  3. body:color=black

  4. {body:color=black(body}


Correct Option: A

In CSS, you have the following options for changing text color?

  1. Common name and Hexcolor only

  2. Common name, RBG value, Hexcolor

  3. RBG value, Hexcolor

  4. Hexcolor only


Correct Option: B

How do you display hyperlinks without an underline?

  1. a {decoration:no underline}

  2. a {underline:none}

  3. a {text-decoration:none}

  4. a {text-decoration:no underline}


Correct Option: C

How do you make the text bold?

  1. font:bold

  2. style:bold

  3. font-weight:bold

  4. style:strong


Correct Option: B

to which component does hibernate maps the java classes?

  1. persistent objects

  2. database tables

  3. only a

  4. both a & b


Correct Option: B

hibernate is a object relational mapping framework.

  1. True

  2. False


Correct Option: A

hibernate uses which class for mapping?

  1. utility classes

  2. Pojo

  3. both 1 & 2

  4. none


Correct Option: B

what are the jar files mainly used for O/R mapping?

  1. junit.jar & connector.jar

  2. ant.jar & hsqldb.jar

  3. hibernate2.jar & jboss-common.jar

  4. jdbc.jar & odbc.jar


Correct Option: D

pick the odd one out.

  1. Caching objects

  2. Pure relational

  3. Outer join fetching

  4. Lazy collection initialization


Correct Option: B

hibernate is a object relational mapping framework.

  1. gives an error

  2. generates ID automatically

  3. throws exception

  4. none of the above


Correct Option: B

A Hibernate Type is used to map a Java property type to a JDBC type or types.

  1. True

  2. False


Correct Option: A

what is the result of this program?

  1. throws exception

  2. automatically generates the ID

  3. compilation error

  4. none of the above


Correct Option: B

which one is responsible for flushing all DB2 buffers on the disk?

  1. QUIESCE

  2. FREEPAGE

  3. PCTFREE

  4. TABLESPACE


Correct Option: A

what is index cardinality?

  1. no of duplicate values

  2. no of distinct values

  3. no of null values

  4. both 1 & 2


Correct Option: B

What are the components available in .NET Framework data provider

  1. Connection

  2. Command

  3. DataSet

  4. All the above


Correct Option: A,B

What are the fundamental objects in ADO.NET?

  1. Data Reader

  2. Data Table

  3. Dataset

  4. Data Row


Correct Option: A,C
- Hide questions