2/19/25, 10:24 PM Privacy and Security in Online Social Media - - Unit 7 - Privacy and Pictures on Online Social Media
(https://swayam.gov.in) (https://swayam.gov.in/nc_details/NPTEL)
fastestbhau18@gmail.com
NPTEL (https://swayam.gov.in/explorer?ncCode=NPTEL) » Privacy and Security in Online Social Media
(course)
Click to register
for Certification
exam
Week 4 : Assignment 4
(https://examform.nptel.ac.in/2025_01/exam_form/dashboard)
Your last recorded submission was on 2025-02-13, 22:51 Due date: 2025-02-19, 23:59 IST.
IST
If already
registered, click 1) What are the different forms of Privacy? 1 point
to check your
payment status Information
Communication
Territorial
Bodily
Course
outline
2) “Please Rob Me” highlighted issues specifically stemming from: 1 point
About Public Self-Disclosure of Information on Social Media by users
NPTEL ()
Data leaks from social media websites due to hacking attempts
How does an Sharing passwords with your friends on Social Media
NPTEL None of the Above
online
course 3) Using an unidentified source of information to extract an individual’s sensitive 1 point
work? () information is called :
Prerequisite Re-identification
Assignment Personally Identifiable Information
()
Self-Disclosure
None of the above
Welcome to
PSOSM
class () 4) Considering each attribute in isolation, which of the following are examples of 1 point
Personally Identifiable Information (PII):
Introduction
Race
to Social
https://onlinecourses.nptel.ac.in/noc25_cs79/unit?unit=25&assessment=135 1/5
2/19/25, 10:24 PM Privacy and Security in Online Social Media - - Unit 7 - Privacy and Pictures on Online Social Media
Media API () Age
Aadhaar Number
Misinformati
on and College Student ID
Privacy () 5) What is the purpose of k-anonymity as discussed in the lecture? 1 point
Privacy and Protect PIIs of re-identified individuals
Pictures on Anonymise data without losing utility
Online
Make datasets larger for analysis
Social Media
() None of the above
Week-4.1 6) Latanya Sweeney’s experiments aimed to : 1 point
Privacy and
Pictures on Re-identify individuals from Match.com using their Facebook profiles
Online Social
Identification of individuals walking on a campus with data from Facebook
Media (unit?
unit=25&lesso Predict social security number from publicly available data
n=57) Study behaviors of individuals aged 14-18 on Instagram
Tutorial 4-
Python 7) What are the advantages of NumPy Arrays over Lists in Python? 1 point
essentials-Part
1 numpy (unit? NumPy arrays are faster and more compact than Python lists.
unit=25&lesso NumPy uses much less memory to store data and it provides a mechanism of specifying
n=58) the data types.
Tutorial 4- This allows the code to be optimized even further.
Python None of the above.
essentials-Part
2
8) Write Python code to convert the list [1,2,3,4] to a NumPy array. 1 point
pandas,matplo
tlib (unit?
unit=25&lesso import numpy as np
n=59)
arr = np.array([1,2,3,4])
Week 4
Feedback import numpy as np
Form : Privacy arr = numpy.array([1,2,3,4])
and Security in
Online Social import numpy as np
Media (unit? arr = np.array(1,2,3,4)
unit=25&lesso
All of the above
n=60)
Quiz: Week 4 9) What is the output of the following code: 1 point
: Assignment
4
import numpy as np
(assessment?
a = np.array([range(i,i+3) for i in [1,2,3]])
name=135)
print(a)
Policing and
Social Media
() [[1 2 3]
[2 3 4]
Lecture [3 4 5]]
materials/No
https://onlinecourses.nptel.ac.in/noc25_cs79/unit?unit=25&assessment=135 2/5
2/19/25, 10:24 PM Privacy and Security in Online Social Media - - Unit 7 - Privacy and Pictures on Online Social Media
tes ()
[[1 2 3]
Download [1 2 3]
videos () [1 2 3]]
Books () [[1 2 3]
[4 5 6]
Text [7 8 9]]
Transcript () None of the above
10) Which of the following codes can be used to make a NumPy array of 10 random 1 point
numbers?
import numpy as np
import random
l = []
for i in range(10):
l.append(random.random())
zeros_array = np.array(l)
print(zeros_array)
import numpy as np
random_array = np.random.rand(10)
import numpy as np
random_array = np.random.random(10)
None of the above
11) Which of the following NumPy functions can be used to generate an NxN diagonal 1 point
matrix ?
np.eye(5)
np.diagonal(np.eye(5))
np.diagonal(5)
None of the above
12) Which of the following Python code can be used to read a CSV file using Pandas 1 point
import pandas as pd
data = pd.read_excel('file.csv')
import pandas as pd
data = pandas.readcsv('file.csv')
import pandas as pd
data = pd.read_csv('file.csv')
https://onlinecourses.nptel.ac.in/noc25_cs79/unit?unit=25&assessment=135 3/5
2/19/25, 10:24 PM Privacy and Security in Online Social Media - - Unit 7 - Privacy and Pictures on Online Social Media
None of the above.
13) Consider the below structure of a dataframe. 1 point
Which of the following Python snippets can be used to plot a histogram of the amount column ?
Assume df is defined as the above dataframe with 100 rows.
df['amount'].plot.hist()
df[df.columns[4]].plot.hist()
import matplotlib.pyplot as plt
plt.hist(df['amount'])
plt.xlabel('Amount')
plt.ylabel('Frequency')
plt.title('Histogram of Amount')
plt.show()
None of the Above
14) What is the output of the following code ? 1 point
pd.Series(['A', 'B', 'C'], index=[1, 2, 3])
1 A
2 B
3 C
A 1
B 2
C 3
A B
C 1
2 3
None of the above
15) Select the correct option for plotting the below function using matplotlib 1 point
https://onlinecourses.nptel.ac.in/noc25_cs79/unit?unit=25&assessment=135 4/5
2/19/25, 10:24 PM Privacy and Security in Online Social Media - - Unit 7 - Privacy and Pictures on Online Social Media
plt.plot(np.cos(x))
plt.show()
plt.scatter(x, np.sin(x))
plt.show()
plt.scatter(np.cos(x), x)
plt.show()
None of the above
You may submit any number of times before the due date. The final submission will be
considered for grading.
Submit Answers
https://onlinecourses.nptel.ac.in/noc25_cs79/unit?unit=25&assessment=135 5/5