Resit 2015 (part2) Flashcards
HTML5 syntax allows embedding an anchor tag within a title tag. True/False?
False (Embedding anchor tags within a title tag is not valid HTML5 syntax).
Inline CSS in the body tag should override similar styles in the head tag. True/False?
True (Inline CSS in the body tag should override similar styles defined in the head tag).
The ‘heading’ tag is a standard HTML5 tag for main headings. True/False?
False (There is no ‘heading’ tag in standard HTML5).
It’s acceptable to have inline CSS styles for every paragraph in HTML5. True/False?
False (Using inline CSS for every paragraph is not recommended; external or internal CSS is preferred).
Using a method attribute with value “DELETE” in a form tag is valid in HTML5. True/False?
False (Using a DELETE method in a form tag is not valid in HTML5).
Input tags in HTML5 should always be self-closing. True/False?
True (Input tags in HTML5 are self-closing).
The ‘section’ tag in HTML5 should be closed before the ‘body’ tag. True/False?
True (Section tags should be closed before the body tag in HTML5).
A ‘nav’ tag can be used for the main heading of a webpage in HTML5. True/False?
False (Nav tag is for navigation, not for the main heading).
The use of JavaScript and AJAX is recommended in HTML5 for basic assignments. True/False?
False (The use of JavaScript and AJAX is not prohibited in HTML5; however, it was specifically not allowed in the assignment context).
The footer tag in HTML5 can appear before the closing body tag. True/False?
True (The footer tag can appear before the closing body tag).
A ‘strong’ tag in HTML5 is used for emphasizing text. True/False?
True (Strong tag is used for emphasizing text).
Inline CSS is the preferred way to style elements in HTML5. True/False?
False (Inline CSS is not the preferred way; external or internal CSS is generally recommended for maintainability and scalability).
The ‘category’ and ‘expired’ text in input tags should be outside the tags in HTML5. True/False?
True (Category and Expired should be label elements or outside input tags).
HTML5 allows the ‘form’ tag to have a method attribute with the value “DELETE”. True/False?
False (DELETE is not a valid method for the form tag).
A PUT request in a RESTful API can be used to create a new item. True/False?
True (PUT request in a RESTful API can be used to create a new item).
The HTTP GET method is used to retrieve data without affecting the data on the server. True/False?
True (GET method is for data retrieval without affecting the data).
The HTTP response code 200 indicates a successful request. True/False?
True (HTTP 200 indicates success).
In a RESTful API, the PUT method can be called multiple times without side effects. True/False?
True (In a RESTful API, PUT method is idempotent; multiple identical requests have the same effect).
A 405 HTTP response code generally indicates a server-side error. True/False?
False (405 error is classified as a client-side error; it means the method is not allowed).
The HTTP DELETE method is used to delete resources in a RESTful API. True/False?
True (DELETE method is used to remove resources).
In RESTful APIs, the same URL cannot handle different HTTP methods. True/False?
False (In REST, the same URL can handle different methods).
A GET request to ‘/img/logo.png’ is likely for retrieving an image. True/False?
True (GET request to ‘/img/logo.png’ is likely for an image).
A 204 HTTP response code indicates that no content is being returned. True/False?
True (204 indicates success but no content returned).
The second PUT request to the same URL in a RESTful API should return an error. True/False?
False (In RESTful API, the second PUT request to the same URL should not inherently return an error).
The ‘nav’ tag in HTML5 is exclusively for navigation links. True/False?
False (Nav tag can be used for more than just links; it’s for navigation-related content).
The ‘title’ tag in HTML5 should not contain any child elements. True/False?
True (Title tag should not contain child elements).
CSS comments can be used inside HTML style tags. True/False?
True (CSS comments can be included inside HTML style tags).
The ‘form’ tag’s action attribute in HTML5 specifies where to send form data. True/False?
True (Form tag’s action attribute specifies the data submission URL).
Inline styling is more efficient than external CSS for large HTML5 documents. True/False?
False (Inline styling is not more efficient for large documents; external CSS is better).
The ‘aside’ tag is used for content tangentially related to the content around it in HTML5. True/False?
True (Aside tag is for tangential content).
The ‘input’ tag in HTML5 is used for user data entry. True/False?
True (Input tags are for user data entry).
It is a bad practice to close ‘section’ tags after the ‘body’ tag in HTML5. True/False?
True (Bad practice to close section tags after the body tag).
HTML5 strictly requires all tags to be in lowercase. True/False?
True (HTML5 recommends lowercase for tags for consistency).
In a RESTful API, the second PUT request should have the same effect as the first one. True/False?
True (In RESTful API, PUT is idempotent; repeated requests have the same effect).
In HTML5, a ‘div’ tag can be used as a container for other HTML elements. True/False?
True (Div tag is a container element).
The ‘footer’ tag in HTML5 should only contain copyright information. True/False?
False (Footer tag can contain various types of information).
A HTTP response code of 500 indicates a client-side error. True/False?
False (500 is a server-side error).
HTML5 allows inline JavaScript within HTML elements. True/False?
True (HTML5 allows inline JavaScript).
HTML5 does not support the embedding of CSS within HTML documents. True/False?
False (HTML5 supports embedded CSS).
AJAX calls in HTML5 are limited to the GET and POST methods. True/False?
False (AJAX in HTML5 is not limited to GET and POST).
The ‘img’ tag in HTML5 must always have an ‘alt’ attribute for accessibility. True/False?
True (Img tag should have ‘alt’ attribute for accessibility).
The ‘span’ tag in HTML5 is used for grouping and styling inline elements. True/False?
True (Span tag is for grouping/styling inline elements).
In RESTful architecture, a DELETE request should not return a 405 response if the method is allowed. True/False?
True (In RESTful APIs, a DELETE request should not return 405 if the method is allowed).
An HTTP 404 error indicates the requested resource was not found on the server. True/False?
True (404 error indicates resource not found).
In HTML5, the ‘head’ tag should contain the document’s metadata. True/False?
True (Head tag contains metadata).
The HTTP POST method is typically used for updating existing resources. True/False?
False (POST is typically for creating new resources).
The ‘footer’ tag in HTML5 is restricted to only containing copyright information. True/False?
False (The ‘footer’ tag in HTML5 can contain various types of content).
In RESTful APIs, a resource’s URL uniquely identifies it and allows interaction through different HTTP methods. True/False?
True (In RESTful APIs, the resource’s URL uniquely identifies it).
In HTML5, the ‘title’ element is used for setting the document’s title, not for displaying data. True/False?
True (The ‘title’ element is for the document’s title).
The HTTP response code 405 means “Request Timeout.” True/False?
False (405 means “Method Not Allowed,” not “Request Timeout”).