









































































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
This practice exam assesses expertise in Django, a high-level Python web framework. Topics include model-view-template architecture, ORM (Object-Relational Mapping), Django security practices, and building scalable web applications with Django.
Typology: Exams
1 / 81
This page cannot be seen from the preview
Don't miss anything!










































































Question 1. What is the primary role of HTML in the web development stack? A) Styling the web page B) Adding interactive behavior C) Structuring the content D) Managing databases Answer: C Explanation: HTML is the structure layer, providing the backbone for content organization on web pages. Question 2. Which tag is used to declare the document type for an HTML5 page? A) B) C) D) Answer: B Explanation: is the correct declaration for HTML5 documents and must appear at the very top. Question 3. What does the tag define? A) The main heading of the page B) The entire HTML document C) The body section D) The metadata Answer: B Explanation: The tag wraps all content and marks the start and end of an HTML document.
Question 4. Which attribute is used to specify the language of an HTML document? A) language B) lang C) locale D) type Answer: B Explanation: The lang attribute is placed in the tag to specify the document's language. Question 5. Which element is used for metadata not visible to users? A) B) C) D) Answer: B Explanation: tags reside in the section and store metadata such as charset and viewport. Question 6. What is the correct way to specify UTF-8 character encoding? A) B) C) D) Answer: B Explanation: ensures characters are interpreted correctly. Question 7. Where should the tag be placed?
B) rel="icon" C) rel="shortcut" D) rel="apple-touch-icon" Answer: B Explanation: rel="icon" links a favicon for browser tabs. Question 11. What element is used for paragraphs? A) B)
C) D) Answer: B Explanation:
defines a paragraph. Question 12. How do you insert a line break in text? A) B) C) D) Answer: B Explanation: creates a line break. Question 13. Which tag applies strong emphasis to text? A) B)
C) D) Answer: B Explanation: semantically indicates strong importance. Question 14. What does the tag represent? A) Underlined text B) Emphasized text C) Deleted text D) Highlighted text Answer: B Explanation: indicates stress emphasis. Question 15. Which tag is used for underlining text? A) B) C) D) Answer: A Explanation: underlines enclosed text. Question 16. What is the purpose of the tag? A) Italicize text B) Strikethrough text C) Bold text Answer: A Explanation: references the source of quoted material. Question 20. Which tag represents the introductory content of a page? A) B) C) D) Answer: B Explanation: contains introductory content, typically logo and navigation. Question 21. What does the tag represent? A) Main heading B) End content, like copyright C) Navigation links D) Article headline Answer: B Explanation: holds closing content such as author, copyright, or related links. Question 22. Which tag is used for site navigation? A) B) C) D) Answer: AExplanation: defines navigation links for a site. Question 23. What is the main content area of a page called? A) B) C) D) Answer: B Explanation: contains the central content unique to the page. Question 24. Which tag is used for grouping related content within a document? A) B) C) D) Answer: B Explanation: divides content into thematic groups. Question 25. What tag is used for independent, self-contained content? A) B) C) D) Answer: A Explanation: is for standalone items like blog posts or news articles.
Question 29. What is the difference between and ? A) is for numbered lists, for bulleted B) creates unordered lists, creates ordered lists C) is for images, for links D) for tables, for paragraphs Answer: B Explanation: is unordered (bullets); is ordered (numbers). Question 30. Which tags are used in a definition list? A) , , B) , C) , D) , , Answer: A Explanation: for list, for term, for definition. Question 31. How do you create nested lists? A) Place inside B) Use inside C) Place inside D) Use inside Answer: A Explanation: Nesting is done by placing a or inside a . Question 32. Which tag is used to create a table?
A) B) C) D) Answer: B Explanation: is the container for all table content. Question 33. What is the purpose of in a table? A) To define table footer B) To group header rows C) To display captions D) To merge cells Answer: B Explanation: groups header rows for easier styling and accessibility. Question 34. Which tag holds the main table data? A) B) C) D) Answer: A Explanation: contains the primary content rows. Question 35. What is the role of in a table? A) Holds table title
C) verticalspan D) mergespan Answer: B Explanation: rowspan merges cells across rows. Question 39. What is the use of the scope attribute in ? A) Sets font size B) Defines cell’s heading scope C) Merges cells D) Adds links Answer: B Explanation: scope improves table accessibility by specifying header context. Question 40. Which tag is used to create a hyperlink? A) B) C) D) Answer: B Explanation: defines an anchor for links. Question 41. What is the difference between absolute and relative URLs? A) Relative URLs are longer B) Absolute URLs specify the full path, relative are local C) Relative are only for images
D) Absolute URLs are for CSS only Answer: B Explanation: Absolute URLs use full addresses; relative are based on current directory. Question 42. What does target="_blank" do in a link? A) Opens link in a new tab B) Makes link bold C) Adds a target icon D) Disables the link Answer: A Explanation: target="_blank" opens the link in a new browser tab. Question 43. Which attribute prevents passing referrer information to linked sites? A) rel="nofollow" B) rel="noopener" C) rel="noreferrer" D) rel="external" Answer: C Explanation: rel="noreferrer" blocks referrer info. Question 44. What is the purpose of rel="nofollow"? A) Prevents search engines from following the link B) Adds a no-follow icon C) Opens in new window D) Disables link
Explanation: action defines the form submission URL. Question 48. What is the difference between GET and POST methods in forms? A) GET is secure, POST is not B) GET appends data in URL, POST sends in body C) POST appends data in URL, GET sends in body D) Both are the same Answer: B Explanation: GET data is visible in URL; POST keeps data hidden. Question 49. What tags group form elements for better organization? A) and B) and C) and D) and Answer: A Explanation: groups elements, provides a title. Question 50. Which input type is used for passwords? A) B) C) D) Answer: B Explanation: input type="password" hides entered characters.
Question 51. What input type is used for email addresses? A) B) C) D) Answer: B Explanation: type="email" enables email validation and mobile keyboards. Question 52. Which input type allows users to pick a date? A) B) C) D) Answer: C Explanation: type="date" provides a date picker. Question 53. What input type is used for uploading files? A) B) C) D) Answer: A Explanation: type="file" lets users select files for upload.
A) B) D) Answer: B Explanation: B) C) D) Answer: A Explanation: type="radio" creates mutually exclusive selection options. Question 59. What is the correct element for a checkbox input? A) B) C) D) Answer: A Explanation: type="checkbox" creates a box users can check or uncheck. Question 60. Which tag provides a label for a form control? A)
B) C) D) <desc> Answer: B Explanation: <label> improves accessibility and click areas. Question 61. How do you make a form input mandatory? A) required B) mandatory C) validate D) must Answer: A Explanation: required makes the field compulsory. Question 62. Which attribute restricts the minimum number of characters in input? A) minlength B) min C) minchars D) lowerbound Answer: A Explanation: minlength sets the minimum character requirement. Question 63. Which attribute provides a sample value inside an input field? A) value B) preview