M2-R5 : WEB DESIGNING & PUBLISHING
July 2022 Paper With solution
SET – 01
M2-R5 : WEB DESIGNING & PUBLISHING July 2022 with Solution
Q1. “w3-border-0” is a border property for w3.css, which of the following is true ?
(A) It has rounded borders
(B) removes all borders
(C) removes rounded borders only
(D) None of these
Solution:
The “w3-border-0” property in w3.css removes all borders from an element. Therefore, option (B) is true: “removes all borders”. Option (A) “it has rounded borders” and option (C) “removes rounded borders only” are not correct. Option (D) “None of these” is also incorrect because option (B) is true.
Q2. “w3-row-padding” is a class which defines :
(A) Container for responsive classes, with 8px left and right padding
(B) Container for responsive classes with no padding
(C) Container for responsive classes with padding
(D) None of these
Solution:
The “w3-row-padding” class in w3.css defines a container for responsive classes with padding. Therefore, option (C) is correct: “Container for responsive classes with padding”.
Q3. What is true for HTML ?
(A) It is used to design static web pages.
(B) It is used to design dynamic web pages
(C) Both (A) and (B) are true
(D) None is true
Solution:
HTML is used to design static web pages, which means that the content on the web page remains the same unless it is modified by a developer.
Therefore, option (A) is true: “It is used to design static web pages”.
However, option (B) “It is used to design dynamic web pages” is not entirely correct. While HTML is used as a foundational markup language for web development, dynamic web pages are created using additional technologies such as CSS, JavaScript, and server-side scripting languages like PHP, Python, or Ruby.
These technologies allow web pages to display content that can change dynamically based on user interactions or other factors.
Therefore, option (C) “Both (A) and (B) are true” is not correct either. Option (D) “None is true” is also not correct because option (A) is true.
Q4. The proper sequence of tags in HTML while coding for a web page is :
(A) < HTML >, <TITLE>, <BODY>, <HEAD>
(B) <HEAD>, <HTML>, <TITLE>, <BODY>
(C) <HTML>,<HEAD>,<TITLE>,< BODY>
(D) <HTML>, <HEAD>, <BODY>, <TITLE>
Solution:
The proper sequence of tags in HTML while coding for a web page is: <HTML>, <HEAD>, <TITLE>, <BODY>. Therefore, option (C) is correct: “<HTML>,<HEAD>,<TITLE>,<BODY>”.
Explanation:
<HTML> is the root element and is always the first tag.
<HEAD> contains the metadata of the page such as the title, links to CSS stylesheets, and scripts. It should come after the <HTML> tag.
<TITLE> defines the title of the page, which appears in the browser tab and search engine results. It should come after the <HEAD> tag.
<BODY> contains the visible content of the page such as text, images, and other HTML elements. It should come after the <HEAD> tag.
Option (A) “<HTML>, <TITLE>, <BODY>, <HEAD>” is incorrect because the <HEAD> tag should come after the <HTML> tag.
Option (B) “<HEAD>, <HTML>, <TITLE>, <BODY>” is incorrect because the <HEAD> tag should come after the <HTML> tag, and the <TITLE> tag should come inside the <HEAD> tag.
Option (D) “<HTML>, <HEAD>, <BODY>, <TITLE>” is incorrect because the <TITLE> tag should come inside the <HEAD> tag, and the <BODY> tag should come after the <HEAD> tag.
Q5 If you think the value of the variable can change then which keyword is used ?
(A) Var (B) Const (C) Let (D) nothing
Solution:
If you think the value of the variable can change then the keyword used is let. Therefore, option (C) is correct: “Let”.
Explanation:
var is used to declare a variable with function scope. It can be reassigned and its value can change during the execution of the code.
const is used to declare a variable with block scope. It cannot be reassigned or its value cannot be changed during the execution of the code.
let is also used to declare a variable with block scope. It can be reassigned and its value can change during the execution of the code.
So, if you think that the value of the variable can change during the execution of the code, you should declare it using the let keyword.
Q6 In CSS the difference between two lines of your content is set by :
(A) min-height property (B) line-height property
(C) max-height property (D) none of these
Solution:
In CSS, the difference between two lines of your content is set by the line-height property. Therefore, option (B) is correct: “line-height property”.
Explanation:
The line-height property sets the height of a line of text. It determines the amount of space between two lines of text, which is also known as the leading.
The min-height property sets the minimum height of an element. If the content inside the element is smaller than the minimum height, the element will expand to the minimum height value.
The max-height property sets the maximum height of an element. If the content inside the element is larger than the maximum height, the element will overflow and display a scrollbar to allow users to scroll through the content.
None of the options (A), (C), and (D) correctly describe the property that sets the difference between two lines of content in CSS.
Q7. very important
<style>
#myHeader {
background-color: lightblue;
color: black;
padding: 40px;
text-align: center;
}
</style>
The # in the above lines of code represents:
(A) an id tag (B) class name (C) an universal tag (D) horizontal frame
Solution:
The “#” symbol in the above lines of code represents an id tag. Therefore, option (A) is correct: “an id tag”.
Explanation:
In CSS, the “#” symbol is used to select an element with a specific id. The id is a unique identifier that is assigned to an HTML element using the “id” attribute.
The syntax for selecting an element with a specific id is: #id_name.
In the given code, the “#myHeader” selector selects an HTML element with an “id” attribute value of “myHeader” and applies the specified styles to it.
Option (B) is incorrect because class names are selected using the “.” (dot) symbol, not “#” (hash) symbol.
Option (C) is incorrect because the “*” (asterisk) symbol represents the universal selector, which selects all elements in the HTML document.
Option (D) is incorrect because there is no such thing as a “horizontal frame” in CSS.
Q8. What is the World Wide Web ?
(A) Software that controls the internet.
(B) Another name for the internet.
(C) System for interconnected WebPages which are accessible over the internet.
(D) All of the above
Solution:
The World Wide Web (WWW or Web) is a system for interconnected web pages which are accessible over the internet. Therefore, option (C) is correct: “System for interconnected WebPages which are accessible over the internet”.
Explanation:
The World Wide Web (WWW or Web) is a system of interconnected web pages, documents, and other resources, linked by hyperlinks and URLs (Uniform Resource Locators).
The WWW is one of the services that run on the internet, but it is not the same thing as the internet itself.
The internet is a global network of computer networks, whereas the Web is a way to access information and resources over the internet using a web browser.
Option (A) is incorrect because software that controls the internet is not the same thing as the Web. The internet is a complex network of hardware, software, and protocols that connect computers and other devices around the world.
Option (B) is incorrect because the Web is just one of the many services that run on the internet. The internet also includes email, file transfer, remote login, and other services.
Q9 Following HTML tag is used to declare internal CSS :
(A) <style> (B) <Head> (C) <link> (D) <Script>
Solution:
The <style> HTML tag is used to declare internal CSS. Therefore, option (A) is correct: “<style>”.
Explanation:
The <style> tag is used to define internal CSS styles in an HTML document.
The <head> tag is used to contain information about the document such as the document title, meta data, and links to external resources such as stylesheets and scripts.
The <link> tag is used to link external resources such as stylesheets to an HTML document.
The <script> tag is used to define client-side scripts such as JavaScript.
Q10 Which of the following type of variable is visible only within a function where it is defined ?
(A) Global variable (B) Local variable
(C) Both (A) and (B) (D) None of the above
Solution:
The type of variable that is visible only within a function where it is defined is a local variable. Therefore, option (B) is correct: “Local variable”.
Explanation:
In JavaScript, a variable declared inside a function using the “var”, “let”, or “const” keywords is a local variable.
A local variable is only accessible within the function in which it is defined.
Outside of the function, the variable is undefined.
In contrast, a global variable is accessible from anywhere in the JavaScript code, including inside functions.
Therefore, option (A) is incorrect because a global variable is visible throughout the entire program, not just within a function where it is defined.’
Q11. The curve adjustment is used to control the :
(A) exposure in the image (B) shape of the image
(C) direction of the image (D) All of the above
Solution:
The curve adjustment is used to control the exposure in the image. Therefore, option (A) is correct: “exposure in the image”.
Explanation:
The curve adjustment tool is a feature commonly found in image editing software that allows for precise control over the brightness and contrast levels of an image.
By adjusting the curve, it is possible to make specific tonal adjustments to an image, such as increasing the brightness of the highlights, darkening the shadows, or adjusting the mid-tones.
These adjustments can help to improve the overall exposure of an image, making it brighter or darker as needed.
Options (B) and (C) are incorrect because the curve adjustment tool does not control the shape or direction of an image.
Q12 All the tags present in HTML are :
(A) Non – Case Sensitive (B) Lower Case
(C) Upper Case (D) Case Sensitive
Solution:
All the tags present in HTML are case insensitive. Therefore, option (A) is correct: “Non – Case Sensitive”.
Explanation:
In HTML, the names of tags are not case sensitive, meaning that they can be written in upper case, lower case, or a mixture of both.
For example, the following three lines of code are equivalent and will produce the same result:
<p>This is a paragraph.</p>
<P>This is a paragraph.</P>
<p>THIS IS A PARAGRAPH.</p>
However, it is common practice to use lower case tags in HTML to improve readability and consistency in the code.
Options (B), (C), and (D) are incorrect because although lower case is commonly used, upper case tags and mixed case tags are also valid and will be interpreted by the browser in the same way as lower case tags.
For more Post please visit O Level Previous Year Questions With Answer Post
For More technical contents please visit over another website
Hope so, you enjoy the post M2-R5 : WEB DESIGNING & PUBLISHING July 2022 with Solution for more content don’t forget to like our channel.
#M2-R5 : WEB DESIGNING & PUBLISHING July 2022 with Solution #M2-R5 : WEB DESIGNING & PUBLISHING with Solution