O Level Web Design Paper July 2022 | Set 1
कोड की उपरोक्त पंक्तियों में # दर्शाता है:
The # in the above lines of code represents:
<style>
#myHeader {
background-color: lightblue;
color: black;
padding: 40px;
text-align: center;
}
</style>
In the given code, the # symbol is used to select an ID in CSS.
#myHeader {
background-color: lightblue;
color: black;
padding: 40px;
text-align: center;
}
Here, #myHeader refers to an HTML element with the id="myHeader". In CSS, the # symbol is used to target elements by their ID.
So, the correct answer is:
(A) an id tag.
Correct Answer: A) an id tag
कोड की उपरोक्त पंक्ति में "alt" विशेषता का क्या उपयोग है?
What is the usage of “alt” attribute in the above line of code ?
<img src="xyz.jpg" class="w3-circle" alt="Alps">.
In the given line of code:
The alt attribute is used to specify alternative text that will be displayed if the image cannot be shown (for example, if the image file is missing or there is an error in loading the image).
So, the correct answer is:
(A) specifies an alternate text if the image is not displayed.
Correct Answer: A) specifies an alternate text if the image is not displayed
कोड की उपरोक्त पंक्ति में * दर्शाता है:
In the above line of code * represents:
*my classname
{
attributes here
}
In the given code:
*myclassname
{
attributes here
}
The * symbol in CSS is used as the universal selector. It selects all elements, but when used before a class name (e.g., *myclassname), it means it applies styles to all elements with that class.
So, the correct answer is:
(B) universal selector.
Correct Answer: B) universal selector.
w3.CSS में "s3" वर्ग परिभाषित करता है:
“s3” class in w3.CSS defines :
In w3.CSS, the class s3 is used to define a column width for small screens.
- The
s3class means the element will take 3 out of 12 columns, which translates to a width of 25% on small screens.
So, the correct answer is:
(C) 3 of 12 columns (width: 25.00%) for small screens.
Correct Answer: B) 3 of 12 columns (width:33.33%) for small screens
W3.CSS में एक पैनल क्लास है जो क्रमशः HTML तत्व में ऊपर और नीचे मार्जिन और किसी में बाएँ और दाएँ पैडिंग जोड़ता है। निम्नलिखित में से कौन सा सही है ?
W3.CSS has a panel class that adds top and bottom margin and left and right padding to any HTML elements respectively. Which of the following is true ?
In w3.CSS, the panel class typically applies a 16px margin for the top and bottom, and a 14px padding for the left and right.
So, the correct answer is:
(C) 16 px , 16 px, 14px, 14 px.
Correct Answer: A) 16 px , 16 px, 16px, 16 px
प्रोग्राम का आउटपुट दीजिए
Give the output of the program
<html>
<body>
<script>
var number=50;//global variable
function a(){
alert(number);
}
function b(){
alert(number);
}
a();
</script>
</body>
</html>
The given program defines a global variable number with the value 50, and two functions (a() and b()) that both alert the value of number.
Since number is a global variable, both functions a() and b() can access it. When a() is called, it will alert 50.
So, the correct output is:
(A) 50.
Correct Answer: A) 50
उपरोक्त कोड में, नाम विशेषता गायब है (बोल्ड लाइन)। नाम विशेषता का उपयोग न करने का क्या असर होगा ?
In the above code, the name attribute is missing (bold line ). What will be the effect of not using the name attribute ?
<!DOCTYPE html>
<html>
<body>
<h2>The name Attribute</h2>
<form method = “get”>
First name:<br> <input type="text" value="Shivansh"> <br>
Last name:<br> <input type="text" name="lastname" value="kumar"> <br>
<input type="submit" value="Submit">
</form>
</body>
</html>
In the given code, the name attribute is missing from the first input field (for the first name).
The name attribute is important in a form because it determines the key that is sent to the server along with the value of the input field. Without the name attribute, the value of that input field will not be submitted when the form is sent.
So, the correct answer is:
(A) Value of that input field will not be submitted.
Correct Answer: A) Value of that input field will not be submitted