Web programming basics: HTML, DHTML, XML, scripting, Java, servlets and applets. - Question Bank
1. What is the main purpose of XML namespaces?
2. Which attribute is used to define a unique ID for an HTML element?
3. What is the process of converting HTML, CSS, and JavaScript code into visual representations on a web page called?
4. In XML, what is a root element?
5. Which HTML tag is used to create a form?
6. What is a common characteristic of Java Applets that limits their modern usage?
7. Which attribute is used to specify the character encoding for an HTML document?
8. What is the purpose of the `title` tag in HTML?
9. Which of the following is a benefit of using Servlets over traditional CGI scripts?
10. What is the purpose of a Servlet Container?
11. Which HTML tag is used to create a line break?
12. What is the primary role of CSS (Cascading Style Sheets) in DHTML?
13. In Java Servlets, what is the `HttpServletResponse` object used for?
14. What is the purpose of the `id` attribute in HTML?
15. Which of the following is a key advantage of using XML for data?
16. What is the role of a Web Server in the context of Servlets?
17. Which HTML tag is used to create an ordered list?
18. What does DHTML typically involve combining?
19. What is the main difference between `GET` and `POST` methods in HTTP requests, often handled by Servlets?
20. Which attribute specifies the target window for a hyperlink?
21. What is the purpose of the `<a>` tag in HTML?
22. What is a common use case for Java Servlets?
23. Which HTML tag is used to create a paragraph?
24. What is the primary function of JavaScript in DHTML?
25. In XML, what defines the structure and content rules for an XML document?
26. What does `alt` attribute in an `<img>` tag represent?
27. Which of the following is a scripting language used for dynamic content generation on the server-side, often alongside Java Servlets?
28. What is the purpose of the `<head>` section in an HTML document?
29. Which HTML element is used to create a table?
30. What is the primary characteristic of a Java Applet that distinguishes it from a Servlet?
31. Which method is typically used by Servlets to handle incoming HTTP requests?
32. What is the main advantage of using XML over HTML for data representation?
33. Which attribute is used to define an inline style in HTML?
34. What is the purpose of the `DOCTYPE` declaration in an HTML document?
35. Which of the following is NOT a valid HTML tag?
36. What is the role of a Servlet?
37. Which Java technology is used to create dynamic web pages on the server-side?
38. What is a Java Applet?
39. Which tag is used to create an unordered list in HTML?
40. What is the fundamental difference between HTML and XML?
41. Which attribute is used to specify the URL of an image in the `<img>` tag?
42. What is the purpose of the `<img>` tag in HTML?
43. Which scripting language is most commonly used for client-side web development?
44. What is a script in web programming?
45. Which tag is used to define the main heading in an HTML document?
46. What does XML stand for?
47. Which of the following is a markup language used for structuring and displaying content on the World Wide Web?
48. What is the primary purpose of DHTML?
49. Which tag is used to create a hyperlink in HTML?
50. What does HTML stand for?