Question: 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

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 Programming Questions!