CSA43-INTERNET PROGRAMMING
UNIT I-WEBSITE BASICS, HTML 5, CSS 3, WEB 2.0
Configure LAMP/WAMP, Web Essentials: Clients, Servers and Communication – The Internet –
Basic Internet protocols – World wide web – HTTP Request Message – HTTP Response Message –
Web Clients – Web Servers – HTML5 – Tables – Lists – Image – HTML5 control elements –
Semantic elements – Drag and Drop – Audio – Video controls - CSS3 – Inline, embedded and
external style sheets – Rule cascading – Inheritance – Backgrounds – Border Images – Colors –
Shadows – Text – Transformations – Transitions – Animations
LAMP/WAMP & Web Essentials (10 Questions)
1. What does LAMP stand for?
A. Linux, Apache, MySQL, PHP
B. Linux, Apache, MongoDB, Perl
✅
C. Linux, Angular, MySQL, Python
D. Linux, Apache, MySQL, Python
2. Which one is a Windows-based web development stack?
A. LAMP
B. XAMPP
C. WAMP
D. MAMP
✅
3. Which of the following is not part of a typical LAMP stack?
A. Apache
B. MySQL
C. Windows
D. PHP
✅
4. Which component of LAMP is used to serve web pages?
A. Linux
B. Apache
C. MySQL
✅
D. PHP
5. Which of the following tools includes Apache, MySQL, PHP, and Perl?
A. LAMP
B. WAMP
C. MAMP
D. XAMPP ✅
6. Which of these is not a type of web server?
A. Apache
B. Nginx
C. IIS
D. VPN ✅
7. Which protocol is used for accessing web pages?
A. FTP
B. HTTP
C. TCP
✅
D. SMTP
8. Which layer does HTTP belong to?
A. Transport
B. Network
✅
C. Application
D. Session
9. Which file starts the Apache web server in WAMP?
✅
A. apache.bat
B. httpd.conf
C. mysql.ini
D. start.sh
10. Which OS is most commonly used with LAMP?
A. macOS
✅
B. Windows
C. Linux
D. Android
🌐 Clients, Servers, Communication, Internet (10 Questions)
11. What is the role of a web server?
B. Host and deliver web pages ✅
A. Create web pages
C. Monitor networks
D. Design databases
12. Which is not a web client?
A. Chrome
✅
B. Firefox
C. Apache
D. Safari
13. Which component sends HTTP requests?
A. Server
✅
B. Browser
C. Firewall
D. Router
14. Which of these is a server-side scripting language?
A. HTML
B. CSS
D. PHP ✅
C. JavaScript
15. The Internet is best described as:
A. A LAN
B. A single network
✅
C. A network of networks
D. A database
16. Which device directs data on the internet?
A. Modem
✅
B. Switch
C. Router
D. Firewall
17. Which of the following stores web page files?
A. Client
✅
B. Browser
C. Server
D. HTML
18. DNS is used to:
A. Create websites
✅
B. Translate IP addresses into domain names
C. Translate domain names into IP addresses
D. Secure data
19. Which type of communication does HTTP follow?
A. Full-duplex
✅
B. Asynchronous
C. Stateless
D. Encrypted
20. Which of these is not a client-server architecture protocol?
A. FTP
B. SMTP
✅
C. HTTP
D. IPX
📡 Basic Internet Protocols (10 Questions)
21. Which port is used by HTTP?
A. 20
✅
B. 21
C. 80
D. 443
22. HTTPS uses which protocol for encryption?
A. FTP
B. SSL/TLS
C. SMTP
✅
D. SSH
23. Which protocol is used for sending email?
A. POP3
✅
B. SMTP
C. IMAP
D. HTTP
24. Which protocol is used to receive emails?
A. SMTP
✅
B. IMAP
C. TCP
D. UDP
25. What is the primary function of TCP?
A. Encrypt data
B. Route data
✅
C. Ensure reliable transmission
D. Serve pages
26. What does IP stand for?
A. Internet Program
✅
B. Internal Protocol
C. Internet Protocol
D. Interface Process
✅
27. Which layer does DNS belong to?
A. Application
B. Transport
C. Network
D. Data Link
28. Which version of IP is widely used?
✅
A. IPv2
B. IPv4
C. IPv6
D. IPv1
29. What is the default port for HTTPS?
✅
A. 80
B. 443
C. 8080
D. 22
30. Which protocol breaks data into packets?
A. FTP
✅
B. DNS
C. TCP
D. SMTP
🌍 World Wide Web, HTTP Requests/Responses (10 Questions)
A. Uniform Resource Locator ✅
31. What does URL stand for?
B. Uniform Remote Location
C. Universal Resource Locator
D. Uniform Resource Level
32. Which part of an HTTP request contains form data?
A. Header
B. URL
✅
C. Body
D. Method
33. Which is not an HTTP request method?
A. GET
B. POST
C. FETCH
D. DELETE
✅
34. Which HTTP method is used to update a resource?
A. GET
✅
B. POST
C. PUT
D. DELETE
35. What does the status code 404 indicate?
A. Success
B. Redirect
✅
C. Not Found
D. Server Error
36. HTTP is a ___ protocol.
A. Stateful
B. Secure
✅
C. Stateless
D. Sessionful
✅
37. Which status code represents success?
A. 200
B. 302
C. 403
D. 500
38. Which status code means ‘Forbidden’?
✅
A. 404
B. 403
C. 401
D. 302
39. The response header includes:
A. HTML
B. Request data
✅
C. Status and metadata
D. JavaScript
40. Which HTTP method is used to retrieve data?
✅
A. POST
B. GET
C. PUT
D. HEAD
Web Clients and Web Servers (10 Questions)
41. Which software acts as a web client?
A. Apache
B. MySQL
✅
C. Chrome
D. PHP
42. Which of these is a web server software?
✅
A. Chrome
B. Apache
C. VS Code
D. Adobe XD
43. What is the main function of a web browser?
A. Serve content
B. Store websites
✅
C. Render and display web content
D. Manage databases
44. What does a web server do when a client sends a request?
A. Compiles code
✅
B. Displays a form
C. Sends a response
D. Encrypts emails
45. Which one is not a web server?
A. Nginx
B. Apache
✅
C. Node.js
D. Firefox
46. Which server handles PHP files in a WAMP environment?
A. IIS
B. Nginx
✅
C. Apache
D. Chrome
✅
47. The software that responds to browser requests is:
A. Web server
B. FTP client
C. Router
D. JavaScript
48. Which of these is a client-side language?
A. PHP
B. SQL
✅
C. HTML
D. Node.js
49. Which server serves static files like HTML and CSS?
A. MySQL
✅
B. Apache
C. PHP
D. MongoDB
50. The combination of client and server communicating over HTTP forms:
✅
A. Operating system
B. Web application
C. Programming language
D. Database
🧱 HTML5 (20 Questions)
51. Which tag is used to define a table in HTML?
B. <table> ✅
A. <tbl>
C. <tab>
D. <td>
52. Which tag defines a table row?
✅
A. <td>
B. <tr>
C. <th>
D. <row>
53. How do you create an ordered list?
✅
A. <ul>
B. <ol>
C. <li>
D. <list>
54. What does <li> stand for?
A. List indent
✅
B. Line indent
C. List item
D. Line item
✅
55. Which element is used to display an image?
A. <img>
B. <image>
C. <pic>
D. <src>
56. What attribute is used to define image path?
A. alt
✅
B. href
C. src
D. path
57. Which HTML5 tag is used for inserting a video?
A. <vid>
✅
B. <media>
C. <video>
D. <mp4>
58. Which tag is used for audio content in HTML5?
A. <sound>
✅
B. <music>
C. <audio>
D. <track>
59. What tag is used for drag-and-drop in HTML5?
A. <drag>
B. <dnd>
✅
C. Uses draggable attribute
D. <drop>
60. Which HTML5 element is semantic?
A. <div>
✅
B. <section>
C. <span>
D. <font>
61. Which tag is used to create a form control in HTML5?
✅
A. <control>
B. <input>
C. <formctrl>
D. <submit>
62. Which attribute enables a form field to be mandatory?
✅
A. checked
B. required
C. mandatory
D. validate
✅
63. What does <canvas> element allow?
A. Draw graphics
B. Display images
C. Stream video
D. Animate HTML
64. Which element is used for navigation in HTML5?
A. <navigate>
✅
B. <menu>
C. <nav>
D. <dir>
65. What is the function of <figure> and <figcaption>?
A. Form input
B. Table info
✅
C. Image and caption
D. Sidebar
66. Which input type is new in HTML5?
A. text
✅
B. checkbox
C. email
D. radio
67. How to make input accept only numbers?
A. type="text"
✅
B. type="digits"
C. type="number"
D. type="int"
68. Which tag represents the footer section of a page?
A. <foot>
✅
B. <footer>
C. <bottom>
D. <base>
✅
69. Which tag defines the header for a document or section?
A. <header>
B. <head>
C. <top>
D. <meta>
70. Which tag creates a line break in HTML?
A. <line>
✅
B. <break>
C. <br>
D. <lb>
71.Which tag is used to apply internal CSS?
A. <css>
B. <style>
C. <head>
✅
D. <design>
72.Which of the following is not a valid way to apply CSS?
A. Inline
B. Internal
C. External
D. Embedded JavaScript ✅
73.How do you apply inline CSS to an element?
A. <p css="color:red;">
B. <p style="color:red;">
C. <p color:red;>
✅
D. <p="color:red;">
74.How do you link an external CSS file?
A. <style src="style.css">
B. <css href="style.css">
C. <link rel="stylesheet" href="style.css">
D. <script src="style.css">
✅
75.Which property is used to change background color?
A. bgcolor
✅
B. background-color
C. color-background
D. bg-color
76.Which property sets the text color?
A. text
✅
B. font-color
C. color
D. text-color
77.Which CSS rule has the highest specificity?
✅
A. Class
B. ID
C. Tag
D. Universal selector
78.What symbol is used to select an ID in CSS?
✅
A. .
B. #
C. :
D. $
79.Which property adds a shadow to text?
A. box-shadow
B. text-shadow
C. font-shadow
✅
D. shadow-text
✅
80.How do you apply a border image in CSS?
A. border-image
B. img-border
C. image-border
D. border: image
✅
81.What is the correct syntax for defining a class in CSS?
A. .classname {}
B. #classname {}
C. classname: {}
D. class.classname {}
82.Which property controls element opacity?
A. fade
✅
B. opacity
C. alpha
D. visibility
83.Which property applies rounded corners to a box?
A. border-curve
✅
B. border-corner
C. border-radius
D. corner-radius
✅
84.Which property is used for background transparency?
A. opacity
B. transparent
C. alpha
D. visibility
85.Which is the default position of background images?
✅
A. center
B. left top
C. top right
D. bottom left
86.Which CSS feature allows gradual change of properties?
✅
A. transform
B. transition
C. animation
D. timing
87.What is the default display value for <div>?
✅
A. inline
B. block
C. none
D. flex
88.What is the CSS property for scaling an element?
A. size
✅
B. transform
C. zoom
D. scale
89.Which property makes a smooth animation change?
✅
A. transform
B. transition
C. motion
D. hover
90.Which shorthand defines animation in CSS3?
✅
A. animation-name
B. animation
C. keyframes
D. animate
91.Which keyword defines the starting point of animation?
A. start
✅
B. initial
C. from
D. begin
92.Which keyword is used to define the end of animation?
✅
A. end
B. to
C. final
D. last
93.Which property changes the color when hovered?
A. color:hover
B. hover:color
✅
C. a:hover { color: red; }
D. link:hover
94.Which property controls element movement and rotation?
A. position
B. move
✅
C. transform
D. float
✅
95.How do you apply a drop shadow to a box?
A. box-shadow
B. drop-shadow
C. shadow-box
D. box-effect
96.Which property applies multiple background images?
A. multi-background
✅
B. background-stack
C. background-image
D. background-layer
97.What does the z-index control?
A. zoom
✅
B. background opacity
C. layering of elements
D. horizontal alignment
98.How to make a font italic in CSS?
A. font-italic: true
✅
B. font-style: italic;
C. style: italic;
D. italic: on;
99.Which rule determines CSS property priorities?
A. Selection
✅
B. Specificity
C. Cascade
D. Sorting
100. Which CSS value allows animated color transitions?
A. animation-name
B. transition: color 1s;
C. color-fade
✅
D. color-animate