Resit 2015 (part2) Flashcards

1
Q

HTML5 syntax allows embedding an anchor tag within a title tag. True/False?

A

False (Embedding anchor tags within a title tag is not valid HTML5 syntax).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Inline CSS in the body tag should override similar styles in the head tag. True/False?

A

True (Inline CSS in the body tag should override similar styles defined in the head tag).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

The ‘heading’ tag is a standard HTML5 tag for main headings. True/False?

A

False (There is no ‘heading’ tag in standard HTML5).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

It’s acceptable to have inline CSS styles for every paragraph in HTML5. True/False?

A

False (Using inline CSS for every paragraph is not recommended; external or internal CSS is preferred).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Using a method attribute with value “DELETE” in a form tag is valid in HTML5. True/False?

A

False (Using a DELETE method in a form tag is not valid in HTML5).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Input tags in HTML5 should always be self-closing. True/False?

A

True (Input tags in HTML5 are self-closing).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

The ‘section’ tag in HTML5 should be closed before the ‘body’ tag. True/False?

A

True (Section tags should be closed before the body tag in HTML5).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

A ‘nav’ tag can be used for the main heading of a webpage in HTML5. True/False?

A

False (Nav tag is for navigation, not for the main heading).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

The use of JavaScript and AJAX is recommended in HTML5 for basic assignments. True/False?

A

False (The use of JavaScript and AJAX is not prohibited in HTML5; however, it was specifically not allowed in the assignment context).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

The footer tag in HTML5 can appear before the closing body tag. True/False?

A

True (The footer tag can appear before the closing body tag).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

A ‘strong’ tag in HTML5 is used for emphasizing text. True/False?

A

True (Strong tag is used for emphasizing text).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Inline CSS is the preferred way to style elements in HTML5. True/False?

A

False (Inline CSS is not the preferred way; external or internal CSS is generally recommended for maintainability and scalability).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

The ‘category’ and ‘expired’ text in input tags should be outside the tags in HTML5. True/False?

A

True (Category and Expired should be label elements or outside input tags).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

HTML5 allows the ‘form’ tag to have a method attribute with the value “DELETE”. True/False?

A

False (DELETE is not a valid method for the form tag).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

A PUT request in a RESTful API can be used to create a new item. True/False?

A

True (PUT request in a RESTful API can be used to create a new item).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

The HTTP GET method is used to retrieve data without affecting the data on the server. True/False?

A

True (GET method is for data retrieval without affecting the data).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

The HTTP response code 200 indicates a successful request. True/False?

A

True (HTTP 200 indicates success).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

In a RESTful API, the PUT method can be called multiple times without side effects. True/False?

A

True (In a RESTful API, PUT method is idempotent; multiple identical requests have the same effect).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

A 405 HTTP response code generally indicates a server-side error. True/False?

A

False (405 error is classified as a client-side error; it means the method is not allowed).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

The HTTP DELETE method is used to delete resources in a RESTful API. True/False?

A

True (DELETE method is used to remove resources).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

In RESTful APIs, the same URL cannot handle different HTTP methods. True/False?

A

False (In REST, the same URL can handle different methods).

21
Q

A GET request to ‘/img/logo.png’ is likely for retrieving an image. True/False?

A

True (GET request to ‘/img/logo.png’ is likely for an image).

22
Q

A 204 HTTP response code indicates that no content is being returned. True/False?

A

True (204 indicates success but no content returned).

23
Q

The second PUT request to the same URL in a RESTful API should return an error. True/False?

A

False (In RESTful API, the second PUT request to the same URL should not inherently return an error).

24
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).
24
The 'title' tag in HTML5 should not contain any child elements. True/False?
True (Title tag should not contain child elements).
25
CSS comments can be used inside HTML style tags. True/False?
True (CSS comments can be included inside HTML style tags).
26
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).
26
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).
27
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).
28
The 'input' tag in HTML5 is used for user data entry. True/False?
True (Input tags are for user data entry).
28
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).
29
HTML5 strictly requires all tags to be in lowercase. True/False?
True (HTML5 recommends lowercase for tags for consistency).
30
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).
30
In HTML5, a 'div' tag can be used as a container for other HTML elements. True/False?
True (Div tag is a container element).
31
The 'footer' tag in HTML5 should only contain copyright information. True/False?
False (Footer tag can contain various types of information).
32
A HTTP response code of 500 indicates a client-side error. True/False?
False (500 is a server-side error).
33
HTML5 allows inline JavaScript within HTML elements. True/False?
True (HTML5 allows inline JavaScript).
33
HTML5 does not support the embedding of CSS within HTML documents. True/False?
False (HTML5 supports embedded CSS).
34
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).
35
The 'img' tag in HTML5 must always have an 'alt' attribute for accessibility. True/False?
True (Img tag should have 'alt' attribute for accessibility).
35
The 'span' tag in HTML5 is used for grouping and styling inline elements. True/False?
True (Span tag is for grouping/styling inline elements).
36
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).
36
An HTTP 404 error indicates the requested resource was not found on the server. True/False?
True (404 error indicates resource not found).
36
In HTML5, the 'head' tag should contain the document's metadata. True/False?
True (Head tag contains metadata).
36
The HTTP POST method is typically used for updating existing resources. True/False?
False (POST is typically for creating new resources).
37
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).
38
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).
39
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).
40
The HTTP response code 405 means "Request Timeout." True/False?
False (405 means "Method Not Allowed," not "Request Timeout").