You are on page 1of 6

X

(https://swayam.gov.in) (https://swayam.gov.in/nc_details/NPTEL)

amanparjapati2708@gmail.com 

NPTEL (https://swayam.gov.in/explorer?ncCode=NPTEL) » Privacy and Security in Online Social Media

(course)

If already
registered, click
to check your
Week 9 : Assignment 9
payment status Assignment not submitted Due date: 2024-03-27, 23:59 IST.

1) Which of the following is/are location-based services? 1 point

Course Foursquare
outline Ola
Yelp
About Uber
NPTEL ()
2) Mayorships on Foursquare are given to: 1 point
How does an
NPTEL The first person to check in at a location
online
The person who leaves the most tips at a location
course
work? () The person who checks in most frequently at a location in a given period
People who write the most reviews on a location
Prerequisite
Assignment 3) Which of the following is publicly available data on Foursquare? 1 point
()
Mayorships
Welcome to Tips
PSOSM Dones
class ()
Checkins

Introduction
4) Look at the figure (Figure 1) given below for the Cumulative Distribution of the 1 point
to Social
Number of Mayorships, Tips and Dones per User:
Media API ()

Misinformati
on and
Privacy ()

Privacy and
Pictures on
Online Social
Media ()

Policing and
Social Media
()

E-crime and
social media
()

Social media
and ecrime ()
Majority of the users on Foursquare do not contribute to the Mayorships, Tips or Dones. This
Identity statement is :
resolution
and social True
media ()
False

Research 5) In the paper as discussed in the lecture, a high correlation between the number of 1 point
papers: mayorships and the number of tips across cities, with a Spearman’s correlation coefficient ρ
Location equal to 0.78 indicates that :
based
Privacy () There is a high monotone increasing relation between the number of mayorships and the
number of tips.
Week 9.1: There is a high monotone decreasing relation between the number of mayorships and the
Privacy in
number of tips.
Location
Based Social There is no relation regarding monotonicity between the number of mayorships and the
Networks Part number of tips.
1 (unit? None of the above.
unit=63&lesso
n=64)
6) Look at the figure (Figure 2) given below for the Cumulative Distribution of 1 point
Week 9.2: Displacements Between Consecutive Tips/Dones Posted per User:
Privacy in
Location
Based Social
Networks Part
2 (unit?
unit=63&lesso
n=65)

Tutorial 7:
Visualization -
Highcharts
(unit?
unit=63&lesso
n=66)

Week 9
Feedback
Form : Privacy About _____% of the users have spatial differences between their tips/dones at more than or
and Security in equal to 6,000km on average.
Online Social
Media (unit? 10
unit=63&lesso
20
n=67)
30
Quiz: Week 9
40
: Assignment
9 7) Look at the (Figure 3) for the Cumulative Distribution of Time Interval Between 1 point
(assessment? Consecutive Tips/Dones Posted per User :
name=156)

Research
Papers Part -
II ()

Lecture
materials/Not
es ()

Text
Transcripts ()

Download
videos ()
50% of the users post tips/dones in intervals of less than 500 hours on average. This statement
Books () is :

True
Problem
Solving False
Session -
Jan 2024 () 8) What is the difference between Pearson and Spearman rank correlation? 1 point
Hint: https://en.wikipedia.org/wiki/Pearson_correlation_coefficient
(https://en.wikipedia.org/wiki/Pearson_correlation_coefficient)

Pearson correlation assesses linear relationships, while Spearman correlation evaluates


monotonic relationships.
Spearman correlation is always between -1 and 1, while Pearson correlation can have
values outside this range.
Spearman correlation is calculated using a formula involving the sum of squared
differences, whereas Pearson correlation is based on the product of z-scores.
All of the above
9) Which plot is shown in the below figure (Figure 4) ? 1 point

Scatter Plot
Bar Chart
Bubble Plot
Histogram

10) Which of the following charts can be generated using highcharts ? 1 point

Bar Chart
Line Chart
Scatter Plot
Bubble Chart

Common Information for Q11-14:

To import highcharts into Python version >=3.10 use the following code:

// Fix for python version >= 3.10


import collections.abc
collections.Iterable = collections.abc.Iterable
collections.Mapping = collections.abc.Mapping
collections.MutableSet = collections.abc.MutableSet
collections.MutableMapping = collections.abc.MutableMapping
// then import highcharts
from highcharts import Highchart

11) Which of the following is the correct chart type in the options dictionary to print a 1 point
horizontal bar chart ?

bar
column
horizontal_bar
None of the above

12) Refer to the options dictionary for a line chart as shown in Figure 5 and complete 1 point
the code with the correct option for enabling the legend

"legend": {'enabled': True},


"legend": True,
"legend": {‘legend’: True},
None of the above

13) Ravi wanted to plot his number of followers on Instagram for 2023 in a line chart 1 point
using Highcharts. When he ran the code given below, it gave an unexpected output as shown
below in (Figure 6) :

Study the code below (Figure 7) and determine the line due to which he might be getting the
unexpected output (assume all necessary imports have already been made) :

Line 11
Line 12
Line 22
Line 26

14) Which of the following is the correct syntax for labeling the legend for some given 1 point
data in a scatter plot using Highcharts ?

chart.add_data_set(data1, 'scatter', name = 'label_name')


chart.add_data_set(data1, 'scatter', 'label_name')
chart.add_data_set(data1, 'scatter', label = 'label_name')
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

You might also like