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.2
- 2.4
- 3.5
- 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.x is now 50
- 2.None of the above
- 3.x is now 300
- 4.x is now 2
- What does Pandas' describe() method return?
- 1.
- None of above2.Summary Statistics on numerical columns (e.g. mean, std, min, max)
- 3.Data types in columns
- 4.Row and column labels
- For what purpose a Pandas is used
- 1.To create GUI programming
- 2.To create database
- 3.To create high-level array
- 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
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