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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started