0% found this document useful (0 votes)
9 views

All Python Combine

Uploaded by

mayaan839
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views

All Python Combine

Uploaded by

mayaan839
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 249

11/5/22, 6:52 PM Assessment Review - AlmaBetter

Advanced Python

Below is a scored review of your assessment. All questions are shown.

Data Vizualization

Correct Answer

Partially Correct

Incorrect Answer

https://almabetter.onlinetests.app/Assess.aspx?guid=9DD1946D3CCF4AA6874E0943D923269F&a=R1 1/17
11/5/22, 6:52 PM Assessment Review - AlmaBetter

61 Which of the following is false?

Your Answer
Data visualization decrease the insights
and take solwer decisions

Correct Answer
Data visualization decrease the insights
and take solwer decisions

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=9DD1946D3CCF4AA6874E0943D923269F&a=R1 2/17
11/5/22, 6:52 PM Assessment Review - AlmaBetter

Python- Basic Libraries (Pandas, Numpy, Matplotlib, Seaborn,Sklearn)

62 What will be output for the following code?

import numpy as np

dt = np.dtype([('age',np.int8)])

a = np.array([(10,),(20,),(30,)], dtype = dt)

print (a['age'])

Your Answer
[10 20 30]

Correct Answer
[10 20 30]

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=9DD1946D3CCF4AA6874E0943D923269F&a=R1 3/17
11/5/22, 6:52 PM Assessment Review - AlmaBetter

63 Scikit-Learn was originally called scikits.learn

Your Answer
True

Correct Answer
True

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=9DD1946D3CCF4AA6874E0943D923269F&a=R1 4/17
11/5/22, 6:52 PM Assessment Review - AlmaBetter

64 Which of the following thing can be data in Pandas?

Your Answer
All of the above

Correct Answer
All of the above

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=9DD1946D3CCF4AA6874E0943D923269F&a=R1 5/17
11/5/22, 6:52 PM Assessment Review - AlmaBetter

Python

65 All keywords in Python are in

Your Answer
UPPER CASE

Correct Answer
None of the mentioned

Explanation
Sorry, you have selected the wrong answer.

https://almabetter.onlinetests.app/Assess.aspx?guid=9DD1946D3CCF4AA6874E0943D923269F&a=R1 6/17
11/5/22, 6:52 PM Assessment Review - AlmaBetter

66 Which of the following precedence order is correct in Python?

Your Answer
Parentheses, Exponential, Multiplication, Division, Addition, Subtraction

Correct Answer
Parentheses, Exponential, Multiplication, Division, Addition, Subtraction

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=9DD1946D3CCF4AA6874E0943D923269F&a=R1 7/17
11/5/22, 6:52 PM Assessment Review - AlmaBetter

Python- Basic Libraries (Pandas, Numpy, Matplotlib, Seaborn,Sklearn)

67 NumPY stands for?

Your Answer
Numerical Python

Correct Answer
Numerical Python

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=9DD1946D3CCF4AA6874E0943D923269F&a=R1 8/17
11/5/22, 6:52 PM Assessment Review - AlmaBetter

68 How we can change the shape of the Numpy array in python?

Your Answer
By reshape()

Correct Answer
By reshape()

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=9DD1946D3CCF4AA6874E0943D923269F&a=R1 9/17
11/5/22, 6:52 PM Assessment Review - AlmaBetter

Python

69 What is the output of the code shown below?

t=32.00
[round((x-32)*5/9) for x in t]

Your Answer
Error

Correct Answer
Error

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=9DD1946D3CCF4AA6874E0943D923269F&a=R1 10/17
11/5/22, 6:52 PM Assessment Review - AlmaBetter

70 Suppose a user wants to print the second value of an array, which has 5 elements.
What will be the syntax of the second value of the array?

Your Answer
array[1]

Correct Answer
array[1]

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=9DD1946D3CCF4AA6874E0943D923269F&a=R1 11/17
11/5/22, 6:52 PM Assessment Review - AlmaBetter

71 Is Python case sensitive when dealing with identifiers?

Your Answer
yes

Correct Answer
yes

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=9DD1946D3CCF4AA6874E0943D923269F&a=R1 12/17
11/5/22, 6:52 PM Assessment Review - AlmaBetter

72 What is the maximum possible length of an identifier?

Your Answer
79 characters

Correct Answer
none of the mentioned

Explanation
Sorry, you have selected the wrong answer.

https://almabetter.onlinetests.app/Assess.aspx?guid=9DD1946D3CCF4AA6874E0943D923269F&a=R1 13/17
11/5/22, 6:52 PM Assessment Review - AlmaBetter

73 What will be the output of the following Python code?


i=0
while i < 5:
print(i)
i += 1
if i == 3:
break
else:
print(0)

Your Answer
(0 1 2)

Correct Answer
(0 1 2)

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=9DD1946D3CCF4AA6874E0943D923269F&a=R1 14/17
11/5/22, 6:52 PM Assessment Review - AlmaBetter

Python- Basic Libraries (Pandas, Numpy, Matplotlib, Seaborn,Sklearn)

74 Which of the following statement is false?

Your Answer
ndarray is also known as the axis array.

Correct Answer
ndarray is also known as the axis array.

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=9DD1946D3CCF4AA6874E0943D923269F&a=R1 15/17
11/5/22, 6:52 PM Assessment Review - AlmaBetter

75 If a dimension is given as ____ in a reshaping operation, the other dimensions are automatically
calculated.

Your Answer
Negative one

Correct Answer
Negative one

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=9DD1946D3CCF4AA6874E0943D923269F&a=R1 16/17
11/5/22, 6:52 PM Assessment Review - AlmaBetter

Page 4 of 4

Summary Prev Page

I'm done.

Software by

Version 11.2

Privacy Policy. Assessment content is copyright 2022, AlmaBetter.

https://almabetter.onlinetests.app/Assess.aspx?guid=9DD1946D3CCF4AA6874E0943D923269F&a=R1 17/17
11/5/22, 6:50 PM Assessment Review - AlmaBetter

Advanced Python

Below is a scored review of your assessment. All questions are shown.

Python

Correct Answer

Partially Correct

Incorrect Answer

https://almabetter.onlinetests.app/Assess.aspx?guid=9DD1946D3CCF4AA6874E0943D923269F&a=R1 1/22
11/5/22, 6:50 PM Assessment Review - AlmaBetter

1 Which of the following will run without errors ?

Your Answer
round(45.8)

Correct Answer
round(45.8)

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=9DD1946D3CCF4AA6874E0943D923269F&a=R1 2/22
11/5/22, 6:50 PM Assessment Review - AlmaBetter

Python- Basic Libraries (Pandas, Numpy, Matplotlib, Seaborn,Sklearn)

2 What will be syntax for pandas dataframe?

Your Answer
pandas.DataFrame( data, index, columns, dtype, copy)

Correct Answer
pandas.DataFrame( data, index, columns, dtype, copy)

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=9DD1946D3CCF4AA6874E0943D923269F&a=R1 3/22
11/5/22, 6:50 PM Assessment Review - AlmaBetter

Python

3 What is a variable defined inside a function referred to as?

Your Answer
A local variable

Correct Answer
A local variable

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=9DD1946D3CCF4AA6874E0943D923269F&a=R1 4/22
11/5/22, 6:50 PM Assessment Review - AlmaBetter

4 Which of the following arithmetic operators cannot be used with strings in python?

Your Answer
(-)

Correct Answer
(-)

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=9DD1946D3CCF4AA6874E0943D923269F&a=R1 5/22
11/5/22, 6:50 PM Assessment Review - AlmaBetter

5 What is the output of the following code ?

example = "snow world"


example[3] = 's'
print (example)

Your Answer
Error

Correct Answer
Error

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=9DD1946D3CCF4AA6874E0943D923269F&a=R1 6/22
11/5/22, 6:50 PM Assessment Review - AlmaBetter

Python- Basic Libraries (Pandas, Numpy, Matplotlib, Seaborn,Sklearn)

6 Point out the correct combination with regards to kind keyword for graph plotting.

Your Answer
all of the mentioned

Correct Answer
all of the mentioned

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=9DD1946D3CCF4AA6874E0943D923269F&a=R1 7/22
11/5/22, 6:50 PM Assessment Review - AlmaBetter

Data Vizualization

7 Which are pros of data visualization?

Your Answer
It can be accessed quickly by a wider audience.

Correct Answer
It can be accessed quickly by a wider audience.

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=9DD1946D3CCF4AA6874E0943D923269F&a=R1 8/22
11/5/22, 6:50 PM Assessment Review - AlmaBetter

8 Which of the following plots are often used for checking randomness in time series?

Your Answer
Autocorrelation

Correct Answer
Autocorrelation

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=9DD1946D3CCF4AA6874E0943D923269F&a=R1 9/22
11/5/22, 6:50 PM Assessment Review - AlmaBetter

Python- Basic Libraries (Pandas, Numpy, Matplotlib, Seaborn,Sklearn)

9 Axis 1, in panel represent?

Your Answer
major_axis

Correct Answer
major_axis

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=9DD1946D3CCF4AA6874E0943D923269F&a=R1 10/22
11/5/22, 6:50 PM Assessment Review - AlmaBetter

10 NumPy is often used along with packages like?

Your Answer
Both B and C

Correct Answer
Both B and C

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=9DD1946D3CCF4AA6874E0943D923269F&a=R1 11/22
11/5/22, 6:50 PM Assessment Review - AlmaBetter

Python

11 When a user does not use the return statement inside a function in Python, what will
return the function in that case.

Your Answer
None

Correct Answer
None

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=9DD1946D3CCF4AA6874E0943D923269F&a=R1 12/22
11/5/22, 6:50 PM Assessment Review - AlmaBetter

Python- Basic Libraries (Pandas, Numpy, Matplotlib, Seaborn,Sklearn)

12 Which of the following are Features of Scikit Learn?

Your Answer
All of the above

Correct Answer
All of the above

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=9DD1946D3CCF4AA6874E0943D923269F&a=R1 13/22
11/5/22, 6:50 PM Assessment Review - AlmaBetter

13 What will be output for the following code? import numpy as np a = np.array([1,2,3]) print (a)

Your Answer
[1, 2, 3]

Correct Answer
[1, 2, 3]

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=9DD1946D3CCF4AA6874E0943D923269F&a=R1 14/22
11/5/22, 6:50 PM Assessment Review - AlmaBetter

Python

14 What will be the output of the following Python code snippet?

x=2
for i in range(x):
x += 1
print (x)

Your Answer
(3 4)

Correct Answer
(3 4)

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=9DD1946D3CCF4AA6874E0943D923269F&a=R1 15/22
11/5/22, 6:50 PM Assessment Review - AlmaBetter

Python- Basic Libraries (Pandas, Numpy, Matplotlib, Seaborn,Sklearn)

15 Numpy in the Python provides the

Your Answer
Array

Correct Answer
Array

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=9DD1946D3CCF4AA6874E0943D923269F&a=R1 16/22
11/5/22, 6:50 PM Assessment Review - AlmaBetter

Python

16 What is the output of the following?

x = 'abcd'
for i in range(len(x)):
x[i].upper()
print (x)

Your Answer
abcd

Correct Answer
abcd

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=9DD1946D3CCF4AA6874E0943D923269F&a=R1 17/22
11/5/22, 6:50 PM Assessment Review - AlmaBetter

Python- Basic Libraries (Pandas, Numpy, Matplotlib, Seaborn,Sklearn)

17 In dataset loading, The variables of data are called its?

Your Answer
Features

Correct Answer
Features

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=9DD1946D3CCF4AA6874E0943D923269F&a=R1 18/22
11/5/22, 6:50 PM Assessment Review - AlmaBetter

Python

18 Which of these in not a core datatype?

Your Answer
Class

Correct Answer
Class

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=9DD1946D3CCF4AA6874E0943D923269F&a=R1 19/22
11/5/22, 6:50 PM Assessment Review - AlmaBetter

Python- Basic Libraries (Pandas, Numpy, Matplotlib, Seaborn,Sklearn)

19 Pandas is an open-source _______ Library?

Your Answer
Python

Correct Answer
Python

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=9DD1946D3CCF4AA6874E0943D923269F&a=R1 20/22
11/5/22, 6:50 PM Assessment Review - AlmaBetter

20 Pandas key data structure is called?

Your Answer
DataFrame

Correct Answer
DataFrame

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=9DD1946D3CCF4AA6874E0943D923269F&a=R1 21/22
11/5/22, 6:50 PM Assessment Review - AlmaBetter

Page 1 of 4

Summary Next Page

I'm done.

Software by

Version 11.2

Privacy Policy. Assessment content is copyright 2022, AlmaBetter.

https://almabetter.onlinetests.app/Assess.aspx?guid=9DD1946D3CCF4AA6874E0943D923269F&a=R1 22/22
11/5/22, 6:51 PM Assessment Review - AlmaBetter

Advanced Python

Below is a scored review of your assessment. All questions are shown.

Python

Correct Answer

Partially Correct

Incorrect Answer

https://almabetter.onlinetests.app/Assess.aspx?guid=9DD1946D3CCF4AA6874E0943D923269F&a=R1 1/22
11/5/22, 6:51 PM Assessment Review - AlmaBetter

21 What will be the output of the following Python code?

x = 'abcd'
for i in x:
print(i.upper())

Your Answer
ABCD

Correct Answer
ABCD

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=9DD1946D3CCF4AA6874E0943D923269F&a=R1 2/22
11/5/22, 6:51 PM Assessment Review - AlmaBetter

Python- Basic Libraries (Pandas, Numpy, Matplotlib, Seaborn,Sklearn)

22 Numpy.array(list), what it does ?

Your Answer
It convert list to array

Correct Answer
It convert list to array

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=9DD1946D3CCF4AA6874E0943D923269F&a=R1 3/22
11/5/22, 6:51 PM Assessment Review - AlmaBetter

Python

23 What will be the output?

names1 = ['Amir', 'Bala', 'Charlie']


names2 = [name.lower() for name in names1]

print(names2[2][0])

Your Answer
c

Correct Answer
c

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=9DD1946D3CCF4AA6874E0943D923269F&a=R1 4/22
11/5/22, 6:51 PM Assessment Review - AlmaBetter

24 Which of the following is true for variable names in Python?

Your Answer
unlimited length

Correct Answer
unlimited length

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=9DD1946D3CCF4AA6874E0943D923269F&a=R1 5/22
11/5/22, 6:51 PM Assessment Review - AlmaBetter

Python- Basic Libraries (Pandas, Numpy, Matplotlib, Seaborn,Sklearn)

25 How we can find the type of numpy array in python ?

Your Answer
dtype

Correct Answer
dtype

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=9DD1946D3CCF4AA6874E0943D923269F&a=R1 6/22
11/5/22, 6:51 PM Assessment Review - AlmaBetter

Python

26 Study the following program:


print(int(6 == 6.0) * 3 + 4 % 5)
What will be the output of this program?

Your Answer
7

Correct Answer
7

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=9DD1946D3CCF4AA6874E0943D923269F&a=R1 7/22
11/5/22, 6:51 PM Assessment Review - AlmaBetter

27 What will be the output of the following Python code?


i=1
while True:
if i%3 == 0:
break
print(i)
i+=1

Your Answer
1
2

Correct Answer
1
2

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=9DD1946D3CCF4AA6874E0943D923269F&a=R1 8/22
11/5/22, 6:51 PM Assessment Review - AlmaBetter

Python- Basic Libraries (Pandas, Numpy, Matplotlib, Seaborn,Sklearn)

28 Correct syntax of the reshape() function in Numpy array python is -

Your Answer
reshape(array,shape)

Correct Answer
reshape(array,shape)

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=9DD1946D3CCF4AA6874E0943D923269F&a=R1 9/22
11/5/22, 6:51 PM Assessment Review - AlmaBetter

Python

29 Which one of the following syntaxes is the correct syntax to read from a simple text file
stored in ''d:\alma.txt''?

Your Answer
Infile = open(''d:\\alma.txt'', ''r'')

Correct Answer
Infile = open(''d:\\alma.txt'', ''r'')

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=9DD1946D3CCF4AA6874E0943D923269F&a=R1 10/22
11/5/22, 6:51 PM Assessment Review - AlmaBetter

Python- Basic Libraries (Pandas, Numpy, Matplotlib, Seaborn,Sklearn)

30 Scikit-Learn was initially developed by David Cournapeau as a Google summer of code project in 2007.

Your Answer
Yes

Correct Answer
Yes

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=9DD1946D3CCF4AA6874E0943D923269F&a=R1 11/22
11/5/22, 6:51 PM Assessment Review - AlmaBetter

Python

31 What is the output of the following piece of code?

def a(b):
b = b + [5]
return b

c = [1, 2, 3, 4]
d=a(c)
print(len(d))

Your Answer
5

Correct Answer
5

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=9DD1946D3CCF4AA6874E0943D923269F&a=R1 12/22
11/5/22, 6:51 PM Assessment Review - AlmaBetter

Data Vizualization

32 Which are cons of data visualization?

Your Answer
visual data is distorted or excessively used.

Correct Answer
visual data is distorted or excessively used.

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=9DD1946D3CCF4AA6874E0943D923269F&a=R1 13/22
11/5/22, 6:51 PM Assessment Review - AlmaBetter

Python

33 Which of the following is not a keyword in Python language?

Your Answer
val

Correct Answer
val

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=9DD1946D3CCF4AA6874E0943D923269F&a=R1 14/22
11/5/22, 6:51 PM Assessment Review - AlmaBetter

Python- Basic Libraries (Pandas, Numpy, Matplotlib, Seaborn,Sklearn)

34 Which of the following is correct Features of DataFrame?

Your Answer
All of the above

Correct Answer
All of the above

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=9DD1946D3CCF4AA6874E0943D923269F&a=R1 15/22
11/5/22, 6:51 PM Assessment Review - AlmaBetter

Python

35 Which of the following keywords is used for function declaration in Python language?

Your Answer
def

Correct Answer
def

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=9DD1946D3CCF4AA6874E0943D923269F&a=R1 16/22
11/5/22, 6:51 PM Assessment Review - AlmaBetter

36 What is the output of the following?

string = "my name is x"


for i in string.split():
print (i, end=", ")

Your Answer
my, name, is, x

Correct Answer
my, name, is, x

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=9DD1946D3CCF4AA6874E0943D923269F&a=R1 17/22
11/5/22, 6:51 PM Assessment Review - AlmaBetter

Python- Basic Libraries (Pandas, Numpy, Matplotlib, Seaborn,Sklearn)

37 what is the use of the zeros() function in Numpy array in python ?

Your Answer
To make a Matrix with all element 0

Correct Answer
To make a Matrix with all element 0

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=9DD1946D3CCF4AA6874E0943D923269F&a=R1 18/22
11/5/22, 6:51 PM Assessment Review - AlmaBetter

38 Point out the wrong combination with regards to kind keyword for graph plotting.

Your Answer
‘kde’ for hexagonal bin plots

Correct Answer
‘kde’ for hexagonal bin plots

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=9DD1946D3CCF4AA6874E0943D923269F&a=R1 19/22
11/5/22, 6:51 PM Assessment Review - AlmaBetter

39 How we install Numpy in the system ?

Your Answer
pip install numpy

Correct Answer
pip install numpy

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=9DD1946D3CCF4AA6874E0943D923269F&a=R1 20/22
11/5/22, 6:51 PM Assessment Review - AlmaBetter

Python

40 What will be the output of the following Python function?

import math
abs(math.sqrt(25))

Your Answer
5.0

Correct Answer
5.0

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=9DD1946D3CCF4AA6874E0943D923269F&a=R1 21/22
11/5/22, 6:51 PM Assessment Review - AlmaBetter

Page 2 of 4

Summary Prev Page Next Page

I'm done.

Software by

Version 11.2

Privacy Policy. Assessment content is copyright 2022, AlmaBetter.

https://almabetter.onlinetests.app/Assess.aspx?guid=9DD1946D3CCF4AA6874E0943D923269F&a=R1 22/22
11/5/22, 6:52 PM Assessment Review - AlmaBetter

Advanced Python

Below is a scored review of your assessment. All questions are shown.

Python

Correct Answer

Partially Correct

Incorrect Answer

https://almabetter.onlinetests.app/Assess.aspx?guid=9DD1946D3CCF4AA6874E0943D923269F&a=R1 1/22
11/5/22, 6:52 PM Assessment Review - AlmaBetter

41 What will be the output of the following Python code?

l=[[1, 2, 3], [4, 5, 6]]


for i in range(len(l)):
for j in range(len(l[i])):
l[i][j]+=10
l

Your Answer
[[11, 12, 13], [14, 15, 16]]

Correct Answer
[[11, 12, 13], [14, 15, 16]]

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=9DD1946D3CCF4AA6874E0943D923269F&a=R1 2/22
11/5/22, 6:52 PM Assessment Review - AlmaBetter

Data Vizualization

42 What is true about Data Visualization?

Your Answer
All of the above

Correct Answer
All of the above

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=9DD1946D3CCF4AA6874E0943D923269F&a=R1 3/22
11/5/22, 6:52 PM Assessment Review - AlmaBetter

Python- Basic Libraries (Pandas, Numpy, Matplotlib, Seaborn,Sklearn)

43 What will be output for the following code?

import pandas as pd

s = pd.Series([1,2,3,4,5],index = ['a','b','c','d','e'])

print (s['a'])

Your Answer
1

Correct Answer
1

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=9DD1946D3CCF4AA6874E0943D923269F&a=R1 4/22
11/5/22, 6:52 PM Assessment Review - AlmaBetter

Python

44 What will be the output of the following Python code?

def change(i = 1, j = 2):


i=i+j
j=j+1
print(i, j)
change(j = 1, i = 2)

Your Answer
(3 2)

Correct Answer
(3 2)

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=9DD1946D3CCF4AA6874E0943D923269F&a=R1 5/22
11/5/22, 6:52 PM Assessment Review - AlmaBetter

Data Vizualization

45 Which method shows hierarchical data in a nested format?

Your Answer
Treemaps

Correct Answer
Treemaps

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=9DD1946D3CCF4AA6874E0943D923269F&a=R1 6/22
11/5/22, 6:52 PM Assessment Review - AlmaBetter

Python- Basic Libraries (Pandas, Numpy, Matplotlib, Seaborn,Sklearn)

46 How we can convert the Numpy array to the list in python?

Your Answer
list(array)

Correct Answer
list(array)

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=9DD1946D3CCF4AA6874E0943D923269F&a=R1 7/22
11/5/22, 6:52 PM Assessment Review - AlmaBetter

Data Vizualization

47 Data visualization is also an element of the broader _____________.

Your Answer
data presentation architecture

Correct Answer
data presentation architecture

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=9DD1946D3CCF4AA6874E0943D923269F&a=R1 8/22
11/5/22, 6:52 PM Assessment Review - AlmaBetter

Python

48 Which of the following functions is a built-in function in python?

Your Answer
print()

Correct Answer
print()

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=9DD1946D3CCF4AA6874E0943D923269F&a=R1 9/22
11/5/22, 6:52 PM Assessment Review - AlmaBetter

Python- Basic Libraries (Pandas, Numpy, Matplotlib, Seaborn,Sklearn)

49 Why ndim is used?

Your Answer
Returns the number of dimensions of the underlying data,
by definition 1.

Correct Answer
Returns the number of dimensions of the underlying data,
by definition 1.

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=9DD1946D3CCF4AA6874E0943D923269F&a=R1 10/22
11/5/22, 6:52 PM Assessment Review - AlmaBetter

50 which library is the most used visulization library in python?

Your Answer
Seaborn
matplotlib

Correct Answer
Seaborn
matplotlib

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=9DD1946D3CCF4AA6874E0943D923269F&a=R1 11/22
11/5/22, 6:52 PM Assessment Review - AlmaBetter

51 What will be output for the following code? import pandas as pd import numpy as np s =
pd.Series(np.random.randn(2)) print (s.size)

Your Answer
2

Correct Answer
2

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=9DD1946D3CCF4AA6874E0943D923269F&a=R1 12/22
11/5/22, 6:52 PM Assessment Review - AlmaBetter

52 L1 Normalisation is also called?

Your Answer
Least Absolute Deviations

Correct Answer
Least Absolute Deviations

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=9DD1946D3CCF4AA6874E0943D923269F&a=R1 13/22
11/5/22, 6:52 PM Assessment Review - AlmaBetter

53 Scikit-learn provides __________ classes.

Your Answer
3

Correct Answer
3

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=9DD1946D3CCF4AA6874E0943D923269F&a=R1 14/22
11/5/22, 6:52 PM Assessment Review - AlmaBetter

Data Vizualization

54 Data can be visualized using?

Your Answer
All of the above

Correct Answer
All of the above

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=9DD1946D3CCF4AA6874E0943D923269F&a=R1 15/22
11/5/22, 6:52 PM Assessment Review - AlmaBetter

Python

55 What is the output of the following piece of code?


a=list((45,)*4)
print((45)*4)
print(a)

Your Answer
180
[45,45,45,45].

Correct Answer
180
[45,45,45,45].

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=9DD1946D3CCF4AA6874E0943D923269F&a=R1 16/22
11/5/22, 6:52 PM Assessment Review - AlmaBetter

56 What will be the output of the following Python code snippet?

for i in ''":
print (i)

Your Answer
error

Correct Answer
(nothing is printed)

Explanation
Sorry, you have selected the wrong answer.

https://almabetter.onlinetests.app/Assess.aspx?guid=9DD1946D3CCF4AA6874E0943D923269F&a=R1 17/22
11/5/22, 6:52 PM Assessment Review - AlmaBetter

57 What will be the output of the following Python code?


for i in range(float('inf')):
print (i)

Your Answer
none of the mentioned

Correct Answer
none of the mentioned

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=9DD1946D3CCF4AA6874E0943D923269F&a=R1 18/22
11/5/22, 6:52 PM Assessment Review - AlmaBetter

58 What is the output of the code shown below?

l1=[1, 2, 3, [4]]
l2=list(l1)
id(l1)==id(l2)

Your Answer
False

Correct Answer
False

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=9DD1946D3CCF4AA6874E0943D923269F&a=R1 19/22
11/5/22, 6:52 PM Assessment Review - AlmaBetter

59 What is the output of the following snippet of code?

total={}
def insert(items):
if items in total:
total[items] += 1
else:
total[items] = 1
insert('Apple')
insert('Ball')
insert('Apple')
print (len(total))

Your Answer
2

Correct Answer
2

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=9DD1946D3CCF4AA6874E0943D923269F&a=R1 20/22
11/5/22, 6:52 PM Assessment Review - AlmaBetter

Python- Basic Libraries (Pandas, Numpy, Matplotlib, Seaborn,Sklearn)

60 What will be correct syntax for pandas series?

Your Answer
pandas.Series( data, index, dtype, copy)

Correct Answer
pandas.Series( data, index, dtype, copy)

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=9DD1946D3CCF4AA6874E0943D923269F&a=R1 21/22
11/5/22, 6:52 PM Assessment Review - AlmaBetter

Page 3 of 4

Summary Prev Page Next Page

I'm done.

Software by

Version 11.2

Privacy Policy. Assessment content is copyright 2022, AlmaBetter.

https://almabetter.onlinetests.app/Assess.aspx?guid=9DD1946D3CCF4AA6874E0943D923269F&a=R1 22/22
11/5/22, 7:43 PM Assessment Review - AlmaBetter

Advanced Python

Below is a scored review of your assessment. All questions are shown.

Python- Basic Libraries (Pandas, Numpy, Matplotlib, Seaborn,Sklearn)

Correct Answer

Partially Correct

Incorrect Answer

https://almabetter.onlinetests.app/Assess.aspx?guid=145726ED427749A2BC44711976DDDDB6&a=R1 1/17
11/5/22, 7:43 PM Assessment Review - AlmaBetter

61 Numpy in the Python provides the

Your Answer
Array

Correct Answer
Array

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=145726ED427749A2BC44711976DDDDB6&a=R1 2/17
11/5/22, 7:43 PM Assessment Review - AlmaBetter

Python

62 Which of the following keywords is used for function declaration in Python language?

Your Answer
def

Correct Answer
def

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=145726ED427749A2BC44711976DDDDB6&a=R1 3/17
11/5/22, 7:43 PM Assessment Review - AlmaBetter

63 What is called when a function is defined inside a class?

Your Answer
Method

Correct Answer
Method

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=145726ED427749A2BC44711976DDDDB6&a=R1 4/17
11/5/22, 7:43 PM Assessment Review - AlmaBetter

64 What is the output of the code shown below?

def f1():
x=100
print(x)
x=+1
f1()

Your Answer
100

Correct Answer
100

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=145726ED427749A2BC44711976DDDDB6&a=R1 5/17
11/5/22, 7:43 PM Assessment Review - AlmaBetter

Python- Basic Libraries (Pandas, Numpy, Matplotlib, Seaborn,Sklearn)

65 How we can convert the Numpy array to the list in python?

Your Answer
list(array)

Correct Answer
list(array)

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=145726ED427749A2BC44711976DDDDB6&a=R1 6/17
11/5/22, 7:43 PM Assessment Review - AlmaBetter

Python

66 What is the output of the following?

string = "my name is x"


for i in string.split():
print (i, end=", ")

Your Answer
my, name, is, x

Correct Answer
my, name, is, x

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=145726ED427749A2BC44711976DDDDB6&a=R1 7/17
11/5/22, 7:43 PM Assessment Review - AlmaBetter

Python- Basic Libraries (Pandas, Numpy, Matplotlib, Seaborn,Sklearn)

67 NumPY stands for?

Your Answer
Numerical Python

Correct Answer
Numerical Python

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=145726ED427749A2BC44711976DDDDB6&a=R1 8/17
11/5/22, 7:43 PM Assessment Review - AlmaBetter

68 What will be output for the following code? import numpy as np a = np.array([1,2,3]) print (a)

Your Answer
[1, 2, 3]

Correct Answer
[1, 2, 3]

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=145726ED427749A2BC44711976DDDDB6&a=R1 9/17
11/5/22, 7:43 PM Assessment Review - AlmaBetter

Data Vizualization

69 What is true about Data Visualization?

Your Answer
All of the above

Correct Answer
All of the above

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=145726ED427749A2BC44711976DDDDB6&a=R1 10/17
11/5/22, 7:43 PM Assessment Review - AlmaBetter

Python- Basic Libraries (Pandas, Numpy, Matplotlib, Seaborn,Sklearn)

70 Pandas key data structure is called?

Your Answer
DataFrame

Correct Answer
DataFrame

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=145726ED427749A2BC44711976DDDDB6&a=R1 11/17
11/5/22, 7:43 PM Assessment Review - AlmaBetter

Python

71 What is the output of the code shown below?

A = [[1, 2, 3],
[4, 5, 6],
[7, 8, 9]]
[A[i][len(A)-1-i] for i in range(len(A))]

Your Answer
[4, 5, 6]

Correct Answer
[3, 5, 7]

Explanation
Sorry, you have selected the wrong answer.

https://almabetter.onlinetests.app/Assess.aspx?guid=145726ED427749A2BC44711976DDDDB6&a=R1 12/17
11/5/22, 7:43 PM Assessment Review - AlmaBetter

Python- Basic Libraries (Pandas, Numpy, Matplotlib, Seaborn,Sklearn)

72 Axis 1, in panel represent?

Your Answer
major_axis

Correct Answer
major_axis

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=145726ED427749A2BC44711976DDDDB6&a=R1 13/17
11/5/22, 7:43 PM Assessment Review - AlmaBetter

Data Vizualization

73 Which of the following plots are often used for checking randomness in time series?

Your Answer
Autorank

Correct Answer
Autocorrelation

Explanation
Sorry, you have selected the wrong answer.

https://almabetter.onlinetests.app/Assess.aspx?guid=145726ED427749A2BC44711976DDDDB6&a=R1 14/17
11/5/22, 7:43 PM Assessment Review - AlmaBetter

Python- Basic Libraries (Pandas, Numpy, Matplotlib, Seaborn,Sklearn)

74 In dataset loading, The variables of data are called its?

Your Answer
Features

Correct Answer
Features

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=145726ED427749A2BC44711976DDDDB6&a=R1 15/17
11/5/22, 7:43 PM Assessment Review - AlmaBetter

Python

75 How many control statements python supports?

Your Answer
Three

Correct Answer
Three

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=145726ED427749A2BC44711976DDDDB6&a=R1 16/17
11/5/22, 7:43 PM Assessment Review - AlmaBetter

Page 4 of 4

Summary Prev Page

I'm done.

Software by

Version 11.2

Privacy Policy. Assessment content is copyright 2022, AlmaBetter.

https://almabetter.onlinetests.app/Assess.aspx?guid=145726ED427749A2BC44711976DDDDB6&a=R1 17/17
11/5/22, 7:42 PM Assessment Review - AlmaBetter

Advanced Python

Below is a scored review of your assessment. All questions are shown.

Python

Correct Answer

Partially Correct

Incorrect Answer

https://almabetter.onlinetests.app/Assess.aspx?guid=145726ED427749A2BC44711976DDDDB6&a=R1 1/22
11/5/22, 7:42 PM Assessment Review - AlmaBetter

1 What is the output of the following snippet of code?

total={}
def insert(items):
if items in total:
total[items] += 1
else:
total[items] = 1
insert('Apple')
insert('Ball')
insert('Apple')
print (len(total))

Your Answer
2

Correct Answer
2

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=145726ED427749A2BC44711976DDDDB6&a=R1 2/22
11/5/22, 7:42 PM Assessment Review - AlmaBetter

2 What will be the output of the following Python code?


i=0
while i < 5:
print(i)
i += 1
if i == 3:
break
else:
print(0)

Your Answer
(0 1 2)

Correct Answer
(0 1 2)

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=145726ED427749A2BC44711976DDDDB6&a=R1 3/22
11/5/22, 7:42 PM Assessment Review - AlmaBetter

3 What is the output of the following piece of code?

def a(b):
b = b + [5]
return b

c = [1, 2, 3, 4]
d=a(c)
print(len(d))

Your Answer
5

Correct Answer
5

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=145726ED427749A2BC44711976DDDDB6&a=R1 4/22
11/5/22, 7:42 PM Assessment Review - AlmaBetter

4 What is the output of the code shown below?

s=set([1, 2, 3])
print(s.union([4, 5]))
s|([4, 5])

Your Answer
{1, 2, 3, 4, 5}
Error

Correct Answer
{1, 2, 3, 4, 5}
Error

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=145726ED427749A2BC44711976DDDDB6&a=R1 5/22
11/5/22, 7:42 PM Assessment Review - AlmaBetter

5 Which one of the following syntaxes is the correct syntax to read from a simple text file
stored in ''d:\alma.txt''?

Your Answer
Infile = open(''d:\alma.txt'',''r'')

Correct Answer
Infile = open(''d:\\alma.txt'', ''r'')

Explanation
Sorry, you have selected the wrong answer.

https://almabetter.onlinetests.app/Assess.aspx?guid=145726ED427749A2BC44711976DDDDB6&a=R1 6/22
11/5/22, 7:42 PM Assessment Review - AlmaBetter

6 Which of the following is not a keyword in Python language?

Your Answer
val

Correct Answer
val

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=145726ED427749A2BC44711976DDDDB6&a=R1 7/22
11/5/22, 7:42 PM Assessment Review - AlmaBetter

7 What will be the output of the following Python code?

def func(a, b=5, c=10):


print('a is', a, 'and b is', b, 'and c is', c)

func(3, 7)
func(25, c = 24)
func(c = 50, a = 100)

Your Answer
a is 3 and b is 7 and c is 10
a is 25 and b is 5 and c is 24
a is 100 and b is 5 and c is 50

Correct Answer
a is 3 and b is 7 and c is 10
a is 25 and b is 5 and c is 24
a is 100 and b is 5 and c is 50

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=145726ED427749A2BC44711976DDDDB6&a=R1 8/22
11/5/22, 7:42 PM Assessment Review - AlmaBetter

Data Vizualization

8 Which are pros of data visualization?

Your Answer
It can be accessed quickly by a wider audience.

Correct Answer
It can be accessed quickly by a wider audience.

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=145726ED427749A2BC44711976DDDDB6&a=R1 9/22
11/5/22, 7:42 PM Assessment Review - AlmaBetter

Python- Basic Libraries (Pandas, Numpy, Matplotlib, Seaborn,Sklearn)

9 NumPy is often used along with packages like?

Your Answer
Both B and C

Correct Answer
Both B and C

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=145726ED427749A2BC44711976DDDDB6&a=R1 10/22
11/5/22, 7:42 PM Assessment Review - AlmaBetter

10 The most important object defined in NumPy is an N- dimensional array type called?

Your Answer
ndarray

Correct Answer
ndarray

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=145726ED427749A2BC44711976DDDDB6&a=R1 11/22
11/5/22, 7:42 PM Assessment Review - AlmaBetter

11 Pandas is an open-source _______ Library?

Your Answer
Python

Correct Answer
Python

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=145726ED427749A2BC44711976DDDDB6&a=R1 12/22
11/5/22, 7:42 PM Assessment Review - AlmaBetter

Python

12 If a={5,6,7}, what happens when a.add(5) is executed?

Your Answer
a={5,6,7}

Correct Answer
a={5,6,7}

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=145726ED427749A2BC44711976DDDDB6&a=R1 13/22
11/5/22, 7:42 PM Assessment Review - AlmaBetter

Python- Basic Libraries (Pandas, Numpy, Matplotlib, Seaborn,Sklearn)

13 Why ndim is used?

Your Answer
Returns the number of dimensions of the underlying data,
by definition 1.

Correct Answer
Returns the number of dimensions of the underlying data,
by definition 1.

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=145726ED427749A2BC44711976DDDDB6&a=R1 14/22
11/5/22, 7:42 PM Assessment Review - AlmaBetter

14 What will be syntax for pandas dataframe?

Your Answer
pandas.DataFrame( data, index, columns, dtype, copy)

Correct Answer
pandas.DataFrame( data, index, columns, dtype, copy)

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=145726ED427749A2BC44711976DDDDB6&a=R1 15/22
11/5/22, 7:42 PM Assessment Review - AlmaBetter

Data Vizualization

15 Data can be visualized using?

Your Answer
All of the above

Correct Answer
All of the above

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=145726ED427749A2BC44711976DDDDB6&a=R1 16/22
11/5/22, 7:42 PM Assessment Review - AlmaBetter

Python

16 What will be the output of the following Python code?

True = False
while True:
print(True)
break

Your Answer
can't assign to keyword

Correct Answer
can't assign to keyword

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=145726ED427749A2BC44711976DDDDB6&a=R1 17/22
11/5/22, 7:42 PM Assessment Review - AlmaBetter

Python- Basic Libraries (Pandas, Numpy, Matplotlib, Seaborn,Sklearn)

17 Which of the following is false?

Your Answer
Pandas follow the NumPy convention of raising an error
when you try to convert something to a bool.

Correct Answer
The integer format tracks only the locations and
sizes of blocks of data.

Explanation
Sorry, you have selected the wrong answer.

https://almabetter.onlinetests.app/Assess.aspx?guid=145726ED427749A2BC44711976DDDDB6&a=R1 18/22
11/5/22, 7:42 PM Assessment Review - AlmaBetter

Python

18 Suppose list1 is [1, 3, 2], What is list1 * 2 ?

Your Answer
[1, 3, 2, 1, 3, 2]

Correct Answer
[1, 3, 2, 1, 3, 2]

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=145726ED427749A2BC44711976DDDDB6&a=R1 19/22
11/5/22, 7:42 PM Assessment Review - AlmaBetter

Python- Basic Libraries (Pandas, Numpy, Matplotlib, Seaborn,Sklearn)

19 Which of the following statement is false?

Your Answer
ndarray is also known as the axis array.

Correct Answer
ndarray is also known as the axis array.

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=145726ED427749A2BC44711976DDDDB6&a=R1 20/22
11/5/22, 7:42 PM Assessment Review - AlmaBetter

Python

20 What is answer of this expression, 22 % 3 is?

Your Answer
1

Correct Answer
1

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=145726ED427749A2BC44711976DDDDB6&a=R1 21/22
11/5/22, 7:42 PM Assessment Review - AlmaBetter

Page 1 of 4

Summary Next Page

I'm done.

Software by

Version 11.2

Privacy Policy. Assessment content is copyright 2022, AlmaBetter.

https://almabetter.onlinetests.app/Assess.aspx?guid=145726ED427749A2BC44711976DDDDB6&a=R1 22/22
11/5/22, 7:42 PM Assessment Review - AlmaBetter

Advanced Python

Below is a scored review of your assessment. All questions are shown.

Python- Basic Libraries (Pandas, Numpy, Matplotlib, Seaborn,Sklearn)

Correct Answer

Partially Correct

Incorrect Answer

https://almabetter.onlinetests.app/Assess.aspx?guid=145726ED427749A2BC44711976DDDDB6&a=R1 1/22
11/5/22, 7:42 PM Assessment Review - AlmaBetter

21 What will be output for the following code?


import pandas as pd
import numpy as np
s = pd.Series(np.random.randn(4))
print( s.ndim)

Your Answer
1

Correct Answer
1

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=145726ED427749A2BC44711976DDDDB6&a=R1 2/22
11/5/22, 7:42 PM Assessment Review - AlmaBetter

22 what is the use of the zeros() function in Numpy array in python ?

Your Answer
To make a Matrix with all element 0

Correct Answer
To make a Matrix with all element 0

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=145726ED427749A2BC44711976DDDDB6&a=R1 3/22
11/5/22, 7:42 PM Assessment Review - AlmaBetter

23 What is the syntax for dtype object?

Your Answer
numpy.dtype(object, align, copy)

Correct Answer
numpy.dtype(object, align, copy)

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=145726ED427749A2BC44711976DDDDB6&a=R1 4/22
11/5/22, 7:42 PM Assessment Review - AlmaBetter

Python

24 The function pow(x,y,z) is evaluated as:

Your Answer
(x**y) % z

Correct Answer
(x**y) % z

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=145726ED427749A2BC44711976DDDDB6&a=R1 5/22
11/5/22, 7:42 PM Assessment Review - AlmaBetter

Python- Basic Libraries (Pandas, Numpy, Matplotlib, Seaborn,Sklearn)

25 What will be output for the following code? import pandas as pd import numpy as np s =
pd.Series(np.random.randn(2)) print (s.size)

Your Answer
2

Correct Answer
2

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=145726ED427749A2BC44711976DDDDB6&a=R1 6/22
11/5/22, 7:42 PM Assessment Review - AlmaBetter

Python

26 Which of the following statements is correct for variable names in Python language?

Your Answer
Unlimited length

Correct Answer
Unlimited length

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=145726ED427749A2BC44711976DDDDB6&a=R1 7/22
11/5/22, 7:42 PM Assessment Review - AlmaBetter

27 What is the maximum possible length of an identifier?

Your Answer
None of these above

Correct Answer
None of these above

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=145726ED427749A2BC44711976DDDDB6&a=R1 8/22
11/5/22, 7:42 PM Assessment Review - AlmaBetter

Data Vizualization

28 Data visualization is also an element of the broader _____________.

Your Answer
data presentation architecture

Correct Answer
data presentation architecture

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=145726ED427749A2BC44711976DDDDB6&a=R1 9/22
11/5/22, 7:42 PM Assessment Review - AlmaBetter

Python- Basic Libraries (Pandas, Numpy, Matplotlib, Seaborn,Sklearn)

29 which library is the most used visulization library in python?

Your Answer
Seaborn
matplotlib

Correct Answer
Seaborn
matplotlib

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=145726ED427749A2BC44711976DDDDB6&a=R1 10/22
11/5/22, 7:42 PM Assessment Review - AlmaBetter

30 How we can find the type of numpy array in python ?

Your Answer
dtype

Correct Answer
dtype

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=145726ED427749A2BC44711976DDDDB6&a=R1 11/22
11/5/22, 7:42 PM Assessment Review - AlmaBetter

31 Correct syntax of the reshape() function in Numpy array python is -

Your Answer
reshape(array,shape)

Correct Answer
reshape(array,shape)

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=145726ED427749A2BC44711976DDDDB6&a=R1 12/22
11/5/22, 7:42 PM Assessment Review - AlmaBetter

Python

32 What is the output of the following code ?

example = "snow world"


example[3] = 's'
print (example)

Your Answer
Error

Correct Answer
Error

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=145726ED427749A2BC44711976DDDDB6&a=R1 13/22
11/5/22, 7:42 PM Assessment Review - AlmaBetter

33 What is the type of inf?

Your Answer
Float

Correct Answer
Float

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=145726ED427749A2BC44711976DDDDB6&a=R1 14/22
11/5/22, 7:42 PM Assessment Review - AlmaBetter

Data Vizualization

34 Which are cons of data visualization?

Your Answer
visual data is distorted or excessively used.

Correct Answer
visual data is distorted or excessively used.

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=145726ED427749A2BC44711976DDDDB6&a=R1 15/22
11/5/22, 7:42 PM Assessment Review - AlmaBetter

Python

35 Which of the following is an invalid statement?

Your Answer
a b c = 1000 2000 3000

Correct Answer
a b c = 1000 2000 3000

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=145726ED427749A2BC44711976DDDDB6&a=R1 16/22
11/5/22, 7:42 PM Assessment Review - AlmaBetter

Data Vizualization

36 Which method shows hierarchical data in a nested format?

Your Answer
Treemaps

Correct Answer
Treemaps

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=145726ED427749A2BC44711976DDDDB6&a=R1 17/22
11/5/22, 7:42 PM Assessment Review - AlmaBetter

Python

37 What will be the output of the following Python code?


i=1
while True:
if i%3 == 0:
break
print(i)
i+=1

Your Answer
1
2

Correct Answer
1
2

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=145726ED427749A2BC44711976DDDDB6&a=R1 18/22
11/5/22, 7:42 PM Assessment Review - AlmaBetter

Python- Basic Libraries (Pandas, Numpy, Matplotlib, Seaborn,Sklearn)

38 In pandas, Index values must be?

Your Answer
Both A and B

Correct Answer
Both A and B

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=145726ED427749A2BC44711976DDDDB6&a=R1 19/22
11/5/22, 7:42 PM Assessment Review - AlmaBetter

39 Which of the following is true?

Your Answer
Both A and B

Correct Answer
Both A and B

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=145726ED427749A2BC44711976DDDDB6&a=R1 20/22
11/5/22, 7:42 PM Assessment Review - AlmaBetter

40 If a dimension is given as ____ in a reshaping operation, the other dimensions are automatically
calculated.

Your Answer
Negative one

Correct Answer
Negative one

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=145726ED427749A2BC44711976DDDDB6&a=R1 21/22
11/5/22, 7:42 PM Assessment Review - AlmaBetter

Page 2 of 4

Summary Prev Page Next Page

I'm done.

Software by

Version 11.2

Privacy Policy. Assessment content is copyright 2022, AlmaBetter.

https://almabetter.onlinetests.app/Assess.aspx?guid=145726ED427749A2BC44711976DDDDB6&a=R1 22/22
11/5/22, 7:42 PM Assessment Review - AlmaBetter

Advanced Python

Below is a scored review of your assessment. All questions are shown.

Python- Basic Libraries (Pandas, Numpy, Matplotlib, Seaborn,Sklearn)

Correct Answer

Partially Correct

Incorrect Answer

https://almabetter.onlinetests.app/Assess.aspx?guid=145726ED427749A2BC44711976DDDDB6&a=R1 1/22
11/5/22, 7:42 PM Assessment Review - AlmaBetter

41 Scikit-learn is built on the top of

Your Answer
All of these

Correct Answer
All of these

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=145726ED427749A2BC44711976DDDDB6&a=R1 2/22
11/5/22, 7:42 PM Assessment Review - AlmaBetter

42 Numpy.array(list), what it does ?

Your Answer
It convert list to array

Correct Answer
It convert list to array

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=145726ED427749A2BC44711976DDDDB6&a=R1 3/22
11/5/22, 7:42 PM Assessment Review - AlmaBetter

Python

43 What is the output of the following?

d = {0: 'a', 1: 'b', 2: 'c'}


for x in d.values():
print(x)

Your Answer
abc

Correct Answer
abc

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=145726ED427749A2BC44711976DDDDB6&a=R1 4/22
11/5/22, 7:42 PM Assessment Review - AlmaBetter

Python- Basic Libraries (Pandas, Numpy, Matplotlib, Seaborn,Sklearn)

44 Which of the following is correct Features of DataFrame?

Your Answer
All of the above

Correct Answer
All of the above

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=145726ED427749A2BC44711976DDDDB6&a=R1 5/22
11/5/22, 7:42 PM Assessment Review - AlmaBetter

45 What will be output for the following code?

import numpy as np

dt = np.dtype([('age',np.int8)])

a = np.array([(10,),(20,),(30,)], dtype = dt)

print (a['age'])

Your Answer
[10 20 30]

Correct Answer
[10 20 30]

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=145726ED427749A2BC44711976DDDDB6&a=R1 6/22
11/5/22, 7:42 PM Assessment Review - AlmaBetter

Python

46 Which of the following matrices will throw an error in Python?

Your Answer
B = [[3, 3, 3]
[4, 4, 4]
[5, 5, 5]]

Correct Answer
B = [[3, 3, 3]
[4, 4, 4]
[5, 5, 5]]

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=145726ED427749A2BC44711976DDDDB6&a=R1 7/22
11/5/22, 7:42 PM Assessment Review - AlmaBetter

47 What is the maximum possible length of an identifier?

Your Answer
79 characters

Correct Answer
none of the mentioned

Explanation
Sorry, you have selected the wrong answer.

https://almabetter.onlinetests.app/Assess.aspx?guid=145726ED427749A2BC44711976DDDDB6&a=R1 8/22
11/5/22, 7:42 PM Assessment Review - AlmaBetter

Python- Basic Libraries (Pandas, Numpy, Matplotlib, Seaborn,Sklearn)

48 L1 Normalisation is also called?

Your Answer
Least Absolute Deviations

Correct Answer
Least Absolute Deviations

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=145726ED427749A2BC44711976DDDDB6&a=R1 9/22
11/5/22, 7:42 PM Assessment Review - AlmaBetter

Python

49 What will be the output of the following Python code?


for i in range(10):
if i == 5:
break
else:
print(i)
else:
print("Here")

Your Answer
01234

Correct Answer
01234

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=145726ED427749A2BC44711976DDDDB6&a=R1 10/22
11/5/22, 7:42 PM Assessment Review - AlmaBetter

50 What is the output of the code shown below?

l1=[1, 2, 3, [4]]
l2=list(l1)
id(l1)==id(l2)

Your Answer
False

Correct Answer
False

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=145726ED427749A2BC44711976DDDDB6&a=R1 11/22
11/5/22, 7:42 PM Assessment Review - AlmaBetter

Data Vizualization

51 Which of the following is false?

Your Answer
Data visualization decrease the insights
and take solwer decisions

Correct Answer
Data visualization decrease the insights
and take solwer decisions

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=145726ED427749A2BC44711976DDDDB6&a=R1 12/22
11/5/22, 7:42 PM Assessment Review - AlmaBetter

Python- Basic Libraries (Pandas, Numpy, Matplotlib, Seaborn,Sklearn)

52 What is the use of the size attribute in Numpy array in python ?

Your Answer
It find the number of items

Correct Answer
It find the number of items

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=145726ED427749A2BC44711976DDDDB6&a=R1 13/22
11/5/22, 7:42 PM Assessment Review - AlmaBetter

Python

53 Which of the following statements is correct regarding the object-oriented


programming concept in Python?

Your Answer
Objects are real-world entities while classes are not real

Correct Answer
Objects are real-world entities while classes are not real

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=145726ED427749A2BC44711976DDDDB6&a=R1 14/22
11/5/22, 7:42 PM Assessment Review - AlmaBetter

Python- Basic Libraries (Pandas, Numpy, Matplotlib, Seaborn,Sklearn)

54 What will be output for the following code?


import numpy as np
a = np.array([1, 2, 3,4,5], ndmin = 2)
print (a)

Your Answer
[[1, 2, 3, 4, 5]]

Correct Answer
[[1, 2, 3, 4, 5]]

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=145726ED427749A2BC44711976DDDDB6&a=R1 15/22
11/5/22, 7:42 PM Assessment Review - AlmaBetter

Python

55 What will be the output of the following Python code?

x = 'abcd'
for i in range(len(x)):
print(i)

Your Answer
0123

Correct Answer
0123

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=145726ED427749A2BC44711976DDDDB6&a=R1 16/22
11/5/22, 7:42 PM Assessment Review - AlmaBetter

56 What will be the output?


values = [[3, 4, 5, 1], [33, 6, 1, 2]]
v = values[0][0]
for lst in values:
for element in lst:
if v > element:
v = element
print(v)

Your Answer
1

Correct Answer
1

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=145726ED427749A2BC44711976DDDDB6&a=R1 17/22
11/5/22, 7:42 PM Assessment Review - AlmaBetter

Python- Basic Libraries (Pandas, Numpy, Matplotlib, Seaborn,Sklearn)

57 Which of the following thing can be data in Pandas?

Your Answer
All of the above

Correct Answer
All of the above

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=145726ED427749A2BC44711976DDDDB6&a=R1 18/22
11/5/22, 7:42 PM Assessment Review - AlmaBetter

Python

58 Study the following program:

i=2
j = 3, 5
add = i + j
print(add)
What will be the output of this program?

Your Answer
TypeError

Correct Answer
TypeError

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=145726ED427749A2BC44711976DDDDB6&a=R1 19/22
11/5/22, 7:42 PM Assessment Review - AlmaBetter

Python- Basic Libraries (Pandas, Numpy, Matplotlib, Seaborn,Sklearn)

59 Which of the following are Features of Scikit Learn?

Your Answer
All of the above

Correct Answer
All of the above

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=145726ED427749A2BC44711976DDDDB6&a=R1 20/22
11/5/22, 7:42 PM Assessment Review - AlmaBetter

Python

60 Study the following program:

print(print(print("almabetter")))
What will be the output of this program?

Your Answer
almabetter None None

Correct Answer
almabetter None None

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=145726ED427749A2BC44711976DDDDB6&a=R1 21/22
11/5/22, 7:42 PM Assessment Review - AlmaBetter

Page 3 of 4

Summary Prev Page Next Page

I'm done.

Software by

Version 11.2

Privacy Policy. Assessment content is copyright 2022, AlmaBetter.

https://almabetter.onlinetests.app/Assess.aspx?guid=145726ED427749A2BC44711976DDDDB6&a=R1 22/22
11/5/22, 7:39 PM Assessment Review - AlmaBetter

Advanced Python

Below is a scored review of your assessment. All questions are shown.

Python

Correct Answer

Partially Correct

Incorrect Answer

https://almabetter.onlinetests.app/Assess.aspx?guid=654913237AEB49689CA2800B24D326C7&a=R1 1/22
11/5/22, 7:39 PM Assessment Review - AlmaBetter

21 The function pow(x,y,z) is evaluated as:

Your Answer
(x**y) % z

Correct Answer
(x**y) % z

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=654913237AEB49689CA2800B24D326C7&a=R1 2/22
11/5/22, 7:39 PM Assessment Review - AlmaBetter

22 Which of the following is true for variable names in Python?

Your Answer
unlimited length

Correct Answer
unlimited length

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=654913237AEB49689CA2800B24D326C7&a=R1 3/22
11/5/22, 7:39 PM Assessment Review - AlmaBetter

Python- Basic Libraries (Pandas, Numpy, Matplotlib, Seaborn,Sklearn)

23 What will be output for the following code?

import numpy as np

dt = np.dtype([('age',np.int8)])

a = np.array([(10,),(20,),(30,)], dtype = dt)

print (a['age'])

Your Answer
[10 20 30]

Correct Answer
[10 20 30]

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=654913237AEB49689CA2800B24D326C7&a=R1 4/22
11/5/22, 7:39 PM Assessment Review - AlmaBetter

Python

24 Which of the following arithmetic operators cannot be used with strings in python?

Your Answer
(-)

Correct Answer
(-)

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=654913237AEB49689CA2800B24D326C7&a=R1 5/22
11/5/22, 7:39 PM Assessment Review - AlmaBetter

25 What is called when a function is defined inside a class?

Your Answer
Method

Correct Answer
Method

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=654913237AEB49689CA2800B24D326C7&a=R1 6/22
11/5/22, 7:39 PM Assessment Review - AlmaBetter

Python- Basic Libraries (Pandas, Numpy, Matplotlib, Seaborn,Sklearn)

26 NumPY stands for?

Your Answer
Numerical Python

Correct Answer
Numerical Python

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=654913237AEB49689CA2800B24D326C7&a=R1 7/22
11/5/22, 7:39 PM Assessment Review - AlmaBetter

Python

27 What will be the output of the following Python code snippet?

x = 'abcd'
for i in range(len(x)):
x[i].upper()
print (x)

Your Answer
abcd

Correct Answer
abcd

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=654913237AEB49689CA2800B24D326C7&a=R1 8/22
11/5/22, 7:39 PM Assessment Review - AlmaBetter

28 Which of the following is not a keyword in Python language?

Your Answer
val

Correct Answer
val

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=654913237AEB49689CA2800B24D326C7&a=R1 9/22
11/5/22, 7:39 PM Assessment Review - AlmaBetter

Python- Basic Libraries (Pandas, Numpy, Matplotlib, Seaborn,Sklearn)

29 Scikit-Learn was originally called scikits.learn

Your Answer
True

Correct Answer
True

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=654913237AEB49689CA2800B24D326C7&a=R1 10/22
11/5/22, 7:39 PM Assessment Review - AlmaBetter

Python

30 Why are local variable names beginning with an underscore discouraged?

Your Answer
they are used to indicate a private variables of a class

Correct Answer
they are used to indicate a private variables of a class

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=654913237AEB49689CA2800B24D326C7&a=R1 11/22
11/5/22, 7:39 PM Assessment Review - AlmaBetter

Data Vizualization

31 Which of the following is false?

Your Answer
Data visualization decrease the insights
and take solwer decisions

Correct Answer
Data visualization decrease the insights
and take solwer decisions

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=654913237AEB49689CA2800B24D326C7&a=R1 12/22
11/5/22, 7:39 PM Assessment Review - AlmaBetter

32 Which of the following plots are often used for checking randomness in time series?

Your Answer
Autocorrelation

Correct Answer
Autocorrelation

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=654913237AEB49689CA2800B24D326C7&a=R1 13/22
11/5/22, 7:39 PM Assessment Review - AlmaBetter

Python

33 What will be the output of the following Python code?


i=0
while i < 5:
print(i)
i += 1
if i == 3:
break
else:
print(0)

Your Answer
none of the mentioned

Correct Answer
(0 1 2)

Explanation
Sorry, you have selected the wrong answer.

https://almabetter.onlinetests.app/Assess.aspx?guid=654913237AEB49689CA2800B24D326C7&a=R1 14/22
11/5/22, 7:39 PM Assessment Review - AlmaBetter

Python- Basic Libraries (Pandas, Numpy, Matplotlib, Seaborn,Sklearn)

34 What will be correct syntax for pandas series?

Your Answer
pandas.Series( data, index, dtype, copy)

Correct Answer
pandas.Series( data, index, dtype, copy)

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=654913237AEB49689CA2800B24D326C7&a=R1 15/22
11/5/22, 7:39 PM Assessment Review - AlmaBetter

35 Scikit-learn provides __________ classes.

Your Answer
4

Correct Answer
3

Explanation
Sorry, you have selected the wrong answer.

https://almabetter.onlinetests.app/Assess.aspx?guid=654913237AEB49689CA2800B24D326C7&a=R1 16/22
11/5/22, 7:39 PM Assessment Review - AlmaBetter

Python

36 What is a variable defined inside a function referred to as?

Your Answer
A local variable

Correct Answer
A local variable

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=654913237AEB49689CA2800B24D326C7&a=R1 17/22
11/5/22, 7:39 PM Assessment Review - AlmaBetter

37 What will be the output of the following Python code snippet?

x=2
for i in range(x):
x += 1
print (x)

Your Answer
(3 4)

Correct Answer
(3 4)

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=654913237AEB49689CA2800B24D326C7&a=R1 18/22
11/5/22, 7:39 PM Assessment Review - AlmaBetter

Python- Basic Libraries (Pandas, Numpy, Matplotlib, Seaborn,Sklearn)

38 Pandas is an open-source _______ Library?

Your Answer
Python

Correct Answer
Python

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=654913237AEB49689CA2800B24D326C7&a=R1 19/22
11/5/22, 7:39 PM Assessment Review - AlmaBetter

Python

39 All keywords in Python are in

Your Answer
lower case

Correct Answer
None of the mentioned

Explanation
Sorry, you have selected the wrong answer.

https://almabetter.onlinetests.app/Assess.aspx?guid=654913237AEB49689CA2800B24D326C7&a=R1 20/22
11/5/22, 7:39 PM Assessment Review - AlmaBetter

Python- Basic Libraries (Pandas, Numpy, Matplotlib, Seaborn,Sklearn)

40 Axis 1, in panel represent?

Your Answer
major_axis

Correct Answer
major_axis

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=654913237AEB49689CA2800B24D326C7&a=R1 21/22
11/5/22, 7:39 PM Assessment Review - AlmaBetter

Page 2 of 4

Summary Prev Page Next Page

I'm done.

Software by

Version 11.2

Privacy Policy. Assessment content is copyright 2022, AlmaBetter.

https://almabetter.onlinetests.app/Assess.aspx?guid=654913237AEB49689CA2800B24D326C7&a=R1 22/22
11/5/22, 7:39 PM Assessment Review - AlmaBetter

Advanced Python

Below is a scored review of your assessment. All questions are shown.

Python

Correct Answer

Partially Correct

Incorrect Answer

https://almabetter.onlinetests.app/Assess.aspx?guid=654913237AEB49689CA2800B24D326C7&a=R1 1/22
11/5/22, 7:39 PM Assessment Review - AlmaBetter

41 What will be the output of the following Python code?


i=1
while True:
if i%3 == 0:
break
print(i)
i+=1

Your Answer
1
2

Correct Answer
1
2

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=654913237AEB49689CA2800B24D326C7&a=R1 2/22
11/5/22, 7:39 PM Assessment Review - AlmaBetter

42 What will be the output of the following Python code?


a = [5,5,6,7,7,7]
b = set(a)
def test(lst):
if lst in b:
return 1
else:
return 0
for i in filter(test, a):
print(i,end=" ")

Your Answer
556777

Correct Answer
556777

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=654913237AEB49689CA2800B24D326C7&a=R1 3/22
11/5/22, 7:39 PM Assessment Review - AlmaBetter

Python- Basic Libraries (Pandas, Numpy, Matplotlib, Seaborn,Sklearn)

43 Why ndim is used?

Your Answer
Returns the number of dimensions of the underlying data,
by definition 1.

Correct Answer
Returns the number of dimensions of the underlying data,
by definition 1.

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=654913237AEB49689CA2800B24D326C7&a=R1 4/22
11/5/22, 7:39 PM Assessment Review - AlmaBetter

Python

44 Which of the following Python statements will result in the output: 6?

A = [[1, 2, 3],
[4, 5, 6],
[7, 8, 9]]

Your Answer
A[1][2]

Correct Answer
A[1][2]

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=654913237AEB49689CA2800B24D326C7&a=R1 5/22
11/5/22, 7:39 PM Assessment Review - AlmaBetter

45 How many keyword arguments can be passed to a function in a single function call?

Your Answer
zero

Correct Answer
zero or more

Explanation
Sorry, you have selected the wrong answer.

https://almabetter.onlinetests.app/Assess.aspx?guid=654913237AEB49689CA2800B24D326C7&a=R1 6/22
11/5/22, 7:39 PM Assessment Review - AlmaBetter

46 What will be the output of the following Python code?


def printMax(a, b):
if a > b:
print(a, 'is maximum')
elif a == b:
print(a, 'is equal to', b)
else:
print(b, 'is maximum')
printMax(3, 4)

Your Answer
4 is maximum

Correct Answer
4 is maximum

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=654913237AEB49689CA2800B24D326C7&a=R1 7/22
11/5/22, 7:39 PM Assessment Review - AlmaBetter

Data Vizualization

47 Which are pros of data visualization?

Your Answer
It can be accessed quickly by a wider audience.

Correct Answer
It can be accessed quickly by a wider audience.

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=654913237AEB49689CA2800B24D326C7&a=R1 8/22
11/5/22, 7:39 PM Assessment Review - AlmaBetter

Python

48 What will be the output of the following Python code?

def change(i = 1, j = 2):


i=i+j
j=j+1
print(i, j)
change(j = 1, i = 2)

Your Answer
(3 2)

Correct Answer
(3 2)

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=654913237AEB49689CA2800B24D326C7&a=R1 9/22
11/5/22, 7:39 PM Assessment Review - AlmaBetter

Python- Basic Libraries (Pandas, Numpy, Matplotlib, Seaborn,Sklearn)

49 What will be output for the following code?

import pandas as pd

s = pd.Series([1,2,3,4,5],index = ['a','b','c','d','e'])

print (s['a'])

Your Answer
1

Correct Answer
1

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=654913237AEB49689CA2800B24D326C7&a=R1 10/22
11/5/22, 7:39 PM Assessment Review - AlmaBetter

Python

50 Which of the following precedence order is correct in Python?

Your Answer
Parentheses, Exponential, Multiplication, Division, Addition, Subtraction

Correct Answer
Parentheses, Exponential, Multiplication, Division, Addition, Subtraction

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=654913237AEB49689CA2800B24D326C7&a=R1 11/22
11/5/22, 7:39 PM Assessment Review - AlmaBetter

Python- Basic Libraries (Pandas, Numpy, Matplotlib, Seaborn,Sklearn)

51 Point out the wrong combination with regards to kind keyword for graph plotting.

Your Answer
‘kde’ for hexagonal bin plots

Correct Answer
‘kde’ for hexagonal bin plots

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=654913237AEB49689CA2800B24D326C7&a=R1 12/22
11/5/22, 7:39 PM Assessment Review - AlmaBetter

Python

52 What will be the output of the following Python code?

A = [[1, 2, 3],
[4, 5, 6],
[7, 8, 9]]
[A[row][1] for row in (0, 1, 2)]

Your Answer
[2, 5, 8]

Correct Answer
[2, 5, 8]

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=654913237AEB49689CA2800B24D326C7&a=R1 13/22
11/5/22, 7:39 PM Assessment Review - AlmaBetter

Python- Basic Libraries (Pandas, Numpy, Matplotlib, Seaborn,Sklearn)

53 How we install Numpy in the system ?

Your Answer
pip install numpy

Correct Answer
pip install numpy

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=654913237AEB49689CA2800B24D326C7&a=R1 14/22
11/5/22, 7:39 PM Assessment Review - AlmaBetter

Data Vizualization

54 Which method shows hierarchical data in a nested format?

Your Answer
Treemaps

Correct Answer
Treemaps

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=654913237AEB49689CA2800B24D326C7&a=R1 15/22
11/5/22, 7:39 PM Assessment Review - AlmaBetter

Python

55 What is the output of the code?


print(12 ^ 2)

Your Answer
24

Correct Answer
14

Explanation
Sorry, you have selected the wrong answer.

https://almabetter.onlinetests.app/Assess.aspx?guid=654913237AEB49689CA2800B24D326C7&a=R1 16/22
11/5/22, 7:39 PM Assessment Review - AlmaBetter

56 Which of the following will run without errors ?

Your Answer
round(45.8)

Correct Answer
round(45.8)

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=654913237AEB49689CA2800B24D326C7&a=R1 17/22
11/5/22, 7:39 PM Assessment Review - AlmaBetter

Python- Basic Libraries (Pandas, Numpy, Matplotlib, Seaborn,Sklearn)

57 Point out the correct combination with regards to kind keyword for graph plotting.

Your Answer
all of the mentioned

Correct Answer
all of the mentioned

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=654913237AEB49689CA2800B24D326C7&a=R1 18/22
11/5/22, 7:39 PM Assessment Review - AlmaBetter

58 Which of the following are Features of Scikit Learn?

Your Answer
All of the above

Correct Answer
All of the above

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=654913237AEB49689CA2800B24D326C7&a=R1 19/22
11/5/22, 7:39 PM Assessment Review - AlmaBetter

59 Which of the following thing can be data in Pandas?

Your Answer
All of the above

Correct Answer
All of the above

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=654913237AEB49689CA2800B24D326C7&a=R1 20/22
11/5/22, 7:39 PM Assessment Review - AlmaBetter

60 What will be output for the following code? import numpy as np a = np.array([1,2,3]) print (a)

Your Answer
[1, 2, 3]

Correct Answer
[1, 2, 3]

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=654913237AEB49689CA2800B24D326C7&a=R1 21/22
11/5/22, 7:39 PM Assessment Review - AlmaBetter

Page 3 of 4

Summary Prev Page Next Page

I'm done.

Software by

Version 11.2

Privacy Policy. Assessment content is copyright 2022, AlmaBetter.

https://almabetter.onlinetests.app/Assess.aspx?guid=654913237AEB49689CA2800B24D326C7&a=R1 22/22
11/5/22, 7:40 PM Assessment Review - AlmaBetter

Advanced Python

Below is a scored review of your assessment. All questions are shown.

Python- Basic Libraries (Pandas, Numpy, Matplotlib, Seaborn,Sklearn)

Correct Answer

Partially Correct

Incorrect Answer

https://almabetter.onlinetests.app/Assess.aspx?guid=654913237AEB49689CA2800B24D326C7&a=R1 1/17
11/5/22, 7:40 PM Assessment Review - AlmaBetter

61 What will be output for the following code?


import pandas as pd
import numpy as np
s = pd.Series(np.random.randn(4))
print( s.ndim)

Your Answer
1

Correct Answer
1

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=654913237AEB49689CA2800B24D326C7&a=R1 2/17
11/5/22, 7:40 PM Assessment Review - AlmaBetter

Python

62 What will be the output of the following Python code?


for i in range(10):
if i == 5:
break
else:
print(i)
else:
print("Here")

Your Answer
012345
Here

Correct Answer
01234

Explanation
Sorry, you have selected the wrong answer.

https://almabetter.onlinetests.app/Assess.aspx?guid=654913237AEB49689CA2800B24D326C7&a=R1 3/17
11/5/22, 7:40 PM Assessment Review - AlmaBetter

Python- Basic Libraries (Pandas, Numpy, Matplotlib, Seaborn,Sklearn)

63 Which of the following is correct Features of DataFrame?

Your Answer
Can Perform Arithmetic operations on rows and columns

Correct Answer
All of the above

Explanation
Sorry, you have selected the wrong answer.

https://almabetter.onlinetests.app/Assess.aspx?guid=654913237AEB49689CA2800B24D326C7&a=R1 4/17
11/5/22, 7:40 PM Assessment Review - AlmaBetter

64 What is the use of the size attribute in Numpy array in python ?

Your Answer
It find the number of items

Correct Answer
It find the number of items

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=654913237AEB49689CA2800B24D326C7&a=R1 5/17
11/5/22, 7:40 PM Assessment Review - AlmaBetter

Data Vizualization

65 What is true about Data Visualization?

Your Answer
All of the above

Correct Answer
All of the above

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=654913237AEB49689CA2800B24D326C7&a=R1 6/17
11/5/22, 7:40 PM Assessment Review - AlmaBetter

Python- Basic Libraries (Pandas, Numpy, Matplotlib, Seaborn,Sklearn)

66 How we can find the type of numpy array in python ?

Your Answer
dtype

Correct Answer
dtype

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=654913237AEB49689CA2800B24D326C7&a=R1 7/17
11/5/22, 7:40 PM Assessment Review - AlmaBetter

67 Numpy in the Python provides the

Your Answer
Array

Correct Answer
Array

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=654913237AEB49689CA2800B24D326C7&a=R1 8/17
11/5/22, 7:40 PM Assessment Review - AlmaBetter

Python

68 What is the output of the following?

i=2
while True:
if i%3 == 0:
break
print(i)
i += 2

Your Answer
2
4

Correct Answer
2
4

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=654913237AEB49689CA2800B24D326C7&a=R1 9/17
11/5/22, 7:40 PM Assessment Review - AlmaBetter

Data Vizualization

69 Which are cons of data visualization?

Your Answer
visual data is distorted or excessively used.

Correct Answer
visual data is distorted or excessively used.

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=654913237AEB49689CA2800B24D326C7&a=R1 10/17
11/5/22, 7:40 PM Assessment Review - AlmaBetter

Python- Basic Libraries (Pandas, Numpy, Matplotlib, Seaborn,Sklearn)

70 which library is the most used visulization library in python?

Your Answer
Seaborn
matplotlib

Correct Answer
Seaborn
matplotlib

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=654913237AEB49689CA2800B24D326C7&a=R1 11/17
11/5/22, 7:40 PM Assessment Review - AlmaBetter

71 Scikit-learn is built on the top of

Your Answer
All of these

Correct Answer
All of these

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=654913237AEB49689CA2800B24D326C7&a=R1 12/17
11/5/22, 7:40 PM Assessment Review - AlmaBetter

Python

72 What will be the output of the following Python code?

l=[[1, 2, 3], [4, 5, 6]]


for i in range(len(l)):
for j in range(len(l[i])):
l[i][j]+=10
l

Your Answer
[[11, 12, 13], [14, 15, 16]]

Correct Answer
[[11, 12, 13], [14, 15, 16]]

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=654913237AEB49689CA2800B24D326C7&a=R1 13/17
11/5/22, 7:40 PM Assessment Review - AlmaBetter

73 What is the maximum possible length of an identifier?

Your Answer
63 characters

Correct Answer
none of the mentioned

Explanation
Sorry, you have selected the wrong answer.

https://almabetter.onlinetests.app/Assess.aspx?guid=654913237AEB49689CA2800B24D326C7&a=R1 14/17
11/5/22, 7:40 PM Assessment Review - AlmaBetter

Python- Basic Libraries (Pandas, Numpy, Matplotlib, Seaborn,Sklearn)

74 In dataset loading, The variables of data are called its?

Your Answer
Features

Correct Answer
Features

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=654913237AEB49689CA2800B24D326C7&a=R1 15/17
11/5/22, 7:40 PM Assessment Review - AlmaBetter

75 Which of the following statement is false?

Your Answer
ndarray is also known as the axis array.

Correct Answer
ndarray is also known as the axis array.

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=654913237AEB49689CA2800B24D326C7&a=R1 16/17
11/5/22, 7:40 PM Assessment Review - AlmaBetter

Page 4 of 4

Summary Prev Page

I'm done.

Software by

Version 11.2

Privacy Policy. Assessment content is copyright 2022, AlmaBetter.

https://almabetter.onlinetests.app/Assess.aspx?guid=654913237AEB49689CA2800B24D326C7&a=R1 17/17
11/5/22, 7:39 PM Assessment Review - AlmaBetter

Advanced Python

Below is a scored review of your assessment. All questions are shown.

Python- Basic Libraries (Pandas, Numpy, Matplotlib, Seaborn,Sklearn)

Correct Answer

Partially Correct

Incorrect Answer

https://almabetter.onlinetests.app/Assess.aspx?guid=654913237AEB49689CA2800B24D326C7&a=R1 1/22
11/5/22, 7:39 PM Assessment Review - AlmaBetter

1 If a dimension is given as ____ in a reshaping operation, the other dimensions are automatically calculated.

Your Answer
Negative one

Correct Answer
Negative one

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=654913237AEB49689CA2800B24D326C7&a=R1 2/22
11/5/22, 7:39 PM Assessment Review - AlmaBetter

Python

2 Which of the following matrices will throw an error in Python?

Your Answer
B = [[3, 3, 3]
[4, 4, 4]
[5, 5, 5]]

Correct Answer
B = [[3, 3, 3]
[4, 4, 4]
[5, 5, 5]]

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=654913237AEB49689CA2800B24D326C7&a=R1 3/22
11/5/22, 7:39 PM Assessment Review - AlmaBetter

Python- Basic Libraries (Pandas, Numpy, Matplotlib, Seaborn,Sklearn)

3 How we can change the shape of the Numpy array in python?

Your Answer
By reshape()

Correct Answer
By reshape()

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=654913237AEB49689CA2800B24D326C7&a=R1 4/22
11/5/22, 7:39 PM Assessment Review - AlmaBetter

4 The most important object defined in NumPy is an N- dimensional array type called?

Your Answer
ndarray

Correct Answer
ndarray

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=654913237AEB49689CA2800B24D326C7&a=R1 5/22
11/5/22, 7:39 PM Assessment Review - AlmaBetter

Python

5 Which of these in not a core datatype?

Your Answer
Class

Correct Answer
Class

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=654913237AEB49689CA2800B24D326C7&a=R1 6/22
11/5/22, 7:39 PM Assessment Review - AlmaBetter

Python- Basic Libraries (Pandas, Numpy, Matplotlib, Seaborn,Sklearn)

6 Numpy.array(list), what it does ?

Your Answer
It convert list to array

Correct Answer
It convert list to array

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=654913237AEB49689CA2800B24D326C7&a=R1 7/22
11/5/22, 7:39 PM Assessment Review - AlmaBetter

7 What will be output for the following code?


import numpy as np
a = np.array([1, 2, 3,4,5], ndmin = 2)
print (a)

Your Answer
[[1, 2, 3, 4, 5]]

Correct Answer
[[1, 2, 3, 4, 5]]

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=654913237AEB49689CA2800B24D326C7&a=R1 8/22
11/5/22, 7:39 PM Assessment Review - AlmaBetter

Python

8 What will be the output of the following Python code?

x = 'abcd'
for i in x:
print(i.upper())

Your Answer
ABCD

Correct Answer
ABCD

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=654913237AEB49689CA2800B24D326C7&a=R1 9/22
11/5/22, 7:39 PM Assessment Review - AlmaBetter

Python- Basic Libraries (Pandas, Numpy, Matplotlib, Seaborn,Sklearn)

9 What is the syntax for dtype object?

Your Answer
numpy.dtype(object, align, copy)

Correct Answer
numpy.dtype(object, align, copy)

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=654913237AEB49689CA2800B24D326C7&a=R1 10/22
11/5/22, 7:39 PM Assessment Review - AlmaBetter

Python

10 Which of the following statements is correct for variable names in Python language?

Your Answer
All variable names must begin with an underscore.

Correct Answer
Unlimited length

Explanation
Sorry, you have selected the wrong answer.

https://almabetter.onlinetests.app/Assess.aspx?guid=654913237AEB49689CA2800B24D326C7&a=R1 11/22
11/5/22, 7:39 PM Assessment Review - AlmaBetter

Data Vizualization

11 Data can be visualized using?

Your Answer
All of the above

Correct Answer
All of the above

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=654913237AEB49689CA2800B24D326C7&a=R1 12/22
11/5/22, 7:39 PM Assessment Review - AlmaBetter

Python

12 Suppose list1 is [1, 3, 2], What is list1 * 2 ?

Your Answer
[1, 3, 2, 1, 3, 2]

Correct Answer
[1, 3, 2, 1, 3, 2]

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=654913237AEB49689CA2800B24D326C7&a=R1 13/22
11/5/22, 7:39 PM Assessment Review - AlmaBetter

13 Study the following program:


print(int(6 == 6.0) * 3 + 4 % 5)
What will be the output of this program?

Your Answer
7

Correct Answer
7

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=654913237AEB49689CA2800B24D326C7&a=R1 14/22
11/5/22, 7:39 PM Assessment Review - AlmaBetter

Data Vizualization

14 Data visualization is also an element of the broader _____________.

Your Answer
data presentation architecture

Correct Answer
data presentation architecture

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=654913237AEB49689CA2800B24D326C7&a=R1 15/22
11/5/22, 7:39 PM Assessment Review - AlmaBetter

Python- Basic Libraries (Pandas, Numpy, Matplotlib, Seaborn,Sklearn)

15 NumPy is often used along with packages like?

Your Answer
Both B and C

Correct Answer
Both B and C

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=654913237AEB49689CA2800B24D326C7&a=R1 16/22
11/5/22, 7:39 PM Assessment Review - AlmaBetter

16 In pandas, Index values must be?

Your Answer
Both A and B

Correct Answer
Both A and B

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=654913237AEB49689CA2800B24D326C7&a=R1 17/22
11/5/22, 7:39 PM Assessment Review - AlmaBetter

Python

17 What will be the output of the following Python code?


>>> a={4,5,6}
>>> b={2,8,6}
>>> a+b

Your Answer
Error as unsupported operand type for sets

Correct Answer
Error as unsupported operand type for sets

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=654913237AEB49689CA2800B24D326C7&a=R1 18/22
11/5/22, 7:39 PM Assessment Review - AlmaBetter

Python- Basic Libraries (Pandas, Numpy, Matplotlib, Seaborn,Sklearn)

18 L1 Normalisation is also called?

Your Answer
Least Absolute Deviations

Correct Answer
Least Absolute Deviations

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=654913237AEB49689CA2800B24D326C7&a=R1 19/22
11/5/22, 7:39 PM Assessment Review - AlmaBetter

Python

19 What will be the output of the following Python code?


for i in range(float('inf')):
print (i)

Your Answer
none of the mentioned

Correct Answer
none of the mentioned

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=654913237AEB49689CA2800B24D326C7&a=R1 20/22
11/5/22, 7:39 PM Assessment Review - AlmaBetter

20 Study the following program:

i=2
j = 3, 5
add = i + j
print(add)
What will be the output of this program?

Your Answer
TypeError

Correct Answer
TypeError

Explanation
You are correct!

https://almabetter.onlinetests.app/Assess.aspx?guid=654913237AEB49689CA2800B24D326C7&a=R1 21/22
11/5/22, 7:39 PM Assessment Review - AlmaBetter

Page 1 of 4

Summary Next Page

I'm done.

Software by

Version 11.2

Privacy Policy. Assessment content is copyright 2022, AlmaBetter.

https://almabetter.onlinetests.app/Assess.aspx?guid=654913237AEB49689CA2800B24D326C7&a=R1 22/22

You might also like