Explore topic-wise InterviewSolutions in Current Affairs.

This section includes 7 InterviewSolutions, each offering curated multiple-choice questions to sharpen your Current Affairs knowledge and support exam preparation. Choose a topic below to get started.

1.

What is piracy? Mention the types of piracy. How can it be prevented?

Answer»

Software Piracy is about the copyright violation of software created originally by an individual or an institution. It includes:

(i) Stealing of codes / programs and other information illegally and creating duplicate copies by unauthorized meAnswer:and utilizing this data either for one’s own benefit or for commercial profit.

(ii) Downloading software from illegal network sources.

  • An entirely different approach to software piracy is called shareware, acknowledges the futility of trying to stop people from copying software and instead relies on people’s honesty. Shareware publishers encourage users to give copies of programs to friends and colleagues but ask everyone who uses that program regularly to pay a registration fee to the program’s author directly.
  • To prevent unauthorized access, Firewalls, Intrusion Detection Systems (IDS), Virus and Cpntent Scanners, Patches and Hot fixes are used.
2.

Write the example of break statement?

Answer»

The break statement will terminate the loop early. For example, for (var n = 0; n < = 10; n++)

{

if (n == 5)

{

break;

}

document. write(n+”<br>”);

}

3.

What is while loop?

Answer»

In Java Script while loop is another most basic loop. The purpose of a while loop is to execute a statement /block of statement repeatedly as long as an expression is true.
The while statement creates a loop that executes a specified statement as long as the test condition evaluates to true. The condition is evaluated before executing the statement.

The syntax is:

while (condition)

{

body of the loop

}

4.

Write the syntax of the if else statement?

Answer»

if (expression)

{

statements if true

} else

{

statements if false

}

5.

Write a short note on continue statement?

Answer»

The continue statement will skip back to the loop condition check. When the continue statement is executed, the current iteration of the enclosing loop is terminated, and the next iteration begins.

6.

Point out the difference between relative and absolute URL.

Answer»

URL means uniform Resource Locator. 

Two type of URL

1. Relative URL: Here we explicitly give the web site address

Eg: <Ahref=http://www.hscap,kerala.gov.in>

2. Absolute URL: Here we implicitly give the web site address. The path is not specified here. 

Eg: Consider the web pages index.html and school.html saved in the folder C:\BVM.

The file indexs.html contains the following

<A href-’school.htmr’>.

Here we did not specify the full path of the file school.html. But this implicitly points to the file stored in C:\BVM.

7.

The space between the border of the cell and its content can be adjusted by an attribute of the &lt;TABLE&gt; tag. Identify this attribute.

Answer»

Cell padding

8.

Pick the odd one out. Justify your answer(a) NOFRAME (b) Body (c) SRC (d) HEAD

Answer»

(c) SRC. It is an attribute. All other are tags.

9.

List the steps for creating a hyperlink with an example.

Answer»

The power of HTML lies in the ability to provide hyperlinks. <A> tag is used for this.

There are two types of Linking.

(1) External Linking. External links are hyperlinks given to another page. By clicking on hypertext we can link or go to other web pages. 

<A> Anchor tag is used for External Linking.

<A href= “c:\main. html”>Main</A>

(2) Internal Linking- Internal Links are given to a section in the same document.

<HTML>

<HEAD>

<Title>Internal linking</Title>

</HEAD>

<Body>

<p><A name=”Bio”>Biology Group</A><BR>

Subject combinations are Physics, Chemistry, Mathematics and Biology.<P>

<P><A Name= “comp”> computer group</A><BR>

Subject combination are Physics, Chemistry, Mathematics and Computer Science.<p>

<p><A name = “Comm"> Commerce Group</A><BR>

The subject combination are Business studies, Economics, Accountancy and Computer Application

<br><A href=”#Bio’’>Go Biology</A>

<br><A href=”#Comp”>Go Computer</A>

<br><A href=”#Comm”>Go Commerce</A>

</P>

</Body>

</HTML>

10.

........... Tag enclosed the heading cells in a table.(a) &lt;TABLE&gt;(b) &lt;TR&gt;(c) &lt;TH&gt;(d) &lt;TD&gt;

Answer»

<TH> Tag enclosed the heading cells in a table.

11.

Give the value of the frame attribute of &lt;TABLE&gt; tag to get the outer border only.

Answer»

Answer is box 

12.

Distinguish Cellspacing and Cellpadding attributes of&lt;TABLE&gt; tag.

Answer»
  • Cell spacing: Specifies space between table cells.
  • Cell padding: Specifies space between cell border and content.
13.

Baiju wants to place a picture in a table cell. Which attribute of the &lt;TD&gt; tag will be used for this.

Answer»

Back ground.

14.

Give the value of the frame attribute of &lt;TABLE&gt; tag to get the outer border only.

Answer»

the value of the frame attribute of <TABLE> tag to get the outer border only is box.

15.

The space between the bonder of the cell and its content can be adjusted by an attribute of the &lt; TABLE &gt; tag. Identify this attribute.

Answer»

The space between the bonder of the cell and its content can be adjusted by an attribute of the < TABLE > tag is called Cell padding.

16.

Match the following    Group A    Group B&lt;TABLE&gt;HREF&lt;HTML&gt;DIR&lt;IMG&gt;BORDER&lt;A&gt;SRC TYPE

Answer»
    Group A    Group B
<TABLE>BORDER
<HTML>DIR
<IMG>SRC
<A>HREF
17.

Why do we use &lt;NOFRAME&gt; tag?

Answer»

<NOFRAME>ag is used to give a content when some browser that does not support frameset.

18.

HTML has facility to provide external and internal hyper links.1. Which tag is used to include a hyperlink?2. Explain two attributes needed for creating internal

Answer»

1. <A>

2. name, href

19.

Name the possible values of type attribute of Un Ordered list.

Answer»

tag<UL> can take values square, circle or disc.

20.

In HTML, FORM tag can accept user input and communicate it to a server program. (a) Write the general format of FORM tag.(b) How will you Construct a ‘SUBMIT’ button and a RESET’ button within the FORM tag?

Answer»

(a) <form action=url/mailto method=get/post></from>

(b) <nput type=”submit”><input type=”reset”>

21.

The &lt;FORM&gt; tag is used to accept data and communicate with a server program.1. Name any two attributes of FORM tag. 2. How will you create a “SUBMIT” button and a “RESET” button within the FORM tag?

Answer»

1. Action, Method

2. <INPUT Type=“submit”>

    <INPUT Type=“reset”>

22.

Name the tag which is used as an attribute to another tag?

Answer»

<Center>or<Frame>

23.

Name the possible values of type attribute of Ordered list.

Answer»

The tag <OL> an take Values as follows 

1. type = 1 for 1, 2, 3,…. 

2. type = i for i, ii, iii,…. 

3. type = I for I, II, III,….. 

4. type = a for a, b, c,… 

5. type = A for A, B, C,……

24.

Distinguish between cell spacing and cellpadding attribute of &lt;Table&gt; tag.

Answer»

1. Cell spacing: it species the space between two table cells. 

2. Cell padding: It species the space between cell border and content.

25.

Predict the output of the following HTML segment&lt;OL Type = “1 ” start = “5”&gt;&lt;LI&gt; Chocolate&lt;/Li&gt;&lt;LI&gt; Milk&lt;/Li&gt;&lt;LI&gt; Coffee&lt;/Li&gt;&lt;/OL&gt;

Answer»

5. Chocolate

6. Milk 

7. Coffee

26.

Match the following.EMBEDhrefOLloopAstartBGSOUNDhidden

Answer»

EMBED-hidden, 

OL-start, 

A-href, 

BGSOUND-loop

27.

Differentiate internal linking and external linking with examples.

Answer»

1. External Linking -: Used to connect two different web pages

Eg: <A href = “School. html"> School</A>

2. Internal linking: Internal links are given to a section in the same document.

<A href =“#top”>Goto Top </A>

<A href = “#bottom>Goto Bottom </A>

28.

The option attribute is associated with _____&lt;tag&gt;

Answer»

The option attribute is associated with <tag>.

29.

_____ is an empty tag.(a) &lt;FRAME&gt;(b) &lt;FORM&gt;(c) &lt; FRAMESET(d) &lt;TABLE&gt;

Answer»

Correct answer is (a) <FRAME>

30.

Consider the following.&lt;FRAMESET Cols= “50 %,*”&gt;What will be the output of the above HTML statement?

Answer»

It divides browser window with frames of equal width in column wise

Frame 1Frame 2
31.

How can you merge cells in a table?

Answer»

By using attributes Colspan or Rowspan

1. colspan: It Is used to span or to stretch a cell, over a number of columns.

Eg: <TD Colspan=3> spans the cell over three columns.

2. rowspan: It is used to span or to stretch a cell over a number of rows.

Eg: <TD Rowspan=3> spans the cell over three rows.

32.

Categorize the following tags into container tags and empty tags,&lt;A&gt;, &lt;FRAME&gt;, &lt;FRAMESET&gt;, &lt;INPUT&gt;

Answer»

1. Empty tags:

 <FRAME>,<INPUT>

2. Container tags:

<A>, <FRAMESET>

33.

Match the following.Group AGroup B&lt;TABLE&gt;HREF&lt;HTML&gt;DIR&lt;IMG&gt;BORDER&lt;A&gt;SRCTYPE

Answer»
Group AGroup B
<TABLE>BORDER
<HTML>DIR
<IMG>SRC
<A>HERF
34.

Differentiate &lt;FRAME&gt;,&lt;FRAMESET&gt; and &lt;NOFRAME&gt;tags.

Answer»

1. <FRAMESET> tag is used to divide the window more than one pane. It has no body section.

2. <FRAME> It species the pages within a frameset.

3. <NOFRAME><NOFRAME> tag is used to give a content when some browser that does not support frameset.

35.

Name the tag which is used to play the music in background while the webpage is being viewed.

Answer»

<BGSOUND>
<HTML>
<HEAD>
<Title> Table </Title>
</HEAD>
<BODY>
<Table Border = “1”>
<TR align = “Center”>
<TH COLSPAN = “2” > ANIMALS</TH>
</TR>
<TR align-‘center”>
<TD> WILD <BR>BEAR, TIGER</TD> <TD>DOMESTIC <BR>GOAT, DOG</TD>
</TR>
</TABLE>
</BODY>
</HTML>

36.

Match the following.EMBEDhrefOLloopAstartBGSOUNDhidden

Answer»

EMBED- hidden, 

OL – start, 

A – href, 

BGSOUND – loop

37.

Name the possible values of type attribute of Ordered list.

Answer»

Values as follows

1. type = 1 for 1, 2, 3,….

2. type = i for i, ii, iii ……..

3. type = I for I, II, III …….

4. type = a for a, b, c,…

5. type = A for A, B, C ………

38.

Name the possible values of type attribute of Un-ordered list.

Answer»

tag <UL> can take values square, circle or disc

39.

The &lt;FORM&gt; tag is used to accept data and communicate with a server program.1. Name any two attributes of FORM tag.2. How will you create a “SUBMIT” button and a “RESET” button within the FORM tag?

Answer»

1. Action, Method

2. <INPUT Type = “submit”>
<INPUT Type = “reset”>

40.

Consider the following.&lt;FRAMESET Cols= “50%, *”&gt;What will be the output of the above HTML statement?

Answer»

It divides browser window with frames of equal width in column-wise.

Frame 1Frame 2

41.

Differentiate &lt;FRAME&gt;, &lt;FRAMESET&gt; and &lt;NOFRAME&gt; tags.

Answer»

1. <FRAMESET> tag is used to divide the window more than one pane. It has no body section.

2. <FRAME> It specifies the pages within a frameset.

3. <NOFRAME> <NOFRAME> tag is used to give content when some browser that does not support frameset.

42.

Categorize the following tags into container tags and empty tags.&lt;A&gt;, &lt;FRAME&gt;, &lt;FRAMESET&gt;, &lt;INPUT&gt;

Answer»

1. Empty tags

<FRAME> & <INPUT>

2. Container tags

<FRAMESET> & <A>

43.

Differentiate &lt;frame&gt; and &lt;frameset&gt; tags.

Answer»

The <frameset> tag defines the frame sections and the <frame> tag specifies the pages to be loaded in each frame
<FRAMESET> tag And <FRAME>tag Attributes of <FRAMESET>

  • Rows: Used to divide screen in row wise
  • Cols: Used to divide screen in column wise Attributes of <FRAME>
  • SRC: Specifies name of web page to be loaded in Frame
  • Scrolling: Enables the web page displayed to be scrolled

Eg: <FRAMESET Cols=“50%,*”>
< FRAME SRC=“page1.html”>
< FRAME SRC=“page2.html”>
</FRAMESET>

44.

Compare the use of Type attribute in Ordered and Unordered list in HTML?

Answer»

1. Unordered List (<UL>) – Items are displayed with square, circle or disc in front.
Eg: <UL TYPE=”circle”>

2. Ordered List (<OL>) – Items are displayed with the following type values.

Type = 1 for 1, 2, 3,

Type = i for i, ii, iii

Type = I for I, II, III

Type = a for a, b, c,

Type = A for A, B, C

Eg: <OLTYPE=”A”>

45.

Consider the following.&lt;FRAMESET Rows= “50%,*”&gt;What will be the output of the above HTML statement?

Answer»

It divides browser Window into two frames in row-wise equally.

Frame 1
Frame 2

46.

What is meant by push and pop operations?

Answer»

It is the process of inserting(adding) a new data item into the stack. If the stack is full and we try to add a new item into the stack makes the stack over flow, a. Pop operation

It is the process of deleting(removing) a data item from the stack. If the stack is empty and we try to delete an item from the stack makes the stack underflow.

47.

Some of the operations performed on data structures are given below: (i) Insertion (ii) Deletion (iii) Searching(iv) Sorting (a) Which of these operations may face underflow situation? (b) Explain this situation in the context of an appropriate data structure.

Answer»

(a) ii. deletion 

(b) a) Searching:

Searching is the process of finding elements in a data structure

(b) Inserting:

It is the process of adding new data at particular location is called insertion.

(c) Deleting-:

It is the process of removing a particular element from the data structure 

(d) Sorting-:

Arranging elements in a particular order(ascending or descending) is called sorting.

Examples are bubble sort and selection sort.

48.

How does circular queue overcome the limitation of linear queue?

Answer»

As the name implies logically the shape of the circular queue is a shape of a circle. The linear queue has some limitations such as some occasions the capacity of the linear queue cannot be used fully. The limitation of linear queue can overcome by circular queue. Circular queue is a queue in which the two end points are connected.

49.

Write algorithms to perform insertion and deletion operations in linear queues,

Answer»

(a) Insertion operation

It is the process of adding a new item into a queue at the rear end.

If the queue is full and we try to add a new item into the queue makes the queue over flow. 

Algorithm is given below

Step 1 : If front = 1 and rear=N or front =rear+1. 

Then print “OVERFLOW’ and return

Step 2 : If front = Null then

Set front = 1 and rear =1

Else if rear = N then set rear = 1

Else

Set rear = rear + 1

End if

Step 3: SetQueue[rear]=item

Step 4 : stop

(b) Deletion operation

It is the process of deleting (removing) a data item from the queue from the front. If the queu is empty and we try to delete an item from the queue makes the queue underflow.

Algorithm is given below

Step 1 : If front = Null then print “UNDERFLOW and return

Step 2 : Set item = Queue[front]

Step 3: If front = rear then

Set front = Null and rear =Null

Else if front = N then set front =1

Else

Set front = front +1

End if

Step 4 : stop

50.

Write down the full form of FIFO.

Answer»

Full form of FIFO is First In First Out