# The Joy Of Computing Using Python Week 11 Assignment July 2023 | NPTEL

a. nltk
b. numpy
c. selenium
d. PIL

c. selenium

## 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

a. Time in seconds.

a. selenium
b. calender
c. nltk
d. pytz

d. pytz

## he output of the following code will be?

```from daretime import datetime as dt
print(dt.now())```
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.

d. Date and time in yy- mm-dd hh:MM:ss:ms respectively.

a. True
b. False

b. False

## 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])))```
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.

a. Print the current date and time of all time zones.

## 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())```
a. 5
b. 3
c. 4
d. error

c. 4

## 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)

c. calendar.prcal(year)

a. continue
b. leave
c. catch
d. break

d. break

## How to check for the leap year?

a. calendar.leap(year)
b. calendar.is_leap(year)
c. calendar.isleap(year)
d. calendar.checkleap(year)