+1 and +2 Computer Science

Previous Question paper answered , and Questions from Textbook

+1 and +2 Computer Application

Previous Question paper answered , and Questions from Textbook

Diploma in Computer Application (DCA)

Previous Question paper answered , and Questions from Textbook.

Master of Computer Applications (MCA)

Previous Question paper answered , and Questions from Textbook

True IQ Computer Online Academy

Contact : +91 9036433020 , mail2trueiq@gmail.com

Pageviews

Wednesday 31 July 2019

+2] 7. Web Hosting - Solved Questions from textbook



                            Chapter 7. Web Hosting

(+2 Computer Application / Computer Science , 
Text book Questions and Answers)


1. The companies that provide web hosting services are called __________. 

Web hosts

2. List the factors that decide the type of web hosting. 

    a). Amount of storage space needed.
    b). The number of visitors expected to visit the website 
    c). The use of resources like database, programming support etc.. 


3. VPS is

 a. Virtual Premium Service

 b. Virtual Private Service 

c. Virtual Premium Server 

e. Virtual Private Server 

Ans e

4. What is co-location? 

   If the client is allowed to place their own purchased web server in the service providers facility, then it is called co-location.

5. What does WHOIS information contain? 

    The registration requires filling information for WHOIS database of domain names for ICANN. WHOIS information requires the name, address, telephone number and e-mail address of the registrant.This information can be made public or can be kept private according to the registrant's wish. After paying the annual registration fees online, the domain is purchased and is registered in our name.

6. Why is 'A record' important for a domain name?

    our domain name has to be connected to the IP address of the web server where the web pages are stored. This is done using 'A record' (Address record) of the domain. An 'A record' is used to store the IP address of a web server connected to a domain name. The 'A record' can be modified by logging into the control panel of the domain.

7. A supermarket in a city wishes to take its business online. It plans to accept orders for its products through a website and receive payments online. 

a. Which type of hosting is suitable for this website? 
b. Explain the reason for your choice

Ans a. Virtual Private Server (VPS) is suitable fot this website.

        b. Cost is less compared to dedicated server. Online payment requires secure transfer. By using VPS , we can set up our own security measures compared to shared hosting. 
  
8. How is responsive web design implemented?

  Responsive web design is the custom of building a website suitable to  work on every  device and   every screen size.  Responsive web design can be implemented using flexible grid layout, flexible images and media queries. Flexible grid layouts set the size of the entire web page to fit the display size of the device. Flexible images and videos set the image/video dimensions to the percentage of display size of the device. Media queries provide the ability to specify different styles for individual devices.

9. What is CMS? What are the features of CMS? Give Examples

     It is a web based software system which is capable of creating, administering and publishing web sites. It provide easy way to design and manage attractive web pages. The user can choose  templates available for downloads.   It is economical and easy way to develop a web sites.

 Some popular CMS software are    WordPress, Drupal,  Joomla etc.

10. What is the advantage of using SFTP protocol in FTP software?

       FTP sends username and password to the server as plain text which is unsecure. Therefore nowadays, SSH FTP (SFTP) protocol which encrypts and sends usernames, passwords and data to the web server is used in the FTP software. SFTP uses Secure Shell (SSH) protocol which provides facilities for secure file transfer.

11. Raju wishes to host a website for his family. What are the advantages that free web hosting companies provide?

     Free hosting provides web hosting services free of charge. The service provider displays advertisements in the websites hosted to meet the expenses. Some free web hosting sites provide the facility to upload the files of our website in their server, but may place certain restrictions on the files. The size of the files that can be uploaded may be limited (supports upto 5 MB only), audio/video files (mp3, mp4, etc.) may not be permitted and so on.

12. Explain the need for applying responsive web design while developing websites today.

    Today we browse web pages using various devices like desktops, laptops, tablets and mobile phones. All these devices have different screen sizes. Traditional web pages are designed to be displayed on the screens of devices like desktops and laptops. These web pages are difficult to view when it is accessed using tablets and mobile phones. The user may have to use the scroll bar to move from one part of the web page to another. In earlier days, a separate website was created for the purpose of viewing in mobile devices. These websites contained web pages whose size matched the screen size of these devices. But maintaining two websites for a single organisation created issues. It would be better if the web page was able to adjust itself to the screen size of the device. This type of web page designing is called responsive web design.

+2] 7. Web Hosting - Previous Questions Chapter wise


                     PLUS TWO COMPUTER APPLICATION

        (+2 Computer Application / Computer Science , 
Previous Questions Chapter wise ..

Chapter  7. Web Hosting


1. Identify the odd one :

(a) Word Press

 (b) File Zilla

 (c) Joomla

 (d) Drupal   

Ans b     

 2. What type of hosting package is suitable for a multinational online shopping site? Mention any two advantages of the package.

3. What is the need of registering a domain name for a website ?Explain the  procedure of domain name registration.

Domain names are used to identify a web site on the internet.Most web hosting companies offer domain registeration facility.The domain name chosen must be unique.It can be done using the website www.whois.net which checks domain name with ICANN( Internet Corporation for Assigned Names and Numbers ) database.When a user inputs the domain name the web page will be displayed using DNS server.The domain name is connected with IP address of the web server using Address record(‘A’ record).The ‘A record’ can be modified by logging into the control panel of the domain.The A record is used to store IP address of web server connected to a domain name. WHOIS is a public database which helps to find out information about a specific domain name.WHOIS database contains name,addres,telephone number and e-mail address of who owns the domain(Registrant).

4. What is SFTP ?

Now a days SSH FTP(SFTP) protocol is used to send user name and password in an encrypted form.It uses SSH protocol.Once the client is authenticated the client canupload files.Some of the popular FTP clients are File Zilla,Cute FTP,Smart FTP ..etc.                                              

 5. ……… provide an easy way to design and manage attractive websites.

a), Free Hosting 

b). CMS

 c). WHOIS

  d). FTP

Ans CMS

6. Compare shared hosting and VPS

Shared hosting:-It is the common type of web hostingIt is called shared because many websites reside on one web server connected to the Internet.They share resources(RAM,CPU etc).Shared hosting is not suitable for wesites with high bandwidth,large storage space etc.It is not suitable for small sites with less traffic.Shared servers are cheaper and easy to use.Updates and security issues are handled by the hosting company.The main dis-advantage of shared hosting is that other sites will slow down if any one of the site has heavy traffic as bandwidth is shared by many sites.    

Virtual Private Server:-A virtual Private Server(VPS) is a physical server that is virtually partitioned into several servers.Each VPS works like a dedicated server and has its own operating system,software etc.Each VPS works as an independent server.The user of VPS can install and configure any type of softwares.VPS is also called virtual dedicated server (VDS).This type of hosting is suitable for websites that requires more features at less expense.Some popular virtualization softwares are Vmware,Free VPS,Virtualbox,Microsoft Hyper-V etc.

7. What type of hosting will you use to support a government website ?Give its advantages .

 Dedicated hosting use to support a goverment website.The advantage of dedicated web hosting is that servers are hosted in data center which has internet connection,uninterrupted power supply etc.

8. Explain three types of web hosting

  a)Shared hosting:-It is the common type of web hostingIt is called shared because many websites reside on one web server connected to the Internet.They share resources(RAM,CPU etc).Shared hosting is not suitable for wesites with high bandwidth,large storage space etc.It is not suitable for small sites with less traffic.Shared servers are cheaper and easy to use.Updates and security issues are handled by the hosting company.The main dis-advantage of shared hosting is that other sites will slow down if any one of the site has heavy traffic as bandwidth is shared by many sites.

 b)Dedicated hosting:-In dedicated hosting a web site uses(lease) an entire server and its resources.The web server is not shared with other servers.It is mostly used by websites that receive a large volume of traffic.The web sites of large organizations,government  departments etc use dedicated web hosting.The advantage of dedicated web hosting is that servers are hosted in data center which has internet connection,uninterrupted power supply etc.

c)Virtual Private Server:-A virtual Private Server(VPS) is a physical server that is virtually partitioned into several servers.Each VPS works like a dedicated server and has its own operating system,software etc.Each VPS works as an independent server.The user of VPS can install and configure any type of softwares.VPS is also called virtual dedicated server (VDS).This type of hosting is suitable for websites that requires more features at less expense.Some popular virtualization softwares are Vmware,Free VPS,Virtualbox,Microsoft Hyper-V etc.

9.Define web hosting

       The process of storing web pages on a server is called web hosting.The companies that provide web hosting services are called web hosts.Hosting allows individuals and organizations to make their website accessible via the World Wide Web.They own and manage web servers.Servers offer uninterrupted connectivity,software packages for databases etc..

10. Write a short note on  free hosting

      Free hosting provides web hosting free of charge.They often displays advertisements in websites to meet the expenses.They often allows only limited support.

Disadvantages of free web hosting are

 1) The free hosting plans do not provide the separate domain name. Instead, they only offer the sub domain upon their own domain name.
 2) There is no customer support.
 3) Limited Bandwidth and Speed HSSLIVE

11. Write the type of  web hosting that is most suitable

    a)  For hosting  a school website with database

    b)  For hosting a website for a firm

     c) For creating a blog to share pictures and posts

      d) For creating a low cost personal websites with unique domain name

Ans c




+2] 6. Client Side Scripting Using JavaScript - Previous Questions chapter wise


                         PLUS TWO COMPUTER APPLICATION

          (+2 Computer Application / Computer Science ,  
Previous Questions Chapter wise ..

                                           Chapter  6 Client Side Scripting Using JavaScript.


1. Explain three different ways to add javascripts in a webpage.

Inside <BODY>

    the scripts will be executed while the contents of the web page is being loaded. The web page starts displaying from the beginning of the document. When the browser sees a script code in between, it renders the script and then the rest of the web page is displayed in the browser window. A script can also be at the bottom of tag. If the scripts are loaded inside the tag or in the tag, they will be loaded along with the HTML code.

Inside<HEAD>

     It is a usual practice to include scripts in the head section of the web page. The main reason for this is that the body section of most of the HTML pages contains a large volume of text that specifies the contents to be displayed on the web page. Mixing a function definition also with this will create a lot of confusion for the web designer for making any kind of modification in the page.More over, the head section of a web page is loaded before the body section. Therefore, if any function call is made in the body section, the function will be executed as the function definition is already loaded in the memory.

External JavaScript file

      We can place the scripts into an external file and then link to that file from within the HTML document. This file is saved with the extension ‘.js’. Placing JavaScripts in external files has some advantages. This is useful if the same script is used across multiple HTML pages or a whole website. It separates HTML and code which makes HTML and JavaScript easier to read and maintain. Storing JavaScript as separate files can speed up page loading.

2. Briefly explain three built in functions in javascript

a. alert() function

             This function is used to display a message on the screen. For example, the statement alert(“Welcome to JavaScript”); will display the following message window on the browser window.

b. isNaN() function

        This function is used to check whether a value is a number or not. In this function, NaN stands for Not a Number. The function returns true if the given value is not a number.

For example.
isNaN(“welcome”); retun the value true.

isNaN(“13.5”); return the value false.

3. What is an external javascript file.Write the advantages of using these files.

      We can place the scripts into an external file and then link to that file from within the HTML document. This file is saved with the extension ‘.js’. Placing JavaScripts in external files has some advantages. This is useful if the same script is used across multiple HTML pages or a whole website. It separates HTML and code which makes HTML and JavaScript easier to read and maintain. Storing JavaScript as separate files can speed up page loading. the JavaScript code is stored as a separate file with the name “check.js”. 

4. In javascript

   a.  Describe any 2 datatypes used?

   b.  Explain any three operators used?

Answers.

    Number : All numbers fall into this category. All positive and negative numbers, all integer and float values (fractional numbers) are treated as the data type number. Thus, 27, -300, 1.89 and -0.0082 are examples of number type data in JavaScript.
  String: Any combination of characters, numbers or any other symbols, enclosed within double quotes, are treated as a string in JavaScript. That is, “Kerala”, “Welcome”, “SCHOOL”, “1234”, “Mark20”, “abc$” and “sanil@123” are examples of string type data.

b. Arithmetic operators, logical operators and assignment operators.

  The standard arithmetic operators are addition (+), subtraction (-), multiplication (*), and division (/),modulo division(%)

    Image result for arithmetic operators
   
      Logical operators are &&,|| and !

        Image result for logical operators
Assignment operators are

Image result for assignment operators

Sunday 28 July 2019

+2] 6. Client Side Scripting Using JavaScript - Solved Questions from text book



            Chapter 6. Client Side Scripting Using JavaScript

((+2 Computer Application / Computer Science ,  
Text book Questions and Answers)



1. Name an attribute of <SCRIPT> tag

Ans. Language

2. In JavaScript ________ function is used to print a text in the body section of an HTML page.

Ans. document.write()

3. ________ is the value given to the language attribute of <SCRIPT> tag to specify that the code follows is JavaScript code.

  Ans. javascript

4. What is the use of JavaScript engine?

     The script code is interpreted at runtime by the JavaScript engine. Every browser has a JavaScript engine. JavaScript engine is a virtual machine for executing JavaScript code. When the browser sees a JavaScript code, it is passed to the script engine for processing. The script engine executes the code. If an HTML page does not contain any JavaScript code, the browser alone is able to render the HTML page.

5. State whether the following statements are true or false

  a. Java Script is the only client side scripting language.----------True

 b.<SCRIPT>  tags  is used to include client side scripting language in an HTML page.----------True

c. An HTML file can contain only one <SCRIPT> tag in it.----------True

d. We can mix JavaScript code with HTML code----------

e. The JavaScript code must be placed within<SCRIPT>and </SCRIPT>  tags.----------True

 f. Every JavaScript statement ends in a semicolon.----------true

6.  Say whether the following statements are true or false:

 a. A function is automatically executed when the browser opens the web page.---------False

 b. A function is usually placed in the head section of a web page.----------False

c. A function can be called any number of times. ----------True

d. Even though a function is defined within the body section, it will not be executed, if it is not called. ------------False

7. List the advantages of using functions in JavaScript.

  The biggest advantage of using a function is that if we need to execute a piece of program code more than once in a web page, the code has to be written only once within the function. We can call the function any number of times to execute it.

8.  number, string and ______ are the basic data types in JavaScript.

Ans. Boolean 

9. true is a ______ type data.

Ans. Boolean

 10. false is a ______ type data. 

Ans. Boolean

11. The keyword used to declare a variable in JavaScript is ______. 

Ans. var

12. The function used to know the type of data in JavaScript is _____. 

Ans. typeof( )

13. What is the use of % operator?

        % operator is a modulus(division remainder).That is a and b are the two operators.then a%b means a divided b and the answer is remainder.For example 6%4 = 2 is the answer.

 14. List the logical operators.

         AND(&&),OR(||) and NOT(!)

15. To select a group of statements in the program code for execution ______ or ______ control structures are used

16 . Give examples of looping statements in JavaScript. 
     Ans. For loop and while loop

17. ______ is a multi branching statement. 

Ans. Switch

18. State whether the following statements are true or false

 a. break statement is used within the switch block.-----------True

 b. If we use switch, we will be using break within it, at least once. ----------True

c. All the program codes written in if-else can be replaced by using switch.-------False

 d. All the program codes written in switch can be replaced by using if-else.-------False

 19. What is the difference between for loop and while loop?

     for loop is used to execute a group of instructions repeatedly. for loop uses a loop variable to control the number of iterations. 

The syntax of for loop is:

 for(initialisation; test_expression; update_statement)

 { 
statements;
 }

 Here initialisation is used to initialise loop variables. test_expression checks the condition and update statement is used to increment or decrement loop variables.

    while loop is a simple loop that repeatedly execute a group of statements based on a condition.

 The syntax is 

while (test_expression) 


statements;

 } 

Here the test_expression is a condition. The statements inside the loop will be executed as long as the condition remains true.

20. Write the value of the variable y in the following:

 1. x = “welcome”; 
y = x.length;                      Ans. y=7

 2. x = “WELCOME”;
 y = x.toLowerCase();       Ans. y= welcome

3. x = “Welcome”;
 y = x.toUpperCase();        Ans. y = WELCOME

 4. x = “welcome”;
 y = x.toLowerCase();          Ans. y = welcome

 5. x = “welcome”;  
y = isNaN(x);                        Ans. y = True

6. x = “welcome”;
 y = charAt(3);                        Ans. y = c


21. When will onMouseEnter event of JavaScript work?

     Occurs when the mouse pointer is moved onto an object.

 22. The property of the drop-down list  (<SELECT> element) used to get the index of the selected item is __________.

Ans.Selected index

23. Compare onKeyDown and onKeyUp events of JavaScript.

     onKeyDown Occurs when the user is pressing a key on the keyboard and onKeyUp Occurs when the user releases a key on the keyboard.

24. What is the use of Number() function?

       The Number()function converts the data into number type and assigns that number into the variable num1. In the above function, num1 and num2 are treated as number type data and hence the correct result is obtained after adding.

25. What is the advantage of placing JavaScript code just above the </BODY> tag?

    The head section of a web page is loaded before the body section. Therefore, if any function call is made in the body section, the function will be executed as the function definition is already loaded in the memory.

26. 1. Write the value of the variable z in each of the following:

 a. var x, y, z;

 x = 5; y = 3;

z = ++x - y--;                              Ans.  3 

b. var x, y, z;

 x = “12”;

 y = 13;

 z = x + y;                                       Ans. 1213

c. var x, y, z;

 x = 20;

y = 8;

 x %= y;

 z = x++;                                             Ans. 4

 d. var x, y, z;

 x = 1;

 y = 4;

z = !(x < y);                                       Ans. False

e. var x, y, z;

 x = 5;

y = 6 ;

z = (x > y) || (y % 2 == 0);                  Ans. True

27. Write JavaScript functions to perform the following

a. To check whether a variable N contains a number 

 b. To convert the string “scert” to all capitals 

 c. To convert the string “HTML” to all small letters.

d. To display a message “Welcome to functions”.

 e. To display the third character in the string “Computer”.

Answers:-

a.x = N

     y = x. isNaN( );

b.     x = "scert"
       
       y = x.ToUppercase( );

c.    x = "HTML"

        y = x.ToLowercase( );

d.  alert("Welcome to functions");

e.   x = "Computer"

       y = x. charAt( 3 );

28. Classify the following values in JavaScript into suitable data types.
                                     
                                    Answer

 “Welcome” -------------String 

 “123”      -------------- String

 “true”      -------------  String

 67.4       -------------- Number

 .98         --------------  Number

 false     --------------- Boolean

 “hello” -------------- String

30. Explain operators in JavaScript.

        Arithmetic operators,Relational operators,Logical operators,String addition operators and assignment operators.

Arithmetic operator

     +,-,*,/,%,++,-- are the arithmetic operators.

Relational  operators:

          ==,!=,<,<=,>,>= are the relational operators.

Logical operator:

      &&,||,! are the logical operators.

String addition  Operators:

       The same operator + is used to add two strings also. Adding two strings means concatenating two strings. Look at the following example code.

 var x, y;

x = “A good beginning ”;

 y = “makes a good ending.”;

 z = x + y;

 The + operator will add the two strings. Therefore the variable z will have the value A good beginning makes a good ending. The same + operator behaves differently based on the type of operands. If the operands are numbers, it will add the numbers. If the operands are strings it will concatenate the strings.
Now, predict the value of z in the following code:

var x, y;

 x = “23”;

y = 5;

z = x + y;
The answer is 235

Assignment operators

        =,+=,-=,*=,/=,%= are the assignment operators.



Monday 22 July 2019

+2] 5. Web Designing Using HTML - Solved Questions from textbook


                    Chapter 5. Web Designing Using HTML

( +2 Computer Application / Computer Science , 
Text book Questions and Answers)


1. What are the different types of lists in HTML?

Ordered list,Unordered list, Definition list and Nested list

 2. Suppose your teacher asks you to display the list of students in your class using HTML document. Which type of list will you prefer? Why? 

Ordered list. Ordered lists present the items in some numerical or alphabetical order. The ordered list is also called numbered list. Ordered lists or numbered lists are used to display a list of items that need to be placed in a specific order.

3. What are the common attributes of<UL> and <OL>tags?

Type attribute is the common tag in <OL>and <UL>

 4. What is the difference between <UL> and <OL> tags?

     Unordered lists or bulleted lists display a bullet or other graphic in front of each item in the list. We can create an unordered list with the tag pair <UL> and </UL>

Ordered lists present the items in some numerical or alphabetical order. The ordered list is also called numbered list. HTML provides the tag pair<OL> and </OL> to create an ordered list

 5. Name the tags used in the definition list

The tag pair <DL> and </DL> enclose the definition lists. Each term in the list is created using the






<DT> tag and the <DD>  tag supplies the definition of the term. 

6. Name any two associated tags of <table>  tag. 

<TR> and <TH> tags


7. Choose the odd one out:

 a. TABLE

 b. TR

 c. TH 

d. COLSPAN

Ans d

 8. Differentiate between <TD> and <TH>

 <TH>  tag is used to define heading cells. It is also a container tag. The heading data should be enclosed between<TH> and </TH>tags.The heading cells are displayed in bold face and in centered form.

 The rows in a table are created using <TR>  tag. It is a container tag. The whole row is enclosed within the tag pair </TR> and </TR>. A <TR>tag always comes inside the <TABLE>  tag. A row itself is a collection of cells. A cell is the smallest component of a table. There are two types of cells - heading cells and data cells

9. <TABLE> tag is empty tag.state whether the statement is true or false

False. <TABLE> tag is a container tag. The whole content of the table should be enclosed within the tag pair <TABLE> and </TABLE>.


10. Give any two attributes of <TR> tag

Align,Valign and Bgcolor.

11. <FRAMESET ROWS = "100,*"> devides the frame into ----------sections

    2

12. List any three attributes of <FRAME>  tag. 

The main attributes of <FRAME> tag are Src,Scrolling,Noresize

13. What is nested frameset? 

 Inserting a frameset within another frameset is called nesting of frameset. 

14. What is the use of <NOFRAME> tag? 

Earlier browsers did not support frames. In such a situation, the browser is expected to respond to the user in some way or the other. The tag pair<NOFRAMES> and </NOFRAMES>  and is used to display some text content in the window if the browser is unable to support frames.


15. No <BODY>section is needed for frameset page. Say TRUE or FALSE.

TRUE

16. HTML provides _______ to input data through web pages. 

Form

17. Name the two tags used within <FORM> to enter text data.

Action and Method 

18. How do radio button control and check box control differ?

 Radio buttons are used to specify only one option from a set of alternatives, and that check boxes are used to mark one or more items in a given list.

 19. Which tag is used to group data within the Form?

   <FIELDSET> tag

20. Name the tag used within <FORM>  to input data.
      <INPUT>tag

21. Action and ________ are the main attributes of the <FORM> tag.

Ans.  Method

22. Differentiate between Text control and Textarea control used in Form.

     The <INPUT> tag is an empty tag that can be used to make different types of controls such as Text Box, Radio Button, Submit Button etc. The Type attribute determines the type of control created by this tag. Text is a value of Type attribute that creates the text box.

   There areoccasions where we need to enter multiple lines of text in a Form. Postal address is
an example. The container tag <TEXTAREA> can be used for this purpose. The area between the tag pair gives space for multi line text depending on the values given to the attributes.

23. Shahir wants to connect his webpage to www.gmail.com. Write the tag and attribute required for this
 Ans. <A> tag and href attribute

24. Sunil developed a personal website, in which he has to create an e-mail link. Can you suggest the protocol used to achieve this link.

<a href=mailto:<nowiki>agentavery@sample.com?subject="HTML link">Click here to send us an email!!!</a>


     



Thursday 18 July 2019

+2] 5. Web Designing Using HTML - Previous Questions Chapter wise



PLUS TWO COMPUTER APPLICATION

(+2 Computer Application / Computer Science , 
Previous Questions Chapter wise ..

                                           Chapter  5. Web Designing Using HTML



1.Consider the following list created using HTML.

D.Laptop

E.Desktop

F.PRINTER


. What will be the value of START and TYPE attribute of <OL> tag ?

(a)START=”D” TYPE=”A”

(b)START=”4” TYPE=”A”

(c)START=”4” TYPE=”I”

(d)START=”D” TYPE=”I” 

Ans. a   


2.Explain the HTML tag <table> and its attributes.

<Table> tag is used to create a table in a web page. tag is used to create Table rows ,
tag is used to insert heading cells and is used to insert table data in a table.
 The attributes of tag are: 

a).BORDER - specifies the thickness of the table border. If there is no border or border value =0 then the table has no border.

 b). BORDERCOLOR -specifies the boarder color of the table.

 c). ALIGN -To align the table in the browser window. Its values are left, right and center.

 d). BGCOLR - To give background colour to the table. 

 e). CELLSPACING - Specifies the space between table cells. 

 f). CELLPADDING - Specifies the space between cell border and the content.

 g). COLS - Specifies the number of columns in the table. 

 h). WIDTH and HEIGHT- Specifies the table width and height in terms of pixel or % value.

 i). FRAME- Specifies the border line around the table.


3. Nila wanted to set the picture “sky.jpg” as the background of his web page.  Choose the tag for doing this. 

(a) <IMG SRC=”Sky.jpg” >
 (b) <BODY SRC=”sky.jpg” >

(c) <IMG BACKGROUND=”sky,jpg” >

(d) <BODY BACKGROUND =”sky.jpg” >

Ans d

4………… attribute of <frame > tag is used to prevent users from resizing      the border of a specific frame by dragging it . 

(a) Scrolling

(b) No resize

 (c) margin width

(d) margin height

Ans. b

5.Explain <OL> tag with suitable example.

1). Type: It indicate the numbering type for the list items.

 Its values are,

 I). Type=1 for default numbering scheme

 II). Type =i for small Roman Numbers

 III). Type= I for large Roman Numbers

 IV). Type=a for lower case letters

 V). Type=A for upper case letters

 2). Start: It specifies the starting number for the list items  

Example:

A. Input Devices

1. Key Board
 2. Mouse
  3.Scanner.

<HTML>
<HEAD>
<OL TYPE='A'>
<LI > Input Devices</LI>
OL TYPE=1>
<LI > KeyBoard </LI>
<LI > Mouse </LI>
<LI> Scanner </LI>
</OL>
</HEAD>
</HTML>

6. Write the complete HTML tag that links the text “PSC” to the website www.keralapsc.org

 Ans: < A HREF = www.keralapsc.org > PSC </A>

7.  Explain nesting of frameset with an example.

Inserting a frameset within another frameset is called nesting of frameset.
   
                                           Frame 1
         
                         Frame 2                     Frame 3


Eg. <Frameset rows="40,*">

       <Frame Src=Sample1.html>

        <Frameset  cols="60,*">

         <Frameset Src=Sample2.html>

          <Frameset Src=Sample3.html>

</Frameset>

</Frameset>

9. . ……………….. tag in HTML is used to create a drop down list.

 a) Select

 b). Option

c). Input

 d). List

Ans: a

10.  Write HTML code for the following Table

                                          No of Students
                 
                                   Science              55
 
                               Commerce            60

                               Humanities           58

<html>

<head>

<H1> TABLE</H1>

</head>

<Body Bgcolor=Green>

<Table border =1 width=25>

<TR>

<TD Colspan=2 Align=Center>No.of  Students</TD>

<TR>
<TD

11.Explain cellspacing and cellpadding.

 Cellspacing - Specifies the space between table cells.

  Cellpadding - Specifies the space between cell border and the content.

12.Name the following tags

a) To include a button in HTML----<INPUT>

b) To partition the browser window.......<FRAMESET>

13. Write the use of the following in HTML

a) <A Href="https:/www.DHSEKERALA.gov.in>DHSE</A>

b) <EMBED Src=song1.mp3> </EMBED>

Ans a) A Hyperlink is an element like text or image on a webpage which help us to move to another document or section of the same web page by clicking on it. <A>tag is used for it. HREF is its main attribute and its values is the URL of the document to be linked. 

b)  EMBED tag is used to add music or video to a web page. This tag includes multimedia controls in web page.

14. Name the tag and attributes needed to creating the following list in HTML
a)
1 RAM                 

2 ROM

3 HARDDISK

b)

  • REGISTERS
  • CACHE
  •   RAM
Ans. a) OL tag.Attributes are type and start

         b) UL tag.Attribute is type.

15. Name the three essential tags for creating a table in HTML.Write the purpose of each tag?

 <TR> tag is used to define a row in the table.

 Its attributes are 
 Align, valign (vertical align), BgColor etc.

<TD> or <TH> tags are used to define cells in a row.<TH>  is used to define heading cells. attributes of<TD>  and <TH>tags are,

 a). ALIGN- Specifies the horizontal alignment of the cell content. Values are Left, Right, Center and Justify 

b). VALIGN- Specifies the vertical alignment of the cell content of a row. Values are Top, Middle, Baseline and Bottom

 c). BGCOLOR- Specifies the background colour for a row. 

<TD>or<TH>  tags are used to define cells in a table row,<TH>  tag is used to insert heading cells and <TD>is used to insert cell data.
 Some attributes of <TD>and<TH>  are,

 a). ALIGN- Specifies the horizontal alignment of the cell content. Values are Left, Right, Center and Justify 

 b). VALIGN- Specifies the vertical alignment of the cell content. Values are Top, Middle, Baseline and Bottom

 c). BGCOLOR- Specifies the background colour for a cell.

 d). COLSPAN- used to stretch a cell over a number of columns. Default value is 1 

 eg. (TD ColSpan=3) 

 e). ROWSPAN- used to stretch a cell over a number of Rows. Default value is 1 

 eg. (TD RowSpan=3)    

Wednesday 17 July 2019

+2] 4. Web Technology - solved questions from text book


                               Chapter 4. Web Technology

(+2 Computer Application / Computer Science , 
Text book Questions and Answers)


1.  Name a protocol that works on top of the Internet Protocol (IP).


2. Expand HTTPS. 

Ans. Hyper text transfer protocol secure.

3. What are the advantages of installing web servers in data centers? 

A web server is a powerful computer which is always switched on and connected to a high bandwidth Internet connection.This will facilitate Internet users around the world to access the websites and services hosted by it at any point of time. Depending on the requirements, a web server can have single or multiple processors, fast access RAM, high performance hard disks, Ethernet cards that supports fast communication, etc. To ensure faster Internet connectivity and redundant power supply, a web server is usually installed in a data center. Data centers are used for storing, processing and serving large amounts of mission-critical data to their clients. A data center requires extensive backup power supply systems, cooling systems, high speed networking connections and security systems.

4. State whether true or false.

 a. The web server software works based on a client-server model.
 b. The web server consists of server operating system and web server software.

 5. The number of bits in a software port number is _____.

 a. 8

 b. 16

 c. 32 

d. 64

Ans b

 6. A Domain Name System returns the ___________ of a domain name.

Ans. IP address

7.  The web pages that remain the same until their code is changed manually are called ______.

Ans. Static webpages

 8.  Name two technologies that can be used to develop dynamic web pages. 

Technologies like PHP, ASP , JSP , etc. are used to develop dynamic web pages. 

9.  The tag used to embed scripts is ______.

Ans  <script>

 10. Write any one of the uses of client side scripting. 

 Client side scripting is mostly used for validations and also for performing simple calculations at the client side before sending the data to the web server. 

11. A JavaScript file has the extension ______. 

Ans .js file

12. What is the advantage of using Ajax? 

Ajax improves the interactivity of the browsers. Ajax is Asynchronous JavaScript and Extensible Markup Language (XML). XML is a markup language which helps users to create new tags. After implementing Ajax on a website, it does not require the entire page to be reloaded for displaying dynamic content on web pages. Ajax allows web pages to be updated by exchanging small amounts of data between the client and the server behind the scenes. This means that it is possible to update parts of a web page, without reloading the entire web page. 


13. Classify the following scripting languages into client side and server side. Javascript, PHP, ASP, 
VBScript 

Ans. Client side scripting languages: -JAvascript,VB script
           Server side scripting languages:- PHP,ASP

14.  .asp files are compiled using the web server software ______. 

Ans. Microsoft's web server software, Internet Information Server (IIS). 

15.. List the different ways of implementing CSS.

  •  In inline style, the CSS style is applied to each tag separately using the style attribute in the body part of the web page.
  •   Embedded CSS codes are placed within the <HEAD> part of the web page. 
  •  Linked CSS implementation is done using an external file with the file extension .css that contains only CSS code and is linked with the web page. 
16.  HTML stands for _______.

Ans. Hper text markup language

 17. What is a container tag? 

Most tags are used in pairs - an opening tag and a closing tag. 
 For example <HTML> is the opening tag and </HTML> is the closing tag.

18. The type of tag that requires only a starting tag but not an ending tag is called  ______.

Ans. Empty tag

 19. State true or false

 a. Tags are case sensitive. --False

b. Bgcolor is an attribute of  <BODY> tag. ---True

c. <TITLE> tag is an empty tag. ---False

d. Dir is an attribute of <HEAD> tag. ---False

20. Name the  attributes of <HTML> tag. 

Ans. Dir,Lang

21. What is the use of attributes in a tag? 

Certain parameters are frequently included within the opening tag to provide additional information such as colour, measurement, location, alignment or other appearances to the web browser. These parameters are called attributes. Most of the attributes require a value.

22. List the different attributes of <BODY> tag.

Ans. Bgcolor,Text,TOPMargin,LeftMargin

23.  How are special characters represented in HTML?

 24. Face attribute is used with ______ tag.

 Ans.<FONT>

 25. List the attributes of <FONT> tag.

Ans.Face,Color,Size

 26. What is the use of <PRE> tag? 

Suppose we want to display the content as we entered in the text editor. The <PRE> tag can facilitate this purpose. Normally the browser delimitted the white spaces, new line characters, the tab spaces, etc. Therfore, we can turn off the automatic formatting applied by the browser with the help of <PRE> tag. This  tag tells the browser that the enclosed text is preformatted and should not be reformatted again; i.e., it tells the browser to display the text exactly in its original form.

27. For scrolling a text, we use _______ tag.

Ans. <MARQUEE>

 28. What are the main attributes of <MARQUEE> tag?

Ans. Height,Width,Direction,Behavior,Bgcolor,Hspace,Vspace 

 29. What is the use of <ADDRESS> tag?

The <ADDRESS> tag defines the contact information for the author/owner of a document or an article. The content of this tag can include name, phone numbers, PIN numbers, e-mail addresses, etc. Most of the browsers display the texts in italics.

30. What is the normal font size in <FONT> tag?

Ans.Normal size is 3

 31. Name the main attributes of <DIV> tag.

Ans.Align,ID,Style

32. Name some of the text formatting tags. 

Ans. <U>,<I>,<B>,<SMALL>,<BIG>,<Strong>

33. List the different attributes of <HR> tag. 

   Ans. Size and Width

34. How many levels of heading tags are available in HTML? 

Ans. <H1>, <H2>, <H3>, <H4>, <H5> and <H6> - Heading tags 

35. Write an HTML code segment to display x3+y3. 

36. State True or False. 

a. <BR> tag is an empty tag. --------True
b. <EM> and <I> tags have same usage in HTML document. ---------True
c. <U> and <I> tags are not allowed to be used together. -----False

37. What is the use of <STRONG> tag? 

The <STRONG> tag is a phrase tag. It defines an important text. The <STRONG> text is usually rendered in bold face. It is just the same as <B> tag. The strong element is used to emphasize a phrase of text content.

38. Which tag performs the same function as that of <STRONG> tag?

Ans. <B>

 39. Pick the odd one out from the following:

 a. HTML

 b. ALIGN

 c.  HEAD 

d.  CENTER 

Ans. b

40. To insert images in an HTML document _______ tag is used. 

Ans <IMG>

41. _______ is the main attribute of <IMG> tag. 

Ans. Src

42. What is the use of Alt attribute of <IMG> tag?

 HTML provides the attribute Alt to specify an alternate text for an image, if the browser cannot display the image

 43. Name the attributes that are used to display an image in a particular size.

Ans. Width,Height,Vspace and Hspace

 44. Which are the attributes that provides horizontal and vertical spaces between two images?

Ans. Vspace and Hspace

45.  Who developed HTML?

Ans. Tim Berners Lee

46. In HTML, there are mainly two sections. Can you name them? 

Html Tags and Html Documents

47. Compare container and empty tags in HTML with examples. 

Most tags are used in pairs - an opening tag and a closing tag.  For example <HTML> is the opening tag and </HTML> is the closing tag. Note that the closing tag has the same text as the opening tag, but has an additional forward slash (/) character after the first angle bracket. Tags that require opening tag as well as closing tag are known as container tags. 

                           Some tags are given an exemption to this rule, and these tags do not require closing tag. Such tags are known as empty tags. This kind of tag does not span over a section.  The tags <BR>, <HR>, <IMG>, etc. are examples of empty tags

48. The default colour of the attribute Alink is __________. 

Ans. Green

49. The default color of the attribute Vlink is  ________.

Ans. Purple

50. Name the tag which has Noshade attribute.

Ans. <HR>