Hey Folks, In this article we are going to see answers of Week 11 Answers of NPTEL Joy of Computing Using Python. In the previous article we have seen the week 10 answers. So similarily, we will do this week 11.Â
Also Read: Joy Of Computing using python week 10 Answers 2023
NPTEL Joy Of Computing Using Python Week 11 Answers 2023
dd - date
mm - month
yy - year
hh - hour
MM - minutes
ss - seconds
ms - milli-seconds
Q1. Which library is used for browser automation?
 A. nltk
 B. numpy
 C. selenium
 D. PIL
Answer: [ C ]Â
Selenium
Q2. What the given statement will return?
    time.time()
A. Time in seconds.
B. Current date and time.
C. Time in minutes
D. The current date, time and year
Answer: [ A ] Time in seconds
Q3. Identify the library that can be used to get all timezones:
 A. selenium
B. calender
C. nltk
D. pytz
Answer: [ D ]Â Pytz
from datetime import datetime as dt
print ( dt.now () ) {codeBox}Â
A. Date and time in dd- mm-yy hh:MM:ss:ms respectively.
B. Time and date in hh:MM:ss:ms dd- mm-yy respectively.
C. Date and time in mm-dd-yy hh:MM:ss:ms respectively.
D. Date and time in yy- mm-dd hh:MM:ss:ms respectively.
Answer: [ D ]Â
Q5. We can use the selenium web driver for different browsers.
A. True
B. False
Answers: [ B ] False
Q6. What will be the output of the following code?
import pytz
from datetime import datetime as dt
zone = pytz.all_timezones
for i in range ( len ( zone ) ):Â
   print ( dt.now ( pytz.timezone ( zone [i] ) ) {codeBox}
A. Print the current date and time of all time zones.
B. Print the current date and time of specific time zones.
C. Print the current date of all time zones.
D. Print the current date of some specific time zones.
Answer: [ A ] Print the current date and time of all time zones.
Q7. What will be the output if the system date is 10 December 2021(Friday)?
from datetime import datetime as dt
day = dt.today()
print (day.weekday ( ) ) {codeBox}
A. 5
B. 3
C. 4
D. error
Answer: [ C ] 4Â
Q8. Which statement will return the calendar for a whole year?
 A. calendar.month(year)
 B. calendar(year)
 C. calendar.prcal(year)
 D. calendar.year(year)
Answer: [ C ] calendar.prcal(year)
Q9. By which statement can we come out of the loop?
 A. continue
 B. leave
 C. catch
 D. break
Answer: [ D ] break
Q10. How to check for the leap year?
 A. calendar.leap(year)
 B. calendar.is_leap(year)
 C. calendar.isleap(year)
 D. calendar.checkleap(year)
Answer: [ C ] calendar.isleap(year)
Also Read:Â Joy Of Computing using python week 10 Answers 2023
Conclusion:Â
If any change in the please visit the website on or before to the last date.Â
Join the telegram channel for more updates 👉 CLICK HERE