Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

What will be the output of the following Python code? list1 = [1, 2, 3, 4]list2 = [5, 6, 7, 8]print(len(list1 + list2)) 1.2 2.4

What will be the output of the following Python code?

list1 = [1, 2, 3, 4]list2 = [5, 6, 7, 8]print(len(list1 + list2))

  1. 1.2
  2. 2.4
  3. 3.5
  4. 4.8

What will be the output of the following Python statement?

>>>"abcd"[2:]

1.a

2.ab

3.cd

4.dc

Shape() function in Numpy array is used to

1.None of above

2.Both of the above

3.Find the shape of the array

4.Change the shape of the array

Which of the following is not an advantage of using modules?

1.Provides a means of reuse of program code

2.Provides a means of reducing the size of the program

3.Provides a means of testing individual parts of the program

4.Provides a means of dividing up tasks

What will be the output of the following Python code?def printMax(a, b):ifa>b:print(a,'is preferred')elif a==b:print(a,'is equal to', b)else:print(b,'is preferred')printMax(3,4)

1.4

2.3

3.4 is preferred

4.3 is preferred

What will be the output of the following Python code?i=1whileTrue:ifi%3==0:breakprint(i)i=i+1

1.None of the above

2.0 1 2

3.1 2 3

4.1 2

What will be the output of the following Python code?x=50def func(x):print('x is', x)x=2print('Changed local x to', x)func(x)print('x is now', x)

  1. 1.x is now 50
  2. 2.None of the above
  3. 3.x is now 300
  4. 4.x is now 2

  1. What does Pandas' describe() method return?
  2. 1.
  3. None of above2.Summary Statistics on numerical columns (e.g. mean, std, min, max)
  4. 3.Data types in columns
  5. 4.Row and column labels

  1. For what purpose a Pandas is used
  2. 1.To create GUI programming
  3. 2.To create database
  4. 3.To create high-level array
  5. 4.All of the above

DataFrame in pandas is

1.3-dimensional array

2.1-dimensional array

3.None of the above

4.2-dimensional array

help me with these mcs plz

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

Financial management theory and practice

Authors: Eugene F. Brigham and Michael C. Ehrhardt

12th Edition

978-0030243998, 30243998, 324422695, 978-0324422696

Students also viewed these Programming questions

Question

What is the value of x in the expression x=2**1*2+1 > 5

Answered: 1 week ago