This set of MCQ(multiple choice questions) focuses on The Joy of Computing using Python Week 11 Assignment Solutions.
The course carries programming to your work area with stories, similarities and distinguished models. Going reflections to experiences and designing to engineering, the course concentrates fundamentally to rouse the student’s psyche to automatically think intelligently and show up at an answer. As a feature of the course, you will figure out how to practice and culture the craft of programming with Python as a language.
Course layout
Answers COMING SOON! Kindly Wait!
Week 0: Assignment answers
Week 1: Assignment answers
Week 2: Assignment answers
Week 3: Assignment answers
Week 4: Assignment answers
Week 5: Assignment answers
Week 6: Assignment answers
Week 7: Assignment answers
Week 8: Assignment answers
Week 9: Assignment answers
Week 10: Assignment answers
Week 11: Assignment answers
Week 12: Assignment answers
NOTE: You can check your answer immediately by clicking show answer button. The Joy of Computing using Python Week 11 Assignment Solutions” contains 10 questions.
Now, start attempting the quiz.
The Joy of Computing using Python week 11 Assignment Solutions
Q1. Which library is used for browser automation?
a) nltk
b) numpy
c) selenium
d) PIL
Answer:
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:
Q3. Identify the library that can be used to get all timezones:
a) selenium
b) calender
c) nltk
d) pytz
Answer:
Q4. The output of the following code will be?
from datetime 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:
Q5. We can use the selenium web driver for different browsers.
a) True
b) False
Answer:
Q6. What will be the output of the following code?
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:
Q7. What will be the output if the system date is 10 December 2021(Friday)?
a) 5
b) 3
c) 4
d) error
Answer:
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:
Q9. By which statement can we come out of the loop?
a) continue
b) leave
c) catch
d) break
Answer:
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:
The Joy of Computing using Python week 11 Assignment Solutions
Q1. We can get any element using CSS tag in seleium? (If CSS is applicable)
a) True
b) False
Answer: a) True
Q2. We can use the same web drivers for different browsers.
a) True
b) False
Answer: b) False
Q3. Which of the following method can be used to print the calendar of month march, 2022?
a) calendar.month(2022, 3)
b) calendar.month(3, 2022)
c) calendar(3,2022)
d) calendar(2022, 3)
Answer: a) calendar.month(2022, 3)
Q4. Which method will allow us to see the current date and time using datetime?
a) current()
b) now()
c) today()
d) time()
Answer: b) now()
Q5. 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)
Q6. Which of the following method is used to fetch an element by its class name?
a) get_element_by_class_name
b) fetch_element_by_class_name
c) find_element_by_class_name
d) return_element_by_class_name
Answer: c) find_element_by_class_name
Q7. Which library allows us to work with timezones in python?
a) timezone
b) pythontz
c) pytz
d) pythontimezone
Answer: c) pytz
Q8. which of the following functions can be used to find the coordinated universal time.
a) datetime.datetime.utcnow()
b) datetime.utc()
c) datetime.utcnow()
d) datetime.utc()
Answer: a) datetime.datetime.utcnow()
Q9. By which statement can we come out of the loop?
a) continue
b) leave
c) catch
d) break
Answer: d) break
Q10. Which of the following will convert a string ‘s’ containing numbers into an integer?
a) str(s)
b) float(s)
c) int(s)
d) None of the above
Answer: c) int(s)
<< Prev- The Joy of Computing using Python Week 10 Assignment Solutions
>> Next- The Joy of Computing using Python Week 12 Assignment Solutions
DISCLAIMER: Use these answers only for the reference purpose. Quizermania doesn't claim these answers to be 100% correct. So, make sure you submit your assignments on the basis of your knowledge.
For discussion about any question, join the below comment section. And get the solution of your query. Also, try to share your thoughts about the topics covered in this particular quiz.
Checkout for more NPTEL Courses: Click Here!