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
Q

The ‘nav’ tag in HTML5 is exclusively for navigation links. True/False?

A

False (Nav tag can be used for more than just links; it’s for navigation-related content).

24
Q

The ‘title’ tag in HTML5 should not contain any child elements. True/False?

A

True (Title tag should not contain child elements).

25
Q

CSS comments can be used inside HTML style tags. True/False?

A

True (CSS comments can be included inside HTML style tags).

26
Q

The ‘form’ tag’s action attribute in HTML5 specifies where to send form data. True/False?

A

True (Form tag’s action attribute specifies the data submission URL).

26
Q

Inline styling is more efficient than external CSS for large HTML5 documents. True/False?

A

False (Inline styling is not more efficient for large documents; external CSS is better).

27
Q

The ‘aside’ tag is used for content tangentially related to the content around it in HTML5. True/False?

A

True (Aside tag is for tangential content).

28
Q

The ‘input’ tag in HTML5 is used for user data entry. True/False?

A

True (Input tags are for user data entry).

28
Q

It is a bad practice to close ‘section’ tags after the ‘body’ tag in HTML5. True/False?

A

True (Bad practice to close section tags after the body tag).

29
Q

HTML5 strictly requires all tags to be in lowercase. True/False?

A

True (HTML5 recommends lowercase for tags for consistency).

30
Q

In a RESTful API, the second PUT request should have the same effect as the first one. True/False?

A

True (In RESTful API, PUT is idempotent; repeated requests have the same effect).

30
Q

In HTML5, a ‘div’ tag can be used as a container for other HTML elements. True/False?

A

True (Div tag is a container element).

31
Q

The ‘footer’ tag in HTML5 should only contain copyright information. True/False?

A

False (Footer tag can contain various types of information).

32
Q

A HTTP response code of 500 indicates a client-side error. True/False?

A

False (500 is a server-side error).

33
Q

HTML5 allows inline JavaScript within HTML elements. True/False?

A

True (HTML5 allows inline JavaScript).

33
Q

HTML5 does not support the embedding of CSS within HTML documents. True/False?

A

False (HTML5 supports embedded CSS).

34
Q

AJAX calls in HTML5 are limited to the GET and POST methods. True/False?

A

False (AJAX in HTML5 is not limited to GET and POST).

35
Q

The ‘img’ tag in HTML5 must always have an ‘alt’ attribute for accessibility. True/False?

A

True (Img tag should have ‘alt’ attribute for accessibility).

35
Q

The ‘span’ tag in HTML5 is used for grouping and styling inline elements. True/False?

A

True (Span tag is for grouping/styling inline elements).

36
Q

In RESTful architecture, a DELETE request should not return a 405 response if the method is allowed. True/False?

A

True (In RESTful APIs, a DELETE request should not return 405 if the method is allowed).

36
Q

An HTTP 404 error indicates the requested resource was not found on the server. True/False?

A

True (404 error indicates resource not found).

36
Q

In HTML5, the ‘head’ tag should contain the document’s metadata. True/False?

A

True (Head tag contains metadata).

36
Q

The HTTP POST method is typically used for updating existing resources. True/False?

A

False (POST is typically for creating new resources).

37
Q

The ‘footer’ tag in HTML5 is restricted to only containing copyright information. True/False?

A

False (The ‘footer’ tag in HTML5 can contain various types of content).

38
Q

In RESTful APIs, a resource’s URL uniquely identifies it and allows interaction through different HTTP methods. True/False?

A

True (In RESTful APIs, the resource’s URL uniquely identifies it).

39
Q

In HTML5, the ‘title’ element is used for setting the document’s title, not for displaying data. True/False?

A

True (The ‘title’ element is for the document’s title).

40
Q

The HTTP response code 405 means “Request Timeout.” True/False?

A

False (405 means “Method Not Allowed,” not “Request Timeout”).