Question: 1. Given the following python code, what is the output d = {A: 10, B:20, C:30, D:40 } print(d.keys()) a.[10, 20, 30, 40] b.[A, B,

1. Given the following python code, what is the output

d = {"A": 10, "B":20, "C":30, "D":40 } print(d.keys())

a.[10, 20, 30, 40] b.[A, B, C, D ] c. Error generated or none of the above

2. Given the following python code, what is the output

a = (1,['a', 'b']) b = ('a','b',1) c = a + b print(c)

a.( ['a', 'b'], 'a', 'b') b.(1, ['a', 'b'], 'a', 'b', 1) c.(1, ['a', 'b'], 1) d.Error generated or none of the above

3. If A is a set with |A| = 6 then what is |P(A)|

a.64 b.32 c.128 d.None of the above

4. If A is a set with A = { 2, 5, 7, 11 } then what is |(A xA) U A)|

a.20 b.16 c.32 d.None of the above

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!