Assignment 1: Unit 3 - Week 1
Assignment 1: Unit 3 - Week 1
(https://swayam.gov.in) (https://swayam.gov.in/nc_details/NPTEL)
reviewer4@nptel.iitm.ac.in
Unit 3 - Week 1
Course
outline Assignment 1
How does an The due date for submitting this assignment has passed. Due on 2020-02-12, 23:59 IST.
NPTEL online As per our records you have not submitted this assignment.
course work?
1) Recall the programming using scratch. Which of the following set of instructions will not end 1 point
Week 0 up getting the sprite (the cat) back at the initial
state (both in terms of movement and the angle)?
Week 1
Introduction to
Programming
(unit?
unit=1&lesson=2)
Why
Programming?
(unit?
unit=1&lesson=3)
Programming
for Everybody
(unit?
unit=1&lesson=4)
Any
Prerequisites?
(unit?
unit=1&lesson=5)
Where to start?
(unit?
unit=1&lesson=6)
Why do we have
so many
languages?
https://onlinecourses.nptel.ac.in/noc20_cs35/unit?unit=1&assessment=255 1/7
02/07/2020 The Joy of Computing using Python - - Unit 3 - Week 1
(unit?
unit=1&lesson=7)
How to go about
programming?
(unit?
unit=1&lesson=8)
Why to learn
programming?
(unit?
unit=1&lesson=9)
What is
programming? No, the answer is incorrect.
(unit? Score: 0
unit=1&lesson=10) Accepted Answers:
How to give
instructions?
(unit?
unit=1&lesson=11)
Introduction to
Scratch (unit?
unit=1&lesson=12)
2) What is the output of the following 1 point
Introduction to
Loops (unit?
unit=1&lesson=13)
More about
Loops (unit?
unit=1&lesson=14)
Solution to
Looping
Problem (unit?
unit=1&lesson=15) 3
Scratch : 33
Animation 1 30
(unit?
None of the above
unit=1&lesson=16)
No, the answer is incorrect.
Scratch : Score: 0
Animation 2 Accepted Answers:
(unit? 33
unit=1&lesson=17)
3) What is the output of the following 1 point
Scratch :
Animation 3
(unit?
unit=1&lesson=18)
More on Scratch
(unit?
unit=1&lesson=19)
Quiz :
Assignment 1
(assessment? 0
name=255)
10
Week 1 -10
Feedback (unit?
None of the above
unit=1&lesson=260)
N h i i
https://onlinecourses.nptel.ac.in/noc20_cs35/unit?unit=1&assessment=255 2/7
02/07/2020 The Joy of Computing using Python - - Unit 3 - Week 1
4) When we double click the following instructions, the sprite (cat) 1 point
week 4
Week 5
Week 6
Week 7
Week 8
Week 9
Week 10
keeps moving forward
moves forward in steps of 10
Week 11
moves backward 10 steps and then come back to its original position
Week 12 moves forward 10 steps and then come back to its original position
No, the answer is incorrect.
Text Transcripts Score: 0
Accepted Answers:
Download Videos moves forward 10 steps and then come back to its original position
5) Assuming our sprite to be an aeroplane now, the following instructions represent an aeroplane 1 point
Books
moving forward
falling
moving backward
making circular motions
No, the answer is incorrect.
Score: 0
Accepted Answers:
making circular motions
6) Consider 2 blocks of instructions shown below for an aeroplane sprite. Choose the correct 1 point
option from the following
https://onlinecourses.nptel.ac.in/noc20_cs35/unit?unit=1&assessment=255 3/7
02/07/2020 The Joy of Computing using Python - - Unit 3 - Week 1
7) Which of the following represents the code block for a jumping baseball which initially jumps to 1 point
a height of 200 and then in every subsequent
iteration reaches 3/4th of the height in the previous iteration till it comes to rest.
https://onlinecourses.nptel.ac.in/noc20_cs35/unit?unit=1&assessment=255 4/7
02/07/2020 The Joy of Computing using Python - - Unit 3 - Week 1
8) Imagine a ghost sprite. What does the following block of instructions represent 1 point
https://onlinecourses.nptel.ac.in/noc20_cs35/unit?unit=1&assessment=255 5/7
02/07/2020 The Joy of Computing using Python - - Unit 3 - Week 1
Ghost going up, flying forward for some steps and then coming down
multiplication of x and y
x to the power y
factorial of x
None of the above
No, the answer is incorrect.
Score: 0
Accepted Answers:
multiplication of x and y
https://onlinecourses.nptel.ac.in/noc20_cs35/unit?unit=1&assessment=255 6/7
02/07/2020 The Joy of Computing using Python - - Unit 3 - Week 1
https://onlinecourses.nptel.ac.in/noc20_cs35/unit?unit=1&assessment=255 7/7
02/07/2020 The Joy of Computing using Python - - Unit 4 - Week 2
(https://swayam.gov.in) (https://swayam.gov.in/nc_details/NPTEL)
reviewer4@nptel.iitm.ac.in
Unit 4 - Week 2
Course
outline Assignment 2
How does an The due date for submitting this assignment has passed. Due on 2020-02-12, 23:59 IST.
NPTEL online As per our records you have not submitted this assignment.
course work?
1) Which of the following options correctly prints the phrase “Hurry Up!!”? 1 point
Week 0
printf(“Hurry Up!!”)
Introduction to
Spyder IDE
(unit?
unit=20&lesson=23)
Printing
statements in Hi Arjuna Bhimaa
Python (unit?
unit=20&lesson=24) Hi Arjuna Hi Bhimaa
Hi Hi Arjuna Bhimaa
Understanding
Variables in Hi Arjuna Bhimaa Hi
Python (unit? No, the answer is incorrect.
unit=20&lesson=25) Score: 0
Accepted Answers:
Executing a
Hi Hi Arjuna Bhimaa
sequence of
https://onlinecourses.nptel.ac.in/noc20_cs35/unit?unit=20&assessment=261 1/4
02/07/2020 The Joy of Computing using Python - - Unit 4 - Week 2
instructions in 3) With what extension are the python files saved? 1 point
the Console
(unit? .p
unit=20&lesson=26)
.python
Writing your .pyn
First Program
.py
(unit?
unit=20&lesson=27) No, the answer is incorrect.
Score: 0
Taking inputs Accepted Answers:
from the user .py
(unit?
unit=20&lesson=28) 4) Which of the following statements correctly represents taking input from user in python? 1 point
Discount
a=get("Enter the value")
Calculation
(unit? a=inp("Enter the value")
unit=20&lesson=29) a=input("Enter the value")
Motivation to if None of the above
condition (unit?
No, the answer is incorrect.
unit=20&lesson=30) Score: 0
A reminder on
Accepted Answers:
how to deal with
a=input("Enter the value")
numbers (unit?
5) What is the output of the following code? 1 point
unit=20&lesson=31)
Understanding if
condition's
working (unit?
unit=20&lesson=32)
Realizing the
importance of
syntax and
indentation
(unit?
-20
unit=20&lesson=33) Syntax error
Introductions to 20
loops (unit? Displays nothing
unit=20&lesson=34)
No, the answer is incorrect.
Loops: Sum of Score: 0
numbers (unit? Accepted Answers:
unit=20&lesson=35) Syntax error
Loops:
displays numbers from 0 to 4
Multiplication
Tables (unit? displays numbers from 1 to 5
unit=20&lesson=37) displays numbers from 0 to 5
Introduction to none of the above
While Loop
No, the answer is incorrect.
(unit? Score: 0
unit=20&lesson=38) Accepted Answers:
Quiz :
displays numbers from 0 to 4
Assignment 2
https://onlinecourses.nptel.ac.in/noc20_cs35/unit?unit=20&assessment=261 2/4
02/07/2020 The Joy of Computing using Python - - Unit 4 - Week 2
Programming
Assignment-1:
Introduction to
Online Portal
(/noc20_cs35/progassignment? displays table of 2
name=268) syntax error
Programming displays table of 10
Assignment-2: none of the above
Addition
No, the answer is incorrect.
(/noc20_cs35/progassignment?
name=269) Score: 0
Accepted Answers:
Programming none of the above
Assignment-3:
Small 8) What does the following code do? 1 point
(/noc20_cs35/progassignment?
name=270)
Week 2
Feedback (unit?
unit=20&lesson=271)
Week 3
24
week 4 0
120
Week 5
none of the above
Week 9
Week 10
Week 11
Week 12 4321
54321
Text Transcripts
43210
543210
Download Videos
No, the answer is incorrect.
Score: 0
Books
Accepted Answers:
4321
https://onlinecourses.nptel.ac.in/noc20_cs35/unit?unit=20&assessment=261 3/4
02/07/2020 The Joy of Computing using Python - - Unit 4 - Week 2
abc
ab
bc
Error
No, the answer is incorrect.
Score: 0
Accepted Answers:
Error
https://onlinecourses.nptel.ac.in/noc20_cs35/unit?unit=20&assessment=261 4/4
02/07/2020 The Joy of Computing using Python - - Unit 5 - Week 3
(https://swayam.gov.in) (https://swayam.gov.in/nc_details/NPTEL)
reviewer4@nptel.iitm.ac.in
Unit 5 - Week 3
Course
outline Assignment 3
How does an The due date for submitting this assignment has passed. Due on 2020-02-19, 23:59 IST.
NPTEL online As per our records you have not submitted this assignment.
course work?
1) Which of the following displays a code which iterates from numbers 1 to 100, displays “fizz” if 1 point
Week 0 the number is divisible by a but not b, displays
“buzz” if the number is divisible by b but not a and displays “fizzbuzz” if the number is divisible by
Week 1 both a and b. a and b are
inputs taken from the user.
Week 2
Week 3
Lists Part 1 :
Introduction
(unit?
unit=39&lesson=40)
Lists Part 2 :
Manipulation
(unit?
unit=39&lesson=41)
Lists Part 3 :
Operations
(unit?
unit=39&lesson=42)
Lists Part 4 :
Slicing (unit?
unit=39&lesson=43)
Loops and
Conditionals :
Fizzbuzz 01
https://onlinecourses.nptel.ac.in/noc20_cs35/unit?unit=39&assessment=262 1/6
02/07/2020 The Joy of Computing using Python - - Unit 5 - Week 3
(unit?
unit=39&lesson=44)
Loops and
Conditionals :
Fizzbuzz 02
(unit?
unit=39&lesson=45)
Crowd
Computing -
Just estimate 01
(unit?
unit=39&lesson=46)
Crowd
Computing -
Just estimate 02
(unit?
unit=39&lesson=47)
Crowd
Computing -
Just estimate 03
(unit?
unit=39&lesson=48)
Crowd
Computing -
Just estimate 04
(unit?
unit=39&lesson=49)
Crowd
Computing -
Just estimate 05
(unit?
unit=39&lesson=50)
Crowd
Computing -
Just estimate 06
(unit?
unit=39&lesson=51)
Permutations -
Jumbled Words
01 (unit?
unit=39&lesson=52)
Permutations -
Jumbled Words
02 (unit?
unit=39&lesson=53)
Permutations -
Jumbled Words
03 (unit? No, the answer is incorrect.
unit=39&lesson=54) Score: 0
Accepted Answers:
Theory of
Evolution 01
(unit?
unit=39&lesson=55)
Theory of
Evolution 02
https://onlinecourses.nptel.ac.in/noc20_cs35/unit?unit=39&assessment=262 2/6
02/07/2020 The Joy of Computing using Python - - Unit 5 - Week 3
(unit?
unit=39&lesson=56)
Theory of
Evolution 03
(unit?
unit=39&lesson=57)
Theory of
Evolution 04
(unit?
unit=39&lesson=58)
Quiz :
Assignment 3
(assessment?
name=262)
Programming
Assignment-1: 2) The below code displays 1 point
Loops ,List and
Sum
(/noc20_cs35/progassignment?
name=273)
Programming
Assignment-2:
Max and Min all numbers from 1 to 100 which are divisible by 10
(/noc20_cs35/progassignment?
all numbers from 1 to 99 which are divisible by 10
name=274)
all numbers from 1 to 110 which are divisible by 10
Programming
none of the above
Assignment-3:
Multiple of 5 No, the answer is incorrect.
Score: 0
(/noc20_cs35/progassignment?
name=275) Accepted Answers:
none of the above
Week 3
Feedback (unit? 3) What is the output of the following code? 1 point
unit=39&lesson=278)
week 4
Week 5
Week 6
hi hi hi hi hi hi hi hi
Week 7 hi we are the elements in a list
hi
Week 8
error
Week 12
Text Transcripts
Download Videos
https://onlinecourses.nptel.ac.in/noc20_cs35/unit?unit=39&assessment=262 3/6
02/07/2020 The Joy of Computing using Python - - Unit 5 - Week 3
6) Which of the following statements correctly represents a jumbled form of a given word. For 1 point
example, if the word=“lion”, one of the plausible
outputs can be “oinl”.
"".join(random.sample(word,len(word)))
"a".join(random.sample(word,len(word)))
"".join(random.sample(word))
join(random.sample(word))
No, the answer is incorrect.
Score: 0
Accepted Answers:
"".join(random.sample(word,len(word)))
7) Given a variable word which is a string where no letter is repeated, what does the following 1 point
code snippet do?
https://onlinecourses.nptel.ac.in/noc20_cs35/unit?unit=39&assessment=262 4/6
02/07/2020 The Joy of Computing using Python - - Unit 5 - Week 3
8) Assuming, there is no file named "file.txt" on my computer, what does the following code do? 1 point
9) Assuming, there is no file named "file.txt" on my computer, what does the following code do? 1 point
https://onlinecourses.nptel.ac.in/noc20_cs35/unit?unit=39&assessment=262 5/6
02/07/2020 The Joy of Computing using Python - - Unit 5 - Week 3
Shows error
Displays: Hey I am writing the second line
Displays: Hey! I am writing.Hey I am writing the second line.
Displays: Hey! I am writing.
No, the answer is incorrect.
Score: 0
Accepted Answers:
Displays: Hey I am writing the second line
Displays 1
Displays 2
Displays 0
Shows error
No, the answer is incorrect.
Score: 0
Accepted Answers:
Displays 2
https://onlinecourses.nptel.ac.in/noc20_cs35/unit?unit=39&assessment=262 6/6
02/07/2020 The Joy of Computing using Python - - Unit 6 - week 4
(https://swayam.gov.in) (https://swayam.gov.in/nc_details/NPTEL)
reviewer4@nptel.iitm.ac.in
Unit 6 - week 4
Course
outline Assignment 4
How does an The due date for submitting this assignment has passed. Due on 2020-02-26, 23:59 IST.
NPTEL online As per our records you have not submitted this assignment.
course work?
1) What does the check_magic() function in the following code do 1 point
Week 0
Week 1
Week 2
Week 3
week 4
Practice is the
key (unit?
unit=59&lesson=60)
Magic Square:
Hit and Trial 01
(unit?
unit=59&lesson=61)
Magic Square:
Hit and Trial 02
(unit?
unit=59&lesson=62)
Magic Square:
Hit and Trial 03
(unit?
unit=59&lesson=63) displays all 2 × 2 matrices where elements are from 1 to 9.
displays all 2 × 2 matrices where elements are from 1 to 9 but no element is repeated
https://onlinecourses.nptel.ac.in/noc20_cs35/unit?unit=59&assessment=263 1/7
02/07/2020 The Joy of Computing using Python - - Unit 6 - week 4
Let's program
and play (unit?
unit=59&lesson=66)
Dobble Game -
Spot the
similarity 01
(unit?
unit=59&lesson=67)
Dobble Game -
Spot the
similarity 02
(unit? displays common fruits in both the lists l1 and l2
unit=59&lesson=68) displays fruits which are in l1 but not in l2
Birthday
Paradox - Find
your twin 01
(unit?
unit=59&lesson=72)
Birthday
Paradox - Find
your twin 02
(unit?
unit=59&lesson=73)
Birthday
Paradox - Find
your twin 03
(unit?
unit=59&lesson=74)
Birthday
Paradox - Find
your twin 04
(unit?
unit=59&lesson=75)
https://onlinecourses.nptel.ac.in/noc20_cs35/unit?unit=59&assessment=263 2/7
02/07/2020 The Joy of Computing using Python - - Unit 6 - week 4
Birthday
Paradox - Find
your twin 05
(unit?
unit=59&lesson=76)
What's your
favourite movie?
(unit?
unit=59&lesson=77)
Guess the
Movie Name 01
(unit?
unit=59&lesson=78)
Guess the
Movie Name 02
(unit?
unit=59&lesson=79)
Guess the
Movie Name 03
(unit?
unit=59&lesson=80)
Guess the
Movie Name 04
(unit?
unit=59&lesson=81)
Guess the
Movie Name 05
(unit?
unit=59&lesson=82)
Guess the
Movie Name 06
(unit?
unit=59&lesson=83) No, the answer is incorrect.
Score: 0
Quiz : Accepted Answers:
Assignment 4
(assessment?
name=263)
Programming
Assignment-1:
Digits
(/noc20_cs35/progassignment?
name=280)
Programming
Assignment-2:
Factorial
(/noc20_cs35/progassignment?
name=281) 4) What does the following function do 1 point
Programming
Assignment-3:
Matrix
(/noc20_cs35/progassignment?
name=282)
Week 4
Feedback (unit?
unit=59&lesson=283)
https://onlinecourses.nptel.ac.in/noc20_cs35/unit?unit=59&assessment=263 3/7
02/07/2020 The Joy of Computing using Python - - Unit 6 - week 4
Week 5
Week 6
Week 7
Week 8
returns true for century year and false for non century year
Week 9
returns true for leap year and false for non leap year
Week 10 returns false for century year and true for non century year
none of the above
Week 11 No, the answer is incorrect.
Score: 0
Week 12 Accepted Answers:
returns true for leap year and false for non leap year
Text Transcripts
5) Which of the following code correctly represents how one can display the number of dashes 1 point
equal to that of the letters in the movie name?
Download Videos
Books movies =[" t i t a n i c " , " chinatown " , " a v e n g e r s " , " 3 i d i o t s " , " c o n j u r i n g " , " j u n g l
ebook","matrix"]
ch =random . c h o i c e ( m o v i e s )
f o r i in r a n g e ( l e n ( ch ) ) :
print ( ’_ ’) ,
movies =[" t i t a n i c " , " chinatown " , " a v e n g e r s " , " 3 i d i o t s " , " c o n j u r i n g " , " j u n g l
ebook","matrix"]
ch =random . c h o i c e ( m o v i e s )
for i in range (100):
print ( ’_ ’) ,
movies =[" t i t a n i c " , " chinatown " , " a v e n g e r s " , " 3 i d i o t s " , " c o n j u r i n g " , " j u n g l
ebook","matrix"]
ch =random . c h o i c e ( m o v i e s )
for ch in r a n g e ( l e n ( ch ) ) :
print ( ’_ ’) ,
none of these
No, the answer is incorrect.
Score: 0
Accepted Answers:
movies =[" t i t a n i c " , " chinatown " , " a v e n g e r s " , " 3 i d i o t s " , " c o n j u r i n g " , " j u n g l e b o
ok","matrix"]
ch =random . c h o i c e ( m o v i e s )
f o r i in r a n g e ( l e n ( ch ) ) :
print ( ’_ ’) ,
6) Given a list of movies, which of the following represents a code which randonly chooses a 1 point
movie amongst all?
movies =[" t i t a n i c " , " chinatown " , " a v e n g e r s " , " 3 i d i o t s " , " c o n j u r i n g " , " j u n g l
ebook","matrix"]
https://onlinecourses.nptel.ac.in/noc20_cs35/unit?unit=59&assessment=263 4/7
02/07/2020 The Joy of Computing using Python - - Unit 6 - week 4
ch = m o v i e s [ random . r a n d i n t ( 0 , l e n ( m o v i e s ) ) ]
movies =[" t i t a n i c " , " chinatown " , " a v e n g e r s " , " 3 i d i o t s " , " c o n j u r i n g " , " j u n g l
ebook","matrix"]
ch = m o v i e s [ random . u n i f o r m ( 0 , l e n ( m o v i e s ) ) ]
movies =[" t i t a n i c " , " chinatown " , " a v e n g e r s " , " 3 i d i o t s " , " c o n j u r i n g " , " j u n g l
ebook","matrix"]
ch = m o v i e s [ random . c h o i c e ( 0 , l e n ( m o v i e s ) ) ]
none of these
No, the answer is incorrect.
Score: 0
Accepted Answers:
none of these
8) Which numbers from 1 to 100 does the following code print? 1 point
prime numbers
perfect squares
numbers which are factorial of some other number
perfect cubes
No, the answer is incorrect.
Score: 0
A dA
https://onlinecourses.nptel.ac.in/noc20_cs35/unit?unit=59&assessment=263 5/7
02/07/2020 The Joy of Computing using Python - - Unit 6 - week 4
Accepted Answers:
prime numbers
9) Which numbers from 1 to 100 does the following code print? 1 point
prime numbers
perfect squares
numbers which are factorial of some other number
perfect cubes
No, the answer is incorrect.
Score: 0
Accepted Answers:
perfect squares
10)Assume a drunkard whose movement is defined on the number line, i.e. he can either move 1 point
forward or backward. Assume he is
standing at a position p. He takes 2 steps forward followed by 4 steps backward. He falls into the
pit as soon as he steps
on the position zero. Which of the following codes correctly represents his walk? A.
p= i n t ( i n p u t ( ) )
while (p >0):
p=p+2
p r i n t ( " Location =" , p )
p=p−4
p r i n t ( " Location =" , p )
p r i n t (" Fell in p i t at location " , p )
p= i n t ( i n p u t ( ) )
while (p >0):
p=p−2
p r i n t ( " Location =" , p )
p=p+4
p r i n t ( " Location =" , p )
p r i n t (" Fell in p i t at location " , p )
p= i n t ( i n p u t ( ) )
while (p >0):
for i in range ( 2 ) :
p=p+1
p r i n t ( " Loc = " , p )
https://onlinecourses.nptel.ac.in/noc20_cs35/unit?unit=59&assessment=263 6/7
02/07/2020 The Joy of Computing using Python - - Unit 6 - week 4
i f ( p ==0):
break
for i in range ( 4 ) :
p=p−1
p r i n t ( " Loc = " , p )
i f ( p ==0):
break
p r i n t (" Fell in p i t at location " , p )
none of these
No, the answer is incorrect.
Score: 0
Accepted Answers:
p= i n t ( i n p u t ( ) )
while (p >0):
for i in range ( 2 ) :
p=p+1
p r i n t ( " Loc = " , p )
i f ( p ==0):
break
for i in range ( 4 ) :
p=p−1
p r i n t ( " Loc = " , p )
i f ( p ==0):
break
p r i n t (" Fell in p i t at location " , p )
https://onlinecourses.nptel.ac.in/noc20_cs35/unit?unit=59&assessment=263 7/7
02/07/2020 The Joy of Computing using Python - - Unit 7 - Week 5
(https://swayam.gov.in) (https://swayam.gov.in/nc_details/NPTEL)
reviewer4@nptel.iitm.ac.in
Unit 7 - Week 5
Course
outline Assignment 5
How does an The due date for submitting this assignment has passed. Due on 2020-03-04, 23:59 IST.
NPTEL online As per our records you have not submitted this assignment.
course work?
1) What does the following code do? 1 point
Week 0
Week 1
Week 2
Week 3
week 4
Week 5
Introduction to
Dictionaries
(unit?
unit=84&lesson=85)
Speech to Text :
No need to write
01 (unit?
unit=84&lesson=86)
creates a list where two random elements are ‘c’ and the other element is ‘g’
creates a list where two random elements are ‘g’ and the other element is ‘c’
Speech to Text :
No need to write creates a list where one random elements is ‘c’ and the other element is ‘g’
02 (unit? none of the above
unit=84&lesson=87)
No, the answer is incorrect.
Speech to Text : Score: 0
No need to write Accepted Answers:
https://onlinecourses.nptel.ac.in/noc20_cs35/unit?unit=84&assessment=264 1/6
02/07/2020 The Joy of Computing using Python - - Unit 7 - Week 5
03 (unit? creates a list where two random elements are ‘c’ and the other element is ‘g’
unit=84&lesson=88)
2) Which of the random experiments from the options does the code represent? 1 point
Monte Hall : 3
doors and a
twist 01 (unit?
unit=84&lesson=89)
Monte Hall : 3
doors and a
twist 02 (unit?
unit=84&lesson=90)
Rock, Paper
and Scissor :
Cheating not
Tossing a coin once
allowed !! 01
(unit? Tossing a coin infinite times
unit=84&lesson=91) Tossing a coin repeatedly till a head in encountered
Rock, Paper none of the above
and Scissor :
No, the answer is incorrect.
Cheating not
Score: 0
allowed !! 02
Accepted Answers:
(unit?
none of the above
unit=84&lesson=92)
3) Which of the random experiments from the options does the code represent? 1 point
Rock, Paper
and Scissor :
Cheating not
allowed !! 03
(unit?
unit=84&lesson=93)
Rock, Paper
and Scissor :
Cheating not
allowed !! 04
(unit?
unit=84&lesson=94)
Sorting and
Searching : 20 Prints a success when both people select the same object
questions game Prints a success when both people select “rock”
01 (unit?
Prints a success when both people select different objects
unit=84&lesson=95)
None of the above
Sorting and
Searching : 20 No, the answer is incorrect.
Score: 0
questions game
02 (unit?
Accepted Answers:
unit=84&lesson=96)
Prints a success when both people select the same object
Sorting and 4) For the code below, which of the statement in the options is false? 1 point
Searching : 20
questions game
03 (unit?
unit=84&lesson=97)
Sorting and
Searching : 20
questions game
04 (unit?
unit=84&lesson=98)
Sorting and
Searching : 20
https://onlinecourses.nptel.ac.in/noc20_cs35/unit?unit=84&assessment=264 2/6
02/07/2020 The Joy of Computing using Python - - Unit 7 - Week 5
Sorting and
Searching : 20
questions game
08 (unit?
unit=84&lesson=102)
Quiz :
Assignment 5
(assessment?
name=264) Placing 100 bins and then throwing 10 balls randomly in these bins
Programming Placing 10 bins and then throwing 100 balls randomly in these bins
Assignment-1: Placing 10 bins and 10 balls and then throwing 10 balls randomly in these bins
Cab and walk
None of the above
(/noc20_cs35/progassignment?
name=291) No, the answer is incorrect.
Score: 0
Programming Accepted Answers:
Assignment-2: Placing 10 bins and then throwing 100 balls randomly in these bins
End-Sort
(/noc20_cs35/progassignment?
6) Assuming that “bins” represents a dictionary where key is the number of a bin and value 1 point
name=292) represents the number of balls present in the
Programming
corresponding bin, what is the output of the following code?
Assignment-3:
Semi Primes
(/noc20_cs35/progassignment?
name=293)
Week 5
Feedback (unit?
unit=84&lesson=294)
Week 6
https://onlinecourses.nptel.ac.in/noc20_cs35/unit?unit=84&assessment=264 3/6
02/07/2020 The Joy of Computing using Python - - Unit 7 - Week 5
Text Transcripts
Download Videos
Books
8) 1 point
0 to 99999
0 to 100000
0 to 99998
1 to 99998
No, the answer is incorrect.
Score: 0
Accepted Answers:
0 to 99998
9) Which of the random experiments from the options does the code represent? 1 point
https://onlinecourses.nptel.ac.in/noc20_cs35/unit?unit=84&assessment=264 4/6
02/07/2020 The Joy of Computing using Python - - Unit 7 - Week 5
10)Assuming that “bins” represents a dictionary where key is the number of a bin and value 1 point
represents the number of balls present in the
corresponding bin, what plot does the following code generate?
X axis: Number of balls, Y axis: Number of bins having as many balls as specified by X axis
X axis: Bin number, Y axis: Number of balls in the bin whose number is specified by X axis
X axis: Ball number, Y axis: The bin number which contained the ball whose number is specified
by the X axis
None of the above
No, the answer is incorrect.
Score: 0
Accepted Answers:
None of the above
https://onlinecourses.nptel.ac.in/noc20_cs35/unit?unit=84&assessment=264 5/6
02/07/2020 The Joy of Computing using Python - - Unit 7 - Week 5
https://onlinecourses.nptel.ac.in/noc20_cs35/unit?unit=84&assessment=264 6/6
02/07/2020 The Joy of Computing using Python - - Unit 8 - Week 6
(https://swayam.gov.in) (https://swayam.gov.in/nc_details/NPTEL)
reviewer4@nptel.iitm.ac.in
Unit 8 - Week 6
Course
outline Assignment 6
How does an The due date for submitting this assignment has passed. Due on 2020-03-11, 23:59 IST.
NPTEL online As per our records you have not submitted this assignment.
course work?
1) Give that the statement chr(ord(alpha) + i) returns the character(alphabet or a special 1 point
Week 0 character) at the location i ahead than the
alphabet alpha, eg, chr(ord(’a’)+1) returns ‘b’; what is the output of the following code?
Week 1
Week 2
Week 3
week 4
Week 5
Week 6
ABCDEFGH
Substitution
Cipher -The BCDEFGHI
science of EFGHIJKL
secrecy (unit?
none of the above
unit=103&lesson=104)
No, the answer is incorrect.
Substitution Score: 0
Cipher -The Accepted Answers:
science of BCDEFGHI
secrecy 01
(unit? 2) What does the following code do? 1 point
unit=103&lesson=105)
Substitution
Cipher -The
https://onlinecourses.nptel.ac.in/noc20_cs35/unit?unit=103&assessment=276 1/6
02/07/2020 The Joy of Computing using Python - - Unit 8 - Week 6
science of
secrecy 02
(unit?
unit=103&lesson=106)
Substitution
Cipher -The
science of
secrecy 03
(unit?
unit=103&lesson=107)
Keeps asking the user to guess a number until the user guesses 10
Tic Tac Toe -
Down the The computer generates a random number r and keeps it. The user is repeatedly prompted to
memory Lane enter a number. If the user enters r, the code says success and ends, else the prompting is
(unit? continued.
unit=103&lesson=108)
Enters an infinite loop
Tic Tac Toe - The computer generates a random number r and keeps it. The user is repeatedly prompted to
Down the enter a number. If the user enters r, the code says success and ends, else the computer generates a
memory Lane
new random number r and thereafter the prompting is continued.
01 (unit?
unit=103&lesson=109) No, the answer is incorrect.
Score: 0
Tic Tac Toe - Accepted Answers:
Down the Enters an infinite loop
memory Lane
02 (unit? 3) What does the following code do? 1 point
unit=103&lesson=110)
https://onlinecourses.nptel.ac.in/noc20_cs35/unit?unit=103&assessment=276 2/6
02/07/2020 The Joy of Computing using Python - - Unit 8 - Week 6
Recursion 05
(unit?
unit=103&lesson=119)
Recursion 06
(unit?
unit=103&lesson=120)
Quiz :
Assignment 6
(assessment? −1 × n
name=276)
−1 + n
Programming (−1)n
Assignment-1:
n(−1)
Computing
Paradox No, the answer is incorrect.
Score: 0
(/noc20_cs35/progassignment?
name=295) Accepted Answers:
(−1)n
Programming
Assignment-2: 5) The following code 1 point
Dictionary
(/noc20_cs35/progassignment?
name=296)
Programming
Assignment-3:
Functions
(/noc20_cs35/progassignment?
name=297)
Week 6
Feedback (unit?
unit=103&lesson=298)
Week 7
Week 8
Week 9
https://onlinecourses.nptel.ac.in/noc20_cs35/unit?unit=103&assessment=276 3/6
02/07/2020 The Joy of Computing using Python - - Unit 8 - Week 6
6
5
7
4
No, the answer is incorrect.
Score: 0
Accepted Answers:
5
https://onlinecourses.nptel.ac.in/noc20_cs35/unit?unit=103&assessment=276 4/6
02/07/2020 The Joy of Computing using Python - - Unit 8 - Week 6
https://onlinecourses.nptel.ac.in/noc20_cs35/unit?unit=103&assessment=276 5/6
02/07/2020 The Joy of Computing using Python - - Unit 8 - Week 6
https://onlinecourses.nptel.ac.in/noc20_cs35/unit?unit=103&assessment=276 6/6
02/07/2020 The Joy of Computing using Python - - Unit 9 - Week 7
(https://swayam.gov.in) (https://swayam.gov.in/nc_details/NPTEL)
reviewer4@nptel.iitm.ac.in
Unit 9 - Week 7
Course
outline Assignment 7
How does an The due date for submitting this assignment has passed. Due on 2020-03-18, 23:59 IST.
NPTEL online As per our records you have not submitted this assignment.
course work?
1) Predict the output 1 point
Week 0
Week 1
Week 2
Week 3
week 4
Week 5
Week 6
741147258852369963
Week 7
147258369
Snakes and 147852369
Ladders - Not
147741258852369963
on the Board
(unit? No, the answer is incorrect.
unit=121&lesson=122) Score: 0
Accepted Answers:
Snakes and 147741258852369963
Ladders - Not
on the Board - 2) Predict the output of the calling function func1() for a given square matrix mx of dimension 70 1 point
Part 01 (unit? × 70.
unit=121&lesson=123)
https://onlinecourses.nptel.ac.in/noc20_cs35/unit?unit=121&assessment=277 1/12
02/07/2020 The Joy of Computing using Python - - Unit 9 - Week 7
Snakes and
Ladders - Not
on the Board -
Part 02 (unit?
unit=121&lesson=124)
Snakes and
Ladders - Not
on the Board -
Part 03 (unit?
unit=121&lesson=125)
Snakes and
Ladders - Not
on the Board -
Part 04 (unit?
unit=121&lesson=126)
Snakes and
Ladders - Not
on the Board -
Part 05 (unit?
unit=121&lesson=127)
Snakes and
Ladders - Not
on the Board -
Part 06 (unit?
unit=121&lesson=128)
Spiral
Traversing -
Let's Animate
(unit?
unit=121&lesson=129)
Spiral
Traversing -
Let's Animate -
Part 01 (unit?
unit=121&lesson=130)
Spiral
Traversing -
Let's Animate -
Part 02 (unit?
unit=121&lesson=131)
Spiral
Traversing -
Let's Animate -
Part 03 (unit?
unit=121&lesson=132)
Spiral
Traversing -
Let's Animate -
Part 04 (unit?
unit=121&lesson=133)
Spiral
Traversing -
No, the answer is incorrect.
Let's Animate -
Score: 0
Part 05 (unit?
Accepted Answers:
unit=121&lesson=134)
https://onlinecourses.nptel.ac.in/noc20_cs35/unit?unit=121&assessment=277 2/12
02/07/2020 The Joy of Computing using Python - - Unit 9 - Week 7
Spiral
Traversing -
Let's Animate -
Part 06 (unit?
unit=121&lesson=135)
Spiral
Traversing -
Let's Animate -
Part 07 (unit? 3) Predict the output of the calling function func() for a given square matrix mx of dimension 70 0 points
unit=121&lesson=136) × 70.
Quiz :
Assignment 7
(assessment?
name=277)
Programming
Assignment-1:
Lower
Triangular
Matrix
(/noc20_cs35/progassignment?
name=299)
Programming
Assignment-2:
Symmetric
(/noc20_cs35/progassignment?
name=300)
Programming
Assignment-3:
Binary Matrix
(/noc20_cs35/progassignment?
name=301)
Week 7
Feedback (unit?
unit=121&lesson=302)
https://onlinecourses.nptel.ac.in/noc20_cs35/unit?unit=121&assessment=277 3/12
02/07/2020 The Joy of Computing using Python - - Unit 9 - Week 7
Accepted Answers:
Week 9
Week 10
Week 11
Week 12
Text Transcripts 4) Which of the following libraries is required to work with Google maps in Python? 1 point
gplot
Download Videos
googleplot
Books gmplot
none of these
No, the answer is incorrect.
Score: 0
Accepted Answers:
gmplot
5) Which of the following codes represent a correct version of a board game where the user has 1 point
to move from block 1 to block 100?
The game initialises only when the user gets a 1 or 6 on the dice and ends once he reaches 100 or
gets a number which makes
him reach beyond 100 (i.e. the player wins if he is at 99 and gets a 4).
https://onlinecourses.nptel.ac.in/noc20_cs35/unit?unit=121&assessment=277 4/12
02/07/2020 The Joy of Computing using Python - - Unit 9 - Week 7
https://onlinecourses.nptel.ac.in/noc20_cs35/unit?unit=121&assessment=277 5/12
02/07/2020 The Joy of Computing using Python - - Unit 9 - Week 7
6) Imagine a single player snakes and ladders game. The code below represents 1 point
https://onlinecourses.nptel.ac.in/noc20_cs35/unit?unit=121&assessment=277 6/12
02/07/2020 The Joy of Computing using Python - - Unit 9 - Week 7
A snakes and ladders game with one snake whose position remains constant while the player is
playing. The position also remains the same during any subsequent plays (i.e. the game board does
not change while you sleep and play again the next day).
A snakes and ladders game with one snake whose position remains constant while the player is
playing.However, the position can change during any subsequent plays (i.e. the game board might
change while you sleep and play again the next day).
A snakes and ladders game with one snake where the snake can change its position during the
game and also during any subsequent plays (a board game where the snakes keep moving). Further,
the snake can bite you any number of times.
A snakes and ladders game with one snake where the snake can change its position during the
game and also during any subsequent plays (a board game where the snake keeps moving). Further,
the snake can bite you only ones when you play.
No, the answer is incorrect.
Score: 0
Accepted Answers:
A snakes and ladders game with one snake where the snake can change its position during the game and
also during any subsequent plays (a board game where the snakes keep moving). Further, the snake can
bite you any number of times.
7) Imagine a single player snakes and ladders game. The code below represents 1 point
https://onlinecourses.nptel.ac.in/noc20_cs35/unit?unit=121&assessment=277 7/12
02/07/2020 The Joy of Computing using Python - - Unit 9 - Week 7
A snakes and ladders game with one snake whose position remains constant while the player is
playing. The position also remains the same during any subsequent plays (i.e. the game board does
not change while you sleep and play again the next day).
A snakes and ladders game with one snake whose position remains constant while the player is
playing. However, the position can change during any subsequent plays (i.e. the game board might
change while you sleep and play again the next day).
A snakes and ladders game with one snake where the snake can change its position during the
game and also during any subsequent plays (a board game where the snakes keep moving). Further,
the snake can bite you any number of times.
A snakes and ladders game with one snake where the snake can change its position during the
game and also during any subsequent plays (a board game where the snake keeps moving). Further,
the snake can bite you only ones when you play.
No, the answer is incorrect.
Score: 0
Accepted Answers:
A snakes and ladders game with one snake where the snake can change its position during the game and
also during any subsequent plays (a board game where the snake keeps moving). Further, the snake can
bite you only ones when you play.
8) Assuming that the play1() function implements the recursive play of snakes and ladders with 1 point
the prespecified position of the snake and the
ladder as shown in the code below, which of the ambiguities in the options can result in the code?
https://onlinecourses.nptel.ac.in/noc20_cs35/unit?unit=121&assessment=277 8/12
02/07/2020 The Joy of Computing using Python - - Unit 9 - Week 7
snake_begin=snake_end
ladder_begin=ladder_end
ladder_begin=snake_begin
ladder_end=snake_end
No, the answer is incorrect.
Score: 0
Accepted Answers:
ladder_begin=snake_begin
https://onlinecourses.nptel.ac.in/noc20_cs35/unit?unit=121&assessment=277 9/12
02/07/2020 The Joy of Computing using Python - - Unit 9 - Week 7
https://onlinecourses.nptel.ac.in/noc20_cs35/unit?unit=121&assessment=277 10/12
02/07/2020 The Joy of Computing using Python - - Unit 9 - Week 7
https://onlinecourses.nptel.ac.in/noc20_cs35/unit?unit=121&assessment=277 11/12
02/07/2020 The Joy of Computing using Python - - Unit 9 - Week 7
https://onlinecourses.nptel.ac.in/noc20_cs35/unit?unit=121&assessment=277 12/12
02/07/2020 The Joy of Computing using Python - - Unit 10 - Week 8
(https://swayam.gov.in) (https://swayam.gov.in/nc_details/NPTEL)
reviewer4@nptel.iitm.ac.in
Unit 10 - Week 8
Course
outline Assignment 8
How does an The due date for submitting this assignment has passed. Due on 2020-03-25, 23:59 IST.
NPTEL online As per our records you have not submitted this assignment.
course work?
Note that Q8 carries 2 marks.
Week 0
1) Which of the following options correctly represent the full form of acronyms NLTK and VADER 1 point
Week 1 NLTK: Normal Language Toolkit, VADER: Valence Aware Dictionary and Emotional Reasoner
NLTK: Natural Language Toolkit, VADER: Valence Aware Dictionary and Sentiment Reasoner
Week 2
NLTK: Normal Language Toolkit, VADER: Valence Aware Dictionary and Sentiment Reasoner
Week 3 Natural Language Toolkit, VADER: Valence Aware Dictionary and Emotional Reasoner
No, the answer is incorrect.
week 4 Score: 0
Accepted Answers:
NLTK: Natural Language Toolkit, VADER: Valence Aware Dictionary and Sentiment Reasoner
Week 5
2) Predict the output 1 point
Week 6
Week 7
Week 8
[’ ’, ’!’, ’A’, ’H’, ’I’, ’a’, ’b’, ’h’, ’i’, ’m’, ’t’]
Tuples- Python [’!’, ’A’, ’H’, ’I’, ’a’, ’b’, ’h’, ’i’, ’m’, ’t’]
Data Structure !AHIabhimt
(unit?
unit=142&lesson=143) !AabHhIimt
No, the answer is incorrect.
Lottery
Score: 0
Simulation -
Accepted Answers:
Profit or Loss
[’ ’, ’!’, ’A’, ’H’, ’I’, ’a’, ’b’, ’h’, ’i’, ’m’, ’t’]
(unit?
unit=142&lesson=144)
https://onlinecourses.nptel.ac.in/noc20_cs35/unit?unit=142&assessment=284 1/7
02/07/2020 The Joy of Computing using Python - - Unit 10 - Week 8
3) Which of the scenarios in the options does the following code represent? 1 point
Lottery
Simulation -
Profit or Loss -
Part 01 (unit?
unit=142&lesson=145)
Lottery
Simulation -
Profit or Loss -
Part 02 (unit?
unit=142&lesson=146)
Lottery
Simulation -
Profit or Loss -
Part 03 (unit?
unit=142&lesson=147)
Lottery
Simulation -
Profit or Loss -
A person going to the bar for an year. Daily he guesses a number from 1 to 10. If the guessed
Part 04 (unit?
unit=142&lesson=148) number if equal to the number randomly generated by bar authority, he gains one gold coin.
A person going to the bar for a month. Daily he guesses a number from 1 to 10. If the guessed
Lottery
number if equal to the number randomly generated by bar authority, he gains one gold coin.
Simulation -
Profit or Loss - A person going to the bar for an year. Daily he guesses a number from 1 to 10. If the guessed
Part 05 (unit? number if equal to the number randomly generated by bar authority, he loses one gold coin.
unit=142&lesson=149)
A person going to the bar for a month. Daily he guesses a number from 1 to 10. If the guessed
Lottery number if equal to the number randomly generated by bar authority, he loses one gold coin.
Simulation -
No, the answer is incorrect.
Profit or Loss - Score: 0
Part 06 (unit? Accepted Answers:
unit=142&lesson=150) A person going to the bar for an year. Daily he guesses a number from 1 to 10. If the guessed number if
Image equal to the number randomly generated by bar authority, he gains one gold coin.
Processing -
4) Which of the scenarios in the options does the following code represent? 1 point
Enhance your
images (unit?
unit=142&lesson=151)
Image
Processing -
Enhance your
images - Part 01
(unit?
unit=142&lesson=152)
Image
Processing -
Enhance your
images - Part 02
(unit?
unit=142&lesson=153)
Image
Processing -
Enhance your
images - Part 03
(unit?
unit=142&lesson=154) Simulates a game play 100 times. In each play, a coin is tossed 100 times and player is given
Anagrams (unit? money equal to the number of heads he get. The code displays the average money earned by the
unit=142&lesson=155) player amongst all 100 plays.
https://onlinecourses.nptel.ac.in/noc20_cs35/unit?unit=142&assessment=284 2/7
02/07/2020 The Joy of Computing using Python - - Unit 10 - Week 8
Anagrams - Part Simulates a game play 100 times. In each play, a coin is tossed 100 times and player is given
01 (unit? money equal to the number of heads he get. The code displays the total money earned by the player
unit=142&lesson=156) amongst all 100 plays.
Anagrams - Part Simulates a game play 100 times. In each play, a coin is tossed 100 times and player is given
02 (unit? money equal to the number of heads he get. The code displays the money earned by the player in
unit=142&lesson=157) first play.
Anagrams - Part none of the above
03 (unit?
No, the answer is incorrect.
unit=142&lesson=158) Score: 0
Facebook Accepted Answers:
Sentiment Simulates a game play 100 times. In each play, a coin is tossed 100 times and player is given money equa
Analysis (unit? to the number of heads he get. The code displays the average money earned by the player amongst all 100
unit=142&lesson=159) plays.
Facebook 5) Which of the plots in the options is most likely to be generated from the following code? 1 point
Sentiment
Analysis - Part
01 (unit?
unit=142&lesson=160)
Facebook
Sentiment
Analysis - Part
02 (unit?
unit=142&lesson=161)
Facebook
Sentiment
Analysis - Part
03 (unit?
unit=142&lesson=162)
Facebook
Sentiment
Analysis - Part
04 (unit?
unit=142&lesson=163)
Quiz :
Assignment 8
(assessment?
name=284)
Programming
Assignment - 1:
Duplicate
Elements
(/noc20_cs35/progassignment?
name=307)
Programming
Assignment-2:
Panagrams
(/noc20_cs35/progassignment?
name=308)
Programming
Assignment-3:
Vowels
(/noc20_cs35/progassignment?
name=309)
Week 8
Feedback (unit?
https://onlinecourses.nptel.ac.in/noc20_cs35/unit?unit=142&assessment=284 3/7
02/07/2020 The Joy of Computing using Python - - Unit 10 - Week 8
unit=142&lesson=310)
Week 9
Week 10
Week 11
Week 12
Text Transcripts
No, the answer is incorrect.
Download Videos Score: 0
Accepted Answers:
Books
6) Which of the plots in the options is most likely to be generated from the following code? 1 point
https://onlinecourses.nptel.ac.in/noc20_cs35/unit?unit=142&assessment=284 4/7
02/07/2020 The Joy of Computing using Python - - Unit 10 - Week 8
[20,10,40,30]
[90,10,40,30]
[10,20,30,40]
Error
No, the answer is incorrect.
Score: 0
Accepted Answers:
Error
8) Which of the scenarios in the options does the following code represent? 2 points
https://onlinecourses.nptel.ac.in/noc20_cs35/unit?unit=142&assessment=284 5/7
02/07/2020 The Joy of Computing using Python - - Unit 10 - Week 8
9) Which of the scenarios in the options does the following code represent? 1 point
https://onlinecourses.nptel.ac.in/noc20_cs35/unit?unit=142&assessment=284 6/7
02/07/2020 The Joy of Computing using Python - - Unit 10 - Week 8
https://onlinecourses.nptel.ac.in/noc20_cs35/unit?unit=142&assessment=284 7/7
02/07/2020 The Joy of Computing using Python - - Unit 11 - Week 9
(https://swayam.gov.in) (https://swayam.gov.in/nc_details/NPTEL)
reviewer4@nptel.iitm.ac.in
Unit 11 - Week 9
Course
outline Assignment 9
How does an The due date for submitting this assignment has passed. Due on 2020-04-01, 23:59 IST.
NPTEL online As per our records you have not submitted this assignment.
course work?
1) The isalpha() function in NLTK 1 point
Week 0
returns true if all the words in a sentence are composed of alphabetic characters and false
otherwise
Week 1
returns true if all the characters in a word are alphabets and false otherwise
Week 2 returns true if all the characters in a word are alphabets or numerics and false otherwise
None of the above
Week 3
No, the answer is incorrect.
Score: 0
week 4 Accepted Answers:
returns true if all the characters in a word are alphabets and false otherwise
Week 5
2) Predict the output 1 point
Week 6
Week 7
Week 8 [’i’, ’ ’, ’a’, ’m’, ’ ’, ’t’, ’o’, ’ ’, ’g’, ’o’, ’ ’, ’t’, ’o’, ’ ’, ’K’, ’T’, ’ ’, ’i’, ’n’, ’ ’, ’A’]
[’i’, ’a’, ’m’, ’t’, ’o’, ’g’, ’o’, ’t’, ’o’, ’K’, ’T’, ’i’, ’n’, ’A’]
Week 9 [’i’, ’am’, ’to’, ’go’, ’to’, ’KT’, ’in’, ’A’]
[’i’, ’ ’, ’am’,’ ’, ’to’,’ ’, ’go’,’ ’, ’to’,’ ’, ’KT’,’ ’, ’in’,’ ’, ’A’]
Natural
Language No, the answer is incorrect.
Processing - Score: 0
Author Accepted Answers:
Stylometry [’i’, ’ ’, ’a’, ’m’, ’ ’, ’t’, ’o’, ’ ’, ’g’, ’o’, ’ ’, ’t’, ’o’, ’ ’, ’K’, ’T’, ’ ’, ’i’, ’n’, ’ ’, ’A’]
(unit?
unit=164&lesson=165) 3) Which of the following is a valid function in NLTK? 1 point
https://onlinecourses.nptel.ac.in/noc20_cs35/unit?unit=164&assessment=285 1/5
02/07/2020 The Joy of Computing using Python - - Unit 11 - Week 9
Natural freq_dist()
Language
frequency_distribution()
Processing -
Author FreqDist()
Stylometry - freqDist()
Part 01 (unit?
unit=164&lesson=166) No, the answer is incorrect.
Score: 0
Natural Accepted Answers:
Language FreqDist()
Processing -
Author 4) Predict the output 1 point
Stylometry -
Part 02 (unit?
unit=164&lesson=167)
Natural
Language
Processing -
Author True
Stylometry - False
Part 03 (unit?
"connected"
unit=164&lesson=168)
can not say
Natural
Language No, the answer is incorrect.
Score: 0
Processing -
Author
Accepted Answers:
Stylometry -
True
Part 04 (unit?
5) Which of the following functions when applied to a graph G in networkx will give you its degree 1 point
unit=164&lesson=169)
of separation?
Natural
Language is_connected(G)
Processing - order(G)
Author
diameter(G)
Stylometry -
Part 05 (unit? None of the above
unit=164&lesson=170)
No, the answer is incorrect.
Natural
Score: 0
Language Accepted Answers:
Processing - None of the above
Author
6) What is the degree of separation of the following network? 1 point
Stylometry -
Part 06 (unit?
unit=164&lesson=171)
Natural
Language
Processing -
Author
Stylometry -
Part 07 (unit?
unit=164&lesson=172)
Natural
Language
Processing -
Author
Stylometry -
Part 08 (unit?
unit=164&lesson=173)
1
https://onlinecourses.nptel.ac.in/noc20_cs35/unit?unit=164&assessment=285 2/5
02/07/2020 The Joy of Computing using Python - - Unit 11 - Week 9
Natural 2
Language
3
Processing -
Author 4
Stylometry - No, the answer is incorrect.
Part 09 (unit? Score: 0
unit=164&lesson=174) Accepted Answers:
1
Natural
Language 7) What is the degree of separation of the following network? 1 point
Processing -
Author
Stylometry -
Part 10 (unit?
unit=164&lesson=175)
Introduction to
Networkx - Part
01 (unit?
unit=164&lesson=176)
Introduction to
Networkx - Part
02 (unit?
unit=164&lesson=177)
Six Degrees of
Separation :
Meet your
favourites (unit? 1.333
unit=164&lesson=178) 2
Six Degrees of 2.333
Separation :
6
Meet your
favourites - Part No, the answer is incorrect.
01 (unit? Score: 0
unit=164&lesson=179) Accepted Answers:
2.333
Six Degrees of
Separation : 8) What is the degree of separation of the following network? 1 point
Meet your
favourites - Part
02 (unit?
unit=164&lesson=180)
Six Degrees of
Separation :
Meet your
favourites - Part
03 (unit?
unit=164&lesson=181)
Area Calculation
- Don't Measure
(unit?
unit=164&lesson=182)
Area Calculation
- Don't Measure
- Part 01 (unit? 1
unit=164&lesson=183) 2.5
Area Calculation 3.5
- Don't Measure 4
N h i i
https://onlinecourses.nptel.ac.in/noc20_cs35/unit?unit=164&assessment=285 3/5
02/07/2020 The Joy of Computing using Python - - Unit 11 - Week 9
Area Calculation
- Don't Measure
- Part 04 (unit?
unit=164&lesson=186)
Area Calculation
- Don't Measure
- Part 05 (unit?
unit=164&lesson=187)
Area Calculation
- Don't Measure
- Part 06 (unit?
unit=164&lesson=188)
Quiz :
Assignment 9
(assessment?
1.82
name=285)
2.5
Programming
2.82
Assignment 1:
Swap the Case 3
(/noc20_cs35/progassignment?
No, the answer is incorrect.
name=311) Score: 0
Programming Accepted Answers:
Assignment-2: 2.82
First and Last
10)Degree of separation of a network is same as its 1 point
(/noc20_cs35/progassignment?
name=312)
Order
Programming Size
Assignment 3:
Average shortest path length
Rotate the
matrix Number of components
(/noc20_cs35/progassignment?
No, the answer is incorrect.
name=313) Score: 0
Week 9 Accepted Answers:
Feedback (unit? Average shortest path length
unit=164&lesson=314)
Week 10
Week 11
Week 12
Text Transcripts
Download Videos
Books
https://onlinecourses.nptel.ac.in/noc20_cs35/unit?unit=164&assessment=285 4/5
02/07/2020 The Joy of Computing using Python - - Unit 11 - Week 9
https://onlinecourses.nptel.ac.in/noc20_cs35/unit?unit=164&assessment=285 5/5
02/07/2020 The Joy of Computing using Python - - Unit 12 - Week 10
(https://swayam.gov.in) (https://swayam.gov.in/nc_details/NPTEL)
reviewer4@nptel.iitm.ac.in
Unit 12 - Week 10
Course
outline Assignment 10
How does an The due date for submitting this assignment has passed. Due on 2020-04-08, 23:59 IST.
NPTEL online As per our records you have not submitted this assignment.
course work?
1) Which of the following is a correct representation to convert a string “s” in uppercase in 1 point
Week 0 python?
uppercase(s)
Week 1
s.upper()
Week 2 upper(s)
s.uppercase()
Week 3
No, the answer is incorrect.
Score: 0
week 4 Accepted Answers:
s.upper()
Week 5
2) Predict the output 1 point
Week 6
Week 7
Week 8
Hello
Week 9
Heslo
Week 10 Hesso
Heso
FLAMES - Part
01 (unit? No, the answer is incorrect.
unit=189&lesson=190)
Score: 0
Accepted Answers:
Hesso
https://onlinecourses.nptel.ac.in/noc20_cs35/unit?unit=189&assessment=286 1/4
02/07/2020 The Joy of Computing using Python - - Unit 12 - Week 10
FLAMES - Part
03 (unit?
unit=189&lesson=192)
FLAMES - Part
04 (unit? llo
unit=189&lesson=193)
ello
FLAMES - Part l
05 (unit?
lo
unit=189&lesson=194)
No, the answer is incorrect.
FLAMES - Part Score: 0
06 (unit?
Accepted Answers:
unit=189&lesson=195)
lo
Data
4) Predict the output 0 points
Compression -
Part 01 (unit?
unit=189&lesson=196)
Data
Compression -
Part 02 (unit?
unit=189&lesson=197)
[1,2,3]
Data
1
Compression -
Part 03 (unit? 2
unit=189&lesson=198) 3
Data No, the answer is incorrect.
Compression - Score: 0
Part 04 (unit? Accepted Answers:
unit=189&lesson=199) 1
Data 5) Which of the following can be used to see the dimension of a numpy array names ‘arr’? 1 point
Compression -
Part 05 (unit? dim(arr)
unit=189&lesson=200)
shape(arr)
Quiz : arr.shape
Assignment 10
arr.shape()
(assessment?
name=286) No, the answer is incorrect.
Score: 0
Programming Accepted Answers:
Assignment-1: arr.shape
Digit
(/noc20_cs35/progassignment?
6) Predict the output 1 point
name=315)
Programming
Assignment-2:
Missing Number
(/noc20_cs35/progassignment?
name=316)
Programming [1,4,9]
Assignment-3:
[2,4,6]
Rearrangement
(/noc20_cs35/progassignment?
name=317) [[123]
https://onlinecourses.nptel.ac.in/noc20_cs35/unit?unit=189&assessment=286 2/4
02/07/2020 The Joy of Computing using Python - - Unit 12 - Week 10
Week 10 [246]
Feedback (unit? [369]]
unit=189&lesson=318) error
[1,4,9]
[2,4,6]
[[123]
[246]
[369]]
error
No, the answer is incorrect.
Score: 0
Accepted Answers:
error
snow
snow world C
Error
snos world
No, the answer is incorrect.
Score: 0
Accepted Answers:
Error
True
False
None
Error
N h i i
https://onlinecourses.nptel.ac.in/noc20_cs35/unit?unit=189&assessment=286 3/4
02/07/2020 The Joy of Computing using Python - - Unit 12 - Week 10
https://onlinecourses.nptel.ac.in/noc20_cs35/unit?unit=189&assessment=286 4/4
02/07/2020 The Joy of Computing using Python - - Unit 13 - Week 11
(https://swayam.gov.in) (https://swayam.gov.in/nc_details/NPTEL)
reviewer4@nptel.iitm.ac.in
Unit 13 - Week 11
Course
outline Assignment 11
How does an The due date for submitting this assignment has passed. Due on 2020-04-15, 23:59 IST.
NPTEL online As per our records you have not submitted this assignment.
course work?
1) Which Python library is used for browser automation? 1 point
Week 0
networkx
Week 1 numpy
nltk
Week 2 selenium
No, the answer is incorrect.
Week 3 Score: 0
Accepted Answers:
week 4 selenium
2) Which package is used to work with date and time in Python? 1 point
Week 5
timedate
Week 6
datetime
Week 7 dttm
tmdt
Week 8 No, the answer is incorrect.
Score: 0
Week 9 Accepted Answers:
datetime
Week 10 3) Which function is used to see the current date and time in Python? 1 point
Week 11 current()
today_with_time()
Browser
Automation now()
https://onlinecourses.nptel.ac.in/noc20_cs35/unit?unit=201&assessment=287 1/4
02/07/2020 The Joy of Computing using Python - - Unit 13 - Week 11
https://onlinecourses.nptel.ac.in/noc20_cs35/unit?unit=201&assessment=287 2/4
02/07/2020 The Joy of Computing using Python - - Unit 13 - Week 11
Fun with
Calendar - Part 6
12 (unit?
1
unit=201&lesson=217)
0
Quiz :
7
Assignment 11
(assessment? No, the answer is incorrect.
name=287) Score: 0
Accepted Answers:
Programming 6
Assignment-1:
Formula 10)Which of the following functions can be used to find the coordinated universal time, assuming 1 point
(/noc20_cs35/progassignment?
that the datetime module has
name=319) already been imported?
Programming
datetime.utc()
Assignment-2:
word-sorting datetime.datetime.utc()
(/noc20_cs35/progassignment? datetime.utcnow()
name=320)
datetime.datetime.utcnow()
Programming
No, the answer is incorrect.
Assignment-3:
Score: 0
Numbers
Accepted Answers:
(/noc20_cs35/progassignment?
datetime.datetime.utcnow()
name=321)
Week 11
Feedback (unit?
unit=201&lesson=322)
Week 12
Text Transcripts
Download Videos
Books
https://onlinecourses.nptel.ac.in/noc20_cs35/unit?unit=201&assessment=287 3/4
02/07/2020 The Joy of Computing using Python - - Unit 13 - Week 11
https://onlinecourses.nptel.ac.in/noc20_cs35/unit?unit=201&assessment=287 4/4
02/07/2020 The Joy of Computing using Python - - Unit 14 - Week 12
(https://swayam.gov.in) (https://swayam.gov.in/nc_details/NPTEL)
reviewer4@nptel.iitm.ac.in
Unit 14 - Week 12
Course
outline Assignment 12
How does an The due date for submitting this assignment has passed. Due on 2020-04-22, 23:59 IST.
NPTEL online As per our records you have not submitted this assignment.
course work?
1) In web graph, on which we perform Google page ranking 1 point
Week 0
Web pages are the nodes and hyperlinks are the edges
Week 1 Hyperlinks are the nodes and web pages are the edges
Both hyperlinks and web pages are nodes
Week 2 Both hyperlinks and web pages are edges
No, the answer is incorrect.
Week 3 Score: 0
Accepted Answers:
week 4 Web pages are the nodes and hyperlinks are the edges
Week 7 a random node out of all the nodes which are either pointing to A or the nodes which A is pointing
to
Week 8 none of the above
No, the answer is incorrect.
Week 9 Score: 0
Accepted Answers:
Week 10 a random node which A is pointing to
https://onlinecourses.nptel.ac.in/noc20_cs35/unit?unit=218&assessment=288 1/4
02/07/2020 The Joy of Computing using Python - - Unit 14 - Week 12
Page Rank - In any star graph having more than 2 nodes, there are at least 2 nodes having the same degree
How does
All the above statements are true
Google Work ? -
Part 01 (unit? No, the answer is incorrect.
unit=218&lesson=219) Score: 0
Accepted Answers:
Page Rank - All the above statements are true
How does
Google Work ? - 4) Which of the following statements choose a random node from a graph G? 1 point
Part 02 (unit?
unit=218&lesson=220) random.choice(G)
Page Rank -
random.node(G.nodes())
How does random.choice(G.nodes())
Google Work ? -
none of the above
Part 03 (unit?
unit=218&lesson=221) No, the answer is incorrect.
Score: 0
Page Rank - Accepted Answers:
How does none of the above
Google Work ? -
Part 04 (unit? 5) The function networkx.pagerank(G) returns 1 point
unit=218&lesson=222)
a list
Page Rank -
How does
a set
Google Work ? - a dictionary
Part 05 (unit?
a numpy array
unit=218&lesson=223)
No, the answer is incorrect.
Page Rank - Score: 0
How does Accepted Answers:
Google Work ? - a dictionary
Part 06 (unit?
unit=218&lesson=224) 6) Choose one network from following which is not directed. 1 point
https://onlinecourses.nptel.ac.in/noc20_cs35/unit?unit=218&assessment=288 2/4
02/07/2020 The Joy of Computing using Python - - Unit 14 - Week 12
Page Rank -
How does
Google Work ? -
Part 14 (unit?
unit=218&lesson=232)
Page Rank -
How does
Google Work ? -
Part 15 (unit?
unit=218&lesson=233)
Page Rank -
How does
Google Work ? - One node ends up having all coins and the game stops
Part 16 (unit? The game stops after some iterations but one node does not end up having all the coins
unit=218&lesson=234)
The game enters an infinite loop
Collatz None of the above
Conjecture -
Part 01 (unit? No, the answer is incorrect.
Score: 0
unit=218&lesson=235)
Accepted Answers:
Collatz One node ends up having all coins and the game stops
Conjecture -
Part 02 (unit? 10)The number of gold coins in the gold coin distribution game 1 point
unit=218&lesson=236)
keeps increasing in every subsequent iteration
JOC Conclusion
keeps decreasing in every subsequent iteration
(unit?
unit=218&lesson=237) keeps varying randomly in every subsequent iteration
remains constant
Quiz :
Assignment 12 No, the answer is incorrect.
(assessment? Score: 0
name=288) Accepted Answers:
remains constant
Programming
Assignments-1:
Sentence
(/noc20_cs35/progassignment?
name=323)
Programming
Assignment-2:
Letters
(/noc20_cs35/progassignment?
name=324)
Programming
Assignment-3:
Email ID
(/noc20_cs35/progassignment?
name=325)
https://onlinecourses.nptel.ac.in/noc20_cs35/unit?unit=218&assessment=288 3/4
02/07/2020 The Joy of Computing using Python - - Unit 14 - Week 12
Week 12
Feedback (unit?
unit=218&lesson=326)
Text Transcripts
Download Videos
Books
https://onlinecourses.nptel.ac.in/noc20_cs35/unit?unit=218&assessment=288 4/4