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

The Joy of Computing using Python Week 11 - Assignment | NPTEL | Answer with Explanation

"Discover the Excitement of Computing with Python | Week Multiple Choice Questions - Get ready to enhance your programming skills and deepen your understanding of the Python language with this week 11 MCQ on 'The Joy of Computing using Python'. Test your knowledge and boost your confidence as a Python programmer today!"
The Joy Of Computing Using Python Week 11  Assignment  July 2023 | NPTEL

Which library is used for browser automation?

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

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
Answer

a. Time in seconds.

Identify the library that can be used to get all timezones:

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

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.
Answer

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

We can use the selenium web driver for different browsers.

a. True
b. False
Answer

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.
Answer

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
Answer

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

c. calendar.prcal(year)

By which statement can we come out of the loop?

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

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

c. calendar.isleap(year)

|All Assignment: The Joy of Computing using Python - Course | NPTEL

Disclaimer:
"This page contains multiple choice questions (MCQs) related to The Joy of Computing using Python. The answers to these questions are provided for educational and informational purposes only.These answers are provided only for the purpose to help students to take references. This website does not claim any surety of 100% correct answers. So, this website urges you to complete your assignment yourself."

The Joy of Computing using Python Week 11, NPTEL ,Assignment [July 2023],noc23_cs108

Post a Comment

0 Comments