What is the output when following statement is executed ?
>>>"abcd"[2:]
a) a
b) ab
c) cd
d) dc

1 Answer

Answer :

c) cd

Related questions

Description : ABCD is a trapezium in which AB || DC and AD = BC. If P, Q, R and S be respectively the mid-points of BA, BD, CD and CA, then PQRS is a -Maths 9th

Last Answer : Here is your First of all we will draw a quadrilateral ABCD with AD = BC and join AC, BD, P,Q,R,S are the mid points of AB, AC, CD and BD respectively. In the triangle ABC, P and Q are mid points of AB and AC respectively. All sides are equal so PQRS is a Rhombus.

Description : What is the output of the following? x = ['ab', 'cd'] for i in x: x.append(i.upper()) print(x) a) [‘AB’, ‘CD’]. b) [‘ab’, ‘cd’, ‘AB’, ‘CD’]. c) [‘ab’, ‘cd’]. d) none of the mentioned

Last Answer : d) none of the mentioned

Description : What is the output of the following? x = ['ab', 'cd'] for i in x: i.upper() print(x) a) [‘ab’, ‘cd’]. b) [‘AB’, ‘CD’]. c) [None, None]. d) none of the mentioned

Last Answer : a) [‘ab’, ‘cd’].

Description : What is the output when following statement is executed ? >>> print(‘x\97\x98’) a) Error b) 97 98 c) x\97 d) \x97\x98

Last Answer : c) x\97

Description : What is the output when following statement is executed ? >>>print('new' 'line') a) Error b) Output equivalent to print ‘new\nline’ Page No 22 c) newline d) new line

Last Answer : c) newline

Description : What is the output of the following piece of code when executed in Python shell? >>> a=("Check")*3 >>> a a) (‘Check’,’Check’,’Check’) b) * Operator not valid for tuples c) (‘CheckCheckCheck’) d) Syntax erro

Last Answer : c) (‘CheckCheckCheck’)

Description : What is the output when following code is executed ? >>>list1 = [11, 2, 23] >>>list2 = [11, 2, 2] >>>list1 < list2 is a) True b) False c) Error d) None

Last Answer : b) False

Description : What is the output when following code is executed ? names1 = ['Amir', 'Bear', 'Charlton', 'Daman'] names2 = names1 names3 = names1[:] names2[0] = 'Alice' names3[1] = 'Bob' sum = 0 for ls in (names1, names2, names3): ... if ls[1] == 'Bob': sum += 10 print sum a) 11 b) 12 c) 21 d) 22

Last Answer : d) 22

Description : What is the output when following code is executed ? >>>names = ['Amir', 'Bear', 'Charlton', 'Daman'] >>>print(names[-1][-1]) a) A b) Daman c) Error d) n

Last Answer : b) Daman

Description : What is the output when following code is executed ? >>>str1="helloworld" >>>str1[::-1] a) dlrowolleh b) hello c) world d) helloworld

Last Answer : a) dlrowolleh

Description : hat is the output when following code is executed ? >>>print r"\nhello" The output is a) a new line and hello b) \nhello c) the letter r and then hello d) error

Last Answer : d) error

Description : What is the output when following code is executed ? >>> str1 = 'hello' >>> str2 = ',' >>> str3 = 'world' >>> str1[-1:] a) olleh b) hello c) h d) o

Last Answer : b) hello

Description : What will be the output at PORT1 if the following program is executed? MVI B, 82H MOV A, B MOV C, A MVI D, 37H OUT PORT1 HLT (A) 37H (B) 82H (C) B9H (D) 00H

Last Answer : Answer: B Explanation: In 8085 programming, the result of an operation is stored in the accumulator. So output is 82H.

Description : What is the output of the following? x = 'abcd' for i in range(len(x)): print(x) x = 'a' a) a b) abcd abcd abcd abcd c) a a a a d) none of the mentioned

Last Answer : d) none of the mentioned

Description : What is the output of the following? x = 'abcd' for i in range(len(x)): x = 'a' print(x) Page No 17 a) a b) abcd abcd abcd c) a a a a d) none of the mentioned

Last Answer : c) a a a a

Description : What is the output of the following? x = 'abcd' for i in range(len(x)): i.upper() print (x) a) a b c d b) 0 1 2 3 c) error d) none of the mentioned

Last Answer : c) error

Description : What is the output of the following? x = 'abcd' for i in x: print(i.upper()) a) a b c d b) A B C D c) a B C D d) error

Last Answer : b) A B C D

Description : Find the area of a quadrilateral ABCD in which AB = 3 cm, BC = 4 cm, CD = 4 cm, DA = 5 cm and AC = 5 cm. -Maths 9th

Last Answer : Given a quadrilateral ABCD with AB = 3 cm, BC = 4 cm, CD = 4 cm, DA = 5 cm and AC = 5 cm. For ∆ABC, a = AB = 3 cm, b = BC = 4 cm and c = AC = 5 cm Now, area of quadrilateral ABCD = area of ∆ABC + area of ∆ACD = 6 cm2 + 9.2 cm2 = 15.2 cm2 (approx.)

Description : 5. In a parallelogram ABCD, E and F are the mid-points of sides AB and CD respectively (see Fig. 8.31). Show that the line segments AF and EC trisect the diagonal BD. -Maths 9th

Last Answer : . Solution: Given that, ABCD is a parallelogram. E and F are the mid-points of sides AB and CD respectively. To show, AF and EC trisect the diagonal BD. Proof, ABCD is a parallelogram , AB || CD also, ... (i), DP = PQ = BQ Hence, the line segments AF and EC trisect the diagonal BD. Hence Proved.

Description : 3. ABCD is a rectangle and P, Q, R and S are mid-points of the sides AB, BC, CD and DA respectively. Show that the quadrilateral PQRS is a rhombus. -Maths 9th

Last Answer : Solution: Given in the question, ABCD is a rectangle and P, Q, R and S are mid-points of the sides AB, BC, CD and DA respectively. Construction, Join AC and BD. To Prove, PQRS is a rhombus. Proof: In ΔABC P and Q ... (ii), (iii), (iv) and (v), PQ = QR = SR = PS So, PQRS is a rhombus. Hence Proved

Description : 2. ABCD is a rhombus and P, Q, R and S are the mid-points of the sides AB, BC, CD and DA respectively. Show that the quadrilateral PQRS is a rectangle. -Maths 9th

Last Answer : Solution: Given in the question, ABCD is a rhombus and P, Q, R and S are the mid-points of the sides AB, BC, CD and DA respectively. To Prove, PQRS is a rectangle. Construction, Join AC and BD. Proof: In ΔDRS and ... , In PQRS, RS = PQ and RQ = SP from (i) and (ii) ∠Q = 90° , PQRS is a rectangle.

Description : ABCD is a quadrilateral in which P, Q, R and S are mid-points of the sides AB, BC, CD and DA (see Fig 8.29). AC is a diagonal. Show that: (i) SR || AC and SR = 1/2 AC (ii) PQ = SR (iii) PQRS is a parallelogram. -Maths 9th

Last Answer : . Solution: (i) In ΔDAC, R is the mid point of DC and S is the mid point of DA. Thus by mid point theorem, SR || AC and SR = ½ AC (ii) In ΔBAC, P is the mid point of AB and Q is the mid point of BC. ... ----- from question (ii) ⇒ SR || PQ - from (i) and (ii) also, PQ = SR , PQRS is a parallelogram.

Description : ABCD is a trapezium in which AB || CD and AD = BC (see Fig. 8.23). Show that (i) ∠A = ∠B (ii) ∠C = ∠D (iii) ΔABC ≅ ΔBAD (iv) diagonal AC = diagonal BD [Hint : Extend AB and draw a line through C parallel to DA intersecting AB produced at E.] -Maths 9th

Last Answer : ] Solution: To Construct: Draw a line through C parallel to DA intersecting AB produced at E. (i) CE = AD (Opposite sides of a parallelogram) AD = BC (Given) , BC = CE ⇒∠CBE = ∠CEB also, ∠A+∠CBE = ... BC (Given) , ΔABC ≅ ΔBAD [SAS congruency] (iv) Diagonal AC = diagonal BD by CPCT as ΔABC ≅ ΔBA.

Description : Points P and Q have been taken on opposite sides AB and CD, respectively of a parallelogram ABCD such that AP = CQ . -Maths 9th

Last Answer : Join AQ and PC . Since ABCD is a parallelogram . ⇒ AB | | DC ⇒ AP | | QC ∵ AP and QC are parts of AB and DC respectively] Also, AP = CQ [given] Thus, APCQ is a parallelogram . We know that diagonals of a parallelogram bisect each other . Hence AC and PQ bisect each other .

Description : ABCD is a trapezium in which AB II CD and AD = BC (see flg). Show that: -Maths 9th

Last Answer : Given: ABCD is a trapezium, in which AB || DC and AD = BC. To Prove: (i) ∠A = ∠B (ii) ∠C = ∠D (iii) △ABC ≅ △BAD (iv) Diagonal AC = diagonal BD. Const.: Produce AB to E, such that a line through ... △ABC ≅ △BAD [by SAS congruence axiom] (iv) ⇒ AC = BD [c.p.c.t.] Thus, diagonal AC = diagonal BD.

Description : Opposite angles of a quadrilateral ABCD are equal. If AB = 4 cm, determine CD. -Maths 9th

Last Answer : Given, opposite angles of a quadrilateral are equal. So, ABCD is a parallelogram and we know that, in a parallelogram opposite sides are also equal. ∴ CD = AB = 4cm

Description : Points P and Q have been taken on opposite sides AB and CD, respectively of a parallelogram ABCD such that AP = CQ. Show that AC and PQ bisect each other. -Maths 9th

Last Answer : According to question parallelogram ABCD such that AP = CQ.

Description : P, Q, R and S are respectively the mid-points of the sides AB, BC, CD and DA of a quadrilateral ABCD in which AC = BD. -Maths 9th

Last Answer : Given In a quadrilateral ABCD, P, Q, R and S are the mid-points of sides AB, BC, CD and DA, respectively. Also, AC = BD To prove PQRS is a rhombus.

Description : P, Q, R and S are respectively the mid-points of sides AB, BC, CD and DA of quadrilateral ABCD in which AC = BD and AC ⊥ BD. Prove that PQRS is a square. -Maths 9th

Last Answer : Given In quadrilateral ABCD, P, Q, R and S are the mid-points of the sides AB, BC, CD and DA, respectively. Also, AC = BD and AC ⊥ BD. To prove PQRS is a square. Proof Now, in ΔADC, S and R are the mid-points of the sides AD and DC respectively, then by mid-point theorem,

Description : P and Q are the mid-points of the opposite sides AB and CD of a parallelogram ABCD. -Maths 9th

Last Answer : Given In a parallelogram ABCD, P and Q are the mid-points of AS and CD, respectively. To show PRQS is a parallelogram. Proof Since, ABCD is a parallelogram. AB||CD ⇒ AP || QC

Description : Points P and Q have been taken on opposite sides AB and CD, respectively of a parallelogram ABCD such that AP = CQ . -Maths 9th

Last Answer : Join AQ and PC . Since ABCD is a parallelogram . ⇒ AB | | DC ⇒ AP | | QC ∵ AP and QC are parts of AB and DC respectively] Also, AP = CQ [given] Thus, APCQ is a parallelogram . We know that diagonals of a parallelogram bisect each other . Hence AC and PQ bisect each other .

Description : ABCD is a trapezium in which AB II CD and AD = BC (see flg). Show that: -Maths 9th

Last Answer : Given: ABCD is a trapezium, in which AB || DC and AD = BC. To Prove: (i) ∠A = ∠B (ii) ∠C = ∠D (iii) △ABC ≅ △BAD (iv) Diagonal AC = diagonal BD. Const.: Produce AB to E, such that a line through ... △ABC ≅ △BAD [by SAS congruence axiom] (iv) ⇒ AC = BD [c.p.c.t.] Thus, diagonal AC = diagonal BD.

Description : Opposite angles of a quadrilateral ABCD are equal. If AB = 4 cm, determine CD. -Maths 9th

Last Answer : Given, opposite angles of a quadrilateral are equal. So, ABCD is a parallelogram and we know that, in a parallelogram opposite sides are also equal. ∴ CD = AB = 4cm

Description : Points P and Q have been taken on opposite sides AB and CD, respectively of a parallelogram ABCD such that AP = CQ. Show that AC and PQ bisect each other. -Maths 9th

Last Answer : According to question parallelogram ABCD such that AP = CQ.

Description : P, Q, R and S are respectively the mid-points of the sides AB, BC, CD and DA of a quadrilateral ABCD in which AC = BD. -Maths 9th

Last Answer : Given In a quadrilateral ABCD, P, Q, R and S are the mid-points of sides AB, BC, CD and DA, respectively. Also, AC = BD To prove PQRS is a rhombus.

Description : P, Q, R and S are respectively the mid-points of sides AB, BC, CD and DA of quadrilateral ABCD in which AC = BD and AC ⊥ BD. Prove that PQRS is a square. -Maths 9th

Last Answer : Given In quadrilateral ABCD, P, Q, R and S are the mid-points of the sides AB, BC, CD and DA, respectively. Also, AC = BD and AC ⊥ BD. To prove PQRS is a square. Proof Now, in ΔADC, S and R are the mid-points of the sides AD and DC respectively, then by mid-point theorem,

Description : P and Q are the mid-points of the opposite sides AB and CD of a parallelogram ABCD. -Maths 9th

Last Answer : Given In a parallelogram ABCD, P and Q are the mid-points of AS and CD, respectively. To show PRQS is a parallelogram. Proof Since, ABCD is a parallelogram. AB||CD ⇒ AP || QC

Description : Show that in a quadrilateral ABCD,AB + BC + CD + DA > AC + BD. -Maths 9th

Last Answer : Solution :-

Description : In Fig. 8.40, points M and N are taken on opposite sides AB and CD, respectively of a parallelogram ABCD such that AM = CN. Show that AC and MN bisect each other. -Maths 9th

Last Answer : Solution :-

Description : E and F are respectively the mid-points of the non-parallel sides AD and BC of a trapezium ABCD. Prove that EF||AB and EF = 1/2 (AB +CD). -Maths 9th

Last Answer : Solution :-

Description : ABCD is a parallelogram in which P and Q are the mid-points of opposite sides AB and CD (Fig. 8.48). If AQ intersects DP at S and BQ intersects CP at R, show that -Maths 9th

Last Answer : Solution :-

Description : ABCD is a rectangle and p q r s are the mid points of the side AB BC CD AND DA respectively. Show that the quadrilateral PQRS is a rhombus -Maths 9th

Last Answer : This answer was deleted by our moderators...

Description : ABCD is a square of side a cm. AB, BC, CD and AD are all chords of circles with equal radii each. -Maths 9th

Last Answer : (b) \(\bigg[a^2+4\bigg[rac{\pi{a}^2}{9}-rac{a^2}{4\sqrt3}\bigg]\bigg]\)As shown in the given figures, if a' is each side of the square, then ∠DOC = 120º ⇒ ∠ODC = ∠OCD = 30ºNow in fig. (iii), \(rac{ ... of square + Total area of 4 segments = \(a^2+4\bigg(rac{\pi{a}^2}{9}-rac{a^2}{4\sqrt3}\bigg).\)

Description : If ABCD is a rectangle and P, Q, R and S are the mid-points of the sides AB, BC, CD and DA respectively, then quadrilateral PQRS is a rhombus. -Maths 9th

Last Answer : Here, we are joining A and C. In ΔABC P is the mid point of AB Q is the mid point of BC PQ∣∣AC [Line segments joining the mid points of two sides of a triangle is parallel to AC(third side) and ... RS=PS=RQ[All sides are equal] ∴ PQRS is a parallelogram with all sides equal ∴ So PQRS is a rhombus.

Description : In a trapezium ABCD, AB is parallel to CD and the diagonals intersect each other at O. In this case, the ratio OA/OC is equal to: -Maths 9th

Last Answer : answer:

Description : ABCD is a trapezium where AB and CD are non-parallel sides. If the vertices A, B, C and D are concyclic, then -Maths 9th

Last Answer : answer:

Description : The middle points of the parallel sides AB and CD of a parallelogram ABCD are P and Q respectively. If AQ and CP divide the diagonal BD -Maths 9th

Last Answer : answer:

Description : A trapezium ABCD in which AB || CD is inscribed in a circle with centre O. Suppose the diagonals AC and BD of the trapezium intersect at M -Maths 9th

Last Answer : answer:

Description : ABCD is a trapezium with AB and CD as parallel sides. The diagonals intersect at O. The area of the triangle ABO is p and that of triangle CDO is q. -Maths 9th

Last Answer : answer:

Description : In a trapezium ABCD, AB is parallel to CD, BD is perpendicular to AD. AC is perpendicular to BC. If AD = BC = 15 cm and AB = 25 cm, -Maths 9th

Last Answer : answer: