O Level Web Design Paper July 2022 | Set 2
आप सभी अनुच्छेद तत्वों को 'ग्रे' रंग में कैसे बनाएंगे?
How will you make all paragraph elements 'GREY' in color ?
To make all paragraph () elements grey in color, you would use the following CSS rule:
p { color: grey; }
This targets all elements and changes their text color to grey.
So, the correct answer is:
(D) p {color: grey;}.
Correct Answer: D) p {color: grey;}
नीचे दिए गए कोड में किस प्रकार का CSS प्रयोग किया गया है?
Which type of CSS is used in the code below ?
<p style = "border:2px solid red;">
In the given code:
The CSS is applied directly within the style attribute of the HTML element (). This is known as Inline CSS because the styles are written directly in the HTML tag.
So, the correct answer is:
(C) Inline CSS.
Correct Answer: C) Inline CSS
नीचे दिए गए डिव टैग सामग्री कथन पर विचार करें, "उपयोगकर्ता नाम" का मान कैसे प्रिंट करें?
Consider the below div tag content statement, how to print the value of "UserName"?
<div ng-app="" ng-init="firstName='John'">
<p>Input something in the input box:</p>
<p>Name: <input type="text" ng-model="UserName"></p>
<p>You wrote: __________ </p>
</div>
In the given code, to print the value of the UserName using AngularJS, you need to use interpolation with double curly braces {{}}.
To display the value of UserName, you should write it like this:
{{UserName}}
So, the correct answer is:
(B) {{UserName}}.
Correct Answer: B) {{UserName}}
निम्नलिखित जावास्क्रिप्ट कोड का आउटपुट क्या है?
What is the output of the following JavaScript code ?
<script>
var a;
document.getElementById("demo").innerHTML = a+1;
</script>
In the given JavaScript code:
var a;
document.getElementById("demo").innerHTML = a + 1;
- The variable
ais declared but not initialized, so its value isundefined. - When you try to add
undefinedto1, the result will beNaN(Not a Number).
So, the correct answer is:
(D) NaN.
Correct Answer: D) NaN
निम्नलिखित में से कौन सा/से मार्कअप भाषा का उद्देश्य है/हैं?
Which of the following is/are the purpose of markup language ?
I. Add hypertext capabilities
II. Enhance the document
III. To define elements within a document.
निम्नलिखित जावास्क्रिप्ट कोड का आउटपुट क्या होगा?
What will be the output of the following JavaScript code ?
<p id="demo"></p>
<script>
var js = 10;
js *= 5;
document.getElementById("demo").innerHTML = js;
</script>
In the given JavaScript code:
var js = 10;
js *= 5;
document.getElementById("demo").innerHTML = js;
- Initially, the value of
jsis10. - The expression
js *= 5;is equivalent tojs = js * 5;, so it multipliesjsby5, changing its value to50. - The updated value of
js, which is50, will then be displayed inside theelement with the id "demo".
So, the correct answer is:
(D) 50.
Correct Answer: D) 50
निम्नलिखित स्थिति में क्या होगा?
What will happen in the following case ?
h1 {color: red text-decoration: underline; font-style: italic;}
निम्नलिखित में से कौन सा कथन सत्य है/हैं?
Which of the following statement(s) is/are true ?
I. The web designer shouldn‟t just be concerned about the looks but also about user
interface
II. Usability is very important in web design
निम्नलिखित संक्रमण में, .4s क्या वर्णन करता है?
In the following transition, what does .4s describe ?
transition: color .4s linear;
निम्नलिखित में से कौन सा कोड सबसे अधिक कुशल है?
Which of the following code is most efficient ?
Code 1;
for(var number=10;number>=1;number--)
{
document.writeln(number);
}
Code 2 ;
var number=10;
while(number>=1)
{
document.writeln(number);
number++;
}
Here’s a concise explanation:
Code 1:
- It uses a
forloop that correctly counts down from 10 to 1, and stops after 10 iterations.
Code 2:
- It uses a
whileloop but increments the number, which causes an infinite loop because the conditionnumber >= 1never becomes false.
Result:
- Code 1 is efficient because it works as expected.
- Code 2 creates an infinite loop, making it inefficient.
Correct Answer: (A) Code 1.
Correct Answer: A) Code 1
सीएसएस का उपयोग करके सफेद रंग निर्दिष्ट करने के लिए निम्नलिखित में से कौन सा तरीका मान्य है?
Which of the following ways are valid to specify white color using CSS ?
I. #FFFFFF
II. rgb (255, 255, 255)
III. rgb (FF, FF, FF)
Let's analyze the ways to specify white color in CSS:
-
#FFFFFF:
- This is the hexadecimal representation of white color, and it's valid in CSS.
-
rgb(255, 255, 255):
- This is the RGB representation of white, and it's valid in CSS. RGB stands for Red, Green, Blue, and (255, 255, 255) corresponds to the maximum values for all three, which creates white.
-
rgb(FF, FF, FF):
- This is not valid. In RGB, each value must be a number between 0 and 255, not hexadecimal characters like
FF.
- This is not valid. In RGB, each value must be a number between 0 and 255, not hexadecimal characters like
So, the correct answer is:
(D) Both I and II.
Correct Answer: D) Both I and II
यदि हम निम्नलिखित दो वेरिएबल जोड़ते हैं तो किस प्रकार का मान मुद्रित होता है?
What type of value gets printed if we add the following two variables ?
var a = "10";var b = 50;
In JavaScript, the + operator can act as both an arithmetic operator and a string concatenation operator, depending on the type of operands.
Here:
ais a string ("10").bis a number (50).
When a string is involved in an addition operation, JavaScript concatenates the string with the number, converting the number to a string.
So, the result of adding "10" + 50 will be the string "1050" (string concatenation).
Thus, the correct answer is:
(B) Text.
Correct Answer: B) Text