page-banner
WDP M2-R5.1 Quiz-3
Q 1.
इनमें से कौन सा फ़ंक्शन उपयोग के लिए फ़िल्टर प्रॉपर्टी द्वारा किसी तत्व के रंग को ग्रे शेड में परिवर्तित करेगा?

Which of these functions will convert the color of an element to a shade of gray by the filter property for use?

A. grayscale()

B. Shadow()

C. Glow()

D. black()

Q 2.
आपकी सामग्री की दो पंक्तियों के बीच अंतर को सेट करने के लिए उपयोग की जाने वाली CSS प्रॉपर्टी है -

The CSS property used to set the spacing between two lines of your content is -

A. min-height property

B. max-height property

C. line-height property

D. none of these

Q 3.
बाहरी स्टाइल शीट को रेफर करने के लिए निम्नलिखित में से कौन सा सिंटैक्स सही है?

Which of the following is the correct syntax to refer to an external style sheet?

A. <style src=example.css>

B. <style src="example.css">

C. <stylesheet> example.css </stylesheet>

D. <link rel="stylesheet" type="text/css" href="example.css">

Q 4.
निम्नलिखित में से कौन सा वाक्य-विन्यास सभी अनुच्छेद तत्वों के पृष्ठभूमि-रंग को पीला करने के लिए सही सिंटैक्स है?

Which of the following is the correct syntax to set the background-color of all paragraph elements to yellow?

A. p { background-color: yellow; }

B. p { background-color: #yellow; }

C. all { background-color: yellow; }

D. all p { background-color: #yellow; }

Q 5.
किसी तत्व के चारों ओर गोल बॉर्डर या गोल कोने बनाने के लिए उपयोग की जाने वाली CSS प्रॉपर्टी है -

The CSS property used to create rounded borders or rounded corners around an element is -

A. border collapse

B. border-radius

C. border distance

D. none of these

Q 6.
निम्नलिखित में से किस गुण का प्रयोग किसी तालिका में बॉर्डर और सामग्री के बीच के स्थान को नियंत्रित करने के लिए किया जाता है?

Which of the following properties is used to control the space between the border and the content in a table?

A. border

B. margin

C. padding

D. resize

Q 7.
निम्नलिखित में से कौन सी प्रॉपर्टी का उपयोग एनीमेशन के एक पुनरावृत्ति को चलाने में लगने वाले समय को परिभाषित करने के लिए किया जाता है?

Which of the following property is used to define the time taken to play one iteration of animation?

A. transition-property

B. transition-time

C. transition period

D. user-selectable

Q 8.
निम्नलिखित में से कौन सा गुण किसी तत्व की दाहिनी सीमा के रंग को परिभाषित करता है?

Which of the following property defines the color of the right boundary of an element?

A. border-right-color

B. border-right-color

C. border-right

D. border-color

Q 9.
निम्नलिखित में से कौन सा गुण बॉक्स तत्व के लिए छाया निर्धारित करता है?

Which of the following property sets the shadow for a box element?

A. shadow

B. set-shadow

C. canvas-shadow

D. box-shadow

Q 10.
यदि हम किसी इमेज के चारों ओर टेक्स्ट के ब्लॉक को लपेटना चाहते हैं, तो हम किस css प्रॉपर्टी का उपयोग करेंगे?

If we wanted to wrap a block of text around an image, which css property would we use?

A. wrap

B. push

C. float

D. aligned

Q 11.
निम्नलिखित जावास्क्रिप्ट कोड स्निपेट का आउटपुट क्या होगा?

What will be the output of the following JavaScript code snippet?
<p id="demo"></p>
var txt1 = "GyanXp_";
var txt2 = "Javascriptmcq";
document.getElementById("demo").innerHTML = txt1 + txt2;

A. error

B. GyanXp

C. undefined

D. GyanXp_javascriptmcq

Q 12.
निम्नलिखित जावास्क्रिप्ट कोड का आउटपुट क्या होगा?

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>

A. 10

B. 50

C. 5

D. Error

Q 13.
निम्नलिखित जावास्क्रिप्ट कोड का आउटपुट क्या होगा?

What will be the output of the following JavaScript code?
function compare() {
  int num = 2;
  char b = 2;
  if(a == b)
    return true;
  else
    return false;
}

A. false

B. true

C. compilation error

D. runtime error

Q 14.
निम्नलिखित जावास्क्रिप्ट कोड का आउटपुट क्या होगा?

What will be the output of the following JavaScript code?
function compare() {
  int a = 1;
  char b = 1;
  if(a.tostring() === b)
    return true;
  else 
    return false;
}

A. runtime error

B. Logical error

C. true

D. false

Q 15.
निम्नलिखित जावास्क्रिप्ट फ़ंक्शन का आउटपुट क्या होगा?

What will be the output of the following JavaScript function?
<p id="demo"></p>
<script>
function javascript() {
  document.getElementById("demo").innerHTML = Math.abs(-7.25);
}
</script>

A. -7.25

B. 7.25

C. -7

D. 7

Q 16.
निम्नलिखित जावास्क्रिप्ट कोड स्निपेट में क्या होता है?

What happens in the following JavaScript code snippet?
var js = 0;
while (js < 10) {
  console.log(js);
  js++;
}

A. an exception is thrown

B. The value of js is logged or stored in a particular location or storage

C. The value of js from 0 to 9 is displayed in the console

D. an error is displayed

Q 17.
निम्नलिखित जावास्क्रिप्ट कोड का आउटपुट क्या होगा?

What will be the output of the following JavaScript code?
var quiz = [1,2,3];
var js = [6,7,8];
var result = quiz.concat(js);
document.write(result);

A. 1, 2, 3, 6, 7, 8

B. 123

C. 1, 2, 3

D. error

Q 18.
जावास्क्रिप्ट इंजन की आवश्यकता क्यों है?

Why is a JavaScript engine needed?

A. both compiling and interpreting JavaScript

B. parsing javascript

C. Interpreting Javascript

D. Compiling to Javascript

Q 19.
जावास्क्रिप्ट _____ की प्रोग्रामिंग भाषा है।

JavaScript is the programming language of _____

A. desktop

B. Mobile

C. Web

D. Server

Q 20.
हम किस HTML एलीमेंट में जावास्क्रिप्ट कोड डालते हैं?

Which HTML element is used to insert JavaScript code?

A. <javascript>...</javascript>

B. <js>...</js>

C. <script>...</script>

D. <css>...</css>