UPSC Exam  >  UPSC Questions  >   ?a):b)c):d)Correct answer is option 'B'... Start Learning for Free
निम्नलिखित में से कौन वेद नहीं है
?
  • a)
    यजुर्वेद:
  • b)
    सरस्वती
  • c)
    सामवेद:
  • d)
    ऋग्वेद
Correct answer is option 'B'. Can you explain this answer?
Most Upvoted Answer
?a):b)c):d)Correct answer is option 'B'. Can you explain this an...
Explanation:

In the given code snippet, the ternary operator is used to assign a value to the variable 'result'. The ternary operator is a shorthand version of an if-else statement and has the following syntax:

(condition) ? (value if true) : (value if false)

If the condition is true, the value after the '?' is assigned to the variable, and if the condition is false, the value after the ':' is assigned to the variable.

In this case, the condition is (a>b), which checks if the value of 'a' is greater than the value of 'b'. If this condition is true, the value 'a' is assigned to 'result', and if it's false, the value 'b' is assigned to 'result'.

So, the possible outcomes of this code are:

- If 'a' is greater than 'b', the value of 'a' is assigned to 'result'
- If 'a' is less than or equal to 'b', the value of 'b' is assigned to 'result'

Therefore, the correct answer is option 'B'.

HTML Code:
Explanation:


  • The ternary operator is used to assign a value to the variable 'result'

  • The syntax of the ternary operator is (condition) ? (value if true) : (value if false)

  • If the condition is true, the value after the '?' is assigned to the variable, and if the condition is false, the value after the ':' is assigned to the variable

  • In this case, if 'a' is greater than 'b', the value of 'a' is assigned to 'result', and if 'a' is less than or equal to 'b', the value of 'b' is assigned to 'result'

  • Therefore, the correct answer is option 'B'

Free Test
Community Answer
?a):b)c):d)Correct answer is option 'B'. Can you explain this an...
इन चार खंडों को सभी हिंदू धर्म का सबसे प्राचीन और पवित्र ग्रंथ माना जाता है। ऋग्वेद, यजुर्वेद, अथर्ववेद और सामवेद नामक चार संग्रहों में पवित्र भजन और संस्कृत मंत्रों को एक साथ रखा गया था । हजारों वर्षों तक वे मौखिक रूप से पीढ़ी-दर-पीढ़ी हस्तांतरित होते रहे।
Explore Courses for UPSC exam

Top Courses for UPSC

Question Description
?a):b)c):d)Correct answer is option 'B'. Can you explain this answer? for UPSC 2025 is part of UPSC preparation. The Question and answers have been prepared according to the UPSC exam syllabus. Information about ?a):b)c):d)Correct answer is option 'B'. Can you explain this answer? covers all topics & solutions for UPSC 2025 Exam. Find important definitions, questions, meanings, examples, exercises and tests below for ?a):b)c):d)Correct answer is option 'B'. Can you explain this answer?.
Solutions for ?a):b)c):d)Correct answer is option 'B'. Can you explain this answer? in English & in Hindi are available as part of our courses for UPSC. Download more important topics, notes, lectures and mock test series for UPSC Exam by signing up for free.
Here you can find the meaning of ?a):b)c):d)Correct answer is option 'B'. Can you explain this answer? defined & explained in the simplest way possible. Besides giving the explanation of ?a):b)c):d)Correct answer is option 'B'. Can you explain this answer?, a detailed solution for ?a):b)c):d)Correct answer is option 'B'. Can you explain this answer? has been provided alongside types of ?a):b)c):d)Correct answer is option 'B'. Can you explain this answer? theory, EduRev gives you an ample number of questions to practice ?a):b)c):d)Correct answer is option 'B'. Can you explain this answer? tests, examples and also practice UPSC tests.
Explore Courses for UPSC exam

Top Courses for UPSC

Explore Courses
Signup for Free!
Signup to see your scores go up within 7 days! Learn & Practice with 1000+ FREE Notes, Videos & Tests.
10M+ students study on EduRev