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.
|
|
| 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 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 <TABLE> 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) <TABLE>(b) <TR>(c) <TH>(d) <TD> |
|
Answer» <TH> Tag enclosed the heading cells in a table. |
|
| 11. |
Give the value of the frame attribute of <TABLE> tag to get the outer border only. |
|
Answer» Answer is box |
|
| 12. |
Distinguish Cellspacing and Cellpadding attributes of<TABLE> tag. |
Answer»
|
|
| 13. |
Baiju wants to place a picture in a table cell. Which attribute of the <TD> tag will be used for this. |
|
Answer» Back ground. |
|
| 14. |
Give the value of the frame attribute of <TABLE> 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 < TABLE > 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<TABLE>HREF<HTML>DIR<IMG>BORDER<A>SRC TYPE |
||||||||||
Answer»
|
|||||||||||
| 17. |
Why do we use <NOFRAME> 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 <FORM> 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 <Table> 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<OL Type = “1 ” start = “5”><LI> Chocolate</Li><LI> Milk</Li><LI> Coffee</Li></OL> |
|
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 _____<tag> |
|
Answer» The option attribute is associated with <tag>. |
|
| 29. |
_____ is an empty tag.(a) <FRAME>(b) <FORM>(c) < FRAMESET(d) <TABLE> |
|
Answer» Correct answer is (a) <FRAME> |
|
| 30. |
Consider the following.<FRAMESET Cols= “50 %,*”>What will be the output of the above HTML statement? |
||
|
Answer» It divides browser window with frames of equal width in column wise
|
|||
| 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,<A>, <FRAME>, <FRAMESET>, <INPUT> |
|
Answer» 1. Empty tags: <FRAME>,<INPUT> 2. Container tags: <A>, <FRAMESET> |
|
| 33. |
Match the following.Group AGroup B<TABLE>HREF<HTML>DIR<IMG>BORDER<A>SRCTYPE |
||||||||||
Answer»
|
|||||||||||
| 34. |
Differentiate <FRAME>,<FRAMESET> and <NOFRAME>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> |
|
| 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 <FORM> 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”> |
|
| 40. |
Consider the following.<FRAMESET Cols= “50%, *”>What will be the output of the above HTML statement? |
||
|
Answer» It divides browser window with frames of equal width in column-wise.
|
|||
| 41. |
Differentiate <FRAME>, <FRAMESET> and <NOFRAME> 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.<A>, <FRAME>, <FRAMESET>, <INPUT> |
|
Answer» 1. Empty tags <FRAME> & <INPUT> 2. Container tags <FRAMESET> & <A> |
|
| 43. |
Differentiate <frame> and <frameset> tags. |
|
Answer» The <frameset> tag defines the frame sections and the <frame> tag specifies the pages to be loaded in each frame
Eg: <FRAMESET Cols=“50%,*”> |
|
| 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. 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.<FRAMESET Rows= “50%,*”>What will be the output of the above HTML statement? |
||
|
Answer» It divides browser Window into two frames in row-wise equally.
|
|||
| 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 |
|