Doubtly
@Doubtly · Joined Feb 2021
- Answers
- 3,792
- Questions
- 4,963
- Upvotes received
- 429
- Is it possible to break JavaScript Code into several lines? Answer: Yes. JavaScript statements can be split across lines, and long strings can be broken using a backslash, the + operator or template l... 1
- What is negative Infinity? Negative Infinity is a number in JavaScript which can be derived by dividing negative number by zero. 1
- Which is faster between JavaScript and an ASP script? JavaScript is faster. JavaScript is a client-side language,, and thus it does not need the assistance of the webserver to execute. On the ot... 1
- What is the use of isNaN function? isNan function returns true if the argument is not a number; otherwise, it is false. 1
- What are JavaScript Data Types? Following are the JavaScript Data types: Number String Boolean Object Undefined 2
- Enumerate the differences between Java and JavaScript? Java is a complete programming language. In contrast, JavaScript is a coded program that can be introduced to HTML pages. These two language... 1
- What is JavaScript ? JavaScript is a client-side and server-side scripting language inserted into HTML pages and is understood by web browsers. JavaScript is als... 2
- A chemist has one solution which is 50% acid and a second which is 25% acid. How much of each should be mixed to make Let x litres and y litres be the amount of acids from 50% and 25% acid solutions respectively. As per the question 50% of x + 25% of y = 40%... 1
- Find the values of a and b if the points A(–2,1), B(a,b) and C(4,–1) are collinear and a – b = 1. Answer: a = 1, b = 0 Three points are collinear when the area of the triangle formed by them is zero: x₁(y₂ - y₃) + x₂(y₃ - y₁) + x₃(y₁ - y₂... 1
- If (3,3),(6,y),(x,7) and (5,6) are the vertices of a parallelogram taken in order, find the value of x and y. Answer: x = 8, y = 4 Let A(3, 3), B(6, y), C(x, 7), D(5, 6). The diagonals of a parallelogram bisect each other, so the mid-point of AC equa... 1
- If xcosθ – ysinθ = a, xsinθ + ycos θ = b, prove that x2+y2=a2+b2. Answer: Square both equations and add; the cross terms cancel and sin²θ + cos²θ = 1 gives x² + y² = a² + b² . Squaring the first equation: a... 1
- If cosφ + sinφ = √2 cosφ, prove that cosφ - sinφ = √ 2sin φ. Answer: From the given condition, cosφ = (sqrt2 + 1)sinφ , which rearranges to cosφ - sinφ = sqrt2sinφ . Given cosφ + sinφ = sqrt2cosφ . So... 1
- Prove that one of every three consecutive integers is divisible by 3. Answer: Every integer leaves remainder 0, 1 or 2 on division by 3; in each case exactly one of n, n + 1, n + 2 is a multiple of 3. Let the t... 1
- A bag contains 5 red and some blue balls, if probability of drawing a blue ball from the bag is twice that of Answer: 10 blue balls Let the number of blue balls be x . Total balls = 5 + x . P(red) = 5/5 + x,qquad P(blue) = x/5 + x Given P(blue) = 2 ×... 1
- A card is drawn at random from a well shuffled deck of playing cards. Find the probability that the card drawn Answer: (i) 11/13 (ii) 2/13 A deck has 52 cards, with 4 kings and 4 queens, so 8 cards are kings or queens. (ii) Either a king or a queen: P... 1
- Find the point on the y-axis which is equidistant from the points (5,–2) and (–3,2). Answer: (0, −2) Any point on the y-axis has x-coordinate 0, so let the point be P(0, y) . Let A(5, -2) and B(-3, 2) . Given PA = PB , so PA²... 1
- Which term of the sequence 4, 9, 14.... is 124? 2 Answer: 124 is the 25th term. The sequence 4, 9, 14, … is an AP with first term a = 4 and common difference d = 9 - 4 = 5 . Let a_n = 124 .... 1
- Find the LCM and HCF of 120 and 144 by using Fundamental Theorem of Arithmetic. Answer: HCF = 24, LCM = 720 Write each number as a product of primes (Fundamental Theorem of Arithmetic): 120 = 2³ × 3 × 5 144 = 2⁴ × 3² HCF... 1