Introduction to Web Design - B.Tech 2nd Semester Examination, 2025

2025Semester 2Civil-CAEnd Semester
Bihar Engineering University, Patna
B.Tech 2nd Semester Examination, 2025

Introduction to Web Design

Time: 03 HoursCode: 100219Full Marks: 70

Instructions:

  1. The marks are indicated in the right-hand margin.
  2. There are NINE questions in this paper.
  3. Attempt FIVE questions in all.
  4. Question No. 1 is compulsory.
Q.1 Choose the correct option/answer the following (Any seven question only):[14]
  1. Which protocol is used for transferring web pages?

    1. FTP
    2. SMTP
    3. HTTP
    4. SNMP
  2. HTML stands for

    1. Hyper Text Making Language
    2. High Text Markup Language
    3. Hyper Text Markup Language
    4. Hyperlinking Text Management Language
  3. Which tag is used for creating hyperlinks?

    1. <link>
    2. <a>
    3. <href>
    4. <hyper>
  4. Which tag is used to create a form?

    1. <form>
    2. <input>
    3. <textarea>
    4. <fieldset>
  5. Which attribute is used to send form data to a server?

    1. name
    2. Value
    3. action
    4. Id
  6. Inline CSS is applied using

    1. <style> tag in head
    2. style attribute in HTML tag
    3. External stylesheet
    4. None
  7. JavaScript runs on

    1. Server
    2. Client
    3. Database
    4. Compiler
  8. To repeat code a fixed number of times, we use

    1. If
    2. switch
    3. for loop
    4. Break
  9. The default value of uninitialized variables in Java Script is

    1. 0
    2. NULL
    3. undefined
    4. False
  10. On click is an example of

    1. Style property
    2. JavaScript Method
    3. Event handler
    4. None
Q.2 Solve both questions:[14]
  1. Define the Internet and the World Wide Web (WWW). Explain the fundamental difference between these two terms using a simple analogy.

  2. What is a Website and a Homepage? Describe the role of a homepage in a typical website and give an example of the information it commonly contains?

Q.3 Solve both questions:[14]
  1. Explain the difference between Web Browser and Web Server?

  2. What is a URL? Write a sample URL and label its three main parts (Protocol, Domain Name, and Path)?

Q.4 Solve both questions:[14]
  1. What is an HTML Element? Describe the structure of an HTML element with suitable examples.

  2. Create an HTML webpage to display the following table showing Name, Age, and Country of three persons.

    Name Age Country
    Harry Depp 28 Britain
    John Smith 35 USA
    Ram Krishna 19 Nepal
Q.5 Solve both questions:[14]
  1. Design an HTML webpage to show your semester subjects. Use a Nested List, where the main list contains semester numbers (Semester 1, Semester 2) and each semester contains the subjects offered in that semester.

  2. Write the difference between HTML and XHTML?

Q.6 Solve both questions:[14]
  1. Write a short note on: (i) Inline CSS (ii) Internal CSS

  2. Explain the use of <div> and <span> tags in CSS styling.

Q.7 Solve both questions:[14]
  1. Write an HTML program using CSS to demonstrate various text and font properties such as font-family, font-size, font-style, font-weight, text-align, text-decoration, text-transform, and line-height.

  2. Why do we need JavaScript in Web Development?

Q.8 Solve both questions:[14]
  1. Discuss arithmetic and logical Operators in JavaScript with program?

  2. Write a JavaScript program to calculate the sum of the first 10 natural numbers using any looping structure.

Q.9 Solve both questions:[14]
  1. What is Event Handling in JavaScript? Explain with a program?

  2. Discuss Form Validation in JavaScript with example program?