Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Select Healthcare Classification Systems And Databases

Authors: Katherine S. Rowell, Ann Cutrell

1st Edition

0615909760, 978-0615909769

More Books

Students also viewed these Databases questions

Question

What is the purpose of the staffing practice called Two-in-aBox?

Answered: 1 week ago

Question

What would you do?

Answered: 1 week ago