Posts

Q8 dfjzfjhdfd sopi eadjfosv poiwerjkrwekl;gtfgbe

Q1. Match the following clauses with their respective functions.   Answer :-   SNo Name Age Department Dateofadm Charges Sex 1 Arpit 62 Surgery 21-01-98 300 M 2 Zareena 22 ENT 12-12-97 250 F 3 Kareem 32 Orthopaedic 19-02-98 200 M 4 Arun 12 Surgery 11-01-98 300 M 5 Zubin 30 ENT 12-01-98 250 M 6 Ketaki 16 ENT 24-02-98 250 F 7 Ankit 29 Cardiology 20-02-98 800 F 8 Zareen 45 Gynaecology 22-02-98 300 F 9 Kush 19 Cardiology 13-01-98 800 M 10 Shilpa 23 Nuclear Medicine 21-02-98 400 F

Q 7 jrgeshestm teejthjkljklh srthklkltjsjkghsegbn tjhrhrthgkjerjklhbgebgjasb nerjks

P.I.P: - 7.1     Q1. Consider the following code: what is the value of ‘a’ at the end?   a = [1, 2, 3] a [2] = 0 a [a [ 2 ] ] = 5 a [1:2] = []   Answer =   Value of ‘a’ at the end is: [5, 0]               Q2. You have a list a = [1, 2, [3, 4], 5]. Now answer the following. Verify your answers in Python Shell.   (a) What is the length of a? 4 (b) How many elements does it contain? What are their types? It contain 4 element. 3 integer type & 1 list. (c) How many integers? 3 integer (d) What does len(a[2]) return? 2 (e) What does a[len(a)] evaluate to? It give error. (f) What does a [-1 * len(a)] evaluate to? Output:- 1               Q4. Giv...

q5 kjhgtishtglrhtvthghdghnnvcmnzbsd,nbdn neffjkghklen h

    P.I.P: - 1.1     Q2. Display and print the given values:   (i) 33 + 23 (ii) S = 24 + 9 (first assign 24 + 9 to S and then print (display S)) (iii) a = 3, b = 17, c = b - 10 (first assign these values to a, b and c in three separate statements and then print/display them.)   Answer =   (i) >>> 33 + 23 56 >>>    (ii) >>> S = 24 + 9 >>> print (S) 33 >>>    (iii) >>> a = 3 >>> b = 17 >>> c = b - 10 >>> print (a , b , c) 3 17 7 >>>