SPPU Question Paper - 2022 With Answers




First Year BBA(CA) Web Technology SPPU Question Paper - 2022 With Answers


Instructions to the candidates:

  • Answer all questions
  • Figures to the right side indicate full marks.






Q1) Attempt any eight of the following (out of Ten)  [8x2=16]


  • What is WWW ?
Ans:- The World Wide Web (www) is a global computer interface available through the Internet. It is made up of interconnected web pages that offer various types of textual and multimedia content.

The World Wide Web is based on hypertexts: text files (pages) in which hyperlinks or links can be inserted that take users from one web page to another or another point on the same page.



  • Define HTML
Ans:-   HTML, in full hypertext markup language, a formatting system for displaying material retrieved over the Internet. Each retrieval unit is known as a Web page (from World Wide Web), and such pages frequently contain hypertext links that allow related pages to be retrieved. HTML is the markup language for encoding Web pages. 



  • What is stylesheet" ? 
Ans:-   A style sheet is a file or form that is used in word processing and desktop publishing to define the layout style of a document. A style sheet contains the specifications of a document's layout, such as the page size, margins, fonts and font sizes. In modern word processors such as Microsoft Word, a style sheet is known as a template.


  • What is JavaScript?
Ans:-   JavaScript is a dynamic programming language that's used for web development, in web applications, for game development, and lots more. It allows you to implement dynamic features on web pages that cannot be done with only HTML and CSS.


  • Write any two HTTP request methods.
Ans:-   GET

The GET method is used to retrieve information from the given server using a given URI. Requests using GET should only retrieve data and should have no other effect on the data.

POST

A POST request is used to send data to the server, for example, customer information, file upload, etc. using HTML forms.



  • Explain Marquee with two attributes
Ans:-   The HTML <marquee> tag is used for scrolling piece of text or image displayed either horizontally across or vertically down your web site page depending on the settings.


  • Explain table tag with example.
Ans:-    The HTML <table> tag is used for defining a table. The table tag contains other tags that define the structure of the table.

Example


<!DOCTYPE html>
<html>

   <head>
      <title> table </title>
   </head>

   <body>
      <table border = "1">
         <tr>
            <th>1</th>
            <th>2</th>
         </tr>
         
         <tr>
            <td>2</td>
            <td>1</td>
         </tr>
         
      </table>
   </body>

</html>





  • Write any two attributes of list tag
Ans:-   
HTML offers authors several mechanisms for specifying lists of information. All lists must contain one or more list elements. Lists may contain:
  • Unordered information.
  • Ordered information.
  • Definitions.

The previous list, for example, is an unordered list, created with the UL element:

<UL>
<LI>Unordered information. 
<LI>Ordered information. 
<LI>Definitions. 
</UL>


  • Explain any two Dialog Boxes used in JavaScript
Ans:-   JavaScript has three kind of dialog boxs: 

1. Alert box 
2. Confirm box 
3. Prompt box.

Alert box :
An alert dialog box is mostly used to give a warning message to the users.
<html>
<head>
<title> Alert Box</title>
 
<script type="text/javascript">
function Alert() {
  alert ("This is a Sample alert message!");
}
</script>
      
</head>
<body>
      
      <form>
         <input type="button" value="Click Here" onclick="Alert();" />
      </form>
</body>
</html>

Prompt box :
a prompt box pops up, the user will have to click either "OK" or "Cancel" to proceed after entering an input value. If the user clicks "OK" the box returns the input value. If the user clicks "Cancel" the box returns null.
<html>
<head>
<title> Prompt Box</title>
 
<script type="text/javascript">
function getBook(){
  var book = prompt("Enter Book Name : ", "");
  document.write("Your book name is : " + book);
}
</script>
 
</head>
<body>
<form>
 <input type="button" value="Click Here" onclick="getBook();" />
</form>
 
</body>
</html>




  • Explain body tag
Ans:-   The <body> tag defines the document's body. The <body> element contains all the contents of an HTML document, such as headings, paragraphs, images, hyperlinks, tables, lists, etc. Note: There can only be one <body> element in an HTML document.



02) Attempt any four of the following (out of five)

[4x4-16]



  • Explain event handling in JavaScript  
Ans:-   Event handlers can be used to handle and verify user input, user actions, and browser actions: Things that should be done every time a page loads. Things that should be done when the page is closed. Action that should be performed when a user clicks a button. Content that should be verified when a user inputs data.




  • Explain HTML form element with example.
Ans:-   An HTML form is a section of a document which contains controls such as text fields, password fields, checkboxes, radio buttons, submit button, menus etc. An HTML form facilitates the user to enter data that is to be sent to the server for processing such as name, email address, password, phone number


  • Explain array in JavaScript.
Ans:-   Arrays are Objects
Arrays are a special type of objects. The typeof operator in JavaScript returns "object" for arrays. But, JavaScript arrays are best described as arrays. Arrays use numbers to access its "elements".



  • Explain physical and logical HTML
Ans:-  Logical tags describe the behaviour, nature of content for the text enclosed inside the tag. They represent the function of text on the page. Physical tags are used to decide the appearance of the text and do not provide any information about the text.


  • Explain CSS with its types.
Ans:-   CSS (Cascading Style Sheet) describes the HTML elements which are displayed on screen, paper, or in other media.

There are 3 types of CSS which are below:

  • Inline CSS
  • Internal/ Embedded CSS
  • External CSS
The Internal CSS has <style> tag in the <head> section of the HTML document. This CSS style is an effective way to style single pages.

In external CSS, we link the web pages to the external .css file. It is created by text editor. The CSS is more efficient method for styling a website. By editing the .css file, we can change the whole site at once.

Inline CSS is used to style a specific HTML element. Add a style attribute to each HTML tag without using the selectors. Managing a website may difficult if we use only inline CSS. However, Inline CSS in HTML is useful in some situations. We have not access the CSS files or to apply styles to element.



03) Attempt any four of the following (out of Fave)  
[4x4=16]


  • What are the different points to be considered while choosing the calor for websites?
Ans:-   


  •  Describe the importance of sitemap in website
Ans:-   A sitemap tells Google which pages and files you think are important in your site, and also provides valuable information about these files. For example, when the page was last updated and any alternate language versions of the page


  • Explain any 4 predefined functions used in JavaScript
Ans:-   Javascript has many pre-defined functions and functions which are used extensively are

Conversion and Comparison – Functions used for data conversion and comparison

escape(string) – Encodes a string from ASCII into an ISO Latin-1 (ISO 8859-1) character set for HTML processing.

eval()– Converts a string to integer or float value.

unescape – Converts an ISO8859-1 character set to ASCII.

parseFloat() – Returns floating point numbers the same as the parseInt function, but looks for floating point qualified strings and returns their value as a float.

parseInt()– Converts a string to an integer returning the first integer encountered which is contained in the string. If no integer value are found such as in the string “abcd”, then a value of 0 is returned.

isNaN(value) – If the value passed is a not a number, the boolean value of true is returned, if it is a number, it returns false.

typeof operator – This operator returns the type of the object it operates on. Values returned are string values and may be one of “undefined”, “object”, “function”, “number”, “Boolean”, or “string”.



  • Write a Javascript program to display current day, date, Month, year and tume on the web page. 
Ans:-  

 <!DOCTYPE HTML>

<html>
<head>
  <title>Display Current Date and Time </title>
</head>
<body>
  <h1> current date using JavaScript.</h1>
 
  <h2 id="displayDateTime"></h2>
</body>
  <script type="text/javascript">
  var today = new Date();
  var day = today.getDay();
  var daylist = ["Sunday","Monday","Tuesday","Wednesday ","Thursday","Friday","Saturday"];
  var date = today.getFullYear()+'-'+(today.getMonth()+1)+'-'+today.getDate();
  var time = today.getHours() + ":" + today.getMinutes() + ":" + today.getSeconds();
  var dateTime = date+' '+time;
   
  document.getElementById("displayDateTime").innerHTML = dateTime + ' <br> Day :- ' + daylist[day];
 
  </script>
</html>






  • Write HTML code to design the following output for table

Train Time Table
t.No T Name Arrival Time Departure Time
T 101 Express 04.00AM 04.00PM
T 105 Rajdhani 06.15PM 06.00AM







Ans:-


  • 04) Attempt any four of the following (out of Five)




  •  Explain control structure in JavaScript.
Ans:-   



  •  Explam any 4 operators used in JavaScript with example
Ans:- 


  • Design an HTML form to take the information of a customer for booking
a travel plan consisting of fields such as name, address, contact no.. gender etc. you should provide button to submit contents.

Ans:-


  • Write a JavaScript code to accept a number from user and display its
    factorial.

    Ans:-  



    Q5)Attempt any two of the following (out of Three)




    • Explain types of Images.

    Ans:-


    •  Define

    • -hrtag

    • <<td> tag

    • <width> tag


    Ans:-


    • Explain HTML structure.

    Ans:-





                     ............Thank You..........