You are on page 1of 2

6.

Using list and creating a table


1.How many types of list are there in HTML?.
Ans-There are two types of list in HTML.
a)Unordered list – An unordered list is un-numbered list and list starts with
the <ul> tag. Each list item starts with the <li> tag, this list have a simply plain bullet
point.
b)Ordered list – Ordered list is also called as numbered list. Ordered list start with
<ol> tag, each list item start with <li> tag.it is also a container tag.
2.Define unordered list.
Ans - An unordered list is un-numbered list and list starts with the <ul> tag. Each list
item starts with the <li> tag, this list have a simply plain bullet point
Example –
<ul>
  <li>Coffee</li>
  <li>Tea</li>
  <li>Milk</li>
</ul>
3.Define ordered list.
Ans - Ordered list is also called as numbered list. Ordered list start with <ol> tag,
each list item start with <li> tag.it is also a container tag.
Example –
<ul>
  <li>Coffee</li>
  <li>Tea</li>
  <li>Milk</li>
</ul>
4.What is the purpose of using attribute used in list?.
Ans – The purpose of using attributes in list is to specify the kind of marker to use in
the list, in the cases where that matters (e.g.items are to be referenced by their
number/letter)
5.What is the use of table in html?.
Ans - The HTML tables allow web developers to arrange data like text, images,
links, other tables, etc. into rows and columns of cells.
The HTML tables are created using the <table> tag in which the <tr> tag is used to
create table rows and <td> tag is used to create data cells. The elements under <td>
are regular and left aligned by default.
7.Introduction to java

1.What is java?.
Ans - Java is popular high-level, class-based object oriented programming language originally
it was developed by Sun Microsystems and was released in 1995. 
2.What is the concept of OOPs?.
Ans - OOPs refers to languages that use objects in programming, The main aim of OOP is
to bind together the data and the functions that operate on them so that no other part of
the code can access this data except that function
3.What is the use of inheritance?.
Ans – The main use of inheritance is that the parent property inherited in child class, in
other words inheritance in Java is a mechanism in which one object acquires all the
properties and behaviors of a parent object. It is an important part of OOPs
4.Define byte code?.
Ans - Byte Code can be defined aprins an intermediate code generated by the compiler
after the compilation of source code(JAVA Program). This intermediate code makes Java a
platform-independent language. Java bytecode is also the instruction set for the Java
Virtual Machine
5.Explain java virtual machine.
Ans - Java virtual machine is a virtual machine that work on top of our operating system to
provide a recommended environment for our compiled java code.basically it is a
environment where java compiled code runs smoothly, it also provides runtime
environment to drive the Java Code or applications

You might also like