NPTEL Python Computing Week 10 Quiz Solution
Explore the solution to Week 10's Python computing quiz, including key concepts and answers. 🖥️

Ultimate Gamer
8.3K views • Sep 29, 2019

About this video
Assignment 10
Due date: 2019-10-09, 23:59 IST.
Your last recorded submission was on 2019-09-29, 13:16 IST
1 point
What is the relationship between RANBIR and ALIA according to the game FLAMES?
Love
Marriage
Friends
Enemy
1 point
What is the output of the following program?
import numpy as np
a = np.array([1,2,3,5,8])
b = np.array([0,3,4,2,1])
c=a+b
c = c*a
print (c[2])
20
21
26
27
1 point
What is the output of the statement a.size if a is a numpy array defined as a = np.array([[1,2,3],[0,1,4]])?
4
5
6
7
1 point
What is the output of the following Python program?
import numpy as np
a = np.array([[0, 1, 0], [1, 0, 1]])
a += 3
b=a+3
print (a[1,2] + b[1,2])
10
11
12
13
1 point
If the string s="Python" then what is the output of the statement s[::-1]?
"Python"
"onthPy"
"Pythno"
"nohtyP"
1 point
State True or False.
numpy.asanyarray(input) converts input to an ndarray. Here, input can be scalars, lists, lists of tuples, tuples, tuples of tuples, tuples of lists.
True
False
1 point
Which of the following attributes is used to obtain picture size using PIL in Python?
shape
size
area
volume
1 point
What is the output of the statement print(s.upper()) if s=’SImRan’ ?
SIMRAN
SIMran
SiMrAn
None of the above
Due date: 2019-10-09, 23:59 IST.
Your last recorded submission was on 2019-09-29, 13:16 IST
1 point
What is the relationship between RANBIR and ALIA according to the game FLAMES?
Love
Marriage
Friends
Enemy
1 point
What is the output of the following program?
import numpy as np
a = np.array([1,2,3,5,8])
b = np.array([0,3,4,2,1])
c=a+b
c = c*a
print (c[2])
20
21
26
27
1 point
What is the output of the statement a.size if a is a numpy array defined as a = np.array([[1,2,3],[0,1,4]])?
4
5
6
7
1 point
What is the output of the following Python program?
import numpy as np
a = np.array([[0, 1, 0], [1, 0, 1]])
a += 3
b=a+3
print (a[1,2] + b[1,2])
10
11
12
13
1 point
If the string s="Python" then what is the output of the statement s[::-1]?
"Python"
"onthPy"
"Pythno"
"nohtyP"
1 point
State True or False.
numpy.asanyarray(input) converts input to an ndarray. Here, input can be scalars, lists, lists of tuples, tuples, tuples of tuples, tuples of lists.
True
False
1 point
Which of the following attributes is used to obtain picture size using PIL in Python?
shape
size
area
volume
1 point
What is the output of the statement print(s.upper()) if s=’SImRan’ ?
SIMRAN
SIMran
SiMrAn
None of the above
Tags and Topics
Browse our collection to discover more content in these categories.
Video Information
Views
8.3K
Likes
32
Duration
1:03
Published
Sep 29, 2019
User Reviews
4.0
(1) Related Trending Topics
LIVE TRENDSRelated trending topics. Click any trend to explore more videos.
Trending Now